Subject: 28.0.50; Org Mode prettifies "\deg" incorrectly in LaTeX code

From: Rudolf Adamkovič <[email-masked]>
Date: Tue, 17 Aug 2021 00:04:01 +0200

Actual:

  Org prettifies “\deg” in LaTeX as the degree sign (°).

Expected:

  Org does not prettify “\deg” in LaTeX, because LaTeX renders 
  “\deg” as “deg” and not the degree sign (°).
 
In GNU Emacs 28.0.50 (build 5, x86_64-apple-darwin20.6.0, NS 
appkit-2022.60 Version 11.5.1 (Build 20G80)) 
 of 2021-08-15 built on Workstation.local 
Repository revision: 7ec057458135eed0dd08e2de4089e4814d71e440 
Repository branch: master Windowing system distributor 'Apple', 
version 10.3.2022 System Description:  macOS 11.5.1  Configured 
using: 
 'configure --with-xwidgets --with-json --with-native-compilation 
 PKG_CONFIG_PATH=/usr/local/Cellar/zlib/1.2.11/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig' 
Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 
LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG 
THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB Important 
settings: 
  value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix 
 
Major mode: Org  Minor modes in effect: 
  TeX-PDF-mode: t writegood-mode: t org-indent-mode: t 
  global-flycheck-mode: t flycheck-mode: t show-paren-mode: t 
  save-place-mode: t global-subword-mode: t subword-mode: t 
  flyspell-mode: t global-hl-todo-mode: t which-key-mode: t 
  global-auto-revert-mode: t marginalia-mode: t vertico-mode: t 
  savehist-mode: t shell-dirtrack-mode: t 
  async-bytecomp-package-mode: t delete-selection-mode: t 
  override-global-mode: t tooltip-mode: t global-eldoc-mode: t 
  electric-quote-mode: t electric-indent-mode: t mouse-wheel-mode: 
  t menu-bar-mode: t file-name-shadow-mode: t 
  global-font-lock-mode: t font-lock-mode: t 
  auto-composition-mode: t auto-encryption-mode: t 
  auto-compression-mode: t buffer-read-only: t 
  size-indication-mode: t column-number-mode: t line-number-mode: 
  t global-visual-line-mode: t visual-line-mode: t 
  transient-mark-mode: t 
 
