From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: problem with export of verbatim code
Date: Wed, 02 Dec 2009 09:38:17 +0000 [thread overview]
Message-ID: <878wdl7m2e.wl%ucecesf@ucl.ac.uk> (raw)
[-- 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
next reply other threads:[~2009-12-02 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 9:38 Eric S Fraga [this message]
2009-12-16 23:17 ` problem with export of verbatim code Carsten Dominik
2009-12-17 9:34 ` Eric S Fraga
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=878wdl7m2e.wl%ucecesf@ucl.ac.uk \
--to=ucecesf@ucl.ac.uk \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/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).