I'm using a batch file to generate a small LaTeX input file. I cannot use proper umlauts, but the batch file has problems with " as text and I want to produce the word März.

Is there any way in LaTeX to produce what would otherwise be written as M\"arz

  • 6
    simplest is to write \usepackage{local} in the preamble and use \marz then local.sty can have \newcommand\marz{M\"arz} – David Carlisle May 16 '13 at 13:48
  • 3
    Sounds like you need to escape the backlash in front of ". – Matthew Leingang May 16 '13 at 13:49

This works:


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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.