Load-path shadows: 
/Users/salutis/.emacs.d/elpa/magit-20210814.1441/magit-section-pkg 
hides 
/Users/salutis/.emacs.d/elpa/magit-section-20210813.904/magit-section-pkg 
/Users/salutis/.emacs.d/elpa/transient-20210809.1242/transient 
hides 
/Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/transient 
Features: (shadow sort fortune company-box company-box-doc 
frame-local company-box-icons company-oddmuse company-keywords 
company-etags etags fileloop xref company-gtags 
company-dabbrev-code company-dabbrev company-files company-clang 
company-capf company-cmake company-semantic company-template 
company-bbdb company mail-extr emacsbug sendmail preview tex-buf 
font-latex latex latex-flymake flymake-proc flymake tex-ispell 
tex-style tex texmathp tex-mode compile writegood-mode org-indent 
disp-table bat-mode dired-aux dired-x bug-reference smerge-mode 
diff mm-archive notmuch notmuch-tree notmuch-jump notmuch-hello 
notmuch-show notmuch-print notmuch-crypto notmuch-mua 
notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address 
notmuch-company notmuch-parser notmuch-wash coolj notmuch-query 
goto-addr icalendar diary-lib diary-loaddefs notmuch-tag crm 
notmuch-lib notmuch-version notmuch-compat char-fold vc-mtn vc-hg 
vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc project pcase 
flycheck-grammarly grammarly websocket bindat request flycheck 
paren saveplace cap-words superword subword exec-path-from-shell 
flyspell ispell ox-md org-clock hl-todo which-key autorevert 
consult-vertico consult recentf tree-widget orderless marginalia 
vertico savehist bibtex-actions org-ref org-ref-helm-bibtex 
org-ref-helm helm-bibtex bibtex-completion org-capture org-refile 
biblio biblio-download biblio-dissemin biblio-ieee biblio-hal 
biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi 
biblio-core let-alist ido hl-line helm-files filenotify tramp 
tramp-loaddefs trampver tramp-integration files-x tramp-compat 
shell ls-lisp helm-buffers helm-occur helm-tags helm-locate 
helm-grep helm-regexp helm-utils helm-types helm-net helm-help 
helm async-bytecomp helm-global-bindings helm-easymenu helm-source 
helm-multi-match helm-lib async helm-config org-ref-core 
reftex-cite reftex reftex-loaddefs reftex-vars parsebib 
org-ref-glossary ox-odt rng-loc rng-uri rng-parse rng-match rng-dt 
rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util 
ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox 
org-ref-bibtex org-ref-citeproc key-chord hydra lv doi-utils 
org-ref-utils org-ref-pdf url-http url-auth url-gw nsm htmlize f s 
dash modus-vivendi-theme modus-operandi-theme modus-themes 
cus-edit cus-load delsel diminish 
use-package-ensure-system-package system-packages use-package 
use-package-ensure use-package-delight use-package-diminish 
use-package-bind-key bind-key use-package-core finder-inf 
elfeed-link elfeed-show elfeed-search elfeed-csv elfeed 
elfeed-curl elfeed-log xml-query bookmark pp elfeed-db elfeed-lib 
vc-git diff-mode vc-dispatcher org-element avl-tree generator 
ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc 
ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage 
dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum 
shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus 
xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo 
parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 
mml mml-sec epa derived epg epg-config mm-decode mm-bodies 
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader 
gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 
rfc2045 ietf-drums text-property-search mail-utils mm-util 
mail-prsvr wid-edit ol-docview doc-view jka-compr image-mode exif 
dired dired-loaddefs ol-bibtex bibtex iso8601 ol-bbdb ol-w3m org 
ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote 
org-src ob-comint org-pcomplete pcomplete comint ansi-color ring 
org-list org-faces org-entities time-date noutline outline 
easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol 
org-keys org-compat advice org-macs org-loaddefs format-spec 
find-func cal-menu calendar cal-loaddefs tex-site edmacro kmacro 
info package browse-url url url-proxy url-privacy url-expand 
url-methods url-history url-cookie url-domsuf url-util mailcap 
url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs 
password-cache json map url-vars comp comp-cstr warnings subr-x rx 
cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs 
cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc 
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel 
term/ns-win ns-win ucs-normalize mule-util term/common-win 
tool-bar dnd fontset image regexp-opt fringe tabulated-list 
replace newcomment text-mode elisp-mode lisp-mode prog-mode 
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer 
select scroll-bar mouse jit-lock font-lock syntax font-core 
term/tty-colors frame minibuffer cl-generic cham georgian 
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean 
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech 
european ethiopic indian cyrillic chinese composite charscript 
charprop case-table epa-hook jka-cmpr-hook help simple abbrev 
obarray cl-preloaded nadvice button loaddefs faces cus-face 
macroexp files window text-properties overlay sha1 md5 base64 
format env code-pages mule custom widget hashtable-print-readable 
backquote threads xwidget-internal dbusbind kqueue cocoa ns lcms2 
multi-tty make-network-process native-compile emacs)  Memory 
information: ((conses 16 1026066 208279) 
 (symbols 48 53152 4) (strings 32 257203 8715) (string-bytes 1 
 9044729) (vectors 16 95042) (vector-slots 8 2367630 90900) 
 (floats 8 653 392) (intervals 56 27066 4709) (buffers 992 26)) 

-- 
Logic is a science of the necessary laws of thought, without which 
no employment of the understanding and the reason takes place. -- 
Immanuel Kant, 1785  Rudolf Adamkovič <[email-masked]> 
Studenohorská 25 84103 Bratislava Slovakia  [he/him]