Discussion:
[hakyll] dollars in the template
'Stéphane Laurent' via hakyll
2017-05-07 15:22:15 UTC
Permalink
Hello,
I want to include this script in my html template:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>


But that does not work because of the "$"'s.
I could put this script in a separate file and link it. Otherwise, any hint
?
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan Tojnar
2017-05-07 15:55:18 UTC
Permalink
Hi. You should be able to use double dollar, see
https://jaspervdj.be/hakyll/tutorials/04-compilers.html#basic-templates

Jan

On 7 May 2017 at 17:22, 'Stéphane Laurent' via hakyll
Post by 'Stéphane Laurent' via hakyll
Hello,
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
But that does not work because of the "$"'s.
I could put this script in a separate file and link it. Otherwise, any hint
?
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Stéphane Laurent' via hakyll
2017-05-07 16:26:30 UTC
Permalink
Thank you for this interesting link.

Finally I think I don't need this script anymore. The goal was to use
MathJax with dollars signs. But I followed this blog post
<https://www.jdreaver.com/posts/2014-06-22-math-programming-blog-hakyll.html> and
the dollars are automatically converted in the html.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...