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

Fontify LaTeX sections using font-latex-sectioning-5-face #192

Open
johannesnauta opened this issue Sep 24, 2024 · 1 comment
Open

Fontify LaTeX sections using font-latex-sectioning-5-face #192

johannesnauta opened this issue Sep 24, 2024 · 1 comment

Comments

@johannesnauta
Copy link

I am loving the theme, but I have noticed (correct me if I am wrong) that the current version does not fontify LaTeX sections. In catppuccin-theme.el is also the line (line 479):

;; TODO: More latex faces to be themed, especially sections

However, simply including (in catppuccin-theme.el) something along the lines of
(font-latex-sectioning-5-face :foreground ,ctp-red :weight bold)
seems to be overridden by AUCTeX.

Is there any way LaTeX sections can be fontified from the config from within catppuccin? I.e., not with customized faces? Or is customizing the face and saving this in my init.el the only way currently?

@jtbx
Copy link
Member

jtbx commented Sep 25, 2024

Hi Johannes!

If you can customize the face from M-x customize or set-face-attribute then you should
be able to add the changed attributes to catppuccin-theme.el. Copy the attributes that
M-x customize adds to your init.el into catppuccin-theme.el and it should work fine. If
Auctex modifies the faces try requireing and enabling the theme after you set up Auctex.

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