Re: Hyphen after LaTeX fragments

2023-04-17 Thread Dominik Schrempf
Great, thank you so much! Ihor Radchenko writes: > Ihor Radchenko writes: > >> Yuchen Guo writes: >> >>> If it is deprecated in Org mode, maybe we can print a warning message in >>> echo area? >> >> Not in echo area, but we can add a linter. > > Applied, onto main. >

Re: Hyphen after LaTeX fragments

2023-04-17 Thread Ihor Radchenko
Ihor Radchenko writes: > Yuchen Guo writes: > >> If it is deprecated in Org mode, maybe we can print a warning message in >> echo area? > > Not in echo area, but we can add a linter. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cfe5e01e1 -- Ihor

Re: Hyphen after LaTeX fragments

2023-03-22 Thread Ihor Radchenko
Dominik Schrempf writes: >>> I think this is HIGHLY confusing. I think we should write something >>> along the lines: "Do not use $...$. Only for reasons of backwards >>> compatibility, $...$ syntax is partly (!) supported." >> >> Feel free to provide a patch. > > I think that a change in the

Re: Hyphen after LaTeX fragments

2023-03-22 Thread Dominik Schrempf
Ihor Radchenko writes: > Dominik Schrempf writes: > >> Maybe the best thing to do is drop support for $...$ completely? > > We cannot do it. Otherwise, existing Org documents may be broken. > Well, and as detailed later in my mail, I meant deprecating support for $...$. But thanks for

Re: Hyphen after LaTeX fragments

2023-03-22 Thread Ihor Radchenko
Yuchen Guo writes: > If it is deprecated in Org mode, maybe we can print a warning message in > echo area? Not in echo area, but we can add a linter. >From 129e3aa03229fd2e5dd6ea9bf627e4d95a061744 Mon Sep 17 00:00:00 2001 Message-Id:

Re: Hyphen after LaTeX fragments

2023-03-22 Thread Ihor Radchenko
Dominik Schrempf writes: > Maybe the best thing to do is drop support for $...$ completely? We cannot do it. Otherwise, existing Org documents may be broken. > I quote the Org mode manual section about $...$ syntax: > > Text within the usual LaTeX math delimiters. To avoid conflicts with >

Re: Hyphen after LaTeX fragments

2023-03-21 Thread Yuchen Guo
If it is deprecated in Org mode, maybe we can print a warning message in echo area? > but this question will keep coming over and > over and over until the end of times. Yet I tried searching Org manual, and also here the mailing list archive, before posting my latest lame message here. Maybe I

Re: Hyphen after LaTeX fragments

2023-03-21 Thread Dominik Schrempf
I like the $...$ syntax, but since it is not fully supported, I rather use \(...\) consistently; I do not really care. Maybe the best thing to do is drop support for $...$ completely? I quote the Org mode manual section about $...$ syntax: Text within the usual LaTeX math delimiters. To

Re: Hyphen after LaTeX fragments

2023-03-21 Thread Rudolf Adamkovič
iem...@gmail.com writes: > You can write \(n\)-dimensional space. ROFL. My apologies for the laugh, but this question will keep coming over and over and over until the end of times. Clearly, there is a need for the dash, and given the quality and syntactic stability of TeX, the problem is not

Re: Hyphen after LaTeX fragments

2023-03-19 Thread iemacs
Hi, You can write \(n\)-dimensional space. On Wed, Mar 15, 2023, 02:18 Yuchen Guo wrote: > Sometimes I encounter such texts: > >One of the useful features of a basis $B$ in an $n$-dimensional space > > When entered as-is in Org mode and exported to LaTeX, the string > "$n$-dimensional" is

Hyphen after LaTeX fragments

2023-03-14 Thread Yuchen Guo
Sometimes I encounter such texts: One of the useful features of a basis $B$ in an $n$-dimensional space When entered as-is in Org mode and exported to LaTeX, the string "$n$-dimensional" is exported as plain text, as One of the useful features of a basis \(B\) in an \$n\$-dimensional space

Hyphen after LaTeX fragments

2023-03-14 Thread Yuchen Guo
Sometimes I encounter such texts: One of the useful features of a basis $B$ in an $n$-dimensional space When entered as-is in Org mode and exported to LaTeX, the string "$n$-dimensional" is exported as plain text, as One of the useful features of a basis \(B\) in an \$n\$-dimensional space

Re: Hyphen after LaTeX fragments

2023-03-14 Thread Max Nikulin
On 14/03/2023 14:02, Yuchen Guo wrote: Sometimes I encounter such texts: One of the useful features of a basis $B$ in an $n$-dimensional space When entered as-is in Org mode and exported to LaTeX, the string "$n$-dimensional" is exported as plain text, as One of the useful features of

Re: Hyphen after LaTeX fragments

2023-03-14 Thread Dominik Schrempf
Hi! I think we had this discussion quite some times already. Org Mode supports $...$ syntax wherever possible but not in all places and encourages the use of \(...\). I switched from using $...$ to \(...\) everywhere, and have not had any problems since. Dominik Yuchen Guo writes: > [[PGP

Hyphen after LaTeX fragments

2023-03-14 Thread Yuchen Guo
Sometimes I encounter such texts: One of the useful features of a basis $B$ in an $n$-dimensional space When entered as-is in Org mode and exported to LaTeX, the string "$n$-dimensional" is exported as plain text, as One of the useful features of a basis \(B\) in an \$n\$-dimensional