[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Warn about shell-expansion in the docstring of org-latex-to-html-convert
From: |
Martin Edström |
Subject: |
Warn about shell-expansion in the docstring of org-latex-to-html-convert-command |
Date: |
Sat, 17 Feb 2024 00:10:11 +0100 |
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 that double-quotes don't work in shell commands. I had
\"%i\", but it should've been '%i':
(setopt org-latex-to-html-convert-command "node
/home/kept/pub/texToMathML.js \"%i\"")
Math snippets that start with $, like $y = 200$ of course get
butchered into just " = 200$" because of course the first $y gets
interpreted as a shell environment variable.
- Warn about shell-expansion in the docstring of org-latex-to-html-convert-command,
Martin Edström <=
- 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, 2024/02/23
- 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