Re: [Orgmode] Export to LaTeX bug
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
Re: [Orgmode] export to latex broken
On Fri, 20 Aug 2010 20:06:34 +0530, Puneeth puncha...@gmail.com 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
Re: [Orgmode] export to latex broken
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
On Fri, Aug 20, 2010 at 9:55 PM, Carsten Dominik carsten.domi...@gmail.com 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
On Fri, 20 Aug 2010 18:25:16 +0200, Carsten Dominik carsten.domi...@gmail.com 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: Using LaTeX \timestamp and or customising title header
Hi Mash, 'Mash mash...@toshine.net writes: I have started experimenting with publishing outlines to PDF, and have been trying to sort out basic styling, mainly because the default export looks terrible. The default LaTeX export looks like a simple LaTex file. I disabled the title header as I want my first outline to be the first thing at the top of the page. The problem is that I would like to either customise the real header i.e. not have it centred; Maybe what you're looking for is a specific LaTeX class. Org lets you define what class you want to use for your export - check the manual. or be able to use \timestamp under my first outline which would display the file timestamp. Is \timestamp a standard command? Is timestamp.sty a standard LaTeX package? If so, you can add it to `org-latex-entities'. HTH, -- Bastien ___ 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 ?
John Hendy jw.he...@gmail.com wrote: On Tue, Jul 20, 2010 at 9:55 AM, Piter_ x.pi...@gmail.com 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
Re: [Orgmode] Export of latex source to html
Hi Eric Thanks for your comments. I will look into both of them. Cheers, Rainer On Wed, Jul 7, 2010 at 1:17 PM, Eric S Fraga ucec...@ucl.ac.uk wrote: Following up on my own message, one thing to consider is that generating the figure in latex creates a PDF that takes up the whole page but the figure is only a small part of this page. In latex, if I wanted the PDF to include only the tikz figure, I would do the following: --8---cut here---start-8--- \documentclass{article} [...] \usepackage[active,tightpage]{preview} \setlength\PreviewBorder{5pt}% \begin{document} % Define block styles \begin{preview} [... the tikz commands ...] \end{preview} \end{document} --8---cut here---end---8--- It may be worthwhile providing this type of option to babel-latex? -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com ___ 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 of latex source to html
On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug r.m.k...@gmail.com wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] Hi I created the attached latex.org based on the example with pgf/tikz and it exports fine into a pdf. But export to html causes the problem, that I get only a link to the created graph. If I change :file to :file fsa.png, an image is included but it is a) very small and b) nearly completely black. I guess, it has to do with the size of the png - but how can I change it? :width and :height do not seem to have any impact. Rainer, one approach could be to allow latex to create the PDF and the convert (using the shell, say) the PDF to a PNG and include that: --8---cut here---start-8--- #+begin_src latex :file fsa.pdf :packages '(( tikz)) [...] #+end_src #+begin_src sh convert -density 300 fsa.pdf fsa.png #+end_src #+attr_html: width=50% [[file:./fsa.png]] --8---cut here---end---8--- This works. However, my babel knowledge is not up to speed so I don't know how to tell it to not output anything in the HTML document for the two babel snippets (latex and sh). If you know how, let me know! HTH, eric -- 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 of latex source to html
Following up on my own message, one thing to consider is that generating the figure in latex creates a PDF that takes up the whole page but the figure is only a small part of this page. In latex, if I wanted the PDF to include only the tikz figure, I would do the following: --8---cut here---start-8--- \documentclass{article} [...] \usepackage[active,tightpage]{preview} \setlength\PreviewBorder{5pt}% \begin{document} % Define block styles \begin{preview} [... the tikz commands ...] \end{preview} \end{document} --8---cut here---end---8--- It may be worthwhile providing this type of option to babel-latex? -- 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 ignores user-mail-address
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
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
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
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
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
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
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 without surroundings?
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 ignora...@gmx.de 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?
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 ignora...@gmx.de 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 bug: LaTeX TOC headline numbers above 100 overlap headline
Wow, Tim, thanks a lot for this excellent answer. I am glad this is in the mailing list archive now. - Carsten On Sep 25, 2009, at 12:06 PM, Tim Burt wrote: Carsten Dominik writes: On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote: When the headline count for a pdftolatex export gets to be more than 100 lines, the TOC renders with the headline number directly touching the headline text. More than 1,000, and it starts to overlap. This is a LaTeX issue, which I do not know how to fix. - Carsten It would seem that LaTeX calculates the space to allocate for the headline number based on too few initial entries. I have included a simple test case below. * Executive Summary Add the following two lines to the org file (after ensuring you have the tocloft.sty package installed and visible to LaTeX). #+LaTeX_HEADER: \usepackage{tocloft} #+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em} * Supporting Jabber The formatting for Table of Contents (and its kin) is set deep in the class definitions. The tocloft package provides user-level commands to modify those internals which the tocloft documentation describes quite well, including a figure that shows a value called 'numwidth' is the length of the box in which the number is set. This value can be different for each sectioning level (e.g. chapter, section, subsection). In the test case below, the first org level[1] is being exported as a \section{}. The box length for section can be set by the value of \cftsecnumwidth using the \setlength command, as in \setlength{\cftsecnumwidth}{3em} The second argument must have a unit of length which in this example is 'em' (the width of a capital M). This allows the width of the box to scale with font changes, but other units are certainly permissible (e.g. cm, mm, in). Good morning, Tim [1] Note: This test case was run using the default org export variables for LaTeX which means the article class was used. If another class is used (e.g. report) then the first org level should be exported as a \chapter{}. In this case, replace \cftsecnumwidth with \cftchapnumwidth. Thanks, Jeff * Headline 0 * Headline 1 * Headline 2 * Headline 3 * Headline 4 * Headline 5 * Headline 6 * Headline 7 * Headline 8 * Headline 9 * Headline 10 * Headline 11 * Headline 12 * Headline 13 * Headline 14 * Headline 15 * Headline 16 * Headline 17 * Headline 18 * Headline 19 * Headline 20 * Headline 21 * Headline 22 * Headline 23 * Headline 24 * Headline 25 * Headline 26 * Headline 27 * Headline 28 * Headline 29 * Headline 30 * Headline 31 * Headline 32 * Headline 33 * Headline 34 * Headline 35 * Headline 36 * Headline 37 * Headline 38 * Headline 39 * Headline 40 * Headline 41 * Headline 42 * Headline 43 * Headline 44 * Headline 45 * Headline 46 * Headline 47 * Headline 48 * Headline 49 * Headline 50 * Headline 51 * Headline 52 * Headline 53 * Headline 54 * Headline 55 * Headline 56 * Headline 57 * Headline 58 * Headline 59 * Headline 60 * Headline 61 * Headline 62 * Headline 63 * Headline 64 * Headline 65 * Headline 66 * Headline 67 * Headline 68 * Headline 69 * Headline 70 * Headline 71 * Headline 72 * Headline 73 * Headline 74 * Headline 75 * Headline 76 * Headline 77 * Headline 78 * Headline 79 * Headline 80 * Headline 81 * Headline 82 * Headline 83 * Headline 84 * Headline 85 * Headline 86 * Headline 87 * Headline 88 * Headline 89 * Headline 90 * Headline 91 * Headline 92 * Headline 93 * Headline 94 * Headline 95 * Headline 96 * Headline 97 * Headline 98 * Headline 99 * Headline 100 * Headline 101 * Headline 102 * Headline 103 * Headline 104 * Headline 105 * Headline 106 * Headline 107 * Headline 108 * Headline 109 * Headline 110 * Headline 111 * Headline 112 * Headline 113 * Headline 114 * Headline 115 * Headline 116 * Headline 117 * Headline 118 * Headline 119 * Headline 120 ___ 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 ___ 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 bug: LaTeX TOC headline numbers above 100 overlap headline
On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote: When the headline count for a pdftolatex export gets to be more than 100 lines, the TOC renders with the headline number directly touching the headline text. More than 1,000, and it starts to overlap. This is a LaTeX issue, which I do not know how to fix. - Carsten It would seem that LaTeX calculates the space to allocate for the headline number based on too few initial entries. I have included a simple test case below. Thanks, Jeff * Headline 0 * Headline 1 * Headline 2 * Headline 3 * Headline 4 * Headline 5 * Headline 6 * Headline 7 * Headline 8 * Headline 9 * Headline 10 * Headline 11 * Headline 12 * Headline 13 * Headline 14 * Headline 15 * Headline 16 * Headline 17 * Headline 18 * Headline 19 * Headline 20 * Headline 21 * Headline 22 * Headline 23 * Headline 24 * Headline 25 * Headline 26 * Headline 27 * Headline 28 * Headline 29 * Headline 30 * Headline 31 * Headline 32 * Headline 33 * Headline 34 * Headline 35 * Headline 36 * Headline 37 * Headline 38 * Headline 39 * Headline 40 * Headline 41 * Headline 42 * Headline 43 * Headline 44 * Headline 45 * Headline 46 * Headline 47 * Headline 48 * Headline 49 * Headline 50 * Headline 51 * Headline 52 * Headline 53 * Headline 54 * Headline 55 * Headline 56 * Headline 57 * Headline 58 * Headline 59 * Headline 60 * Headline 61 * Headline 62 * Headline 63 * Headline 64 * Headline 65 * Headline 66 * Headline 67 * Headline 68 * Headline 69 * Headline 70 * Headline 71 * Headline 72 * Headline 73 * Headline 74 * Headline 75 * Headline 76 * Headline 77 * Headline 78 * Headline 79 * Headline 80 * Headline 81 * Headline 82 * Headline 83 * Headline 84 * Headline 85 * Headline 86 * Headline 87 * Headline 88 * Headline 89 * Headline 90 * Headline 91 * Headline 92 * Headline 93 * Headline 94 * Headline 95 * Headline 96 * Headline 97 * Headline 98 * Headline 99 * Headline 100 * Headline 101 * Headline 102 * Headline 103 * Headline 104 * Headline 105 * Headline 106 * Headline 107 * Headline 108 * Headline 109 * Headline 110 * Headline 111 * Headline 112 * Headline 113 * Headline 114 * Headline 115 * Headline 116 * Headline 117 * Headline 118 * Headline 119 * Headline 120 ___ 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
Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline
Carsten Dominik writes: On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote: When the headline count for a pdftolatex export gets to be more than 100 lines, the TOC renders with the headline number directly touching the headline text. More than 1,000, and it starts to overlap. This is a LaTeX issue, which I do not know how to fix. - Carsten It would seem that LaTeX calculates the space to allocate for the headline number based on too few initial entries. I have included a simple test case below. * Executive Summary Add the following two lines to the org file (after ensuring you have the tocloft.sty package installed and visible to LaTeX). #+LaTeX_HEADER: \usepackage{tocloft} #+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em} * Supporting Jabber The formatting for Table of Contents (and its kin) is set deep in the class definitions. The tocloft package provides user-level commands to modify those internals which the tocloft documentation describes quite well, including a figure that shows a value called 'numwidth' is the length of the box in which the number is set. This value can be different for each sectioning level (e.g. chapter, section, subsection). In the test case below, the first org level[1] is being exported as a \section{}. The box length for section can be set by the value of \cftsecnumwidth using the \setlength command, as in \setlength{\cftsecnumwidth}{3em} The second argument must have a unit of length which in this example is 'em' (the width of a capital M). This allows the width of the box to scale with font changes, but other units are certainly permissible (e.g. cm, mm, in). Good morning, Tim [1] Note: This test case was run using the default org export variables for LaTeX which means the article class was used. If another class is used (e.g. report) then the first org level should be exported as a \chapter{}. In this case, replace \cftsecnumwidth with \cftchapnumwidth. Thanks, Jeff * Headline 0 * Headline 1 * Headline 2 * Headline 3 * Headline 4 * Headline 5 * Headline 6 * Headline 7 * Headline 8 * Headline 9 * Headline 10 * Headline 11 * Headline 12 * Headline 13 * Headline 14 * Headline 15 * Headline 16 * Headline 17 * Headline 18 * Headline 19 * Headline 20 * Headline 21 * Headline 22 * Headline 23 * Headline 24 * Headline 25 * Headline 26 * Headline 27 * Headline 28 * Headline 29 * Headline 30 * Headline 31 * Headline 32 * Headline 33 * Headline 34 * Headline 35 * Headline 36 * Headline 37 * Headline 38 * Headline 39 * Headline 40 * Headline 41 * Headline 42 * Headline 43 * Headline 44 * Headline 45 * Headline 46 * Headline 47 * Headline 48 * Headline 49 * Headline 50 * Headline 51 * Headline 52 * Headline 53 * Headline 54 * Headline 55 * Headline 56 * Headline 57 * Headline 58 * Headline 59 * Headline 60 * Headline 61 * Headline 62 * Headline 63 * Headline 64 * Headline 65 * Headline 66 * Headline 67 * Headline 68 * Headline 69 * Headline 70 * Headline 71 * Headline 72 * Headline 73 * Headline 74 * Headline 75 * Headline 76 * Headline 77 * Headline 78 * Headline 79 * Headline 80 * Headline 81 * Headline 82 * Headline 83 * Headline 84 * Headline 85 * Headline 86 * Headline 87 * Headline 88 * Headline 89 * Headline 90 * Headline 91 * Headline 92 * Headline 93 * Headline 94 * Headline 95 * Headline 96 * Headline 97 * Headline 98 * Headline 99 * Headline 100 * Headline 101 * Headline 102 * Headline 103 * Headline 104 * Headline 105 * Headline 106 * Headline 107 * Headline 108 * Headline 109 * Headline 110 * Headline 111 * Headline 112 * Headline 113 * Headline 114 * Headline 115 * Headline 116 * Headline 117 * Headline 118 * Headline 119 * Headline 120 ___ 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 ___ 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 (as latex) a large number of org files in a directory
Stephen Tucker brown_...@yahoo.com wrote: Hi, I am trying to export a bunch of .org files stored in a directory as latex files. I have tried two methods: (1) --- At the bash prompt (I am using OS X): bash$ emacs --batch --load=/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc --visit=file.org --funcall org-export-as-latex-batch' and I get an error: Cannot open load file: subst-ksc If I can get this to work, then I can embed this system call in a shell script and call it iteratively on a list of .org files retrieved from, say, Python or Bash (changing 'file.org' appropriately each time). Did you escape the newlines? If you cut-n-pasted from the org-export-as-latex-batch help, you fell into the trap :-) Maybe the documentation of the function could be changed to add the backslashes? The following script (I call it org-to-latex) works fine on linux: --8---cut here---start-8--- #! /bin/bash orglib=$HOME/elisp/org-mode/lisp emacs --batch \ --load=$orglib/org.elc \ --eval (setq org-export-headline-levels 2) \ --visit=$1 --funcall org-export-as-latex-batch --8---cut here---end---8--- You can add a loop in it too - or do the loop by hand: --8---cut here---start-8--- for x in *.org do org-to-latex $x done --8---cut here---end---8--- HTH, Nick ___ 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 (as latex) a large number of org files in a directory
Hi Nick, thanks for the response! Actually in the code that I had pasted, the emacs --batch call is all on one line (so no need to escape newlines there). I tried your code with both orglib=/Applications/Emacs.app/Contents/Resources/lisp/org and orglib=$HOME/elisp/org-mode/lisp but got Cannot open load file: org-macs in both cases I also added a line, --eval (load \/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\) \ to replace the --load option but same deal. I do in fact have org-macs in my 'orglib' directories so I tried loading them explicitly (with multiple --load specifications), but it still doesn't work (Still Cannot open load file pointing to some org file or subst-ksc, depending on how many or in what order org .el files are loaded). Any more ideas? Thanks...! Stephen - Original Message From: Nick Dokos nicholas.do...@hp.com To: Stephen Tucker brown_...@yahoo.com Cc: emacs-orgmode@gnu.org; nicholas.do...@hp.com Sent: Sunday, August 30, 2009 8:04:06 AM Subject: Re: [Orgmode] export (as latex) a large number of org files in a directory Stephen Tucker brown_...@yahoo.com wrote: Hi, I am trying to export a bunch of .org files stored in a directory as latex files. I have tried two methods: (1) --- At the bash prompt (I am using OS X): bash$ emacs --batch --load=/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc --visit=file.org --funcall org-export-as-latex-batch' and I get an error: Cannot open load file: subst-ksc If I can get this to work, then I can embed this system call in a shell script and call it iteratively on a list of .org files retrieved from, say, Python or Bash (changing 'file.org' appropriately each time). Did you escape the newlines? If you cut-n-pasted from the org-export-as-latex-batch help, you fell into the trap :-) Maybe the documentation of the function could be changed to add the backslashes? The following script (I call it org-to-latex) works fine on linux: --8---cut here---start-8--- #! /bin/bash orglib=$HOME/elisp/org-mode/lisp emacs --batch \ --load=$orglib/org.elc \ --eval (setq org-export-headline-levels 2) \ --visit=$1 --funcall org-export-as-latex-batch --8---cut here---end---8--- You can add a loop in it too - or do the loop by hand: --8---cut here---start-8--- for x in *.org do org-to-latex $x done --8---cut here---end---8--- HTH, Nick ___ 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 (as latex) a large number of org files in a directory
Stephen Tucker brown_...@yahoo.com wrote: Hi Nick, thanks for the response! Actually in the code that I had pasted, the emacs --batch call is all on one line (so no need to escape newlines there). I tried your code with both orglib=/Applications/Emacs.app/Contents/Resources/lisp/org and orglib=$HOME/elisp/org-mode/lisp You need the former - the latter is where I keep my org.el[c] but got Cannot open load file: org-macs in both cases I also added a line, --eval (load \/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\) \ to replace the --load option but same deal. I do in fact have org-macs in my 'orglib' directories so I tried loading them explicitly (with multiple --load specifications), but it still doesn't work (Still Cannot open load file pointing to some org file or subst-ksc, depending on how many or in what order org .el files are loaded). Any more ideas? The problem is probably that --batch implies -q, so .emacs is *not* loaded and you don't get your load-path customizations. Maybe something like this will work (the quoting gets hairy, so pay close attention to all the details): --8---cut here---start-8--- #! /bin/bash orglib=/Applications/Emacs.app/Contents/Resources/lisp/org emacs --batch \ --eval (add-to-list 'load-path \$orglib\) --load=$orglib/org.elc \ --eval (setq org-export-headline-levels 2) \ --visit=$1 --funcall org-export-as-latex-batch --8---cut here---end---8--- HTH, Nick ___ 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 (as latex) a large number of org files in a directory
Thanks yet again! That makes sense... works now!! I tried your code with both orglib=/Applications/Emacs.app/Contents/Resources/lisp/org and orglib=$HOME/elisp/org-mode/lisp You need the former - the latter is where I keep my org.el[c] (sorry, forgot to mention that I created and copied my files to the latter directory to try it out) #! /bin/bash orglib=/Applications/Emacs.app/Contents/Resources/lisp/org emacs --batch \ --eval (add-to-list 'load-path \$orglib\) \ # need a backslash here. --load=$orglib/org.elc \ --eval (setq org-export-headline-levels 2) \ --visit=$1 --funcall org-export-as-latex-batch (yes, caught that!) Thanks again very much, Nick - this had been on my mind for a while. Stephen ___ 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
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
Re: [Orgmode] export to latex
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
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..
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..
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 error message
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