emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Garid Z." <garidzorigoo@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [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/)]
Date: Wed, 19 Apr 2023 01:20:55 +0900	[thread overview]
Message-ID: <871qkhtb4o.fsf@gmail.com> (raw)


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.


             reply	other threads:[~2023-04-18 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18 16:20 Garid Z. [this message]
2023-04-20 14:18 ` [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/)] 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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qkhtb4o.fsf@gmail.com \
    --to=garidzorigoo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).