From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures. Date: Tue, 30 Apr 2019 19:05:45 +0200 Message-ID: <87pnp35spi.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLWCV-0005Eg-Pr for emacs-orgmode@gnu.org; Tue, 30 Apr 2019 13:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLWCU-0000JZ-QM for emacs-orgmode@gnu.org; Tue, 30 Apr 2019 13:05:51 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:50009) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLWCU-0000IN-Kq for emacs-orgmode@gnu.org; Tue, 30 Apr 2019 13:05:50 -0400 In-Reply-To: (Emmanuel Charpentier's message of "Tue, 30 Apr 2019 09:18:51 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Emmanuel Charpentier Cc: emacs-orgmode Hello, Emmanuel Charpentier writes: > Whereas the HTML exporter correctly recognize a source block as such, > the LaTeX/PDF exporter does not. > > This can be demonstrated in a (minimal) org file using *only* the > built-in tools (no external packages), where a source block is labelled > as such by the HTML exporter but as a figure by the LaTeX exporter.The > generated LaTeX source shows a suspicious > "\captionof{figure}{\label{orgf2d4160}" in the export of the source > block. > > Further tests (not shown) show that the proble persists when org-mode > is set up to use the minted package for LaTeX export of source blocks > (minted is indeed used, but the block is s still mislabeled). What LaTeX code do you suggest instead? > The org source and resulting pdf and html files are available here : > https://drive.google.com/drive/folders/1bQmaefiztW9ZDRNLcjOD_WbEmTg4d8dG?usp=sharing Could you send your ECM in the ML without requiring to access Google Drive? Thank you. Regards, -- Nicolas Goaziou