emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] manual should explain how to insert literal dollar sign
@ 2023-06-26 20:05 Paul Rubin
  2023-07-01 10:04 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Rubin @ 2023-06-26 20:05 UTC (permalink / raw)
  To: emacs-orgmode

Context: I wanted to mention in a document that a certain item cost 
"$12.98+$.77 s/h".  Since the period after the second $ is punctuation, 
the parsing heuristic interpreted that as LaTeX, giving math output in 
the html export.  So I spent a while muddling around trying to figure 
out how to escape the dollar sign, then sought help on IRC, where I got 
the answer: write \dollar and the Org entity parser will turn it into a 
literal dollar sign.  I would not have figured this out myself.

Requested fix: explain the \dollar escape in the Org manual section 
"LaTeX fragments".

Thanks!

Paul




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] manual should explain how to insert literal dollar sign
  2023-06-26 20:05 [BUG] manual should explain how to insert literal dollar sign Paul Rubin
@ 2023-07-01 10:04 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-07-01 10:04 UTC (permalink / raw)
  To: Paul Rubin; +Cc: emacs-orgmode

Paul Rubin <paulr@hackyon.net> writes:

> Context: I wanted to mention in a document that a certain item cost 
> "$12.98+$.77 s/h".  Since the period after the second $ is punctuation, 
> the parsing heuristic interpreted that as LaTeX, giving math output in 
> the html export.  So I spent a while muddling around trying to figure 
> out how to escape the dollar sign, then sought help on IRC, where I got 
> the answer: write \dollar and the Org entity parser will turn it into a 
> literal dollar sign.  I would not have figured this out myself.
>
> Requested fix: explain the \dollar escape in the Org manual section 
> "LaTeX fragments".

Thanks for reporting!
Fixed, on main.
I also added a linter, so that M-x org-lint will report such cases.

https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cf2349d14
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=dc70878fc

-- 
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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-01 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-26 20:05 [BUG] manual should explain how to insert literal dollar sign Paul Rubin
2023-07-01 10:04 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).