Re: Re: Question about contribution to improve svg handling in latex export

2025-05-22 Thread Pedro Andres Aranda Gutierrez
Hi Thomas, Thanks for sharing your experience. I'd need that for the font feature branch ;-) Answers inline... Thomas Redelberger schrieb: > When I generate LaTeX/Beamer PDFs from Org mode, I get > 1. directory "svg-inkscape" containing one PDF file for each SVG I link in the Org file (SVG from

Re: Question about contribution to improve svg handling in latex export

2025-05-21 Thread Thomas Redelberger
When I generate LaTeX/Beamer PDFs from Org mode, I get 1. directory "svg-inkscape" containing one PDF file for each SVG I link in the Org file (SVG from either EasyDraw or other SVGs) 2. directory "ltximg" containing one SVG file for each formula I write in the Org file. Indeed, I had to add "

Re: Question about contribution to improve svg handling in latex export

2025-05-20 Thread Emin Martinian
Ihor Radchenko writes: I think that rather than inventing something new, we can reuse the existing semantics of `org-latex-pdf-process' and `org-compile-file'. I redid the code (see attached patch) to you use =defcustom= to define only a single variable and have that variable use the =%o=

Re: Re: Question about contribution to improve svg handling in latex export

2025-05-13 Thread Pedro Andres Aranda Gutierrez
HI, I find the topic really interesting. Let's see what reactions we have the call tomorrow re. the fontspec integration and then we can progress on the image-inlining and integrating this feature. I have resorted to using the converter provided by the rsvg package externally and including the PD

Re: Question about contribution to improve svg handling in latex export

2025-05-12 Thread Ihor Radchenko
Emin Martinian writes: > Ihor: I tried looking at the link you sent but could not understand how to > use org-persist cache. The conversion program needs an output location to > write a file to. Is there some variable or function which indicates a cache > directory to use? If so, I couldn't figur

Re: Question about contribution to improve svg handling in latex export

2025-05-11 Thread Emin Martinian
A patch is attached. Ihor: I tried looking at the link you sent but could not understand how to use org-persist cache. The conversion program needs an output location to write a file to. Is there some variable or function which indicates a cache directory to use? If so, I couldn't figure it out (a

Re: Question about contribution to improve svg handling in latex export

2025-05-11 Thread Ihor Radchenko
Emin Martinian writes: > If latex experts and/or maintainers of org-mode are broadly in agreement > with the above, I would be happy to try and take the pull request to > el-easydraw and > incorporate something like that into a PR for Org-mode. I

Re: Question about contribution to improve svg handling in latex export

2025-05-03 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Wasn’t there rsvg-convert as a CLI friendly alternative? AFAIU, Emin is suggesting that we allow custom converters. If we are in control how to convert svg to pdf, we can also choose which converter to use and allow users to customize it. In contrast, \u

Re: Question about contribution to improve svg handling in latex export

2025-05-03 Thread Pedro Andres Aranda Gutierrez
Wasn’t there rsvg-convert as a CLI friendly alternative? /PA while shopping;-) Enviado desde mi iPhone > El 2 may 2025, a las 18:57, Ihor Radchenko escribió: > > Emin Martinian writes: > >> Briefly speaking, the current latex export of SVG files does not work out >> of the box and requires ad

Re: Question about contribution to improve svg handling in latex export

2025-05-03 Thread Pedro Andres Aranda Gutierrez
We could give it a try. Although I would have to do some archeology in my mails because this rings a bell about potential problems I dimly remember encountering when writing my PhD thesis. It may be the integration of Inkscape and the shell for some OSes outside Linux. Just my .2 cents PA Envia

Re: Question about contribution to improve svg handling in latex export

2025-05-02 Thread Ihor Radchenko
Emin Martinian writes: > Briefly speaking, the current latex export of SVG files does not work out > of the box and requires adding --shell-escape to the latex args and also > installing inkscape. Even with those, I found the process brittle. If we > are going to require inkscape for SVG handling

Question about contribution to improve svg handling in latex export

2025-05-02 Thread Emin Martinian
I recently suggested a pull request to el-easydraw to improve latex export of SVG files since the current SVG handling seems clunky. The maintainer of that project suggested I contact someone at Org-mode to see if it makes more sense to make that co