I want to learn how to type diacritical marks over 'r' and 'i' in latex. I need to write a name of Czech Republic origin. The diacritical mark over 'r' looks like a small 'v' on the head of the 'r' and the diacritical sign above 'i' looks like a mirror image of the symbol `
Any help is appreciated!
\usepackage[T1]{fontenc}
In LuaLaTeX or XeLaTeX, it should just work, but you might need\usepackage{fontspec}
.\'{i}
for í and\v{r}
for ř. As mentioned by @Davislor, however, it is probably easier to use thefontenc
-package (maybe in combination with theinputenc
-package) to type the characters directly in the TeX source.inputenc
(orluainputenc
) to compile a document originally written in a different encoding, such as CP1250. Even then, it might be advisable to useselinput
, so that the document will just work no matter how it is re-encoded. I would recommend that any new document be saved as UTF-8, which has been the default LaTeX encoding since 2018.