From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Burt Subject: Re: Re: Fail to compile a file's LaTeX export Date: Sun, 21 Mar 2010 00:24:30 -0400 Message-ID: <19365.40830.351203.152643@nitrogen.burtket> References: <87bpei1xkh.wl%dmaus@ictsoc.de> Reply-To: tcburt@rochester.rr.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtCiU-00037p-0V for emacs-orgmode@gnu.org; Sun, 21 Mar 2010 00:24:46 -0400 Received: from [140.186.70.92] (port=52454 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtCiN-00037C-O2 for emacs-orgmode@gnu.org; Sun, 21 Mar 2010 00:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtCiI-00004t-DG for emacs-orgmode@gnu.org; Sun, 21 Mar 2010 00:24:39 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:43060) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtCiI-0008WH-A2 for emacs-orgmode@gnu.org; Sun, 21 Mar 2010 00:24:34 -0400 In-Reply-To: <87bpei1xkh.wl%dmaus@ictsoc.de> 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: David Maus Cc: emacs-orgmode@gnu.org, Leo David Maus writes: > Leo wrote: > >On 2010-03-20 20:29 +0000, Leo wrote: > >> Hello, > >> > >> While taking some common lisp notes, I found compiling the following org > >> file's LaTeX output fails. > >> > >> -------------------------------- > >> #+title: test file > >> > >> * one > >> 1. (char "string" 2) => #\r > >> 2. define-modify-macro > >> 3. (code-char 66) => #\B and (char-code #\B) => 66 > >> 4. terpri and fresh-line > >> 5. "~n&" print a new line if not at the beginning of a line and then n-1 new lines. > >> -------------------------------- > >> > >> Leo > > >BTW, this was tested with the devel version of org. > > Can confirm this for > > Org-mode version 6.34trans (release_6.34c.225.g1576) > > on > > GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of > 2010-03-11 on elegiac, modified by Debian > > Exporting to LaTeX works fine but compiling the LaTeX file errors out > with: > > ,---- > | ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. > | > | --- TeX said --- > | > | See the LaTeX manual or LaTeX Companion for explanation. > | Type H for immediate help. > | ... > | > | l.37 \item > | define-modify-macro > | --- HELP --- > | The most probable cause is an omitted \item command in a list-making > | environment. It is also caused by forgetting the argument of a > | thebibliography environment. > `---- > > Where the LaTeX code for the enumerate environment reads: > > ,---- > | \begin{enumerate} > | \item (char ``string'' 2) => \#\r > | \item define-modify-macro > | \item (code-char 66) => \#\B and (char-code \#\B) => 66 > | \item terpri and fresh-line > | \item ``\~{}n\&'' print a new line if not at the beginning of a line and then n-1 new lines. > | \end{enumerate} > `---- > > I suppose the \#\r is the problematic piece, will look into it > tomorow. Indeed \r is one of the problematic pieces; the other is the \B. The LaTeX exporter does not modify them since they look like LaTeX commands already, which is true in the case of \r (see below) but not in that for \B. Either way I don't get the impression that either is intended to be used as a LaTeX command so they should be marked somehow for conversion, but I don't know what would be most satisfactory. The \r is a LaTeX command that puts a ring accent over the next character. For example, \r{A} looks somewhat like the Angstrom unit. My fractured fairy tale is that the generated LaTeX code breaks because the character following \r is not one that can be accented in a way that keeps the lists (especially the \item command) sane. Tim