TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

I sometimes give roughly the same course in different languages, and update my TeX notes (if any) each time. Keeping all sets of notes current is a pain (and doesn´t always get done). Does anybody know of a system for keeping and updating the same math document in different languages? The text would vary and the math would be the same, except for eventual changes in order due to differences in sentence structure.

share|improve this question

One option using the comment package results in

enter image description here


enter image description here

depending on which set of \includecomment and \excludecomment commands you use. Code as follows:

\includecomment{spanish} \excludecomment{english}
%\excludecomment{spanish} \includecomment{english}

The Fourier series has the form:
Las series de Fourier tienen la forma:
\frac{a_0}{2} +
  \sum_{n=1}^{\infty} \left[ a_n \cos {\frac{2 n \pi}{T} t} +
                             b_n \sin {\frac{2 n \pi}{T} t} \right]
where $a_n$ and $b_n$ are called Fourier coefficients of the Fourier series
of the function $f(x)$.
donde $a_n$ y $b_n$ se denominan coeficientes de Fourier de la serie de
Fourier de la funci\'on $f(x)$.


Pardon my over-literal translation of the Spanish to English; Wikipedia's Fourier series pages (es, en) don't track that closely.

share|improve this answer

If you are using Emacs, org-mode can be a handy tool for you, for using XeLaTeX, you may refer to following example:

 % Created 2012-03-28 Wed 10:24
 \setCJKmainfont[BoldFont={AR PL UKai TW}]{AR PL UMing TW}
 \setCJKsansfont{Hiragino Sans GB}

 \title{Polygot Test}
 \author{Gong-Yi Liao}
    pdfcreator={Emacs Org-mode version 7.8.03}




 \section{The first chapter}

 \underline{\{\fontspec{TakaoPGothic}ウソップ\}}  is one of the 海賊王角色, 源自 

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.