Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
19/02/2024 02:36, Martin Edström wrote: > > +Since this is a shell-command, remember to use single-quotes > > +around \\='%i\\=', not double-quotes! Else a math fragment such > > +as \"$y = 200$\" gets butchered into only \" = 200\"." > > I am afrai

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
And ignore my suggestion about stripping input on the Elisp side. Didn't think that through. On Wed, 21 Feb 2024 at 16:04, Martin Edström wrote: > > Actually, I agree about your test case, that looks like it'd cause a problem. > > So we patch the function to use `shell-qu

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
Actually, I agree about your test case, that looks like it'd cause a problem. So we patch the function to use `shell-quote-argument'? On Wed, 21 Feb 2024 at 15:38, Max Nikulin wrote: > > On 19/02/2024 02:36, Martin Edström wrote: > > +Since this is a shell-command, remember to use s

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-18 Thread Martin Edström
Here you go! Tests passed (14 SKIPPED), compiled fine. I've made no prior contributions and this changes 5 lines. I'm ok if you want to rephrase it in any way. Martin On Sun, 18 Feb 2024 at 19:56, Martin Edström wrote: > > I will try to do a patch, thanks for the link. Stay tuned. >

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-18 Thread Martin Edström
I will try to do a patch, thanks for the link. Stay tuned. On Sun, Feb 18, 2024 at 15:06 Ihor Radchenko wrote: > Martin Edström writes: > > > I've just been struggling with my custom setting for > > `org-latex-to-html-convert-command` outputting many math snippets > > w

Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-16 Thread Martin Edström
I've just been struggling with my custom setting for `org-latex-to-html-convert-command` outputting many math snippets wrong. The fault was mine: I didn't correctly shell-quote the input. I propose to add a warning in the docstring, because many people will trip the same problem. The thing is