Re: [Orgmode] Export to LaTeX bug

2010-12-14 Thread Francesco Pizzolante
Hi,

Please ignore this thread.

This problem was coming from a bug in my .emacs file.

*I* was doing weird things with the org-export-latex-packages-alist variable:

  (add-to-list 'org-export-latex-packages-alist
   '(("T1" "fontenc")
 ("" "fixltx2e")
 ("" "graphicx")
 ("" "longtable")
 ("" "float")
 ("" "wrapfig")
 ("" "soul")
 ("" "t1enc")
 ("" "textcomp")
 ("" "marvosym")
 ("" "wasysym")
 ("" "latexsym")
 ("" "amssymb")
 ("" "hyperref")
 ("\\tolerance=1000")) t)

I'm sorry for the inconvenience.

Regards,
Francesco


> Exporting to LaTeX generates a weird a usepackage line (with fixltx2e).
>
> Here's a simple example:
>
> --8<---cut here---start->8---
> #+TITLE: Test export LaTeX
>
> * This is a simple test
> --8<---cut here---end--->8---
>
> Look at the 4th line of the resulting export:
>
> --8<---cut here---start->8---
> % Created 2010-12-09 Thu 17:04
> \documentclass[11pt]{article}
> \usepackage[utf8x]{inputenc}
> \usepackage[(T1 fontenc)]{( fixltx2e)}
> \usepackage{listings}
> \usepackage{xcolor}
> \providecommand{\alert}[1]{\textbf{#1}}
> \begin{document}
>
>
>
> \title{Test export \LaTeX{}}
> \author{Francesco Pizzolante}
> \date{09 December 2010}
> \maketitle
>
> \setcounter{tocdepth}{3}
> \tableofcontents
> \vspace*{1cm}
>
> \section{This is a simple test}
> \label{sec-1}
>
> \end{document}
> --8<---cut here---end--->8---
>
> Thanks,
> F.
>
> ___
> 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
>
>

___
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


[Orgmode] Export to LaTeX bug

2010-12-09 Thread Francesco Pizzolante
Hi,

Exporting to LaTeX generates a weird a usepackage line (with fixltx2e).

Here's a simple example:

--8<---cut here---start->8---
#+TITLE: Test export LaTeX

* This is a simple test
--8<---cut here---end--->8---

Look at the 4th line of the resulting export:

--8<---cut here---start->8---
% Created 2010-12-09 Thu 17:04
\documentclass[11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[(T1 fontenc)]{( fixltx2e)}
\usepackage{listings}
\usepackage{xcolor}
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test export \LaTeX{}}
\author{Francesco Pizzolante}
\date{09 December 2010}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{This is a simple test}
\label{sec-1}

\end{document}
--8<---cut here---end--->8---

Thanks,
F.

___
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


Re: [Orgmode] export to latex broken

2010-08-20 Thread Eric S Fraga
On Fri, 20 Aug 2010 18:25:16 +0200, Carsten Dominik  
wrote:
> 
> 
> On Aug 20, 2010, at 4:36 PM, Puneeth wrote:
> 
> > Hi,
> >
> > Exporting from org to LaTeX is broken on the master.
> >
> > Git bisect gives the bad commit as 034dbac3eecd
> > "Search for LaTeX setup case-insensitively"
> 
> OK, I have reverted it.
> 
> Can you please describe what happened?
> 
> Thanks
> 
> - Carsten
> 
> 
> ___
> 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

Carsten,

at least in my case, what happens is that the \documentclass line gets
munged somewhere along the way. I have the following for
org-export-latex-classes:

: (("article"
: "\\documentclass[11pt]{scrartcl}\n\\usepackage[utf8]{inputenc}\n..."))

(truncated).  When I export to latex, I get:

: % Created 2010-08-20 Fri 18:21
: \documentclassI{scrartcl}
: \usepackage[utf8]{inputenc}
: \usepackage[T1]{fontenc}

(truncated again)  Note the "I" after "class" which somehow has
replaced the "[11pt]" argument I had to this command.  In other latex
files, I have seen "r" instead of "I".

Hope this helps.

eric

PS - I sympathise with your response to another email on the list
 about crossing emails: I do much of my email processing on the train
 while off-line...  so I hope this doesn't cross the message from you
 that says that this problem has already been fixed ;-)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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


Re: [Orgmode] export to latex broken

2010-08-20 Thread Nick Dokos
Carsten Dominik  wrote:

> 
> On Aug 20, 2010, at 4:36 PM, Puneeth wrote:
> 
> > Hi,
> >
> > Exporting from org to LaTeX is broken on the master.
> >
> > Git bisect gives the bad commit as 034dbac3eecd
> > "Search for LaTeX setup case-insensitively"
> 
> OK, I have reverted it.
> 
> Can you please describe what happened?
> 

line 1144 ff in org-latex.el:


(and (let ((case-fold-search t))
   (re-search-forward
"^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t)
   (match-string 1)

The and used to check for the match and if the match succeeded it would return
the match string. Now it returns the match string whether the search succeeds 
or not.
It probably should be:

 ...
 (let ((case-fold-search t))
   (and (re-search-forward
"^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t)
   (match-string 1)))...

Nick

___
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


Re: [Orgmode] export to latex broken

2010-08-20 Thread Puneeth
On Fri, Aug 20, 2010 at 9:55 PM, Carsten Dominik
 wrote:
>
> On Aug 20, 2010, at 4:36 PM, Puneeth wrote:
>
>> Hi,
>>
>> Exporting from org to LaTeX is broken on the master.
>>
>> Git bisect gives the bad commit as 034dbac3eecd
>> "Search for LaTeX setup case-insensitively"
>
> OK, I have reverted it.
>
> Can you please describe what happened?

Sorry for the incomplete report. I'd been using C-c C-e ?d and getting
a direct pdf output which was garbled.

Getting a LaTeX output and compiling gives me a clearer picture.

The documentclass is getting appended with a "random" character.
pdflatex gave me this error

---
! Undefined control sequence.
l.2 \documentclassT
   {article}

---

Removing that "T" from the end of documentclass solves the problem.

(and I think the T is coming from the org file itself. I get a
different character in different documents.)

HTH,
Puneeth

___
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


Re: [Orgmode] export to latex broken

2010-08-20 Thread Carsten Dominik


On Aug 20, 2010, at 4:36 PM, Puneeth wrote:


Hi,

Exporting from org to LaTeX is broken on the master.

Git bisect gives the bad commit as 034dbac3eecd
"Search for LaTeX setup case-insensitively"


OK, I have reverted it.

Can you please describe what happened?

Thanks

- Carsten


___
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


Re: [Orgmode] export to latex broken

2010-08-20 Thread Eric S Fraga
On Fri, 20 Aug 2010 20:06:34 +0530, Puneeth  wrote:
> 
> Hi,
> 
> Exporting from org to LaTeX is broken on the master.
> 
> Git bisect gives the bad commit as 034dbac3eecd
> "Search for LaTeX setup case-insensitively"

I can confirm it's broken.  I've not had time to really track down
where it is happening but I can say that all my latex files are
incorrect in the generation of the \documentclass{} line, specifically
an extra character is being inserted between "class" and "{", even
though I have specified my own org-export-latex-classes.  Very
strange.  I'll try to track this down on the way home on the train
tonight...

: Org-mode version 7.01trans (release_7.01h.180.g190e)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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


[Orgmode] export to latex broken

2010-08-20 Thread Puneeth
Hi,

Exporting from org to LaTeX is broken on the master.

Git bisect gives the bad commit as 034dbac3eecd
"Search for LaTeX setup case-insensitively"

-- Puneeth

ps : Thanks to ngz for a patient IRC tutorial on git bisect.

___
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


Re: [Orgmode] export to latex book ?

2010-07-20 Thread Nick Dokos
John Hendy  wrote:

> On Tue, Jul 20, 2010 at 9:55 AM, Piter_  wrote:
> 
> Hi all
> I try to export my org file into Latex book by adding:
> #+LaTeX_CLASS: book
> bu I get:
> org-export-latex-set-initial-vars: No definition for class `book ' in 
> `org-export-latex-classes'
> But if I go into Org->Customize I can see it there.
> What can be wrong?
> Thanks.
> Petro.
>
> P.S. It actually does not work with #+LaTeX_CLASS:article.
> Only if I remove #+LaTeX_CLASS: from file.
> ... 
> Post back with your findings on this and someone should be able to
> help you out. I justĀ upgraded from 6.35 -> 7.01 last night and nothing
> has changed for me. I'm thinking this has to do with your LaTeX
> install but could very possibly be wrong...
> 
> 

Looks like an org error, not a latex error, at this point (although 
of course the latex installation may be busted as well). I presume 
that when you (Piter) export to latex, there is no .tex output file
produced, correct?

In either case, probably the best way to proceed is to get a backtrace
and post that: see section 1.4, "Feedback", in the Org manual. If there
*is* a .tex output file, then post that as well.

Cheers,
Nick


___
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


[Orgmode] export to latex book ?

2010-07-20 Thread Piter_
Hi all
I try to export my org file into Latex book by adding:
#+LaTeX_CLASS: book
bu I get:
org-export-latex-set-initial-vars: No definition for class `book ' in
`org-export-latex-classes'
But if I go into Org->Customize I can see it there.
What can be wrong?
Thanks.
Petro.

P.S. It actually does not work with #+LaTeX_CLASS:article.
Only if I remove #+LaTeX_CLASS: from file.
___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-12 Thread Carsten Dominik

Fixed as well, thanks.

- Carsten

On Mar 11, 2010, at 8:32 PM, Jambunathan K wrote:



My gut feelings is that although macros are enabled for author  
string, the parsing is broken when the invocation spans multiple  
lines.


I would like to add the following observation as well -

---> org input <---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAILEMAIL

---> actual tex output <---
\author{Jambunathan K\cr\href{mailto:kjambunat...@gmail.com}\{kjambunathan@gmail.com 
\}}


The above tex snippet has the effect of getting the "Url Box" wrong.

I was hoping to produce the following line -
\author{Jambunathan K\cr\href{mailto:kjambunat...@gmail.com}{kjambunathan@gmail.com 
}}


Generally speaking, macro expansion in author string behaves  
strangely.


Thanks,
Jambunathan K.




- Carsten





___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K


My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


I would like to add the following observation as well -

---> org input <---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAILEMAIL

---> actual tex output <---
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}\{kjambunathan@gmail.com\}}


The above tex snippet has the effect of getting the "Url Box" wrong.

I was hoping to produce the following line -
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}{kjambunathan@gmail.com}}


Generally speaking, macro expansion in author string behaves strangely.

Thanks,
Jambunathan K.




___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K

On 3/9/2010 10:40 PM, Carsten Dominik wrote:


On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the header 
as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.  
Shouldn't  (org-export-latex-make-header ...)  test the email 
property and emit the required latex line?


Maybe this will work:

AUTHOR: Andrew Roberts\newline\textttEMAIL}




On 3/10/2010 8:34 AM, Nick Dokos wrote:

Andrew Roberts\cr\textttEMAIL
   


Thanks for this suggestion. This satisfactorily addresses the concern 
that I had raised.


For completion's sake, let me register my observations here.

I was trying to get in a newline (in sort of a roundabout way).

Facts
1. Author string can have macros
2. Macro arguments allow linebreaks to be reproduced verbatim in 
exported files


Putting 1 & 2 together, I had a partial success.

Variant-1:

> org-input <

#+MACRO: verbatim $1
#+AUTHOR: {{{verbatim(Jambunathan K)}}}
* Section

  {{{verbatim(Jambunathan K)}}}

  {{{verbatim(Jambunathan
  K)}}}

 ---> tex outut <---
...
\author{Jambunathan K}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K
...

This is a well-formed tex file. Key thing is it validates facts 1 & 2 above.

Variant-2:

---> org input <---

#+MACRO: verbatim $1
#+AUTHOR:   {{{verbatim(Jambunathan
  K)}}}

* Section
  {{{verbatim(Jambunathan K)}}}
  {{{verbatim(Jambunathan
  K)}}}

---> tex output <---
...
\author{{\{{verbatim(Jambunathan}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K

This is not a well-formed latex file.

My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


Thanks,
Jambunathan K











Btw, I would like to thank you and all other contributors for making 
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not 
user-mail-address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


- Carsten







- Carsten



- Carsten







___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-09 Thread Carsten Dominik


On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the  
header as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.   
Shouldn't  (org-export-latex-make-header ...)  test the email  
property and emit the required latex line?


Maybe this will work:

AUTHOR: Andrew Roberts\newline\textttEMAIL}




Btw, I would like to thank you and all other contributors for making  
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


- Carsten







- Carsten



- Carsten





___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-09 Thread Carsten Dominik

Hi Jambunathan,

On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the  
header as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.   
Shouldn't  (org-export-latex-make-header ...)  test the email  
property and emit the required latex line?



You can do this.

1. pull again from the git repository
2. Use this code:

#+AUTHOR: Andrew Roberts\\\textttemail

HTH

- Carsten



Btw, I would like to thank you and all other contributors for making  
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


- Carsten







- Carsten





___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Jambunathan K

Hi  Carsten

What can I do to get the email address automagically as in the header as 
below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.  
Shouldn't  (org-export-latex-make-header ...)  test the email property 
and emit the required latex line?


Btw, I would like to thank you and all other contributors for making 
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not 
user-mail-address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


- Carsten







___
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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Carsten Dominik

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


- Carsten





___
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


[Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Jambunathan K

I am seeing latex export honors user-full-name but not user-mail-address.

The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
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


Re: [Orgmode] Export to LaTeX without "surroundings"?

2009-12-26 Thread Karl Maihofer
Thanks a lot, Darlan!

Am 23.12.09 04:41, schrieb Darlan Cavalcante Moreira:
> 
> If all you want to do is using the org-mode superpowers for tables to write
> latex tables then you should about "Radio tables" in the manual
> (http://orgmode.org/manual/Radio-tables.html#Radio-tables). Basically, you 
> write
> a standard org-mode table as a comment in your .tex file and then call a
> function to send the table as a latex table to a specified place in the same
> file. It is really nice and you can use all of the spreadsheet operations.
> 
> - Darlan Cavalcante Moreira
> 
> At Tue, 22 Dec 2009 13:45:05 +0100,
> Karl Maihofer  wrote:
>>
>> Hi,
>>
>> is there a way to only export the content of an org-file to the LaTeX
>> syntax (without LaTeX header etc.)?
>>
>> I'd like to include a table.tex (my bibliography, i do not use bibtex)
>> into my main tex-file. But because it is very nice to write tables in
>> orgmode, i thought i could write my table in a file table.org, export it
>> to table.tex, which then will be included into my main.tex file.
>>
>> Thanks!
>>
>> Karl
>>
>>
>> ___
>> 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
> 



___
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


Re: [Orgmode] Export to LaTeX without "surroundings"?

2009-12-22 Thread Darlan Cavalcante Moreira

If all you want to do is using the org-mode superpowers for tables to write
latex tables then you should about "Radio tables" in the manual
(http://orgmode.org/manual/Radio-tables.html#Radio-tables). Basically, you write
a standard org-mode table as a comment in your .tex file and then call a
function to send the table as a latex table to a specified place in the same
file. It is really nice and you can use all of the spreadsheet operations.

- Darlan Cavalcante Moreira

At Tue, 22 Dec 2009 13:45:05 +0100,
Karl Maihofer  wrote:
> 
> Hi,
> 
> is there a way to only export the content of an org-file to the LaTeX
> syntax (without LaTeX header etc.)?
> 
> I'd like to include a table.tex (my bibliography, i do not use bibtex)
> into my main tex-file. But because it is very nice to write tables in
> orgmode, i thought i could write my table in a file table.org, export it
> to table.tex, which then will be included into my main.tex file.
> 
> Thanks!
> 
> Karl
> 
> 
> ___
> 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


___
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


[Orgmode] Export to LaTeX without "surroundings"?

2009-12-22 Thread Karl Maihofer
Hi,

is there a way to only export the content of an org-file to the LaTeX
syntax (without LaTeX header etc.)?

I'd like to include a table.tex (my bibliography, i do not use bibtex)
into my main tex-file. But because it is very nice to write tables in
orgmode, i thought i could write my table in a file table.org, export it
to table.tex, which then will be included into my main.tex file.

Thanks!

Karl


___
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


Re: [Orgmode] export to latex

2009-01-11 Thread sergio_101
> Just to add one additional (quite useless data point).. I tried the
> example file and it did seem to hang with Emacs consuming lots of CPU.

okay, i knew i was going to miss something...

html export works just fine..

but i never do get a fail.. the processor usage shoots to 100%.. and
hangs there... i let it go for a few hours.. then quit it.

the error message i sent was from after cancelling in the middle of the
export..


-- 
___
peace,
sergio
http://www.village-buzz.com


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to latex

2009-01-11 Thread Carsten Dominik


On Jan 11, 2009, at 12:56 PM, Manish wrote:


 On Sun, Jan 11, 2009 at 2:45 PM, Carsten Dominik wrote:

I still cannot reproduce this, my commit is

5a8f775d79f4089d03968dd16ba7d073b7c9f142

and your file exports just fine.

Note that "trans" is not a well-defined version.

- Carsten

On Jan 11, 2009, at 1:07 AM, sergio_101 wrote:


| one line file
| two line file
`




Just to add one additional (quite useless data point).. I tried the
example file and it did seem to hang with Emacs consuming lots of CPU.
Although export to HTML worked for the file.  Not just the example
file.. my other files also got stuck at PDF export.  Then I rebooted
Emacs and tried PDF export first thing (i.e. w/o exporting to HTML
first) and it myteriously worked for all files.

Sorry I do not have more useful information, I did try debug-on-error
but it did not produce anything.. I had to cancel after waiting for
export to finish.


If you can make it hang, try setting debug-on-quit, get it to hang,  
and press C-g.


- Carsten




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to latex

2009-01-11 Thread Manish
  On Sun, Jan 11, 2009 at 2:45 PM, Carsten Dominik wrote:
  > I still cannot reproduce this, my commit is
  >
  > 5a8f775d79f4089d03968dd16ba7d073b7c9f142
  >
  > and your file exports just fine.
  >
  > Note that "trans" is not a well-defined version.
  >
  > - Carsten
  >
  > On Jan 11, 2009, at 1:07 AM, sergio_101 wrote:
  >
  >> | one line file
  >> | two line file
  >> `
  >

Just to add one additional (quite useless data point).. I tried the
example file and it did seem to hang with Emacs consuming lots of CPU.
Although export to HTML worked for the file.  Not just the example
file.. my other files also got stuck at PDF export.  Then I rebooted
Emacs and tried PDF export first thing (i.e. w/o exporting to HTML
first) and it myteriously worked for all files.

Sorry I do not have more useful information, I did try debug-on-error
but it did not produce anything.. I had to cancel after waiting for
export to finish.

This was on Org (commit: 5a8f775), WinXP SP2, Emacs 22.3.

-- 
Manish


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to latex

2009-01-11 Thread Carsten Dominik

I still cannot reproduce this, my commit is

5a8f775d79f4089d03968dd16ba7d073b7c9f142

and your file exports just fine.

Note that "trans" is not a well-defined version.

- Carsten

On Jan 11, 2009, at 1:07 AM, sergio_101 wrote:


| one line file
| two line file
`




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export to latex

2009-01-10 Thread sergio_101

okay, i am still having problems exporting to latex, so i did a few more
things and did some investigating.. hopefully this will be of some help.

platform:
___

osx 10.5
Org-mode version 6.17trans
carbon emacs

what i did:
__

- totally deleted my org-mode directory
- checked out the newest version from git
- did NOT make the file, so it would run from .el files

the results:
___

this file, a one line file exports to tex just fine..

,[ onelinefile.org ]
| one line file
`

this file, a two line file, poops out..

[ twolinefile.org ]
| one line file
| two line file
`

the error:
_

,[ error ]
| Debugger entered--Lisp error: (quit)
|   add-text-properties(6 6 (org-protected t))
|   (while (re-search-forward org-latex-entities-regexp nil t) 
(add-text-properties (match-beginning 0) (match-end 0) (quote ...)))
|   org-export-latex-preprocess()
|   (progn (require (quote org-export-latex) nil) (org-export-latex-preprocess))
|   (if latexp (progn (require ... nil) (org-export-latex-preprocess)))
|   (when latexp (require (quote org-export-latex) nil) 
(org-export-latex-preprocess))
|   (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) 
(erase-buffer) (insert string) (setq case-fold-search t) 
(org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search 
t) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) 
(point-max)) (org-export-handle-include-files) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) 
(run-hooks (quote org-export-preprocess-after-tree-selection-hook)) 
(org-export-replace-src-segments-and-examples backend) 
(org-export-protect-colon-examples) (when (plist-get parameters :footnotes) 
(org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) 
(org-export-select-backend-specific-text backend) 
(org-export-protect-quoted-subtrees) (org-export-protect-verbatim) 
(org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless 
(plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq 
target-alist (org-export-attach-captions-and-attributes backend target-alist)) 
(org-export-mark-radio-links) (org-export-concatenate-multiline-links) 
(org-export-normalize-links) (org-export-target-internal-links target-alist) 
(when (plist-get parameters :emph-multiline) 
(org-export-concatenate-multiline-emphasis)) (when 
org-export-table-remove-special-lines (org-export-remove-special-table-lines)) 
(run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when 
latexp (require ... nil) (org-export-latex-preprocess)) (when asciip 
(org-export-ascii-preprocess)) (when htmlp (org-export-html-preprocess 
parameters)) (org-export-handle-comments (plist-get parameters :comments)) 
(run-hooks (quote org-export-preprocess-final-hook)) (setq rtn (buffer-string)))
|   (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) 
(insert string) (setq case-fold-search t) (org-export-kill-licensed-text) (let 
(...) (org-mode)) (setq case-fold-search t) (run-hooks (quote 
org-export-preprocess-hook)) (untabify (point-min) (point-max)) 
(org-export-handle-include-files) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) 
(run-hooks (quote org-export-preprocess-after-tree-selection-hook)) 
(org-export-replace-src-segments-and-examples backend) 
(org-export-protect-colon-examples) (when (plist-get parameters :footnotes) 
(org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) 
(org-export-select-backend-specific-text backend) 
(org-export-protect-quoted-subtrees) (org-export-protect-verbatim) 
(org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless 
(plist-get parameters :timestamps) (org-ex

Re: [Orgmode] export to latex..

2009-01-08 Thread Manish
On Wed, Jan 7, 2009 at 11:48 PM, sergio wrote:
>> For example:  did you upgrade today?
>
> no upgrades on anything..
>
>>
>> What is your current version?
>
> current version: 6.12a
>>
>> Do you have a small example file which does already reproduce the problem?
>>
>
> here is a file called test.org that i tried to export:
>
>  test.org 
> * This is a heading
> and some text
>
> 1 this
>  that
>  the other
>
> 1. a point.
> 2. another point.
>
>
>  end file 
>
This file exports fine to PDF.

-- 
Manish
WinXP SP2, TexLive 2008, Emacs 22.3, Latest Org


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to latex..

2009-01-08 Thread sergio

For example:  did you upgrade today?


no upgrades on anything..



What is your current version?


current version: 6.12a


Do you have a small example file which does already reproduce the  
problem?




here is a file called test.org that i tried to export:

 test.org 
* This is a heading
and some text

1 this
  that
  the other

1. a point.
2. another point.


 end file 

__
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to latex..

2009-01-07 Thread Carsten Dominik

Hi Sergio,

are you explicitly trying to hide information?

For example:  did you upgrade today?
What is your current version?
Do you have a small example file which does already reproduce the  
problem?


You really don't give me anything to work on

- Carsten

On Jan 7, 2009, at 5:35 PM, sergio_101 wrote:


i have been running orgmode for awhile now, and using it to export my
files to latex for printing..

for some reason, today, it stopped working..

when i do a C-c C-e and select 'l' to export to latex, i get the  
following:



Sorting environment...
Removing duplicates... done
Applying style hooks... done

and then it just hangs..

i have tried checking *messages* for some clues, but that is all it  
says..


anyone have any ideas where i might look to fix this?

thanks!

--
___
peace,
sergio
www.village-buzz.com
photographer, journalist, visionary


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export to latex..

2009-01-07 Thread sergio_101
i have been running orgmode for awhile now, and using it to export my
files to latex for printing..

for some reason, today, it stopped working..

when i do a C-c C-e and select 'l' to export to latex, i get the following:


Sorting environment...
Removing duplicates... done
Applying style hooks... done

and then it just hangs..

i have tried checking *messages* for some clues, but that is all it says..

anyone have any ideas where i might look to fix this?

thanks!

-- 
___
peace,
sergio
www.village-buzz.com
photographer, journalist, visionary


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export to Latex error message

2008-12-10 Thread Carsten Dominik

Hi Paul,

downloading 6.14 will not be enough, you actually need to *install*  
it :-)


The error message you are getting shows that a very old version of Org  
is actually

being used.  You can find where these files are located by typing

M-x find-library RET org-export-latex RET
C-h v buffer-file-name RET


You need to make sure that the new version of the files are
on your load path before the old ones.

The manual section about installation is, I think, pretty
clear on how to achieve this.

HTH

- Carsten


On Dec 10, 2008, at 12:52 PM, [EMAIL PROTECTED] wrote:


Hi, wonder if you can help

I've never been able to get org-export-to-latex to work. Just  
downloaded v6.14

but the issue is no limited to that version. I get an error message:
org-export-latex-content: Symbol's function definition is void:
org-cleaned-string-for-export

Any ideas?

Thanks



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Export to Latex error message

2008-12-10 Thread paul . mead
Hi, wonder if you can help

I've never been able to get org-export-to-latex to work. Just downloaded v6.14
but the issue is no limited to that version. I get an error message:
org-export-latex-content: Symbol's function definition is void:
org-cleaned-string-for-export

Any ideas?

Thanks



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export to latex dumps...

2008-12-06 Thread sergio


not sure if this is a latex problem, or an org mode problem, but as of  
last night, i am having a problem exporting to latex..


i have tried it in carbon emacs and aquamacs, and when i export, it  
will go through the normal export, and then it will die at:


"loading tabify..."

and ideas?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode