xiehao / cuzbeamer

A LaTeX beamer template to facilitate making slides for CUZ courses.
28 stars 8 forks source link

Compilation with pdf latex #1

Open Cyberism opened 1 year ago

Cyberism commented 1 year ago

I am preparing slides for my class. I like this template, its very elegant but I am not comfortable with the Xelatex. If it can be provided with pdf latex that will be great.

xiehao commented 1 year ago

Actually, this beamer theme is inspired by the famous theme metropolis, in which it is suggested to compile with xelatex or lualatex in order to use the Fira font. In order to display Chinese fonts easily, I set the main document class as ctexbeamer, which also requires xelatex. So, if you have no such font requirements, feel free to change the main document class to the common beamer by replacing line 50 of the cuzbeamer.cls file with:

\LoadClass[UTF8,10pt,professionalfont]{beamer}

And it works well, except that the font decays to default.

Cyberism commented 1 year ago

Thank you very much for your prompt reply. It works well for me on overleaf. However, when I try it on my system even with Xelatex or LuaLatex it does not work.

xiehao commented 1 year ago

Thank you very much for your prompt reply. It works well for me on overleaf. However, when I try it on my system even with Xelatex or LuaLatex it does not work.

On my platform (Windows 11, TeX Live 2022, Visual Studio Code with LaTeX Workshop extension), it works fine. Just make sure the following things:

Cyberism commented 1 year ago

Thanks for your help. I have win 10 with texniccenter and miktex 2.9. I shall try you suggestions. For the time being I am using it on overleaf. I have made all the other changes you suggested except the -shell -escape. I don't understand it.

xiehao commented 1 year ago

Thanks for your help. I have win 10 with texniccenter and miktex 2.9. I shall try you suggestions. For the time being I am using it on overleaf. I have made all the other changes you suggested except the -shell -escape. I don't understand it.