emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Org export LaTeX: Multiple dashes in ~code~/=verbatim= turn in


From: Garid Zorigoo
Subject: Re: [BUG] Org export LaTeX: Multiple dashes in ~code~/=verbatim= turn into wrong number of dashes [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]
Date: Wed, 12 Apr 2023 15:12:40 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1


I think I even found a solution much easier solution.

Just replace each - dash with {-} when exporting latex.

In other words:

|---------------+-------------------------------------|
| Original org  | New suggestion                      |
|---------------+-------------------------------------|
|               | ...                                 |
| * code        | \section{code}                      |
| 1. ~-~        | \label{sec:org532ffa5}              |
| 2. ~--~       | \begin{enumerate}                   |
| 3. ~---~      | \item \texttt{{-}}                  |
| 4. ~----~     | \item \texttt{{-}{-}}               |
| 5. ~-----~    | \item \texttt{{-}{-}{-}}            |
| 6. ~a------b~ | \item \texttt{{-}{-}{-}{-}}         |
|               | \item \texttt{{-}{-}{-}{-}{-}}      |
| * verbatim    | \item \texttt{a{-}{-}{-}{-}{-}{-}b} |
| 1. =-=        | \end{enumerate}                     |
| 2. =--=       |                                     |
| 3. =---=      | \section{verbatim}                  |
| 4. =----=     | \label{sec:org4a05ec4}              |
| 5. =-----=    | \begin{enumerate}                   |
| 6. =a------b= | \item \texttt{{-}}                  |
|               | \item \texttt{{-}{-}}               |
|               | \item \texttt{{-}{-}{-}}            |
|               | \item \texttt{{-}{-}{-}{-}}         |
|               | \item \texttt{{-}{-}{-}{-}{-}}      |
|               | \item \texttt{a{-}{-}{-}{-}{-}{-}b} |
|               | \end{enumerate}                     |
|               | ...                                 |
|---------------+-------------------------------------|

This will ensure each - character as a separate character.
This seems much easier to implement and readable.

Garid Z.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]