mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Added tripple quotes so that \n can be removed
This commit is contained in:
parent
ff9f77463f
commit
0775340a7a
1 changed files with 17 additions and 17 deletions
|
|
@ -76,23 +76,23 @@ this plugin works with a template, look at
|
|||
|
||||
from pelican import signals
|
||||
|
||||
latexScript = '\n\
|
||||
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type= "text/javascript">\n\
|
||||
MathJax.Hub.Config({\n\
|
||||
config: ["MMLorHTML.js"],\n\
|
||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"],\n\
|
||||
TeX: { extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"], equationNumbers: { autoNumber: "AMS" } },\n\
|
||||
extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],\n\
|
||||
tex2jax: { \n\
|
||||
inlineMath: [ [\'$\',\'$\'] ],\n\
|
||||
displayMath: [ [\'$$\',\'$$\'] ],\n\
|
||||
processEscapes: true },\n\
|
||||
"HTML-CSS": {\n\
|
||||
styles: { ".MathJax .mo, .MathJax .mi": {color: "black ! important"}}\n\
|
||||
}\n\
|
||||
});\n\
|
||||
</script>\n\
|
||||
'
|
||||
latexScript = """
|
||||
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type= "text/javascript">
|
||||
MathJax.Hub.Config({
|
||||
config: ["MMLorHTML.js"],
|
||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"],
|
||||
TeX: { extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"], equationNumbers: { autoNumber: "AMS" } },
|
||||
extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
|
||||
tex2jax: {
|
||||
inlineMath: [ [\'$\',\'$\'] ],
|
||||
displayMath: [ [\'$$\',\'$$\'] ],
|
||||
processEscapes: true },
|
||||
"HTML-CSS": {
|
||||
styles: { ".MathJax .mo, .MathJax .mi": {color: "black ! important"}}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
"""
|
||||
|
||||
def addLatex(gen, metadata):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue