You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a latex noob and I'm planning to write a book with both English and Chinese versions. I found this template maybe useful to get start with. Does the template support maintaining language translation? If not, do you have any suggestions about doing i18n/l10n?
The text was updated successfully, but these errors were encountered:
I never worked with multilingual TeX documents and I cannot help directly with your problem. However, I found two possible approaches you might try:
Convert your source language LaTeX file to a PO file with po4a, edit the PO file, re-inject the translation into a destination LaTeX file.
Use the \if syntax to keep both languages in the same file. The LaTeX document would look something like this (original answer):
\documentclass{article}
\newif\ifenglish
\englishtrue % Show English text only
% uncomment the following statement to show Chinese text only
%\englishfalse
\begin{document}
\ifenglish
English text
\else
中文文字
\fi
\end{document}
Hi, I'm a latex noob and I'm planning to write a book with both English and Chinese versions. I found this template maybe useful to get start with. Does the template support maintaining language translation? If not, do you have any suggestions about doing i18n/l10n?
The text was updated successfully, but these errors were encountered: