Skip to main content
Removed unnecessary package.
Source Link
schtandard
  • 17.8k
  • 2
  • 39
  • 68

There is another way to support internationalization within your LaTeX documents. For instance, below is the support for english and german languages I made some time ago:

\RequirePackage{ifthen} \newif\ifen \newif\ifde \newcommand{\en}[1]{\ifen#1\fi} \newcommand{\de}[1]{\ifde#1\fi} 

Next, if you need you can define different commands for months, date formats, etc:

\newcommand{\jan}{% \en{January}% \de{Januar}% } 

Finally, in text you can write something like this:

\en{English text.} \de{Deutscher Text.} 

After all, when you've created the whole document you can simple switch between languages setting in the document preamble either \entrue or \detrue. All this allows you to keep multilingual texts up-to-dated near each other.

There is another way to support internationalization within your LaTeX documents. For instance, below is the support for english and german languages I made some time ago:

\RequirePackage{ifthen} \newif\ifen \newif\ifde \newcommand{\en}[1]{\ifen#1\fi} \newcommand{\de}[1]{\ifde#1\fi} 

Next, if you need you can define different commands for months, date formats, etc:

\newcommand{\jan}{% \en{January}% \de{Januar}% } 

Finally, in text you can write something like this:

\en{English text.} \de{Deutscher Text.} 

After all, when you've created the whole document you can simple switch between languages setting in the document preamble either \entrue or \detrue. All this allows you to keep multilingual texts up-to-dated near each other.

There is another way to support internationalization within your LaTeX documents. For instance, below is the support for english and german languages I made some time ago:

\newif\ifen \newif\ifde \newcommand{\en}[1]{\ifen#1\fi} \newcommand{\de}[1]{\ifde#1\fi} 

Next, if you need you can define different commands for months, date formats, etc:

\newcommand{\jan}{% \en{January}% \de{Januar}% } 

Finally, in text you can write something like this:

\en{English text.} \de{Deutscher Text.} 

After all, when you've created the whole document you can simple switch between languages setting in the document preamble either \entrue or \detrue. All this allows you to keep multilingual texts up-to-dated near each other.

Source Link
darkled
  • 561
  • 5
  • 7

There is another way to support internationalization within your LaTeX documents. For instance, below is the support for english and german languages I made some time ago:

\RequirePackage{ifthen} \newif\ifen \newif\ifde \newcommand{\en}[1]{\ifen#1\fi} \newcommand{\de}[1]{\ifde#1\fi} 

Next, if you need you can define different commands for months, date formats, etc:

\newcommand{\jan}{% \en{January}% \de{Januar}% } 

Finally, in text you can write something like this:

\en{English text.} \de{Deutscher Text.} 

After all, when you've created the whole document you can simple switch between languages setting in the document preamble either \entrue or \detrue. All this allows you to keep multilingual texts up-to-dated near each other.