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

Error when running org-html-htmlize-generate-css. Invalid face: modus-themes-variable-pitch #106

Closed
8dcc opened this issue Jun 2, 2024 · 3 comments

Comments

@8dcc
Copy link

8dcc commented Jun 2, 2024

When running M-x org-html-htmlize-generate-css, the function fails with the following error message:

face-attribute: Invalid face: modus-themes-variable-pitch

I tried looking inside modus-themes.el and I only saw it being used in a couple of places like:

`(font-latex-sectioning-5-face ((,c :inherit (bold modus-themes-variable-pitch) :foreground ,fg-alt)))

But never actually defined. I tried replacing those occurrences with modus-themes-variable-pitch-ui, but basically the same error appears:

face-attribute: Invalid face: modus-themes-variable-pitch-ui

Not sure if this is an issue with the theme or with the org-html-htmlize-generate-css function.

@8dcc
Copy link
Author

8dcc commented Jun 2, 2024

Updating the emacs-htmlize package to commit ed5e5b05fd260e8f161a488d56f10e7f6e01fb75 fixed it.

@8dcc 8dcc closed this as completed Jun 2, 2024
8dcc added a commit to 8dcc/emacs-dotfiles that referenced this issue Jun 2, 2024
Fixes org-html-htmlize-generate-css error. See:
protesilaos/modus-themes#106
@protesilaos
Copy link
Owner

protesilaos commented Jun 17, 2024 via email

@8dcc
Copy link
Author

8dcc commented Jun 17, 2024

If you are curious, the old emacs-htmlize version was dd27bc3f26efd728f2b1f01f9e4ac4f61f2ffbf9. This is the full diff of the two commits, but it's pretty big.

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