matze / mtheme

A modern LaTeX Beamer theme
6.44k stars 846 forks source link

Does metropoils support chinese #268

Closed gaufung closed 7 years ago

gaufung commented 7 years ago

I want to use this theme to prepare the graduation slide. But I'm not able to compile it when I use chinese. I use ctex package to handle the chinese typesetting.

\documentclass{beamer} \usepackage[fontset=mac, UTF8]{ctex} \usetheme{metropolis}

what can I do?

benjamin-weiss commented 7 years ago

First, in the future please provide a full MWE. This makes it easier for others to help you. You should also mention which engine you are using (pdfTeX, XeLaTex, LuaTeX) and what error messages you are getting. Just saying that you are not able to compile something is not very helpful.

Second, I don't think this is a metropolis related problem. But, I'm obviously no expert on using TeX with Chinese. Nevertheless, the following example compiles fine for me using XeLaTeX.

\documentclass{beamer}
\usepackage[fontset=mac, UTF8]{ctex}
\usetheme{metropolis}

\begin{document}
  \begin{frame}{高峰}
    高峰
  \end{frame}
\end{document}

chinese

And as described in this Stackexchange question, it seems like ctex does not support LuaTeX. So if you want to use LuaTeX you probably need to follow the instructions given in the answer there.

matze commented 7 years ago

Second, I don't think this is a metropolis related problem.

This.