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 <text> #54

Open
edemaine opened this issue Aug 23, 2019 · 1 comment
Open

LaTeX <text> #54

edemaine opened this issue Aug 23, 2019 · 1 comment

Comments

@edemaine
Copy link
Owner

edemaine commented Aug 23, 2019

Let's add a latex attribute to <text> objects that causes external (cached) rendering of LaTeX labels [or KaTeX in future SVG mode, or MathJax?] into SVG.

MathJax actually offers another possibility: render text to SVG and include it directly.

@edemaine
Copy link
Owner Author

edemaine commented Feb 4, 2020

v1.12.0 adds this feature! More precisely, it generates a .tex companion file that includes the .pdf (or .svg if you have the appropriate conversion package) which have the text excluded.

Some limitations:

  • Won't work correctly if <text> or any parent elements have transforms
  • No support for \\ in text yet (could wrap in a {tabular} to get this functionality, like Inkscape, perhaps only when \\ is detected)
  • All <text> elements get extracted. Perhaps there should be a tex/latex attribute to control this. Should the default be on (as it is now) or off? Should decide this soon.
  • Doesn't support currfile despite claiming to
  • Auxiliary .tex files are apparently not appreciated by arXiv.org (it treats them as conflicting with .pdf). Should use .pdftex (like xfig?) or .pdf_tex (like Inkscape). Switched to .svg_tex.

edemaine added a commit that referenced this issue Feb 12, 2020
This fixes use of figures in arXiv, which prevents `file.pdf` and `file.tex`
from simultaneously existing.
edemaine added a commit that referenced this issue Feb 12, 2020
* Detail `\svgscale`/`\svgwidth`/`\svgheight` in README,
  not just `.svg_tex` file
* Tweak examples in `.svg_tex` files
edemaine added a commit that referenced this issue Feb 12, 2020
This fixes use of figures in arXiv, which prevents `file.pdf` and `file.tex`
from simultaneously existing.
edemaine added a commit that referenced this issue Feb 12, 2020
* Detail `\svgscale`/`\svgwidth`/`\svgheight` in README,
  not just `.svg_tex` file
* Tweak examples in `.svg_tex` files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant