mailing-list for TeXmacs Users

Text archives Help


Re: TeXmacs to LaTeX: \( ... \) instead of $ ... $


Chronological Thread 
  • From: Frank <address@hidden>
  • To: address@hidden
  • Subject: Re: TeXmacs to LaTeX: \( ... \) instead of $ ... $
  • Date: Tue, 13 Apr 2021 20:25:09 +0200

Hi,

Neither do I, but few usages lead me to some parsers (say on Moodle to
generate tests), which forces \( ... \).

Best,
Frank

On 4/13/21, Massimiliano Gubinelli wrote:
Hi,

 personally I write in the $$ style (e.g. in emails, of course I do not use
LaTeX anymore seriously :)).

If you read carefully the stackexchange replys (especially those of some
people involved in LaTeX3) you will see that there are arguments in favour of
$, in particular its readability, e.g.
```
|$a$| is better-to-read, not speaking about |$f(x)=(x+1)/2$ and
$g(x)=(x-1)^{1+x}$ are $(n+1)$-free| compared to |\(f(x)=(x+1)/2\) and
\(g(x)=(x-1)^{1+x}\)$ are \((n+1)\)-free|. Too many |(|s and |{|s is simply
too many. Dollar is well-recognizable in the code and to be honest, I have
never got into the problem of not-knowing whether I'm in or out of |$...$|
```
Since the LaTeX exported by TeXmacs is syntactically correct (hopefully)
there should be no ambiguity problem, not weird redefinitions of $$.  Other
arguments listed there are of the kind that it is easier for tools to parse
the \( \) syntax, but again this does not seem to be a concern to us.

I do not think we need to focus on these LaTeX details. The idea should be to
go away of such a mess...

Best
Max


On 13. Apr 2021, at 19:19, TeXmacs <address@hidden <mailto:address@hidden>>
wrote:

On Tue, Apr 13, 2021 at 06:39:27PM +0200, Frank wrote:
I wonder whether it is possible to force TeXmacs to use \( ... \) for inline math
formulae instead of $ ... $ in LaTeX conversion? It is the ones for LaTeX:
https://tex.stackexchange.com/a/513 <https://tex.stackexchange.com/a/513>

If it is not currently supported, I will report a bug.

Both are correct and $ is more readable, so this is not a bug, but a feature.

Best wishes, --Joris




Archive powered by MHonArc 2.6.19.

Top of page