From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: problem with export of verbatim code Date: Wed, 02 Dec 2009 09:38:17 +0000 Message-ID: <878wdl7m2e.wl%ucecesf@ucl.ac.uk> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Dec__2_09:38:17_2009-1" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFlta-00045U-DP for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 04:53:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFltV-00043M-NJ for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 04:53:13 -0500 Received: from [199.232.76.173] (port=40931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFltV-000437-7a for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 04:53:09 -0500 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:59929) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFltT-0000ug-Np for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 04:53:08 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list --Multipart_Wed_Dec__2_09:38:17_2009-1 Content-Type: text/plain; charset=US-ASCII Hello, the attached files illustrate a bug in the export of verbatim code to LaTeX that replaces a sequence of [[xxxxx]] with [[section-label][xxxxx]]. Actually, this happens when exporting to html as well so it may be a generic problem. An example is attached including the org and latex files. Note that I cannot easily fix the verbatim code to work around this bug as this code is automatically generated using babel (with my own maxima plugin). Thanks, eric --Multipart_Wed_Dec__2_09:38:17_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="examplebug.org" Content-Transfer-Encoding: 7bit #+TITLE: Bugs in org-mode #+AUTHOR: Eric S Fraga \linebreak Chemical Engineering \linebreak UCL #+EMAIL: e.fraga@ucl.ac.uk #+DATE: 2009-10-29 Thu #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: * problem with \LaTeX export The following verbatim output was generated using babel and maxima. #+results: : 0.1 UKP : price : ------- : kWh : ev(solve([costofheating = 21.6 kWh price, costofuse = 1.96 kWh price, : totalcost = costofuse + costofheating], : [costofheating, costofuse, totalcost]), numer) : [[costofheating = 2.16 UKP, costofuse = 0.196 UKP, totalcost = 2.356 UKP]] Note the insertion of the current section's /label/ in the last line of the verbatim output. --Multipart_Wed_Dec__2_09:38:17_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="examplebug.tex" Content-Transfer-Encoding: 7bit % Created 2009-12-02 Wed 07:29 \documentclass[11pt]{scrartcl} \usepackage{amsmath} \usepackage{amssymb} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{hyperref} \usepackage{tikz} \title{Bugs in org-mode} \author{Eric S Fraga \linebreak Chemical Engineering \linebreak UCL} \date{2009-10-29 Thu} \begin{document} \maketitle \section{problem with \\LaTeX{} export} \label{sec-1} The following verbatim output was generated using babel and maxima. \begin{verbatim} 0.1 UKP price : ------- kWh ev(solve([costofheating = 21.6 kWh price, costofuse = 1.96 kWh price, totalcost = costofuse + costofheating], [costofheating, costofuse, totalcost]), numer) [[sec-1][costofheating = 2.16 UKP, costofuse = 0.196 UKP, totalcost = 2.356 UKP]] \end{verbatim} Note the insertion of the current section's \emph{label} in the last line of the verbatim output. \end{document} --Multipart_Wed_Dec__2_09:38:17_2009-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Dec__2_09:38:17_2009-1--