diff options
| author | lukeflo | 2025-10-05 13:16:26 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-05 13:16:26 +0200 |
| commit | f84ebacd1ea47b09c58dd1ef1eaaf70feaacbe0f (patch) | |
| tree | 5d859c8f9859e66507c717727805d86b4543294e | |
| parent | 606716f064c1151ab9e8617ff76fd4b95f4a2c57 (diff) | |
| download | bibiman-f84ebacd1ea47b09c58dd1ef1eaaf70feaacbe0f.tar.gz bibiman-f84ebacd1ea47b09c58dd1ef1eaaf70feaacbe0f.zip | |
add some further text macros to be hidden
| -rw-r--r-- | src/bibiman/sanitize/optimized_sanitize.rs | 2 | ||||
| -rw-r--r-- | tests/biblatex-test.bib | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/bibiman/sanitize/optimized_sanitize.rs b/src/bibiman/sanitize/optimized_sanitize.rs index 8ee0115..336cc56 100644 --- a/src/bibiman/sanitize/optimized_sanitize.rs +++ b/src/bibiman/sanitize/optimized_sanitize.rs @@ -27,6 +27,8 @@ static LOOKUP: phf::Map<&'static str, (&'static str, Option<&'static str>)> = ph r"\hyphen" => ("-", None), r"\textbf" => ("", Some("")), r"\textit" => ("", Some("")), + r"\texttt" => ("", Some("")), + r"\textsc" => ("", Some("")), }; #[derive(Logos, Debug)] diff --git a/tests/biblatex-test.bib b/tests/biblatex-test.bib index fcc5085..2149e7c 100644 --- a/tests/biblatex-test.bib +++ b/tests/biblatex-test.bib @@ -107,7 +107,7 @@ } @mvbook{aristotle_rhetoric, - title = {The Rhetoric of {Aristotle} with a commentary by the late {Edward + title = {The \textbf{Rhetoric} of {Aristotle} with a commentary by the late {Edward Meredith Cope}}, shorttitle = {Rhetoric}, author = {Aristotle}, @@ -127,7 +127,7 @@ } @book{augustine, - title = {Heterogeneous catalysis for the synthetic chemist}, + title = {Heterogeneous catalysis for the synthetic \textit{chemist}}, shorttitle = {Heterogeneous catalysis}, author = {Augustine, Robert L.}, location = {New York}, @@ -289,7 +289,7 @@ annotation = {An \texttt{article} entry with an \texttt{eid} and a \texttt{ doi} field. Note that the \textsc{doi} is transformed into a clickable link if \texttt{hyperref} support has been enabled}, - abstract = {The computation of ionic solvation free energies from atomistic + abstract = {The computation of \texttt{ionic} solvation free energies from atomistic simulations is a surprisingly difficult problem that has found no satisfactory solution for more than 15 years. The reason is that the charging free energies evaluated from such simulations are |
