Gwen Barnes | 20 Jan 22:23 2011
Picon

how to update aux file in LyX?

Hi,

I wrote a module to use revnum.sty in LyX.  It works fine within LyX, but the output to pdf is incorrect. I tested it by exporting a tex file.  If I run pdflatex on it once, I get the output LyX gives me.  When I run pdflatex twice on the tex file, I get the correct output.  So it seems that I (revnum.sty) need LyX to run pdflatex an additionaI time to update the aux file properly before outputting the pdf.  How I can I do this? 

-Gwen

Liviu Andronic | 20 Jan 22:38 2011
Picon

Re: how to update aux file in LyX?

On Thu, Jan 20, 2011 at 10:23 PM, Gwen Barnes <gwen.barnes <at> gmail.com> wrote:
> Hi,
>
> I wrote a module to use revnum.sty in LyX.  It works fine within LyX, but
> the output to pdf is incorrect. I tested it by exporting a tex file.  If I
> run pdflatex on it once, I get the output LyX gives me.  When I run pdflatex
> twice on the tex file, I get the correct output.  So it seems that I
> (revnum.sty) need LyX to run pdflatex an additionaI time to update the aux
> file properly before outputting the pdf.  How I can I do this?
>
I'm very curious to have an answer to this, too. I've written a small
module to use with totcount package, which also requires two
successive pdflatex passes to generate the proper PDF output.

Is it possible to force LyX to compile a document a second time,
without making any modifications to the LyX file in between the two
pdflatex passes? Regards
Liviu

Jürgen Spitzmüller | 21 Jan 08:20 2011

Re: how to update aux file in LyX?

Gwen Barnes wrote:
> I wrote a module to use revnum.sty in LyX.  It works fine within LyX, but
> the output to pdf is incorrect. I tested it by exporting a tex file.  If I
> run pdflatex on it once, I get the output LyX gives me.  When I run
> pdflatex twice on the tex file, I get the correct output.  So it seems
> that I (revnum.sty) need LyX to run pdflatex an additionaI time to update
> the aux file properly before outputting the pdf.  How I can I do this?

Could you post the LaTeX log? Maybe the package outputs the "rerun" message in 
a specific way that is not yet recognized by LyX.

Jürgen

Gwen Barnes | 21 Jan 20:18 2011
Picon

Re: how to update aux file in LyX?


On Thu, Jan 20, 2011 at 11:20 PM, Jürgen Spitzmüller <spitz <at> lyx.org> wrote:
Gwen Barnes wrote:
> I wrote a module to use revnum.sty in LyX.  It works fine within LyX, but
> the output to pdf is incorrect. I tested it by exporting a tex file.  If I
> run pdflatex on it once, I get the output LyX gives me.  When I run
> pdflatex twice on the tex file, I get the correct output.  So it seems
> that I (revnum.sty) need LyX to run pdflatex an additionaI time to update
> the aux file properly before outputting the pdf.  How I can I do this?

Could you post the LaTeX log? Maybe the package outputs the "rerun" message in
a specific way that is not yet recognized by LyX.

Jürgen

I've pasted it below.  Thanks for taking a look.

-Gwen


This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) (format=pdflatex 2008.12.28)  21 JAN 2011 11:15
entering extended mode
 %&-line parsing enabled.
**BartCVfull.tex
(./BartCVfull.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.

(/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c <at> part=\count79
\c <at> section=\count80
\c <at> subsection=\count81
\c <at> subsubsection=\count82
\c <at> paragraph=\count83
\c <at> subparagraph=\count84
\c <at> figure=\count85
\c <at> table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/mathptmx.sty
Package: mathptmx 2005/04/12 PSNFSS-v9.2a Times w/ Math, improved (SPQR, WaS)
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 28.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info:    Redeclaring symbol font `letters' on input line 29.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info:    Redeclaring symbol font `symbols' on input line 30.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info:    Redeclaring symbol font `largesymbols' on input line 31.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
\symbold=\mathgroup4
\symitalic=\mathgroup5
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 34.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 34.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/ptm/bx/n on input line 34.
LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 35.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/ptm/m/it on input line 35.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/ptm/m/it on input line 35.
LaTeX Info: Redefining \hbar on input line 50.
) (/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/helvet.sty
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV <at> toks <at> =\toks14
)) (/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/courier.sty
Package: courier 2005/04/12 PSNFSS-v9.2a (WaS)
) (/usr/local/texlive/2008/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
)) (/usr/local/texlive/2008/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2006/05/05 v1.1b Input encoding file
\inpenc <at> prehook=\toks15
\inpenc <at> posthook=\toks16
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2006/05/05 v1.1b Input encoding file
)) (/usr/local/texlive/2008/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2008/12/21 v4.2 Page Geometry
(/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
) (/usr/local/texlive/2008/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)
Package ifvtex Info: VTeX not detected.
)
\Gm <at> cnth=\count87
\Gm <at> cntv=\count88
\c <at> Gm <at> tempcnt=\count89
\Gm <at> bindingoffset=\dimen103
\Gm <at> wd <at> mp=\dimen104
\Gm <at> odd <at> mp=\dimen105
\Gm <at> even <at> mp=\dimen106
\Gm <at> dimlist=\toks17
(/usr/local/texlive/2008/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg)) (/us
r/local/texlive/2008/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
\fancy <at> headwidth=\skip43
\f <at> ncyO <at> elh=\skip44
\f <at> ncyO <at> erh=\skip45
\f <at> ncyO <at> olh=\skip46
\f <at> ncyO <at> orh=\skip47
\f <at> ncyO <at> elf=\skip48
\f <at> ncyO <at> erf=\skip49
\f <at> ncyO <at> olf=\skip50
\f <at> ncyO <at> orf=\skip51
) (/usr/local/texlive/2008/texmf-dist/tex/latex/tools/array.sty
Package: array 2005/08/23 v2.4b Tabular extension package (FMi)
\col <at> sep=\dimen107
\extrarowheight=\dimen108
\NC <at> list=\toks18
\extratabsurround=\skip52
\backup <at> length=\skip53
) (/usr/local/texlive/2008/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (/usr/local/texlive/2008/texmf-dist/tex/latex/setspace/setspace.sty
Package: setspace 2000/12/01 6.7 Contributed and Supported LaTeX2e package
Package: `setspace' 6.7 <2000/12/01>
) (/Users/gwen/Library/texmf/tex/latex/revnum.sty
Package: revnum 1997/05/10 v1.0 reverse enumerate, jw
\c <at> rev <at> cnti=\count90
\c <at> rev <at> cntii=\count91
\c <at> rev <at> cntiii=\count92
\c <at> rev <at> cntiv=\count93
)
\lyxhang=\skip54
(/usr/local/texlive/2008/texmf-dist/tex/latex/hanging/hanging.sty
Package: hanging 2001/03/15 v1.2 hanging paragraphs and punctuation
\h <at> ngcommawd=\skip55
\h <at> ngfstopwd=\skip56
\h <at> ngquotewd=\skip57
\h <at> ngdquotewd=\skip58
\h <at> ngquerywd=\skip59
\h <at> ngexclwd=\skip60
\h <at> ngcolonwd=\skip61
\h <at> ngscolonwd=\skip62
)

Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is use
less on input line 58.


Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is use
less on input line 59.

(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2008/07/06 v3.8l The Babel package
(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/english.ldf
Language: english 2005/03/30 v3.3o English support from the babel system
(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2008/07/06 v3.8l Babel common definitions
\babel <at> savecnt=\count94
\U <at> D=\dimen109
)
\l <at> canadian = a dialect from \language\l <at> american
\l <at> australian = a dialect from \language\l <at> british
\l <at> newzealand = a dialect from \language\l <at> british
)) (/Users/gwen/Documents/projects/cv//BartCVfull.aux
\c <at> revi1=\count95
\c <at> revi2=\count96
\c <at> revi3=\count97
)
\openout1 = `BartCVfull.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 67.
LaTeX Font Info:    ... okay on input line 67.
LaTeX Font Info:    Try loading font information for T1+ptm on input line 67.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/t1ptm.fd
File: t1ptm.fd 2001/06/04 font definitions for T1/ptm.
)
\big <at> size=\dimen110
*geometry auto-detecting driver*
*geometry detected driver: pdftex*

Package geometry Warning: The marginal notes would fall off the page.
     Add 3.73001pt and more to the right margin.

-------------------- Geometry parameters
paper: letterpaper
landscape: --
twocolumn: --
twoside: --
asymmetric: --
h-parts: 72.26999pt, 469.75502pt, 72.26999pt
v-parts: 72.26999pt, 650.43001pt, 72.26999pt
hmarginratio: --
vmarginratio: --
lines: --
heightrounded: --
bindingoffset: 0.0pt
truedimen: --
includehead: --
includefoot: --
includemp: --
driver: pdftex
-------------------- Page layout dimensions and switches
\paperwidth  614.295pt
\paperheight 794.96999pt
\textwidth  469.75502pt
\textheight 650.43001pt
\oddsidemargin  0.0pt
\evensidemargin 0.0pt
\topmargin  -37.0pt
\headheight 12.0pt
\headsep    25.0pt
\footskip   30.0pt
\marginparwidth 65.0pt
\marginparsep   11.0pt
\columnsep  10.0pt
\skip\footins  9.0pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
-----------------------
LaTeX Font Info:    Font shape `T1/ptm/bx/n' in size <10> not available
(Font)              Font shape `T1/ptm/b/n' tried instead on input line 70.
LaTeX Font Info:    Font shape `T1/ptm/bx/sc' in size <10> not available
(Font)              Font shape `T1/ptm/b/sc' tried instead on input line 70.
LaTeX Font Info:    Font shape `T1/ptm/bx/sc' in size <20.74> not available
(Font)              Font shape `T1/ptm/b/sc' tried instead on input line 70.
LaTeX Font Info:    Try loading font information for OT1+ztmcm on input line 81
.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd
File: ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm.
)
LaTeX Font Info:    Try loading font information for OML+ztmcm on input line 81
.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/omlztmcm.fd
File: omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm.
)
LaTeX Font Info:    Try loading font information for OMS+ztmcm on input line 81
.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/omsztmcm.fd
File: omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm.
)
LaTeX Font Info:    Try loading font information for OMX+ztmcm on input line 81
.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/omxztmcm.fd
File: omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm.
)
LaTeX Font Info:    Try loading font information for OT1+ptm on input line 81.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/ot1ptm.fd
File: ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
)
LaTeX Font Info:    Font shape `OT1/ptm/bx/n' in size <10> not available
(Font)              Font shape `OT1/ptm/b/n' tried instead on input line 81.
LaTeX Font Info:    Font shape `OT1/ptm/bx/n' in size <7.4> not available
(Font)              Font shape `OT1/ptm/b/n' tried instead on input line 81.
LaTeX Font Info:    Font shape `OT1/ptm/bx/n' in size <6> not available
(Font)              Font shape `OT1/ptm/b/n' tried instead on input line 81.
LaTeX Font Info:    Try loading font information for T1+pcr on input line 86.
(/usr/local/texlive/2008/texmf-dist/tex/latex/psnfss/t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)
LaTeX Font Info:    Font shape `T1/ptm/bx/n' in size <14.4> not available
(Font)              Font shape `T1/ptm/b/n' tried instead on input line 96.
[1

{/usr/local/texlive/2008/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] [3]
[4] [5] (./BartCVfull.aux) )
Here is how much of TeX's memory you used:
 1765 strings out of 493876
 22795 string characters out of 1150567
 81411 words of memory out of 3000000
 5009 multiletter control sequences out of 10000+50000
 51348 words of font info for 55 fonts, out of 3000000 for 5000
 714 hyphenation exceptions out of 8191
 24i,11n,43p,198b,292s stack positions out of 5000i,500n,10000p,200000b,50000s
{/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips
/base/8r.enc}</usr/local/texlive/2008/texmf-dist/fonts/type1/urw/courier/ucrr8a
.pfb></usr/local/texlive/2008/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></usr
/local/texlive/2008/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/local/tex
live/2008/texmf-dist/fonts/type1/urw/times/utmri8a.pfb>
Output written on BartCVfull.pdf (5 pages, 79706 bytes).
PDF statistics:
 35 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)



Jürgen Spitzmüller | 22 Jan 09:57 2011

Re: how to update aux file in LyX?

Gwen Barnes wrote:
> > Gwen Barnes wrote:
> > > I wrote a module to use revnum.sty in LyX.  It works fine within LyX,
> > > but the output to pdf is incorrect. I tested it by exporting a tex
> > > file.  If
> > 
> > I
> > 
> > > run pdflatex on it once, I get the output LyX gives me.  When I run
> > > pdflatex twice on the tex file, I get the correct output.  So it seems
> > > that I (revnum.sty) need LyX to run pdflatex an additionaI time to
> > > update the aux file properly before outputting the pdf.  How I can I
> > > do this?
> > 
> > Could you post the LaTeX log? Maybe the package outputs the "rerun"
> > message in
> > a specific way that is not yet recognized by LyX.
> > 
> > Jürgen
> 
> I've pasted it below.  Thanks for taking a look.

Hm, there doesn't seem to be a rerun request in the log file. Could you 
provide a small example file?

Jürgen

Jürgen Spitzmüller | 23 Jan 12:37 2011

Re: how to update aux file in LyX?

Jürgen Spitzmüller wrote:
> Hm, there doesn't seem to be a rerun request in the log file. Could you 
> provide a small example file?

I've had a quick look at revnum.sty, and it does not seem to issue any rerun 
message; so it's hard for LyX to determine whether a rerun is requested.

Did you check out the etaremune package already?
http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

This seems to provide the same functionality, but seem to be better written in 
general. According to the sources, a rerun request is issued if necessary, so 
LyX should update the aux file with this package.

If you rely on revnum, I guess you will have to ask its author to implement 
proper wanings.

Jürgen

Paul A. Rubin | 23 Jan 16:23 2011
Picon

Re: how to update aux file in LyX?

Jürgen Spitzmüller <spitz <at> lyx.org> writes:
>
> I've had a quick look at revnum.sty, and it does not seem to issue any rerun
> message; so it's hard for LyX to determine whether a rerun is requested.
> 

Would it be worth including a checkbox somewhere in Document > Settings to
allow the user to specify an extra pass of latex (or pdflatex, or whatever)
should be done?  It seems undesirable to in essence preclude the use of some
LaTeX packages.

/Paul

Jürgen Spitzmüller | 23 Jan 16:44 2011

Re: how to update aux file in LyX?

Paul A. Rubin wrote:
> > I've had a quick look at revnum.sty, and it does not seem to issue any
> > rerun message; so it's hard for LyX to determine whether a rerun is
> > requested.
> >
> > 
> 
> Would it be worth including a checkbox somewhere in Document > Settings to
> allow the user to specify an extra pass of latex (or pdflatex, or whatever)
> should be done?  It seems undesirable to in essence preclude the use of
> some LaTeX packages.

This would not help very much I think. Some packages need extra bibtex runs, 
extra makeindex runs and more than one extra latex run. We do the best that we 
can, but the two packages in question here do not. And it's really not hard to 
fix it at the right end, i.e. in the packages.

Jürgen

Gwen Barnes | 24 Jan 06:27 2011
Picon

Re: how to update aux file in LyX?

I've had a quick look at revnum.sty, and it does not seem to issue any rerun
message; so it's hard for LyX to determine whether a rerun is requested.

Did you check out the etaremune package already?
http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

This seems to provide the same functionality, but seem to be better written in
general. According to the sources, a rerun request is issued if necessary, so
LyX should update the aux file with this package.

I hadn't seen etaremune, but it looks just fine, definitely better if it will work with lyx.  I have tried to incorporate it in lyx.  LyX output gives me a pdf with the numbers increasing, like normal enumerate, and like I get if I only run pdflatex once on the tex file.  When I run pdflatex from the command line twice I correctly get the reversed numbers.

This looks like the relevant line from the latex log file, telling latex it needs to rerun:

LaTeX Warning: Etaremune labels have changed.
               Rerun to get them right.

My module file looks like this:

#\DeclareLyXModule[etaremune.sty]{Etaremune}
#DescriptionBegin
#This package implements the etaremune environment which is similar
#to the enumerate environment, except that labels are decreasing
#instead of increasing. This package provides an alternative to the
#revnum package which uses a lot of counters. The style of lists
#can be controlled locally and globally. See for more information
#the pdf documentation of this package.
#DescriptionEnd
# Author: Gwen Barnes <gwen <at> barnesos.net>, 2011-01-15

Format 11

AddToPreamble
        \usepackage{etaremune}              % customizable list environments
EndPreamble

Style Etaremune
        CopyStyle               Enumerate
        LatexType               Item_Environment
        LatexName               etaremune
        # a blue label to indicate that this is not a WYSIWYG label
        # because the numbering differs in the output
        LabelFont
          Color               blue
        EndFont

End

-Gwen

Jürgen Spitzmüller | 24 Jan 10:48 2011

Re: how to update aux file in LyX?

Gwen Barnes wrote:
> LaTeX Warning: Etaremune labels have changed.
>                Rerun to get them right.

OK, this is a specific syntax we need to consider. I'll fix this for the next 
release.

Jürgen

Liviu Andronic | 22 Jan 21:41 2011
Picon

Re: how to update aux file in LyX?

On Fri, Jan 21, 2011 at 8:20 AM, Jürgen Spitzmüller <spitz <at> lyx.org> wrote:
> Could you post the LaTeX log? Maybe the package outputs the "rerun" message in
> a specific way that is not yet recognized by LyX.
>
Without intending to hijack the thread, I think my issue is very
similar to Gwen's.

I'm using a home-brewed module to the totcount package [1]. The design
of the package requires that, to get proper values, the LaTeX document
needs compiled twice, manually, in successive turns. From the
documentation:
"This macro will use the main auxiliary file to get the total number of the
A counter at the second time we run LATEX on the document.
To use a file other than the main auxiliary file we need to pass an
option to the
macro: \regtotcounter[auxfile= file ]{ counter }. This way the last value of
counter will be stored in file . This macro will also input file the second time
that LATEX runs (and every time after that) to get the right total value of the
counter. The same auxiliary file can be used for many total counters
and multiple
auxiliary files can be used within the same document."

In LyX the problem comes at the time of the second compilation. The
first pass goes fine, but LyX refuses to compile a second time the
exact same document. To do so, one needs to add a space somewhere
perform a similar minor modification so as too fool LyX into believing
that the document is significantly different. Unfortunately, this is
both cumbersome and error-prone. I'm attaching the module, LyX file
(beta 2.0 SVN), PDF outputs and logs for both passes.

Do you think LyX could handle this in a friendlier manner? Regards
Liviu

[1] http://www.ctan.org/tex-archive/macros/latex/contrib/totcount/
Attachment (totcount.module): application/octet-stream, 1641 bytes
Attachment (counters.lyx): application/octet-stream, 6010 bytes
Attachment (counters-pass1.pdf): application/pdf, 35 KiB
Attachment (counters-pass1.log): application/octet-stream, 6638 bytes
Attachment (counters-pass2.pdf): application/pdf, 22 KiB
Attachment (counters-pass2.log): application/octet-stream, 5945 bytes
Jürgen Spitzmüller | 23 Jan 11:14 2011

Re: how to update aux file in LyX?

Liviu Andronic wrote:
> Do you think LyX could handle this in a friendlier manner?

Yes. In this case, the problem is on the package's side. TotCount does not use 
proper \PackageWarning to inform about necessary reruns, so the message does 
not reach LyX.

Try the attached modified version, which does use \PackageWarning instead of 
\message. If it works, please inform the package author and ask him to fix the 
issue.

Jürgen
Attachment (totcount.sty): text/x-tex, 5854 bytes
Liviu Andronic | 23 Jan 11:24 2011
Picon

Re: how to update aux file in LyX?

On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller <spitz <at> lyx.org> wrote:
> Liviu Andronic wrote:
>> Do you think LyX could handle this in a friendlier manner?
>
> Yes. In this case, the problem is on the package's side. TotCount does not use
> proper \PackageWarning to inform about necessary reruns, so the message does
> not reach LyX.
>
> Try the attached modified version, which does use \PackageWarning instead of
> \message.
>
Very nice, thanks! Now LyX automatically detects the need for a second
re-run and immediately generates the correct PDF output.

> If it works, please inform the package author and ask him to fix the
> issue.
>
Will surely do so. Cheers
Liviu


Gmane