emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* \minus entity and LaTeX export
@ 2022-05-14  3:46 Max Nikulin
  2022-05-14  6:17 ` Timothy
  2022-05-14  6:30 ` Ihor Radchenko
  0 siblings, 2 replies; 4+ messages in thread
From: Max Nikulin @ 2022-05-14  3:46 UTC (permalink / raw)
  To: orgmode; +Cc: Timothy

Hi,

I was checking which changes had been landed to the main branch as the 
result of Ihor's work and I noticed a commit unrelated to my initial 
curiosity but that might be questionable:

> commit 15d25644cc8d88fd5cd0ad53caedaedad3635d8d
> author TEC Sat Jan 22 20:41:55 2022 +0800
> 
> org-entities: Change \minus to -
> 
> * lisp/org-entities.el: The LaTeX command \minus doesn't exist, but a
> hyphen in math mode produces a minus symbol.
> 
> diff --git a/lisp/org-entities.el b/lisp/org-entities.el
> index 2bd4f2fe3..9c64cb854 100644
> --- a/lisp/org-entities.el
> +++ b/lisp/org-entities.el
> @@ -307,7 +307,7 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
>       ("trade" "\\texttrademark{}" nil "™" "TM" "TM" "™")
>  
>       "** Science et al."
> -     ("minus" "\\minus" t "−" "-" "-" "−")
> +     ("minus" "-" t "−" "-" "-" "−")

Should it be "\textminus" instead? I never used it but my expectation 
that it was added for text mode outside of equations: \minus1. It 
required \usepackage{textcomp} in the past, but it seems it is not the 
issue any more, so the symbol is available out of the box. I was not 
following that changes in LaTeX so I may miss something.

>       ("pm" "\\textpm{}" nil "±" "+-" "±" "±")
>       ("plusmn" "\\textpm{}" nil "±" "+-" "±" "±")
>       ("times" "\\texttimes{}" nil "×" "*" "×" "×")


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

end of thread, other threads:[~2022-05-14 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-14  3:46 \minus entity and LaTeX export Max Nikulin
2022-05-14  6:17 ` Timothy
2022-05-14  6:30 ` Ihor Radchenko
2022-05-14 10:13   ` Max Nikulin

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