# Tag Info

## Hot answers tagged accents

124

To typeset accented characters inside bibliography fields for processing with BibTeX, encase them in curly braces. To list but a few accented characters: {\"a} {\^e} {\i} {\.I} {\o} {\'u} {\aa} {\c c} {\u g} {\l} {\~n} {\H o} {\v r} {\ss} The word Birkhäuser should therefore be entered as Birkh{\"a}user. Addendum: There is an obvious follow-up ...

41

Here's a new implementation of \widebar, based on \overline. It works by hacking into amsmath's accent placement, so it needs that package. Here's a comparison of \widebar (first line) and \overline (second line): I think the placement of the bars in the first line is better, except for the \sin z, where there's no difference. Note that \widebar works ...

39

Save your file as UTF-8 and put \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} % load a font with all the characters in your preamble. Then you can just type the characters normally into your source file. Or, use XeLaTeX or LuaLaTeX which accepts UTF-8 input natively. In that case you need to add \usepackage{fontspec} to ...

39

You can type texdoc lshort in a command line (Command Prompt on Windows, Terminal on Linux/Mac OS X). Then have a look at Table 2.2 in Section 2.4.8. I'll quote it for you here.

35

You can write the macron using \=<character>; \documentclass{article} \usepackage[T1]{fontenc} \begin{document} Sankhy\=a \end{document} Just for the record, here's a table I wrote some time ago, containing (I think) all the accents provided by LaTeX (the original names were in Spanish; I used the English names I found on the web, but let me ...

29

This works: M\^^22arz Indeed TeX interprets ^^xy (where x and y are digits or abcdef) as the character having "xy (hexadecimal) ASCII code. Since the character code of " is 34, hexadecimal 22, typing \^^22 is the same as typing \". This translation happens before TeX starts to make tokens.

26

With the following setup, you can just type these characters normally, and the copy-paste text in the pdf (the OCR layer) will be correct, too. Your source .tex document should be encoded in UTF8, of course, or you could use latin1, or some other input encoding that includes the characters you desire and is listed in the inputenc documentation. % !TEX ...

22


21

The problem comes up already with a "more minimal" example: \documentclass{article} \usepackage{amsmath} \begin{document} $\breve{\breve{a}\breve{b}}$ \end{document} which produces ! Undefined control sequence. \macc@adjust ->\dimen@ \macc@kerna \advance \dimen@ \macc@kernb \kern -\dimen@ thus showing that the ...

20

The "standard way" would be to say \UndeclareUTFcomposite[\UTFencname]{x1E47}{\d}{n} in order to use the combining character instead of the missing character at U+1E47, but unfortunately Minion Pro has nothing in slot U+0323 (COMBINING DOT BELOW). We need to go the hard way: write the following in the preamble ...

19


18

If the Unicode value is known, then there is a mapping from glyph name to Unicode in glyphlist.txt that can quite easily parsed (with # as comment char) to get the hex string of the Unicode value. However this method is quite limited, because there are lots of Unicode characters without proper glyph name in this list. If the name does not care, then the ...

18


17

When typing the name in the text, N\o rregard will not leave any space in the output, as spaces after control sequences (with name consisting of letters) are ignored. However, in .bib file the question is slightly different, as you want to use the name also for collation. The BibTeX manual recommends author = {N{\o}rregard, X.} because in this way the ...

17


Only top voted, non community-wiki answers of a minimum length are eligible