Hi All,

This should be finally fixed in https://list.orgmode.org/87levcm2bx.fsf@gmail.com when it’s merged.

All the best,
Timothy

From: Charest, Luc
Subject: Bug: Percentage in caption (even escaped) does not work in LaTeX export
To: emacs-orgmode@gnu.org
Date: Fri, 30 Jul 2021 23:00:47 +0800

 

Hello,

 

   I simplified the problem down to :

 

#+CAPTION: Org Mode works 99.99\% of the time.

#+BEGIN_SRC -n

// this is only a proof of concept

#+END_SRC

 

As soon as I put the percentage sign in the caption, the LaTeX export backend fails with this message :

org-latex-src-block: Not enough arguments for format string

 

I tried “%”, “\%”, “\\%”, “%%”… nothing works !

 

If I get it wrong, sorry but please update the documentation accordingly, as I found nothing in the specs regarding this matter specifically.

 

My versions :

Emacs  : GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)

of 2019-04-13

Package: Org mode version 9.4.6 (9.4.6-4-g093c94-elpa)

 

Thanks !

 

 

Luc Charest

Conseiller Optimisation I

Optimisation Modélisation Mathématique

Direction Production et Exploitation

Hydro-Québec Production

Édifice Jean-Lesage

75, boulevard René-Lévesque Ouest, 9étage

Montréal (Québec) H2Z 1A4

Tél. : 514 289-2211,7049

Interne0-289-7049

www.hydroquebec.com