Multi-language with comment package
Do you want to keep a document with more languages and/or optional sections and maybe being able to turn on/off them whether necessary? The Comment package is the answer to these questions! I show you in WriteLaTeX how to set it with a practical template.
Following the thread: Is it possible to keep my translation together with original text? I have discovered this fantastic feature implemented by Victor Eijkhout in the Comment Package.
The picture is self-explanatory |
How it works?
- Simply you have to activate it writing in the head of the document:
\usepackage{comment}
- Then add the calls in order to include or exclude chunks of text, in my case:
\includecomment{en} \excludecomment{it}
Above the texts in English (en) are shown, the Italian (it) ones are ignored. - Finally in the document, you have to put the texts in this way:
\begin{en} \huge{Text in English!} \end{en} \begin{it} \huge{Testo in italiano!} \end{it}
In a few words: quick and painless! Try it in writeLaTeX: Multi-language Test.
Add new comment