emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Fraga <e.fraga@ucl.ac.uk>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Bastien <bzg@gnu.org>, emacs-orgmode@gnu.org
Subject: Re: [bug] new exporter fails on read only files
Date: Sun, 6 May 2012 23:25:17 +0930	[thread overview]
Message-ID: <87d36hs9bu.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87d36lqw93.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 3 May 2012 14:34:00 +0200")

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

Nicolas,

unfortunately, I have immediately run into another problem with the new
exporter (to latex) when going back to my long document (a project
proposal).

I have a minimal example which illustrates the problem.  The attached
are a simple org file with the resulting latex file.  The key problem is
that the =tabular= command has an empty argument, the argument that is
meant to specify the table alignments.

Specifically,  the new exporter generates:

,----
| \begin{center}
| \begin{tabular}{}
| \hline
| Task & Q1 & Q2 & Q3 & Q4 & Q5 & Q6 & Q7 & Q8 & Q9 & Q10 & Q11 & Q12\\
`----

whereas the old one generates

,----
| \begin{center}
| \begin{tabular}{lllllllllllll}
| \hline
|  Task                    &  Q1  &  Q2  &  Q3 [...]
`----

(last line truncated by me as it was too long)

This is with org up to date from a few minutes ago (see signature).  For
the new exporter, I started emacs with -Q and then:

#+begin_src emacs-lisp
(add-to-list 'load-path "~/git/org-mode")
(add-to-list 'load-path "~/git/org-mode/lisp")
(add-to-list 'load-path "~/git/org-mode/contrib/lisp/")
(require 'org-install)
(require 'org-export)
(require 'org-e-latex)
#+end_src

Thanks,
eric


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: examplebug.org --]
[-- Type: text/org, Size: 3116 bytes --]

#+TITLE:     examplebug.org
#+AUTHOR:    Eric S Fraga
#+EMAIL:     e.fraga@ucl.ac.uk
#+DATE:      2012-01-09 Mon

#+latex_header: \newcommand{\deliverable}[1]{D\ref{deliverable:#1}}

* new exporter
  <<sec:bug>>

  This section illustrates a simple bug in the new exporter, I think.

  The project has the following deliverables:

  1. \label{deliverable:evaporative-model} The evaporative model
  2. \label{deliverable:system-model} The system model
  3. \label{deliverable:control-model} The control model
  4. \label{deliverable:control-model-recycle} ... and with a recycle
  5. \label{deliverable:preprocessing-system} ... and with preprocessing

     
  The work plan for this project is shown in the following table:

  #+latex: \renewcommand{\arraystretch}{1.5}
 
  |------------------------+----+----+---------------------------------+----+----------------------------+----+-----------------------------+-------------------------------------+----+-----+-----+------------------------------------|
  | Task                   | Q1 | Q2 | Q3                              | Q4 | Q5                         | Q6 | Q7                          | Q8                                  | Q9 | Q10 | Q11 | Q12                                |
  |------------------------+----+----+---------------------------------+----+----------------------------+----+-----------------------------+-------------------------------------+----+-----+-----+------------------------------------|
  | \ref{sec:evaporative}  | XX | XX | XX                              |    |                            |    |                             |                                     |    |     |     |                                    |
  | \ref{sec:systems}      |    |    |                                 | XX | XX                         |    |                             |                                     |    |     | XX  |                                    |
  | \ref{sec:control}      |    |    |                                 |    |                            | XX | XX                          | XX                                  |    |     |     | XX                                 |
  | \ref{sec:desalination} |    |    |                                 |    |                            |    |                             |                                     | XX | XX  |     |                                    |
  |------------------------+----+----+---------------------------------+----+----------------------------+----+-----------------------------+-------------------------------------+----+-----+-----+------------------------------------|
  | Deliverables           |    |    | \deliverable{evaporative-model} |    | \deliverable{system-model} |    | \deliverable{control-model} | \deliverable{control-model-recycle} |    |     |     | \deliverable{preprocessing-system} |
  |------------------------+----+----+---------------------------------+----+----------------------------+----+-----------------------------+-------------------------------------+----+-----+-----+------------------------------------|
 



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: examplebug.tex --]
[-- Type: text/x-tex, Size: 2043 bytes --]

% Created 2012-05-06 Sun 23:21
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\newcommand{\deliverable}[1]{D\ref{deliverable:#1}}
\providecommand{\alert}[1]{\textbf{#1}}
\author{Eric S Fraga}
\date{2012-01-09 Mon}
\title{examplebug.org}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Generated by Org mode 7.8.09 in Emacs 24.1.50.1.}}
\begin{document}

\maketitle
\tableofcontents
\vspace*{1cm}


\section{new exporter}
\label{sec-1}
\label{sec-bug}

This section illustrates a simple bug in the new exporter, I think.

The project has the following deliverables:

\begin{enumerate}
\item \label{deliverable:evaporative-model} The evaporative model
\item \label{deliverable:system-model} The system model
\item \label{deliverable:control-model} The control model
\item \label{deliverable:control-model-recycle} \ldots{} and with a recycle
\item \label{deliverable:preprocessing-system} \ldots{} and with preprocessing
\end{enumerate}


The work plan for this project is shown in the following table:

\renewcommand{\arraystretch}{1.5}

\begin{center}
\begin{tabular}{}
\hline
Task & Q1 & Q2 & Q3 & Q4 & Q5 & Q6 & Q7 & Q8 & Q9 & Q10 & Q11 & Q12\\
\hline
\ref{sec:evaporative} & XX & XX & XX &  &  &  &  &  &  &  &  & \\
\ref{sec:systems} &  &  &  & XX & XX &  &  &  &  &  & XX & \\
\ref{sec:control} &  &  &  &  &  & XX & XX & XX &  &  &  & XX\\
\ref{sec:desalination} &  &  &  &  &  &  &  &  & XX & XX &  & \\
\hline
Deliverables &  &  & \deliverable{evaporative-model} &  & \deliverable{system-model} &  & \deliverable{control-model} & \deliverable{control-model-recycle} &  &  &  & \deliverable{preprocessing-system}\\
\hline
\end{tabular}
\end{center}
% Generated by Org mode 7.8.09 in Emacs 24.1.50.1.
\end{document}

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


-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1
: using Org release_7.8.09-489-g541288

  reply	other threads:[~2012-05-06 13:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 12:36 [bug] new exporter fails on read only files Eric Fraga
2012-04-26 12:59 ` Bastien
2012-04-27 13:22   ` Eric Fraga
2012-04-27 14:50     ` Bastien
2012-04-27 20:39     ` Nicolas Goaziou
2012-05-03  9:37       ` Eric Fraga
2012-05-03 12:34         ` Nicolas Goaziou
2012-05-06 13:55           ` Eric Fraga [this message]
2012-05-06 18:13             ` Nicolas Goaziou
2012-05-06 23:48               ` 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=87d36hs9bu.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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).