0

I want to use a Tufte template adapted from here:

https://www.latextemplates.com/template/tufte-style-book

Also I want to use three languages simultaneously, english, german and greek. Simultaneously means using just only Alt+Shift , and not something like /begin{other language} environment inside the text. That is, I want to use mixed test.

What I have found until now looks something like this:

 \documentclass{something}
 \usepackage[greek, english, german]{Babel}

 \begin{document}

 \begin{otherlanguage}{english}
 ...
 \end{otherlanguage}{english}

 \begin{otherlanguage}{greek}
 ...
 \end{otherlanguage}{greek}

 ...

Any thought would be appreciated.

1

If you want to typeset easily in different languages then your best bet is to switch the engine to something like xelatex. The only caveat is that you must choose a font, and that font needs to have the necessary glyphs in order for them to be printed in the resulting PDF.

You can see an example of this below, since Arial does not possess them to properly display Japanese.

Of course, since you only need to display German, English, and Greek, you have a higher number of fonts to choose from.

Output

enter image description here

Code

\documentclass{article} % works with \documentclass{tufte-book} too
\usepackage{fontspec}

\setmainfont{Arial}

\begin{document}
γεια, αυτό είναι ελληνικό\par
привет, это русский\par
こんにちは、これは日本語です % this is not visible
\vspace{1cm}

\fontspec{HiraMinProN-W3} % switching font to show Japanese

こんにちは、これは日本語です
\end{document}
4
  • I quite agree. The problem is that the specific template can be built only in ln pdfLatex. Nov 8 '20 at 14:59
  • @user3060854 The document class tufte-book is compatible with xelatex. Do you have a short example of such template?
    – Alenanno
    Nov 8 '20 at 15:03
  • The template code is too big to be pasted, yet the first error which occures when build in xeLatex is MakeTextUppercase has an extra } even though is is not used anywhere in the text. Nov 8 '20 at 15:30
  • @user3060854 It's a bug caused by tufte, I'm afraid. See this question for some proposed solutions.
    – Alenanno
    Nov 8 '20 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.