emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Maxim Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] ox-latex: Allow percent sign in 'src-block' caption
Date: Sat, 25 Sep 2021 18:04:47 +0200	[thread overview]
Message-ID: <87y27kwsio.fsf@bzg.fr> (raw)
In-Reply-To: <sh7lgo$uub$1@ciao.gmane.io> (Maxim Nikulin's message of "Tue, 7 Sep 2021 19:21:42 +0700")

Hi Maxim,

Maxim Nikulin <manikulin@gmail.com> writes:

> On 03/09/2021 19:17, Maxim Nikulin wrote:
>> On 30/07/2021 22:00, Charest, Luc wrote:
>>>
>>> org-latex-src-block: Not enough arguments for format string
>> 
>> Confirmed
>> 
>> User input is combined with format string in `org-latex-src-block'
>> so percent character in caption is treated as a format specifier.>
>> Maybe emacs versions newer than 26 does not throw an error
>> on extra specifier with missed argument. =:latex-cation-above nil=
>> might still cause corrupted LaTeX code.
>
> I have decided that it is better to provide a partial fix than to leave
> the problem as is.  This patch covers only plain verbatim environment,
> more advanced formatting using listings or minted should be addressed
> by another change (Anybody?).  

Applied, thanks.

> Do not close the bug after applying this patch.

I've opened a bug from the original report, I'll check it does appear
in updates.orgmode.org correctly.


  parent reply	other threads:[~2021-09-25 16:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 15:00 Bug: Percentage in caption (even escaped) does not work in LaTeX export Charest, Luc
2021-08-03 13:51 ` Eric S Fraga
2021-08-31 15:38   ` Timothy
2021-08-31 16:43     ` Charest, Luc
2021-09-03 12:17 ` Maxim Nikulin
2021-09-07 12:21   ` [PATCH] ox-latex: Allow percent sign in 'src-block' caption Maxim Nikulin
2021-09-07 13:17     ` Timothy
2021-09-25 16:04     ` Bastien [this message]
2021-09-25 16:04 ` Bug: Percentage in caption (even escaped) does not work in LaTeX export Bastien
2021-09-30 14:20   ` Max Nikulin
2022-05-08 16:15 ` Timothy
2022-10-06  6:57   ` Ihor Radchenko

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=87y27kwsio.fsf@bzg.fr \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    /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).