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
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
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
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 %% %% This is file `totcount.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% totcount.dtx (with options: `sty') %% %% The TotCount package, version 1.0, 2009/04/14 %% %% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie) %% %% This program may be re-distributed and/or modified under the terms of the %% LaTeX Project Public License version 1.3c, or any later version. %% The latest version of this license is in %%CTAN:macros/latex/base/lppl.txt %% \def\totcfileversion{1.1} \def\totcfiledate{2009/07/09} \def\totcdocdate{9 Jul 2009} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{totcount} [\totcfiledate \space v\totcfileversion \space package for getting% the total value of LaTeX counters] %% %% Import of the \xpackage{keyval} package \cite{keyval}: \RequirePackage{keyval} %% %% Creates a new counter and registers it as a total counter. This is the %% top-level dispatch of the macro, depending on whether there is an optional %% argument or not. \def\newtotcounter{% \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux} %% %% This is the version of the |\newtotcounter| macro that uses a separate %% auxiliary file. It first creates the counter (second argument) and then %% calls the macro |\regtotcounter|. \def\newtotcounter@newaux[#1]#2{% \newcounter{#2}% \regtotcounter[#1]{#2}% } %% %% This is the version of the |\newtotcounter| macro that uses the main %% auxiliary file. It first creates the counter (argument) and then calls %% the macro |\regtotcounter|. \def\newtotcounter@mainaux#1{% \newcounter{#1}% %% Register the counter: \regtotcounter{#1}% } %% %% Registers a counter as a total counter. This is the top-level dispatch of %% the macro, depending on whether there is an optional argument or not. \def\regtotcounter{% \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux} %% %% The following is the definition of the |auxfile| key for specifying an %% alternative auxiliary file when calling the macro |\regtotcounter| (see %% \cite{keyval}). \define@key{totcounter}{auxfile}{\def\this@auxfile{#1}} %% %% This is the version of the |\regtotcounter| macro that uses a separate %% auxiliary file. The auxiliary file is passed as a first argument in the %% form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be %% registered is passed as the second argument. %% \begin{macrocode} \def\regtotcounter@newaux[#1]#2{% \setkeys{totcounter}{#1}% %% Try to load the contents of the file: \InputIfFileExists{\this@auxfile}{}{}% %% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end: \expandafter\ifx\csname \this@auxfile @open\endcsname\relax% \expandafter\gdef\csname \this@auxfile @open\endcsname{}% \expandafter\newwrite\csname \this@auxfile @stream\endcsname% \immediate\expandafter\openout% \csname \this@auxfile @stream\endcsname=\this@auxfile% \fi% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#2@totc\endcsname\relax% \newcounter{#2@totc}% \setcounter{#2@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\expandafter\write% \csname \this@auxfile @stream\endcsname{% \string\expandafter\string\ifx% \string\csname\sp c@#2@totc\string\endcsname\string\relax% \string\newcounter{#2@totc}% \string\fi% \string\setcounter{#2@totc}{\number\value{#2}}% }% }% } %% %% This is the version of the |\regtotcounter| macro that uses the main %% auxiliary file. The counter to be registered is passed as the second %% argument. \def\regtotcounter@mainaux#1{% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#1@totc\endcsname\relax% \newcounter{#1@totc}% \setcounter{#1@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\write\@mainaux{% \string\expandafter\string\ifx% \string\csname\sp c@#1@totc\string\endcsname\string\relax% \string\newcounter{\string #1@totc}% \string\fi% \string\setcounter{\string #1@totc}{\number\value{#1}}% }% }% } %% %% Prints the total value of a registered total counter that is passed as %%
Re: how to update aux file in LyX?
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller sp...@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
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
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
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
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 g...@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
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 %% %% This is file `totcount.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% totcount.dtx (with options: `sty') %% %% The TotCount package, version 1.0, 2009/04/14 %% %% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie) %% %% This program may be re-distributed and/or modified under the terms of the %% LaTeX Project Public License version 1.3c, or any later version. %% The latest version of this license is in %%CTAN:macros/latex/base/lppl.txt %% \def\totcfileversion{1.1} \def\totcfiledate{2009/07/09} \def\totcdocdate{9 Jul 2009} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{totcount} [\totcfiledate \space v\totcfileversion \space package for getting% the total value of LaTeX counters] %% %% Import of the \xpackage{keyval} package \cite{keyval}: \RequirePackage{keyval} %% %% Creates a new counter and registers it as a total counter. This is the %% top-level dispatch of the macro, depending on whether there is an optional %% argument or not. \def\newtotcounter{% \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux} %% %% This is the version of the |\newtotcounter| macro that uses a separate %% auxiliary file. It first creates the counter (second argument) and then %% calls the macro |\regtotcounter|. \def\newtotcounter@newaux[#1]#2{% \newcounter{#2}% \regtotcounter[#1]{#2}% } %% %% This is the version of the |\newtotcounter| macro that uses the main %% auxiliary file. It first creates the counter (argument) and then calls %% the macro |\regtotcounter|. \def\newtotcounter@mainaux#1{% \newcounter{#1}% %% Register the counter: \regtotcounter{#1}% } %% %% Registers a counter as a total counter. This is the top-level dispatch of %% the macro, depending on whether there is an optional argument or not. \def\regtotcounter{% \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux} %% %% The following is the definition of the |auxfile| key for specifying an %% alternative auxiliary file when calling the macro |\regtotcounter| (see %% \cite{keyval}). \define@key{totcounter}{auxfile}{\def\this@auxfile{#1}} %% %% This is the version of the |\regtotcounter| macro that uses a separate %% auxiliary file. The auxiliary file is passed as a first argument in the %% form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be %% registered is passed as the second argument. %% \begin{macrocode} \def\regtotcounter@newaux[#1]#2{% \setkeys{totcounter}{#1}% %% Try to load the contents of the file: \InputIfFileExists{\this@auxfile}{}{}% %% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end: \expandafter\ifx\csname \this@auxfile @open\endcsname\relax% \expandafter\gdef\csname \this@auxfile @open\endcsname{}% \expandafter\newwrite\csname \this@auxfile @stream\endcsname% \immediate\expandafter\openout% \csname \this@auxfile @stream\endcsname=\this@auxfile% \fi% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#2@totc\endcsname\relax% \newcounter{#2@totc}% \setcounter{#2@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\expandafter\write% \csname \this@auxfile @stream\endcsname{% \string\expandafter\string\ifx% \string\csname\sp c@#2@totc\string\endcsname\string\relax% \string\newcounter{#2@totc}% \string\fi% \string\setcounter{#2@totc}{\number\value{#2}}% }% }% } %% %% This is the version of the |\regtotcounter| macro that uses the main %% auxiliary file. The counter to be registered is passed as the second %% argument. \def\regtotcounter@mainaux#1{% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#1@totc\endcsname\relax% \newcounter{#1@totc}% \setcounter{#1@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\write\@mainaux{% \string\expandafter\string\ifx% \string\csname\sp c@#1@totc\string\endcsname\string\relax% \string\newcounter{\string #1@totc}% \string\fi% \string\setcounter{\string #1@totc}{\number\value{#1}}% }% }% } %% %% Prints the total value of a registered total counter that is passed as %%
Re: how to update aux file in LyX?
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller sp...@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
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
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
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
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 g...@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
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 %% %% This is file `totcount.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% totcount.dtx (with options: `sty') %% %% The TotCount package, version 1.0, 2009/04/14 %% %% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie) %% %% This program may be re-distributed and/or modified under the terms of the %% LaTeX Project Public License version 1.3c, or any later version. %% The latest version of this license is in %%CTAN:macros/latex/base/lppl.txt %% \def\totcfileversion{1.1} \def\totcfiledate{2009/07/09} \def\totcdocdate{9 Jul 2009} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{totcount} [\totcfiledate \space v\totcfileversion \space package for getting% the total value of LaTeX counters] %% %% Import of the \xpackage{keyval} package \cite{keyval}: \RequirePackage{keyval} %% %% Creates a new counter and registers it as a total counter. This is the %% top-level dispatch of the macro, depending on whether there is an optional %% argument or not. \def\newtotcounter{% \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux} %% %% This is the version of the |\newtotcounter| macro that uses a separate %% auxiliary file. It first creates the counter (second argument) and then %% calls the macro |\regtotcounter|. \def\newtotcounter@newaux[#1]#2{% \newcounter{#2}% \regtotcounter[#1]{#2}% } %% %% This is the version of the |\newtotcounter| macro that uses the main %% auxiliary file. It first creates the counter (argument) and then calls %% the macro |\regtotcounter|. \def\newtotcounter@mainaux#1{% \newcounter{#1}% %% Register the counter: \regtotcounter{#1}% } %% %% Registers a counter as a total counter. This is the top-level dispatch of %% the macro, depending on whether there is an optional argument or not. \def\regtotcounter{% \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux} %% %% The following is the definition of the |auxfile| key for specifying an %% alternative auxiliary file when calling the macro |\regtotcounter| (see %% \cite{keyval}). \define@key{totcounter}{auxfile}{\def\this@auxfile{#1}} %% %% This is the version of the |\regtotcounter| macro that uses a separate %% auxiliary file. The auxiliary file is passed as a first argument in the %% form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be %% registered is passed as the second argument. %% \begin{macrocode} \def\regtotcounter@newaux[#1]#2{% \setkeys{totcounter}{#1}% %% Try to load the contents of the file: \InputIfFileExists{\this@auxfile}{}{}% %% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end: \expandafter\ifx\csname \this@auxfile @open\endcsname\relax% \expandafter\gdef\csname \this@auxfile @open\endcsname{}% \expandafter\newwrite\csname \this@auxfile @stream\endcsname% \immediate\expandafter\openout% \csname \this@auxfile @stream\endcsname=\this@auxfile% \fi% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#2@totc\endcsname\relax% \newcounter{#2@totc}% \setcounter{#2@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\expandafter\write% \csname \this@auxfile @stream\endcsname{% \string\expandafter\string\ifx% \string\csname\sp c@#2@totc\string\endcsname\string\relax% \string\newcounter{#2@totc}% \string\fi% \string\setcounter{#2@totc}{\number\value{#2}}% }% }% } %% %% This is the version of the |\regtotcounter| macro that uses the main %% auxiliary file. The counter to be registered is passed as the second %% argument. \def\regtotcounter@mainaux#1{% %% Create a new counter holding the total number of the actual counter: \expandafter\ifx\csname c@#1@totc\endcsname\relax% \newcounter{#1@totc}% \setcounter{#1@totc}{-1}% \fi% %% At the end of the document write code in the auxiliary file to update the %% total counter with the value of the actual counter: \AtEndDocument{% \def\sp{ }% \immediate\write\@mainaux{% \string\expandafter\string\ifx% \string\csname\sp c@#1@totc\string\endcsname\string\relax% \string\newcounter{\string #1@totc}% \string\fi% \string\setcounter{\string #1@totc}{\number\value{#1}}% }% }% } %% %% Prints the total value of a registered total counter that is passed as %%
Re: how to update aux file in LyX?
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüllerwrote: > 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
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
Re: how to update aux file in LyX?
Jürgen Spitzmüller 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
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
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, 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
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
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
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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 11:20 PM, Jürgen Spitzmüller sp...@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@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@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@toks@=\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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 11:20 PM, Jürgen Spitzmüller sp...@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@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@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@toks@=\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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 11:20 PM, Jürgen Spitzmüllerwrote: > 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 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@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@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@toks@=\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
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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 10:23 PM, Gwen Barnes gwen.bar...@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
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
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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 10:23 PM, Gwen Barnes gwen.bar...@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
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
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
Re: how to update aux file in LyX?
On Thu, Jan 20, 2011 at 10:23 PM, Gwen Barneswrote: > 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
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