From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id IDccNwdMNmQcVQAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 12 Apr 2023 08:13:27 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id sDEZNwdMNmSfPgEAauVa8A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 12 Apr 2023 08:13:27 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 75EBC10A4F
	for <larch@yhetil.org>; Wed, 12 Apr 2023 08:13:27 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1pmTiq-0003Xi-JE; Wed, 12 Apr 2023 02:12:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <garidzorigoo@gmail.com>)
 id 1pmTio-0003X9-SX
 for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 02:12:46 -0400
Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <garidzorigoo@gmail.com>)
 id 1pmTin-0005lE-9s
 for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 02:12:46 -0400
Received: by mail-pj1-x1032.google.com with SMTP id
 nh20-20020a17090b365400b0024496d637e1so15830526pjb.5
 for <emacs-orgmode@gnu.org>; Tue, 11 Apr 2023 23:12:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1681279963;
 h=content-transfer-encoding:in-reply-to:from:content-language:subject
 :references:cc:to:user-agent:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=J8Ei6ksPAkVft7Z+jGUNtnbmwXOP0xPUejrB23g1omM=;
 b=b1vW+ThftD92S+IH2INmArynp8v5ls6Kcvqxgge9Pfc4ccgj+gjae5IyossZgkrJl6
 nYTFlCgA6QGunTC8/KM7jHO0c40AKq7eWXN2lI1Vq6y/JcxP9RgoUH1MGdP9ECJF2W6D
 D5hcLW76RFzCL8n6Me/3+xQ7d2pTeLO3k/I4U3z3X824L7+ESO4y+2CWQkP9+tNVLK6K
 UL4yBKEeciCgTkbQyzUirZ08SlmV9PKZR/+CC5L9uDt+S6ag8F4GVdGeFbCZPze9tJgZ
 Yr9O89vRTMqmhJKtyQ1Q/eroTXBSf9g88HOoZW+GiiXQCC9y6GEaoWQvTTf5Ewel3nE5
 Vfdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1681279963;
 h=content-transfer-encoding:in-reply-to:from:content-language:subject
 :references:cc:to:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=J8Ei6ksPAkVft7Z+jGUNtnbmwXOP0xPUejrB23g1omM=;
 b=MqFFbcP64Bps/+geKz0029qagRR/sJkI7x2R/K5Z0MBOHNw//2jcXEJuqreR5az0/L
 Oi8NVrMb0u7uGK618mG90DG4pyCi9QHkG1Teny71vXB0EHhyrPZ9lAytYKaQ8PQAIn6D
 i8QM7ajwftsrOj6ItF8MhJfVlmOHi7hyOTf/beC6ut3IFpmQWNt4SWbFFsq4Su6GYIEa
 Ru1hcfTmVVmqeBzQQKIpmg56QVF32Am5xTBD0m/C6t7Cb1vYjCzieKmMEeZUjQjUjhdZ
 VkV9xJAIUbMK65G90UIzaI/LNdZpyjAkjj8tYgl19IODg4b9z7kR/MABe802Ag3/uboa
 qePQ==
X-Gm-Message-State: AAQBX9c2FKzOffLvwdUD87MWIygsYNyqqhSWVKcg0m6NsHImd6sA0rhK
 8giJAfGHpo2U/A9CK1dVmbE=
X-Google-Smtp-Source: AKy350Y2l/4HpQbXhBwr66nPgQj6SpNsbhmaEbcGNMOn7OxknozgwP/LcvAq5EK1tnHgJzldT8NJgg==
X-Received: by 2002:a17:903:1250:b0:1a5:a1b:bbd8 with SMTP id
 u16-20020a170903125000b001a50a1bbbd8mr23538422plh.45.1681279963279; 
 Tue, 11 Apr 2023 23:12:43 -0700 (PDT)
Received: from [192.168.16.142] (lemon.ep.sci.hokudai.ac.jp. [133.87.45.154])
 by smtp.gmail.com with ESMTPSA id
 o12-20020a1709026b0c00b00199203a4fa3sm10633044plk.203.2023.04.11.23.12.42
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 11 Apr 2023 23:12:42 -0700 (PDT)
Message-ID: <2ed6592c-4d4f-eee4-0d27-f3d4184e7a45@gmail.com>
Date: Wed, 12 Apr 2023 15:12:40 +0900
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.9.1
To: garidzorigoo@gmail.com
Cc: emacs-orgmode@gnu.org
References: <CAEDgBW44j4NpYUpppLpOA5Pmmsfi-GbCzDH4rTmRjf-F64mSaA@mail.gmail.com>
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/)]
Content-Language: en-US
From: Garid Zorigoo <garidzorigoo@gmail.com>
In-Reply-To: <CAEDgBW44j4NpYUpppLpOA5Pmmsfi-GbCzDH4rTmRjf-F64mSaA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::1032;
 envelope-from=garidzorigoo@gmail.com; helo=mail-pj1-x1032.google.com
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 NICE_REPLY_A=-2.17, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: US
X-Migadu-Flow: FLOW_IN
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681280007; a=rsa-sha256; cv=none;
	b=TdIYHi3gxmFeTcZEoTI27SbsPGERq+GzlZZLVt6axLVJUOZvM4Hg1tRHstvRi+dLvxh136
	L2Aj3fTY55fVcb3+7kzmNIxZUTbS7bdMPWmIw6idQrYNAf0PRnAPzfPonapLy0zIRsYcLb
	Je5qxEomJUvIxtkhDWUzgsvfml0A4RTPSgNU2OCkY2LF+CGwst8GVZx8c9/sktAg+StuTE
	MCds5DxY8cgrXOnA3AGSr3dxb5XxgFcPydv7T8PItEtnN8p+s8TBwt2kzGm4Ga+gL7NJc+
	7JikR8vKfaJLU0WrpONHQCOUdelVkcycMQvHQrYNz8WUnNmO26Dh6iUpUk2aww==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=b1vW+Thf;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1681280007;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=J8Ei6ksPAkVft7Z+jGUNtnbmwXOP0xPUejrB23g1omM=;
	b=kfssmdk6PVQvpe9AmO4Z39GGPHl+csW2OHElZihPF6GQZEUnsMm/gxvhAkt4rnUFeTNqcP
	c82c2Npo32kr7/zwuuFH1GAFkQpw8zJw9DCbBjosH7ub6823ZE67bWOXon+fZMkRHuliau
	dKc8ecQlh1FzCCoZ/ZjUiDGzSK7Sezb5VZgdaHk8EnNwvkbeaxmI0eKJb/8SX/IKZk7VcB
	eP2PLkZGUvi0wrCduY5vENeoX9YIZI78jA4Fxtf45k8cYCsD7zvhExHusasiO+NnfEDu9h
	b8yuDxoQqLH1eL2ddChphVj4ujxPlHPxFWAgehmMCfzFwpjY1ok8JNJ+tSIu7w==
X-Migadu-Spam-Score: -6.45
X-Migadu-Scanner: scn1.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=b1vW+Thf;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Spam-Score: -6.45
X-Migadu-Queue-Id: 75EBC10A4F
X-TUID: jSfPhW+jbo8E


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.