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

Can't define new commands for LaTeX #490

Closed
fabiofortkamp opened this issue Sep 23, 2015 · 9 comments
Closed

Can't define new commands for LaTeX #490

fabiofortkamp opened this issue Sep 23, 2015 · 9 comments

Comments

@fabiofortkamp
Copy link

Issue #349 was closed, but I still keep getting the same problems: defining new commands in markdown cells with $\newcommand{}{}$ does not seem to work.

I'm using jupyter 4.0.6 ((jupyter --version), installed with Anaconda, on OS X. The cell were the new command is defined has the same strange output and the cells were the newly defined macro is used are not rendered; I just get the command name in red, like an error.

Here is a sample screenshot:

image

@minrk minrk added this to the no action milestone Sep 24, 2015
@minrk
Copy link
Member

minrk commented Sep 24, 2015

I believe this is fixed in master, and will be released with notebook-4.1 (jupyter notebook --version).

@rabernat
Copy link

rabernat commented Oct 6, 2015

I just hit this issue and it's a big problem for me.

Will 4.1. be released soon? I am using conda for notebook and would prefer to keep it that way.

@ellisonbg ellisonbg modified the milestones: 4.1, no action Oct 6, 2015
@ellisonbg ellisonbg added the bug label Oct 6, 2015
@ellisonbg
Copy link
Contributor

We should confirm that this is fixed @SylvainCorlay is saying it isn't...

@ellisonbg
Copy link
Contributor

Fixed and closing...

@minrk
Copy link
Member

minrk commented Oct 6, 2015

Will 4.1. be released soon?

Yes, we are getting it ready for release in the next week or so.

@juangil
Copy link

juangil commented Oct 24, 2015

I was having this bug also with ipython notebook, i fixed it reinstalling everything with conda, but installing the jupyter notebook directly from the repo, and everything is working nice, :).

@willingc
Copy link
Member

@juangil Thanks for the report verifying that installing Jupyter notebook from the repo has the LaTeX working nicely. We hope you are enjoying Jupyter notebook too. 📖 😄

@stonefly
Copy link

it works in live notebook, but it fails with nbconvert:

I'm using master branch (for both notebook and nbconvert)

for a simple macro define:

$\def\RR{\bf R}$ in a plain markdown cell

this generates the following log:

"""
LaTeX Warning: No \author given.

(/usr/local/texlive/2015/texmf-dist/tex/latex/base/omscmr.fd)
! Undefined control sequence.
l.252     \textbackslash{}(\RR
                              \textbackslash{})
? 
! Emergency stop.
l.252     \textbackslash{}(\RR
                              \textbackslash{})
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on notebook.log.

"""

@stonefly
Copy link

to let nbconvert generate pdf, we need to define using
\global\def or use \gdef instead of using \def only

however this requires enabling a mathjax extension:

TeX: {
extensions: ["begingroup.js"]
}

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants