Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation with pdf latex #1

Open
Cyberism opened this issue Jan 31, 2023 · 5 comments
Open

Compilation with pdf latex #1

Cyberism opened this issue Jan 31, 2023 · 5 comments

Comments

@Cyberism
Copy link

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
Copy link
Owner

xiehao commented Jan 31, 2023

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
Copy link
Author

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
Copy link
Owner

xiehao commented Feb 1, 2023

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:

  • compilation using -shell-escape option,
  • pygments is installed properly,
  • files originally in the inner cuzbeamer folder moved outside to the same directory with your source .tex file (or whatever place the pdflatex can find them), and
  • (optionally but likely), logo images changed to your own logos (by replacing the image name in line 139 and 141 of the cuzbeamer.cls file, fitting the light and dark themes, respectively).

@Cyberism
Copy link
Author

Cyberism commented Feb 1, 2023

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
Copy link
Owner

xiehao commented Feb 1, 2023

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.

  • Although haven't tested, I guess Windows 10 should also work.
  • The --shell-escape is a flag when compiling, you might check this link for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants