[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warn about shell-expansion in the docstring of org-latex-to-html-con
From: |
Ihor Radchenko |
Subject: |
Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command |
Date: |
Fri, 23 Feb 2024 12:46:51 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> On 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 afraid, the code, not the docstring must be fixed. I have not tried
> it, but I expect an issue with
>
> Test \(f' = df/dx\)
>
> So `shell-quote-argument' is necessary and quotes around %i must be
> stripped similar to %s in mailcap entries in `org-open-file'.
That would be backwards-incompatible.
What about introducing %e replacement that will be shell-escaped?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/16
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Ihor Radchenko, 2024/02/18
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/18
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/18
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Ihor Radchenko, 2024/02/19
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Max Nikulin, 2024/02/21
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command,
Ihor Radchenko <=
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Max Nikulin, 2024/02/25
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Ihor Radchenko, 2024/02/26
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Max Nikulin, 2024/02/26
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/24
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/24
- Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command, Martin Edström, 2024/02/24