pub fn latex<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str>Expand description
Transform uppercase words to small caps for LaTeX output.
Note that it will put all the text in small capitals in lowercase: sometimes, it would be best to do otherwise (e.g. put the first letter in uppercase or whatever).
It only applies to words (or abbreviations: you can use dots to separate each letter) that have strictly more than one letter that are in uppercase in the input.
ยงExample
use crowbook_text_processing::caps;
let s = caps::latex("Some ACRONYM or SCREAMING or whatever.");
assert_eq!(&s, "Some \\textsc{acronym} or \\textsc{screaming} or whatever.");