From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: [bug] new exporter fails on read only files Date: Sun, 6 May 2012 23:25:17 +0930 Message-ID: <87d36hs9bu.fsf@ucl.ac.uk> References: <87k412k6uy.fsf@ucl.ac.uk> <8762cmk5ro.fsf@gnu.org> <87y5phia2g.fsf@ucl.ac.uk> <8762ckdi4h.fsf@gmail.com> <87ehr1ip0b.fsf@ucl.ac.uk> <87d36lqw93.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR1w6-000795-Fj for emacs-orgmode@gnu.org; Sun, 06 May 2012 09:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SR1w4-00021w-CN for emacs-orgmode@gnu.org; Sun, 06 May 2012 09:55:41 -0400 In-Reply-To: <87d36lqw93.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 3 May 2012 14:34:00 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Bastien , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/org Content-Disposition: attachment; filename="examplebug.org" #+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 <> 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} | |------------------------+----+----+---------------------------------+----+----------------------------+----+-----------------------------+-------------------------------------+----+-----+-----+------------------------------------| --=-=-= Content-Type: text/x-tex Content-Disposition: attachment; filename="examplebug.tex" % 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} --=-=-= Content-Type: text/plain -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org release_7.8.09-489-g541288 --=-=-=--