* [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]
@ 2023-04-18 16:20 Garid Z.
2023-04-20 14:18 ` Ihor Radchenko
0 siblings, 1 reply; 7+ messages in thread
From: Garid Z. @ 2023-04-18 16:20 UTC (permalink / raw)
To: emacs-orgmode
I tried to export following org file (table) to PDF via
org-latex-export-to-pdf.
* Test Org-file
|---+----------+----------|
| 1 | =>= | =<= |
| 2 | =>>= | =<<= |
| 3 | =>>>= | =<<<= |
| 4 | =>>>>= | =<<<<= |
| 5 | =>>>>>= | =<<<<<= |
| 6 | =>>>>>>= | =<<<<<<= |
|---+----------+----------|
| 1 | ~>~ | ~<~ |
| 2 | ~>>~ | ~<<~ |
| 3 | ~>>>~ | ~<<<~ |
| 4 | ~>>>>~ | ~<<<<~ |
| 5 | ~>>>>>~ | ~<<<<<~ |
| 6 | ~>>>>>>~ | ~<<<<<<~ |
|---+----------+----------|
Resulted PDF file has » and « symbols (maybe: U+00BB, U+00AB)
instead of 2 normal < symbols.
From the org manual:
> Text in the code and verbatim string is not processed for Org specific
> syntax; it is exported verbatim.
So, I believe it should've exported 2 normal < symbols (verbatim), not a
single (U+00BB, U+00AB) symbol.
------------------------------------------------------------------------
I think, it's a very similar case with double (or more) ==
characters in the code/verbatim. I recently reported this similar case:
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5ac1ebaa1
Solution for this might be almost identical with the previous fix.
Maybe something like:
+ (cond ((equal m ">>") ">{}>{}")
+ (cond ((equal m "<<") "<{}<{}")
Best,
Garid Zorigoo
------------------------------------------------------------------------
Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6)
of 2023-01-03
Package: Org mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)
--
Garid Z.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-18 16:20 [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] Garid Z. @ 2023-04-20 14:18 ` Ihor Radchenko 2023-04-20 14:52 ` Max Nikulin 2023-04-21 3:00 ` Garid Z. 0 siblings, 2 replies; 7+ messages in thread From: Ihor Radchenko @ 2023-04-20 14:18 UTC (permalink / raw) To: Garid Z.; +Cc: emacs-orgmode "Garid Z." <garidzorigoo@gmail.com> writes: > | 3 | =>>>= | =<<<= | > | 4 | =>>>>= | =<<<<= | > ... > Resulted PDF file has » and « symbols (maybe: U+00BB, U+00AB) > instead of 2 normal < symbols. > ... > Solution for this might be almost identical with the previous fix. > Maybe something like: > > + (cond ((equal m ">>") ">{}>{}") > + (cond ((equal m "<<") "<{}<{}") Thanks for reporting! Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=27ee55ebf -- 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] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-20 14:18 ` Ihor Radchenko @ 2023-04-20 14:52 ` Max Nikulin 2023-04-20 15:00 ` Ihor Radchenko 2023-04-21 3:00 ` Garid Z. 1 sibling, 1 reply; 7+ messages in thread From: Max Nikulin @ 2023-04-20 14:52 UTC (permalink / raw) To: emacs-orgmode On 20/04/2023 21:18, Ihor Radchenko wrote: >> + (cond ((equal m ">>") ">{}>{}") >> + (cond ((equal m "<<") "<{}<{}") > > Thanks for reporting! > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=27ee55ebf While \texttt is used, this source of bugs would not exhaust soon. Input: #+language: ru #+LATEX_HEADER: \usepackage[AUTO]{babel} Test ="<">= Output: Test «» ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-20 14:52 ` Max Nikulin @ 2023-04-20 15:00 ` Ihor Radchenko 2023-04-20 15:00 ` Max Nikulin 0 siblings, 1 reply; 7+ messages in thread From: Ihor Radchenko @ 2023-04-20 15:00 UTC (permalink / raw) To: Max Nikulin; +Cc: emacs-orgmode Max Nikulin <manikulin@gmail.com> writes: > While \texttt is used, this source of bugs would not exhaust soon. Maybe we can somehow use `org-latex--protect-text' in `org-latex--protect-texttt'. -- 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] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-20 15:00 ` Ihor Radchenko @ 2023-04-20 15:00 ` Max Nikulin 2023-04-23 15:11 ` Ihor Radchenko 0 siblings, 1 reply; 7+ messages in thread From: Max Nikulin @ 2023-04-20 15:00 UTC (permalink / raw) To: emacs-orgmode On 20/04/2023 22:00, Ihor Radchenko wrote: > Max Nikulin writes: > >> While \texttt is used, this source of bugs would not exhaust soon. > > Maybe we can somehow use `org-latex--protect-text' in > `org-latex--protect-texttt'. Unfortunately it does not cover the case of babel shortcuts like "<">. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-20 15:00 ` Max Nikulin @ 2023-04-23 15:11 ` Ihor Radchenko 0 siblings, 0 replies; 7+ messages in thread From: Ihor Radchenko @ 2023-04-23 15:11 UTC (permalink / raw) To: Max Nikulin; +Cc: emacs-orgmode Max Nikulin <manikulin@gmail.com> writes: >> Maybe we can somehow use `org-latex--protect-text' in >> `org-latex--protect-texttt'. > > Unfortunately it does not cover the case of babel shortcuts like "<">. Maybe there is some suitable LaTeX command then? -- 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] 7+ messages in thread
* Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] 2023-04-20 14:18 ` Ihor Radchenko 2023-04-20 14:52 ` Max Nikulin @ 2023-04-21 3:00 ` Garid Z. 1 sibling, 0 replies; 7+ messages in thread From: Garid Z. @ 2023-04-21 3:00 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode Ihor Radchenko <yantar92@posteo.net> writes: > "Garid Z." <garidzorigoo@gmail.com> writes: > >> | 3 | =>>>= | =<<<= | >> | 4 | =>>>>= | =<<<<= | >> ... >> Resulted PDF file has » and « symbols (maybe: U+00BB, U+00AB) >> instead of 2 normal < symbols. >> ... >> Solution for this might be almost identical with the previous fix. >> Maybe something like: >> >> + (cond ((equal m ">>") ">{}>{}") >> + (cond ((equal m "<<") "<{}<{}") > > Thanks for reporting! > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=27ee55ebf Glad that it helped -- Garid Z. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-04-23 16:38 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-18 16:20 [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)] Garid Z. 2023-04-20 14:18 ` Ihor Radchenko 2023-04-20 14:52 ` Max Nikulin 2023-04-20 15:00 ` Ihor Radchenko 2023-04-20 15:00 ` Max Nikulin 2023-04-23 15:11 ` Ihor Radchenko 2023-04-21 3:00 ` Garid Z.
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.