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

Latex in the text form is not rendered in IJulia notebook #175

Open
jpfairbanks opened this issue Dec 11, 2015 · 1 comment
Open

Latex in the text form is not rendered in IJulia notebook #175

jpfairbanks opened this issue Dec 11, 2015 · 1 comment

Comments

@jpfairbanks
Copy link

I see that if I draw on a PGF object, then I get a latex document that can be compiled into a PDF with latex text.

For example:

s = compose(context(),
(context(), text(1/2,1/2,"\$\\alpha=0.5\$")),
(context(), rectangle(), fill("bisque"))
)
draw(PGF("plot.tex", 6inch, 4inch), s)

image
Although I have to delete the \usepackage{fontspec} line because I use pdflatex and not xelatex.

However in the IJulia notebook the latex expressions do not appear:
image
Plain text works fine in the IJulia notebook.

Is there a way to get the latex expressions rendered properly in the IJulia notebook?

@jpfairbanks jpfairbanks changed the title Latex in the text form Latex in the text form is not rendered in IJulia notebook Dec 11, 2015
@darwindarak
Copy link
Contributor

Not at the moment, unfortunately. The output to the notebooks are in SVG format by default, and we do have have a Julia implementation of LaTeX's math layout engine yet.

As for disabling the fontspec option, you should be able to use the texfonts=true option in the PGF call (e.g. PGF("plot.tex", 6inch, 4inch, texfonts=true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants