Re: [O] Again problems with latex inside footnotes.
Hi Bastien, I have enough interest in using org-mode to produce latex texts to get involved. I can't do it right now cause I'm in a critical time to produce results for my thesis, but I've been delaying learning e-lisp and taking a good look on org-mode for some time. Nick Dokos above said that org-mode uses a huge regexp to parse the latex. When this pressing phase pass I'll certainly take a look on that. I played a bit (only a bit) with funcional parsers in Haskell (monadic parsers and parsers based on arrows) and, in my experience, they are much, much more easy to write and more powerful than regexp's (they can parse html! :D). Well, lisp is functional... Maybe I'll take a look at this in the near future. --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 On Wed, Jul 13, 2011 at 05:40, Bastien b...@altern.org wrote: Hi Rafael, Nick Dokos nicholas.do...@hp.com writes: Although patches have been applied to deal with a host of such problems, it is a long-standing problem that is unlikely to be completely solved - ever[fn:1]. Yes, we need to rework the way the exporters handle espace chars, especially the LaTeX one --- it's not only ugly and buggy. Don't hold your breath though, I won't be on this before 7.7. Thanks for your understanding, -- Bastien
[O] Again problems with latex inside footnotes.
Hi, sorry for bothering you again with it, but I'm having a problem with latex inside footnotes and I couldn't find the answer in the manual. When I try something like: 8--- blablabla [fn:bla] [fn:bla] this is what \cite{she} said. 8--- this gets exported as: ---8--- blablabla \footnote{ this is what \cite\{she\} said. ---8--- I believe I'm missing something very basic. I believe that if I put a #+Latex:xxx the xxx part would be exported verbatim to the latex file. But this would break the footnote. Is there a way to insert inline latex snippets? --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803
Re: [O] Again problems with latex inside footnotes.
Also, I have problems with equations even when I use \(...\) instead of $...$. This, for example: --8-- * example Example[fn:note]. [fn:note]An equation: \(\bar{a}\). ---8-- becomes this: ---8--- Example\footnote{An equation: \(\bar\{a\}\). }. ---8--- I'm not really sure, but I suspect this worked before I instaled the latest version of org-mode. Sorry for any inconvenience. -- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803
[O] Problem with latex and footnotes
Hi. I'm noticed a problem with latex equations and footnotes. I'm not sure, but I believe it started after I downloaded the newest version of org-mode. When I try to export a $...$ block that is inside a footnote, the latex file end up with \$...\$ instead of $...$. As an example, this: #+LaTeX_CLASS: article * test This is just a test [fn:test]. [fn:test] This is an equation: $x = y$. Gets exported into this (just the relevant section): \section{test} \label{sec-1} This is just a test \footnote{This is an equation: \$x = y\$. }. Is there a way around it? Thanks in advance. --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803
Re: [O] Problem with latex and footnotes
Hummm... thanks for the tip! It works now. :D --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 On Fri, Jul 8, 2011 at 15:26, Nick Dokos nicholas.do...@hp.com wrote: Rafael Calsaverini rafael.calsaver...@gmail.com wrote: Hi. I'm noticed a problem with latex equations and footnotes. I'm not sure, but I believe it started after I downloaded the newest version of org-mode. When I try to export a $...$ block that is inside a footnote, the latex file end up with \$...\$ instead of $...$. As an example, this: #+LaTeX_CLASS: article * test This is just a test [fn:test]. [fn:test] This is an equation: $x = y$. This works: --8---cut here---start-8--- #+LaTeX_CLASS: article * test This is just a test [fn:test]. [fn:test] This is an equation: \(x = y\). --8---cut here---end---8--- It is generally a good idea (and not just in org-mode) to avoid $...$ and $$...$$ for math. The recommended way is \(...\) for inline equations and \[...\] for diplayed math. Nick
Re: [O] Fwd: Exporting latex without preamble
Hi Bastien, I was planning to use this to create an automated platform for writing my PhD thesis.The plan was to use org to edit separate files corresponding to the chapters of the thesis. Those chapters would then be exported to latex and included (preferably by an automated tool) in a master file that takes care of administrative boilerplate (preambles, cover sheets, boring style configurations, etc, etc...). The idea was to separate latex boilerplate from the text itself. I must use all kinds of custom styles in latex to conform to my university norms, and I wanted to start to write the text in a way that was independent of this boilerplate and only care about it when I must compile a distribution version. I guess I'll have to try to do this differently. What I really was interested in doing is a org-thesis or org-text-production package, in the spirit of org-babel or org2blog. But I don't know much of lisp to be honest (the only functional language I'm familiar with is haskell). My original idea involved a huge makefile and some python scripts, which seems to be a sub-optimal solution. I also played a bit with using an org master file to include each chapters, but I had some problems. Anyway, if you have any kind of tip or suggestion about this, I'm really interested! :D Thanks, --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 On Tue, Jun 28, 2011 at 20:05, Bastien b...@altern.org wrote: Hi Rafael, Rafael Calsaverini rafael.calsaver...@gmail.com writes: is it possible to export an org file to latex with no preamble and no \begin{document}?? Not at the moment. Is it something you need regularily? -- Bastien
Re: [O] Fwd: Exporting latex without preamble
Thanks for the tip! If I succeed I'll post something in my blog and tell here. --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 On Wed, Jun 29, 2011 at 13:28, Bastien b...@altern.org wrote: Hi Rafael, thanks for the clear explanations! Rafael Calsaverini rafael.calsaver...@gmail.com writes: Anyway, if you have any kind of tip or suggestion about this, I'm really interested! :D Maybe you should have a look at section 11.4 Include files of the manuals: it's precisely design to tackle the problem you describe. HTH, -- Bastien
[O] Exporting latex without preamble
Hi, is it possible to export an org file to latex with no preamble and no \begin{document}?? I just needed to translate org-mode syntax to latex syntax, with no other headers and preambles around the text. Is this possible? I tried to add a clean class to my .emacs like this: ; (add-to-list 'org-export-latex-classes '(clean [NO-DEFAULT-PACKAGES] [NO-PACKAGES] [NO-EXTRA] (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) ; But when I try to export this file: * Test ** Test 1 blablabla ** Test 2 lorem ipsum blabla I get this: % Created 2011-06-28 Tue 16:13 \providecommand{\alert}[1]{\textbf{#1}} \title{bla} \author{Rafael S. Calsaverini} \date{\today} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Test} \label{sec-1} \subsection{Test 1} \label{sec-1-1} blablabla \subsection{Test 2} \label{sec-1-2} lorem ipsum blabla \end{document} Is there any option to turn the preamble off? --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803
[O] Fwd: Exporting latex without preamble
Hi, is it possible to export an org file to latex with no preamble and no \begin{document}?? I just needed to translate org-mode syntax to latex syntax, with no other headers and preambles around the text. Is this possible? I tried to add a clean class to my .emacs like this: ; (add-to-list 'org-export-latex-classes '(clean [NO-DEFAULT-PACKAGES] [NO-PACKAGES] [NO-EXTRA] (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) ; But when I try to export this file: * Test ** Test 1 blablabla ** Test 2 lorem ipsum blabla I get this: % Created 2011-06-28 Tue 16:13 \providecommand{\alert}[1]{\textbf{#1}} \title{bla} \author{Rafael S. Calsaverini} \date{\today} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Test} \label{sec-1} \subsection{Test 1} \label{sec-1-1} blablabla \subsection{Test 2} \label{sec-1-2} lorem ipsum blabla \end{document} Is there any option to turn the preamble off? --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803
[Orgmode] The \only overlay in beamer
Hi there. I'm trying to use the \only command to produce a beamer presentation but it seems that org-beamer filters out this. I've tried it in many different ways, and didn't get the desired effect. Particularly, I've tried the obviously wrong thing: #+STARTUP: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [smaller, presentation] * Foo ** Slide 1 \only1 { *** Block1 :B_block: :PROPERTIES: :BEAMER_env: block :END: - bla11 - bla12 - bla13 } \only2{ *** Block2 :B_block: :PROPERTIES: :BEAMER_env: block :END: - bla21 - bla22 - bla23 } Which obviously break-up. And I also tried what I believe would be a nice syntax for this: * Foo ** Slide 1 *** Block1:B_block: :PROPERTIES: :BEAMER_envargs: \only1 :BEAMER_env: block :END: - bla11 - bla12 - bla13 *** Block2 :B_block: :PROPERTIES: :BEAMER_envargs: \only2 :BEAMER_env: block :END: - bla21 - bla22 - bla23 Apparently the parser just removes the \only and interprets this as 1 and 2. The resulting latex is exactly the same as if the \only wasn't there. Is there a way to use the \only overlay in a clean way? Thank you very much. --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 ___ 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] Bibtex and latex export
Hi there, I'm trying to use org-mode to compose latex documents and I'm having a problem with bibtex. When I export to pdf with C-c C-e p, pdflatex runs and everything works gracefully with respect to the latex code (the output is even prettier than I used to have patience to do only with latex), but bibtex isn't called. I tried to fiddle with org-exp-bibtex, which is nice, but apparently it don't call bibtex either. I tried to edit the function that calls pdflatex to include a call to bibtex, but to be honest I know zero about lisp, so I couldn't even edit a simple list of commands. :P (I must be the only emacs user in the world that can't write or read lisp... it would be swell if I could use haskell to extend emacs instead of lisp :P). How should I go about automatically including a call to bibtex whenever I want to export my org document as a pdf? Thanks for your time, and sorry to bore you with simple questions... --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 ___ 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] Bibtex and latex export
Hi there, I'm trying to use org-mode to compose latex documents and I'm having a problem with bibtex. When I export to pdf with C-c C-e p, pdflatex runs and everything works gracefully with respect to the latex code (the output is even prettier than I used to have patience to do only with latex), but bibtex isn't called. I've tried to fiddle with org-exp-bibtex, which is nice, but apparently it don't call bibtex either. I've tried to edit the function that calls pdflatex to include a call to bibtex, but to be honest I know zero about lisp, so I couldn't even edit a simple list of commands. :P (I must be the only emacs user in the world that can't write or read lisp... it would be swell if I could use haskell to extend emacs instead of lisp :P). How should I go about automatically including a call to bibtex whenever I want to export my org document as a pdf? Thanks for your time, and sorry to bore you with simple questions... --- Rafael Calsaverini Dep. de Física Geral, Sala 336 Instituto de Física - Universidade de São Paulo rafael.calsaver...@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803 ___ 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