* Re: Re: customising org-latex-to-pdf-process for bibtex
@ 2011-03-01 17:26 Thomas S. Dye
2011-03-01 18:45 ` Nick Dokos
2011-03-01 18:58 ` Carsten Dominik
0 siblings, 2 replies; 6+ messages in thread
From: Thomas S. Dye @ 2011-03-01 17:26 UTC (permalink / raw)
To: carsten.dominik; +Cc: Org-mode mailing list
[-- Attachment #1.1: Type: text/plain, Size: 523 bytes --]
Aloha Carsten,
Does Org-mode use the wasysym package for its integral symbols? If
not, potential clashes with the amsmath package could be avoided by
loading it with the nointegrals option: \loadpackage[nointegrals]
{wasysym}. This is a fairly standard way to load wasysym (which I
should have recalled for Suvayu's recent problem, thanks Eric for
remembering).
All the best,
Tom
> Hi Eric, Thomas,
>
> is there a problem in the default setup of LaTeX export that needs
> to be
> addressed?
>
> - Carsten
[-- Attachment #1.2: Type: text/html, Size: 992 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 17:26 Re: customising org-latex-to-pdf-process for bibtex Thomas S. Dye @ 2011-03-01 18:45 ` Nick Dokos 2011-03-01 18:58 ` Carsten Dominik 1 sibling, 0 replies; 6+ messages in thread From: Nick Dokos @ 2011-03-01 18:45 UTC (permalink / raw) To: Thomas S. Dye; +Cc: nicholas.dokos, Org-mode mailing list, carsten.dominik Thomas S. Dye <tsd@tsdye.com> wrote: > > Does Org-mode use the wasysym package for its integral symbols? If > not, potential clashes with the amsmath package could be avoided by > loading it with the nointegrals option: \loadpackage > [nointegrals]{wasysym}. This is a fairly standard way to load wasysym > (which I should have recalled for Suvayu's recent problem, thanks Eric > for remembering). > That's very nice - thanks! I believe wasysym was introduced for its misc symbols, not the integrals - if one needs integrals, then presumably amsmath is the way to go, so [nointegrals] looks indeed like the right way to go. Nick ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 17:26 Re: customising org-latex-to-pdf-process for bibtex Thomas S. Dye 2011-03-01 18:45 ` Nick Dokos @ 2011-03-01 18:58 ` Carsten Dominik 2011-03-02 8:13 ` Ulf Stegemann 1 sibling, 1 reply; 6+ messages in thread From: Carsten Dominik @ 2011-03-01 18:58 UTC (permalink / raw) To: Thomas S. Dye; +Cc: Ulf Stegemann, Org-mode mailing list On 1.3.2011, at 18:26, Thomas S. Dye wrote: > Aloha Carsten, > > Does Org-mode use the wasysym package for its integral symbols? If not, potential clashes with the amsmath package could be avoided by loading it with the nointegrals option: \loadpackage[nointegrals]{wasysym}. This is a fairly standard way to load wasysym (which I should have recalled for Suvayu's recent problem, thanks Eric for remembering). Sounds good to me, but this is a question to Ulf Stegemann who implemented many special characters in Org and who likely has an opinion on this. - Carsten ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 18:58 ` Carsten Dominik @ 2011-03-02 8:13 ` Ulf Stegemann 0 siblings, 0 replies; 6+ messages in thread From: Ulf Stegemann @ 2011-03-02 8:13 UTC (permalink / raw) To: emacs-orgmode Carsten Dominik <carsten.dominik@gmail.com> wrote: > On 1.3.2011, at 18:26, Thomas S. Dye wrote: > >> Does Org-mode use the wasysym package for its integral symbols? If >> not, potential clashes with the amsmath package could be avoided by >> loading it with the nointegrals option: >> \loadpackage[nointegrals]{wasysym}. This is a fairly standard way to >> load wasysym (which I should have recalled for Suvayu's recent >> problem, thanks Eric for remembering). > > Sounds good to me, but this is a question to Ulf Stegemann who > implemented many special characters in Org and who likely has an > opinion on this. AFAIR, wasysym was introduced because of the smileys it provides. As none of wasysym's integrals symbols is used by org-entities it's okay to load the package with the `nointegrals' option. Ulf ^ permalink raw reply [flat|nested] 6+ messages in thread
* customising org-latex-to-pdf-process for bibtex @ 2011-02-25 23:30 suvayu ali [not found] ` <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> 0 siblings, 1 reply; 6+ messages in thread From: suvayu ali @ 2011-02-25 23:30 UTC (permalink / raw) To: org-mode mailing list Hi everyone, I am trying to use bibtex with pdf export for my thesis. So I tried customising =org-latex-to-pdf-process= so that bibtex is run before pdflatex. So from the customise buffer I set it to something like this: pdflatex -interaction nonstopmode -output-directory %o %f bibtex %b pdflatex -interaction nonstopmode -output-directory %o %f pdflatex -interaction nonstopmode -output-directory %o %f I also tried these, pdflatex -interaction nonstopmode -output-directory %o %b bibtex %b pdflatex -interaction nonstopmode -output-directory %o %b pdflatex -interaction nonstopmode -output-directory %o %b But none of these run bibtex properly. For now I am exporting to latex everytime I change the bibliography and run bibtex from the terminal. For subsequent pdf exports the default values then give me a proper pdf with all the citations displayed correctly. Any thoughts on what I am doing wrong? -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com>]
* Re: customising org-latex-to-pdf-process for bibtex [not found] ` <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> @ 2011-02-26 2:10 ` Suvayu Ali 2011-02-28 16:06 ` Eric S Fraga 0 siblings, 1 reply; 6+ messages in thread From: Suvayu Ali @ 2011-02-26 2:10 UTC (permalink / raw) To: Thomas S. Dye; +Cc: Org-mode mailing list Hey Thomas, Thanks for your response. I have outlined what I tried and found below. On Fri, 25 Feb 2011 14:08:31 -1000 "Thomas S. Dye" <tsd@tsdye.com> wrote: > Aloha Suvayu, > > I had what sounds like a similar problem. You don't say why bibtex > fails, but in my case it wasn't able to find the .aux file. When I > do this: > > (setq org-export-pdf-remove-logfiles nil) > > then I'm able to run bibtex without problems. > I tried that after your post, didn't seem to make a difference. I don't know how to find how bibtex fails. All I see are these lines in the "*Org PDF LaTeX Output*" buffer: > No file msthesis.bbl. > [5] (/home/jallad/org/masters-thesis//msthesis.aux) > > LaTeX Warning: There were undefined references. Does that say anything to you? How do I capture the output from bibtex? I presumed it is being overwritten by subsequent pdflatex runs. So I removed the later pdflatex runs from the variable and that gives me this output in the "*Org PDF LaTeX Output*" buffer. > bibtex: Not writing to /home/user/org/masters-thesis/msthesis.blg > (openout_any = p). I couldn't open file name > `/home/user/org/masters-thesis/msthesis.blg' However with the same tex file, after I run "bibtex msthesis" from the terminal everything is fine! I even tried specifying the %b.aux in the org-latex-to-pdf-process variable with no luck. > I haven't tested your org-latex-to-pdf-process setups, so can't say > whether or not there is a problem with them. I use the TeXLive distributed by CTAN in isos. I setup my path so it finds the right binaries whenever I'm working with latex. I am sure my setup is fine as things are as expected when run from the teminal. -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: customising org-latex-to-pdf-process for bibtex 2011-02-26 2:10 ` Suvayu Ali @ 2011-02-28 16:06 ` Eric S Fraga 2011-02-28 20:45 ` Suvayu Ali 0 siblings, 1 reply; 6+ messages in thread From: Eric S Fraga @ 2011-02-28 16:06 UTC (permalink / raw) To: Suvayu Ali; +Cc: Org-mode mailing list [-- Attachment #1: Type: text/plain, Size: 674 bytes --] Suvayu Ali <fatkasuvayu+linux@gmail.com> writes: [...] > > Does that say anything to you? How do I capture the output from bibtex? > I presumed it is being overwritten by subsequent pdflatex runs. So I > removed the later pdflatex runs from the variable and that gives me > this output in the "*Org PDF LaTeX Output*" buffer. [...] You could try creating a shell script (such as attached) which invokes both pdflatex and bibtex and tell org to use that command for exporting to pdf instead. Then all the output should come out to the screen. I've tried this and all the output (3 pdflatex and 1 bibtex invocations) comes out into the =*Org PDF Latex Output*= buffer. [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: org 2 pdf shell scripts --] [-- Type: text/x-sh, Size: 331 bytes --] #!/bin/sh -f # first argument should be base latex file name F=$1 echo 'Using ' $F echo '--------------------------------- running pdflatex first' pdflatex $F echo '--------------------------------- running bibtex next' bibtex $F echo '--------------------------------- running pdflatex again (and again)' pdflatex $F pdflatex $F [-- Attachment #3: Type: text/plain, Size: 126 bytes --] -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.529.gb23d.dirty) [-- Attachment #4: Type: text/plain, Size: 201 bytes --] _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: customising org-latex-to-pdf-process for bibtex 2011-02-28 16:06 ` Eric S Fraga @ 2011-02-28 20:45 ` Suvayu Ali 2011-03-01 4:31 ` Thomas S. Dye 0 siblings, 1 reply; 6+ messages in thread From: Suvayu Ali @ 2011-02-28 20:45 UTC (permalink / raw) To: Eric S Fraga; +Cc: Org-mode mailing list Hi Eric, On Mon, 28 Feb 2011 16:06:06 +0000 Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > You could try creating a shell script (such as attached) which invokes > both pdflatex and bibtex and tell org to use that command for > exporting to pdf instead. Then all the output should come out to the > screen. > > I've tried this and all the output (3 pdflatex and 1 bibtex > invocations) comes out into the =*Org PDF Latex Output*= buffer. > Thank you for this nice idea. I tried it, but every time I (without the -interaction nonstopmode option) the pdflatex process stops at this: > ! LaTeX Error: Command \iint already defined. > Or name \end... illegal, see p.192 of the manual. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help. > ... > > l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} > > ? > ! Emergency stop. > ... > > l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} > > ! ==> Fatal error occurred, no output PDF file produced! > Transcript written on msthesis.log. The amsmath package is loaded before this. In my preamble in the org file I have the following LaTeX options: > #+LaTeX_HEADER: \usepackage{cancel} > #+LaTeX_HEADER: \usepackage{amsmath} > #+LaTeX_HEADER: \usepackage{mathtools} > #+LaTeX_HEADER: \numberwithin{equation}{section} > #+LaTeX_CLASS_OPTIONS: [colorlinks] > # #+LaTeX_HEADER: \definecolor{myblue}{rgb}{0.235,0.263,0.867} > # #+LaTeX_HEADER: \definecolor{mygreen}{rgb}{0.012,0.467,0.059} In the tex file this exports to: > % Created 2011-02-28 Mon 12:34 > \documentclass[colorlinks]{article} > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{fixltx2e} > \usepackage{graphicx} > \usepackage{longtable} > \usepackage{float} > \usepackage{wrapfig} > \usepackage{soul} > \usepackage{textcomp} > \usepackage{marvosym} > \usepackage{wasysym} > \usepackage{latexsym} > \usepackage{amssymb} > \usepackage{hyperref} > \tolerance=1000 > \usepackage{cancel} > \usepackage{amsmath} > \usepackage{mathtools} > \numberwithin{equation}{section} > \providecommand{\alert}[1]{\textbf{#1}} At first I thought its a problem with the mathtools package, but removing it doesn't help either. Is this a problem with my Latex installation? I tried both my distribution provided texlive-2007 and texlive-2010 from the CTAN archives with the same result. If its a problem with my texlive installation, do you have any ideas where I can seek help? I'm rather pressed for time. Thanks a lot for being so patient. :) -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: customising org-latex-to-pdf-process for bibtex 2011-02-28 20:45 ` Suvayu Ali @ 2011-03-01 4:31 ` Thomas S. Dye 2011-03-01 8:52 ` Eric S Fraga 0 siblings, 1 reply; 6+ messages in thread From: Thomas S. Dye @ 2011-03-01 4:31 UTC (permalink / raw) To: Suvayu Ali; +Cc: Org-mode mailing list Aloha Suvayu, I haven't looked into this in depth, but I think your problem might come from loading amssymb and amsmath. LaTeX is complaining that something is already defined; the AMS packages are a prime suspect here. Perhaps you could inhibit amssymb? All the best, Tom On Feb 28, 2011, at 10:45 AM, Suvayu Ali wrote: > Hi Eric, > > On Mon, 28 Feb 2011 16:06:06 +0000 > Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > >> You could try creating a shell script (such as attached) which >> invokes >> both pdflatex and bibtex and tell org to use that command for >> exporting to pdf instead. Then all the output should come out to the >> screen. >> >> I've tried this and all the output (3 pdflatex and 1 bibtex >> invocations) comes out into the =*Org PDF Latex Output*= buffer. >> > > Thank you for this nice idea. I tried it, but every time I (without > the > -interaction nonstopmode option) the pdflatex process stops at this: > >> ! LaTeX Error: Command \iint already defined. >> Or name \end... illegal, see p.192 of the manual. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H <return> for immediate help. >> ... >> >> l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} >> >> ? >> ! Emergency stop. >> ... >> >> l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} >> >> ! ==> Fatal error occurred, no output PDF file produced! >> Transcript written on msthesis.log. > > The amsmath package is loaded before this. > > In my preamble in the org file I have the following LaTeX options: > >> #+LaTeX_HEADER: \usepackage{cancel} >> #+LaTeX_HEADER: \usepackage{amsmath} >> #+LaTeX_HEADER: \usepackage{mathtools} >> #+LaTeX_HEADER: \numberwithin{equation}{section} >> #+LaTeX_CLASS_OPTIONS: [colorlinks] >> # #+LaTeX_HEADER: \definecolor{myblue}{rgb}{0.235,0.263,0.867} >> # #+LaTeX_HEADER: \definecolor{mygreen}{rgb}{0.012,0.467,0.059} > > In the tex file this exports to: > >> % Created 2011-02-28 Mon 12:34 >> \documentclass[colorlinks]{article} >> \usepackage[utf8]{inputenc} >> \usepackage[T1]{fontenc} >> \usepackage{fixltx2e} >> \usepackage{graphicx} >> \usepackage{longtable} >> \usepackage{float} >> \usepackage{wrapfig} >> \usepackage{soul} >> \usepackage{textcomp} >> \usepackage{marvosym} >> \usepackage{wasysym} >> \usepackage{latexsym} >> \usepackage{amssymb} >> \usepackage{hyperref} >> \tolerance=1000 >> \usepackage{cancel} >> \usepackage{amsmath} >> \usepackage{mathtools} >> \numberwithin{equation}{section} >> \providecommand{\alert}[1]{\textbf{#1}} > > At first I thought its a problem with the mathtools package, but > removing it doesn't help either. > > Is this a problem with my Latex installation? I tried both my > distribution provided texlive-2007 and texlive-2010 from the CTAN > archives with the same result. If its a problem with my texlive > installation, do you have any ideas where I can seek help? I'm rather > pressed for time. > > Thanks a lot for being so patient. :) > > -- > Suvayu > > Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 4:31 ` Thomas S. Dye @ 2011-03-01 8:52 ` Eric S Fraga 2011-03-01 12:33 ` Carsten Dominik 0 siblings, 1 reply; 6+ messages in thread From: Eric S Fraga @ 2011-03-01 8:52 UTC (permalink / raw) To: Thomas S. Dye; +Cc: Org-mode mailing list "Thomas S. Dye" <tsd@tsdye.com> writes: > Aloha Suvayu, > > I haven't looked into this in depth, but I think your problem might > come from loading amssymb and amsmath. LaTeX is complaining that > something is already defined; the AMS packages are a prime suspect > here. Perhaps you could inhibit amssymb? > > All the best, > Tom Suvayu, I think this is indeed the problem. I had this problem a month or so ago (search the mailing list!). My solution is to add this to my .emacs: --8<---------------cut here---------------start------------->8--- ;; to fix problems with amsmath conflicting with wasysym: ;; ;; From: Lawrence Mitchell <wence@gmx.li> ;; Subject: [Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist? ;; To: emacs-orgmode@gnu.org ;; Date: Wed, 26 Jan 2011 16:01:52 +0000 (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t)) (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist) "integrals") --8<---------------cut here---------------end--------------->8--- -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.555.gfcf66) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 8:52 ` Eric S Fraga @ 2011-03-01 12:33 ` Carsten Dominik 2011-03-01 12:49 ` Eric S Fraga 0 siblings, 1 reply; 6+ messages in thread From: Carsten Dominik @ 2011-03-01 12:33 UTC (permalink / raw) To: Eric S Fraga; +Cc: Org-mode mailing list Hi Eric, Thomas, is there a problem in the default setup of LaTeX export that needs to be addressed? - Carsten On Mar 1, 2011, at 9:52 AM, Eric S Fraga wrote: > "Thomas S. Dye" <tsd@tsdye.com> writes: > >> Aloha Suvayu, >> >> I haven't looked into this in depth, but I think your problem might >> come from loading amssymb and amsmath. LaTeX is complaining that >> something is already defined; the AMS packages are a prime suspect >> here. Perhaps you could inhibit amssymb? >> >> All the best, >> Tom > > Suvayu, > > I think this is indeed the problem. I had this problem a month or so > ago (search the mailing list!). My solution is to add this to my > .emacs: > > --8<---------------cut here---------------start------------->8--- > ;; to fix problems with amsmath conflicting with wasysym: > ;; > ;; From: Lawrence Mitchell <wence@gmx.li> > ;; Subject: [Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist? > ;; To: emacs-orgmode@gnu.org > ;; Date: Wed, 26 Jan 2011 16:01:52 +0000 > (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t)) > (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist) "integrals") > --8<---------------cut here---------------end--------------->8--- > > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 > : using Org-mode version 7.4 (release_7.4.555.gfcf66) > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: customising org-latex-to-pdf-process for bibtex 2011-03-01 12:33 ` Carsten Dominik @ 2011-03-01 12:49 ` Eric S Fraga 0 siblings, 0 replies; 6+ messages in thread From: Eric S Fraga @ 2011-03-01 12:49 UTC (permalink / raw) To: Carsten Dominik; +Cc: Org-mode mailing list Carsten Dominik <carsten.dominik@gmail.com> writes: > Hi Eric, Thomas, > > is there a problem in the default setup of LaTeX export that needs to be addressed? > > - Carsten Not as such in the default. The issue arises when one wants to extend the defaults to include the amsmath package. This conflicts with the wasysym package included by default by org. Both packages define the =\iint= symbol and latex doesn't allow for such clashes nicely. The suggested fix is to use this magic (to me) code suggested by Lawrence Mitchell earlier this year: --8<---------------cut here---------------start------------->8--- ;; to fix problems with amsmath conflicting with wasysym: ;; ;; From: Lawrence Mitchell <wence@gmx.li> ;; Subject: [Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist? ;; To: emacs-orgmode@gnu.org ;; Date: Wed, 26 Jan 2011 16:01:52 +0000 (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t)) (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist) "integrals") --8<---------------cut here---------------end--------------->8--- modifying, I guess, what is actually loaded from wasysym. I've not delved more into this but Lawrence may be able to help here? Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.562.gc895) ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-02 8:13 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-01 17:26 Re: customising org-latex-to-pdf-process for bibtex Thomas S. Dye 2011-03-01 18:45 ` Nick Dokos 2011-03-01 18:58 ` Carsten Dominik 2011-03-02 8:13 ` Ulf Stegemann -- strict thread matches above, loose matches on Subject: below -- 2011-02-25 23:30 suvayu ali [not found] ` <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> 2011-02-26 2:10 ` Suvayu Ali 2011-02-28 16:06 ` Eric S Fraga 2011-02-28 20:45 ` Suvayu Ali 2011-03-01 4:31 ` Thomas S. Dye 2011-03-01 8:52 ` Eric S Fraga 2011-03-01 12:33 ` Carsten Dominik 2011-03-01 12:49 ` Eric S Fraga
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).