TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Could someone post a complete minimal input file for LuaLaTeX to output


also to get around ,,Hallo´´

In LaTeX I would have written


%% Minimal Inputfile for LuaLaTeX
\setdefaultlanguage[spelling=new, babelshorthands=true]{german}


\enquote{Hallo--mit enquote--this is working}

But: how to produce the euivalent Text, based on babelshorthands?

“`Hallo”’  --- is not working

share|improve this question
Hallo. Ich verstehe nicht richtig was Du machen willst. Willst Du "Hallo" drucken oder ,,Hallo´´ ? – Trefex Apr 17 '14 at 15:51
Better: \usepackage[ngerman]{babel} \usepackage{csquotes} & Ich schreibe ``Hallo'' so: \enquote{Hallo}. – jon Apr 17 '14 at 16:13

For babel-style shortcuts, don't use "smart" quotes: using "dumb" double quotes is the way to go.

enter image description here

\setdefaultlanguage[spelling=new, babelshorthands=true]{german}

\enquote{Hallo} --- with \texttt{\string\enquote}, this works

"`Hallo"'  --- with \verb+"`+ and \verb+"'+, this works too
share|improve this answer

The conversion from ``Hello'' to „Hello“ via a feature file.


  • Copy&paste will catch the first form.
  • LuaTeX only.

Example file:



# germanquotes.fea
languagesystem DFLT dflt ;
languagesystem latn dflt ;

feature liga {
  sub \grave \grave by \quotedblbase;
  sub \quotesingle \quotesingle by \quotedblleft;
} liga;

]{Latin Modern Roman}

  ``Hello'' -- fi fl

  \textit{``Hello'' -- fi fl}

  \textbf{``Hello'' -- fi fl}


Disclaimer: My first experiment with a feature file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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