emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with export of verbatim code
@ 2009-12-02  9:38 Eric S Fraga
  2009-12-16 23:17 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2009-12-02  9:38 UTC (permalink / raw)
  To: org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

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

[-- Attachment #2: examplebug.org --]
[-- Type: application/octet-stream, Size: 1139 bytes --]

#+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.

[-- Attachment #3: examplebug.tex --]
[-- Type: application/octet-stream, Size: 1060 bytes --]

% 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}

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with export of verbatim code
  2009-12-02  9:38 problem with export of verbatim code Eric S Fraga
@ 2009-12-16 23:17 ` Carsten Dominik
  2009-12-17  9:34   ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-12-16 23:17 UTC (permalink / raw)
  To: e.fraga; +Cc: org-mode mailing list

Hi Eric,

thanks for the bug report, this is now fixed.

- Carsten

On Dec 2, 2009, at 10:38 AM, Eric S Fraga wrote:

> 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
> <
> examplebug
> .org><examplebug.tex>_______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with export of verbatim code
  2009-12-16 23:17 ` Carsten Dominik
@ 2009-12-17  9:34   ` Eric S Fraga
  0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2009-12-17  9:34 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: org-mode mailing list

At Thu, 17 Dec 2009 00:17:22 +0100,
Carsten Dominik wrote:
> 
> Hi Eric,
> 
> thanks for the bug report, this is now fixed.
> 
> - Carsten
> 
> On Dec 2, 2009, at 10:38 AM, Eric S Fraga wrote:
> 
> > 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.


Thanks Carsten!  Much appreciated.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-17  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-02  9:38 problem with export of verbatim code Eric S Fraga
2009-12-16 23:17 ` Carsten Dominik
2009-12-17  9:34   ` Eric S Fraga

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).