-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
conf.py in thematic_tutorials overwrites jsmath macros #11632
Comments
comment:1
Attachment: trac_11632-thematic-conf.patch.gz Hi john, Is there any missing dependencies ? On
with just the patch applied I get:
Or should it be applied on some dev version ? |
comment:2
I can't reproduce this; I've tried on two different machines with vanilla versions of Sage 4.7. (I wrote the patch based on 4.7.1.rc0, but I don't think anything relevant has changed since 4.7.) I can change the patch to diff --git a/doc/en/thematic_tutorials/conf.py b/doc/en/thematic_tutorials/conf.py
--- a/doc/en/thematic_tutorials/conf.py
+++ b/doc/en/thematic_tutorials/conf.py
@@ -32,7 +32,10 @@ htmlhelp_basename = "thematic_tutorials"
# following line turns it into bold face only when using jsMath, thus
# avoiding the errors, while keeping the nice mathfrak fonts when not
# using jsMath.
-html_theme_options['jsmath_macros'] = ["mathfrak : ['\\\\mathbf{#1}', 1]"]
+try:
+ html_theme_options['jsmath_macros'].append("mathfrak : ['\\\\mathbf{#1}', 1]")
+except KeyError:
+ html_theme_options['jsmath_macros'] = ["mathfrak : ['\\\\mathbf{#1}', 1]"]
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, if you think that would be a good idea. |
comment:3
Replying to @jhpalmieri:
Yes, please do it. The problem mentioned by hivert is reproducible with sage-4.7.2.alpha3 (note you need to delete the |
comment:4
Okay, here's the new version. |
This comment has been minimized.
This comment has been minimized.
Merged: sage-4.7.2.alpha4 |
comment:5
Attachment: trac_11632-thematic-conf.v2.patch.gz |
Reviewer: Jeroen Demeyer |
Because of the line
in
thematic_tutorials/conf.py
, existing jsmath macros are overwritten, so Sage-specific macros like\QQ
don't work. The attached patch fixes this.Apply attachment: trac_11632-thematic-conf.v2.patch to the main Sage repository.
Component: documentation
Author: John Palmieri
Reviewer: Jeroen Demeyer
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/11632
The text was updated successfully, but these errors were encountered: