From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Use nomencl package with latex exporter? Date: Wed, 08 Aug 2012 12:24:06 -0400 Message-ID: <6128.1344443046@alphaville> References: <87mx286wva.fsf@ed.ac.uk> <2714.1344281746@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz93R-0000qA-5U for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 12:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz93P-0008B6-UR for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 12:24:17 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:9591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz93P-0008AL-N9 for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 12:24:15 -0400 In-Reply-To: Message from Johan Ekh of "Wed\, 08 Aug 2012 08\:40\:05 +0200." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Johan Ekh Cc: Myles English , "emacs-orgmode@gnu.org" Johan Ekh wrote: > Thanks, > can you give some hints on how to customize it, or point me to some infor= mation? >=20 C-h v org-latex-to-pdf-process should tell you everything you need: it's ju= st a list of shell commands and they are executed in sequence. All you have to do is = interpolate the makeindex command in there with the appropriate escapes. Nick > /Johan >=20 > On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos wrote: >=20 > Johan Ekh wrote: >=20=20=20=20 > > Thank you Myles, > > I'm not that comfortable with cmake but I will give your solution a= try and report My milage. > > > > / Johan > > > > Sent from my iPad > > > > On 6 aug 2012, at 14:14, Myles English wro= te: > > > > > > > > Johan Ekh writes: > > > > > >> Hi all, > > >> I use the default latex exporter in org-mode v7.8 to write docum= ents using > > >> a custom latex class which is built on "article". > > >> I would like to use the "nomencl" latex package if possible. > > > > > >> From the shell I usually run something like > > >> > > >> makeindex filename.nlo -s nomencl.ist -o filename.nls > > >> > > >> followed by latex or pdflatex, but how can I get the exporter to= do > > >> this? >=20=20=20=20 > Customize the variable org-latex-to-pdf-process appropriately. >=20=20=20=20 > Nick >=20=20=20=20 > > > I don't know the answer to your question, but when I came across = the > > > same problem, I used a makefile-like solution because I felt that= the > > > building process was becoming sufficiently complicated to warrant= using > > > a specialised tool. =C2=A0If you are comfortable with CMake alrea= dy it may be > > > worth a look. =C2=A0Have a look for "UseLatex.cmake". > > > > > > Basically you get emacs to export the .tex file from the .org fil= e: > > > > > > add_custom_command( > > > =C2=A0OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex > > > =C2=A0COMMAND emacs --batch > > > =C2=A0 =C2=A0--visit=3D${CMAKE_CURRENT_BINARY_DIR}/mypaper.org > > > =C2=A0 =C2=A0--load=3D/home/me/myfuncs.el > > > =C2=A0 =C2=A0--funcall org-export-as-latex-batch > > > =C2=A0DEPENDS orgfile > > > =C2=A0COMMENT "Exporting orgmode file to LaTeX using emacs" > > > =C2=A0) > > > > > > And then bibtex and nomenclature are asked to do their stuff, and= a pdf > > > is produced, with something like this directive: > > > > > > add_latex_document( mypaper.tex > > > =C2=A0INPUTS tex/bibliography.tex > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 texlib/mystyle.sty > > > =C2=A0BIBFILES texlib/mylibrary.bib > > > =C2=A0DEFAULT_PDF > > > =C2=A0USE_NOMENCL > > > ) > > > > > > I also get it to generate all my R plots. =C2=A0Other advantages = are that you > > > get an out-of-source build that is isolated (to some extent) in i= ts own > > > directory. =C2=A0And I think it is easier to diagnose the problem= s when > > > things go wrong, better than staring at an elisp backtrace. =C2= =A0Now if org > > > would write my CMakeList.txt for me, that would be a fine thing. > > > > > > Myles > > >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------