emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Fail to compile a file's LaTeX export
@ 2010-03-20 20:29 Leo
  2010-03-20 21:30 ` Leo
  2010-03-21  6:30 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Leo @ 2010-03-20 20:29 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: Fail to compile a file's LaTeX export
  2010-03-20 20:29 Fail to compile a file's LaTeX export Leo
@ 2010-03-20 21:30 ` Leo
  2010-03-20 21:40   ` David Maus
  2010-03-21  6:30 ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Leo @ 2010-03-20 21:30 UTC (permalink / raw)
  To: emacs-orgmode

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.

Leo

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

* Re: Re: Fail to compile a file's LaTeX export
  2010-03-20 21:30 ` Leo
@ 2010-03-20 21:40   ` David Maus
  2010-03-21  4:24     ` Tim Burt
  0 siblings, 1 reply; 5+ messages in thread
From: David Maus @ 2010-03-20 21:40 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1815 bytes --]

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

HTH
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: 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] 5+ messages in thread

* Re: Re: Fail to compile a file's LaTeX export
  2010-03-20 21:40   ` David Maus
@ 2010-03-21  4:24     ` Tim Burt
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Burt @ 2010-03-21  4:24 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode, 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 <return>  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

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

* Re: Fail to compile a file's LaTeX export
  2010-03-20 20:29 Fail to compile a file's LaTeX export Leo
  2010-03-20 21:30 ` Leo
@ 2010-03-21  6:30 ` Carsten Dominik
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2010-03-21  6:30 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Mar 20, 2010, at 9:29 PM, 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.
> --------------------------------


These things are code examples, and I think the bes way to deal
with them is by markign them as such:

* one
  1. =(char "string" 2)= => =#\r=
  2. define-modify-macro
  3. =(code-char 66)= =>  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.

HTH

- Carsten

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

end of thread, other threads:[~2010-03-21  6:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-20 20:29 Fail to compile a file's LaTeX export Leo
2010-03-20 21:30 ` Leo
2010-03-20 21:40   ` David Maus
2010-03-21  4:24     ` Tim Burt
2010-03-21  6:30 ` Carsten Dominik

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