Loading LaTeX style files #164
Replies: 4 comments 3 replies
-
cc @mmcky who might have ideas on LaTeX via Sphinx! |
Beta Was this translation helpful? Give feedback.
-
Hey, @BruceWestbury at present your best bet might be to use the |
Beta Was this translation helpful? Give feedback.
-
Thanks. I found that and it worked for me. However this is for
\newcommand{...} whereas I was asking for a way to load a style file
e.g. \usepackage{amssymb} will load amssymb.sty (the AMS symbols package).
I think this is possible. This page
https://www.sphinx-doc.org/en/master/latex.html has a line
\usepackage[titles]{tocloft}
This page https://runawayhorse001.github.io/SphinxGithub/sphinx.html
also has \usepackage in 4. Image math formula preamble
BTW I found it strange that I had to put in each macro twice. Also I think
\N for \mathbb{N} is now standard but probably
in a style file.
I would be happy to discuss my experiences with you. This is my first
jupyter-book so I am on a steep learning curve.
…On Thu, 15 Oct 2020 at 14:31, AakashGC ***@***.***> wrote:
Hey, @BruceWestbury <https://github.com/BruceWestbury> at present your
best bet might be to use the preamble key of the latex_elements config
variable, in _config.yml. Something like this:
https://github.com/executablebooks/jupyter-book/blob/master/docs/_config.yml#L60
. Hope this might help.
Also, since, you are from a latex background. we would love to hear more
about what other features related to latex you constantly use and want in
jupyter-book. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZKCAOM3IT6WU7GHYSOCDSK32TBANCNFSM4SQX6BHA>
.
|
Beta Was this translation helpful? Give feedback.
-
Could you please give me the lines to include? both to add \usepackage to my preamble and then to add my style files. As I understand it, the sphinx documentation and your lines are in ReST whereas jupyter-book uses MyST. This is what I currently have
[Sorry, this should have line breaks.] I am guessing that the reason I have to put each macro in twice is that one is for mathjax which is used to build the html and the other is for the latex engine used to build pdf. If this is correct, then will I get style files to work with mathjax or just the latex engine? |
Beta Was this translation helpful? Give feedback.
-
When I use LaTeX I usually load packages using \usepackage{...} in the preamble.
I believe I can do something similar in MyST by putting something in _config.yml.
Can anyone tell me what I need to include?
Beta Was this translation helpful? Give feedback.
All reactions