[Scons-users] Problem with LaTeX and \makeglossaries

Christian Brehm c_brehm at web.de
Wed Sep 5 12:43:43 EDT 2012


Hi Rob,

apparently, a separate symbols page as intended is only generated if the
symbol definitions reside in a separate file and are included by the
loadglsentries[symbol]{
filename} command.
So, I had to add a separate file.
The example below will generate a symbols page if makeglossaries is
executed, but no page if scons is uesed.

Here are the commands that show the behavior:
1: pdflatex main && makeglossaries main && pdflatex main
2: scons -c %% rm *.sym* main.pdf && scons

1 generates the symbol page, 2 not.

here is the *Sconstruct*:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
import os
env = Environment(ENV=os.environ)
# some definitions
filename = 'main'
pdfOutput = env.PDF(filename+'.pdf',source=filename+'.tex')
Depends( pdfOutput, ( filename+'.tex' ) )
# never delete the generated pdf, only the intermediate files
NoClean(filename+'.pdf')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

*symbols.tex:*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newglossaryentry{mel}{name={Microelectronic
Fundamentals},description={\nopostdesc},sort=d}
\newsym{dynPower}{P_{dyn}}{P}{Dynamic power consumption}{mel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


*main.tex:
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{report}

% for glossary
\newlength{\symcol}
\newlength{\symw}
\newcommand{\symtab}[1]{\setlength{\symcol}{1.3cm}\settowidth{\symw}{\ensuremath{#1}}\advance\symcol
by -\symw\hspace{\symcol}}
\newcommand{\newsym}[5]{\newglossaryentry{#1}{name=\ensuremath{#2},description={\symtab{#2}{#4}},parent={#5},sort={#3}}}
\newcommand{\newacronymf}[3]{\newglossaryentry{#1}{name={#2},description={#3},first={#2}}}

\usepackage[acronym]{glossaries}
\newglossary[symlog]{symbol}{symi}{symo}{Symbols}
\makeglossaries
\glstoctrue
%\loadglsentries[\acronymtype]{chapters/acronyms}
\loadglsentries[symbol]{symbols}


\begin{document}

Here is a symbol: \gls{dynPower}

\glossarystyle{index}
\printglossary[type=symbol]
\printglossary[type=acronym]
\printglossary[type=main]
\glossarystyle{super}

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Hope, you can recomprehend that...

Thanks a lot,
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120905/f02bf22c/attachment.htm>


More information about the Scons-users mailing list