internationalization - Multilanguage document in Latex -


how prepare latex document translation... need 1 multilanguage document. should like:

\section{pl:costam; en:something} 

then i'd render in polish or english...

if else fails, can go more basic, insultingly dumb approach:

\newcommand{\dumblang}[2]{{#1}} 

this defines command 2 arguments ([2]) , spits out first ({#1}).

so example can have...

\usepackage[\dumblang{english}{italian}]{babel}  %snip  \section{\dumblang{introduction}{introduzione}} \dumblang{your introduction goes here!}{scrivi qua la tua introduzione!} 

...and when want document in italian, can change \dumblang to:

\newcommand{\dumblang}[2]{{#2}} 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -