Running pdflatex the minimally necessary number of times for elsarticleElsarticle - number bibliography not...

When is a batch class instantiated when you schedule it?

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

What is the dot in “1.2.4."

Making a sword in the stone, in a medieval world without magic

Can infringement of a trademark be pursued for using a company's name in a sentence?

Latest web browser compatible with Windows 98

What is the difference between "shut" and "close"?

Is a lawful good "antagonist" effective?

Does Linux have system calls to access all the features of the file systems it supports?

Potentiometer like component

If Invisibility ends because the original caster casts a non-concentration spell, does Invisibility also end on other targets of the original casting?

Single word request: Harming the benefactor

Does the Bracer of Flying Daggers benefit from the Dueling fighting style?

How do anti-virus programs start at Windows boot?

Question about partial fractions with irreducible quadratic factors

Best mythical creature to use as livestock?

what does the apostrophe mean in this notation?

Is it ok to include an epilogue dedicated to colleagues who passed away in the end of the manuscript?

Make a transparent 448*448 image

What is the likely impact on flights of grounding an entire aircraft series?

Silly Sally's Movie

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

How could a female member of a species produce eggs unto death?

Coworker uses her breast-pump everywhere in the office



Running pdflatex the minimally necessary number of times for elsarticle


Elsarticle - number bibliography not workingLabels of the authors in elsarticleAuthor-number citation with elsarticlepdflatex freeze using dgroup+elsarticle combinationForce page number in front matter of elsarticleChange the label on authors in elsarticle class documentBibTex bibliography for elsarticle classSome issues in elsarticle-num bibliography style for elsarticle classIssue number with elsarticle-harv not printedElsarticle footnoting the addresses













0















Running pdflatex ONCE on



documentclass{elsarticle}%%% version 3.1 from CTAN
begin{document}
begin{frontmatter}
author[1]{Johann Sebastian Bach}
author[2]{Ludwig van Beethovencorref{cor2}}
cortext[cor2]{Corresponding author}%
address[1]{Thomaskirche, Leipzig}
address[2]{Zentralfriedhof Wien}
end{frontmatter}
end{document}


produces the following output:



output of the first run



As you see, the labels of both authors are 1, and the superscript star after Mr. Beethoven is missing. You need the second run of pdflatex to correct this issue.



However, running pdflatex ALWAYS at least twice not is not what you want: it eats up your time, especially on large papers, whereas running pdflatex once might sometimes suffice if the right .aux files are available from a prior run. I looked into the .log file and console output for hints whether a second rerun is needed but cannot find anything. My usual approach to checking whether a rerun is needed is saying something like



MESSAGE_FOR_RERUN := '(LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)|(LaTeX Warning: There were undefined references.)|(LaTeX Warning: Citation [^[:cntrl:]]* on page [0-9]* undefined on)|(Package natbib Warning: There were undefined citations.)|((mparhack) *Rerun to get them right.)'


in the beginning of a makefile and



    if (egrep $(MESSAGE_FOR_RERUN) $(LOG_MANUSCRIPT_OBJECTS)); then 
for i in $(MANUSCRIPT_FILENAMES); do $(BIBTEX) $$i ; done;
for i in $(TEX_MANUSCRIPT_SOURCES); do $(PDFLATEX) $$i ; done;
fi;


(where the variables are defined appropriately) in a rule of the makefile.



Of course, you can have latexmk or usepackage[mainaux]{rerunfilecheck} do the job, but I wonder: can you continue doing it the previous way via makefiles, and if so, which string to search for in the log files?









share



























    0















    Running pdflatex ONCE on



    documentclass{elsarticle}%%% version 3.1 from CTAN
    begin{document}
    begin{frontmatter}
    author[1]{Johann Sebastian Bach}
    author[2]{Ludwig van Beethovencorref{cor2}}
    cortext[cor2]{Corresponding author}%
    address[1]{Thomaskirche, Leipzig}
    address[2]{Zentralfriedhof Wien}
    end{frontmatter}
    end{document}


    produces the following output:



    output of the first run



    As you see, the labels of both authors are 1, and the superscript star after Mr. Beethoven is missing. You need the second run of pdflatex to correct this issue.



    However, running pdflatex ALWAYS at least twice not is not what you want: it eats up your time, especially on large papers, whereas running pdflatex once might sometimes suffice if the right .aux files are available from a prior run. I looked into the .log file and console output for hints whether a second rerun is needed but cannot find anything. My usual approach to checking whether a rerun is needed is saying something like



    MESSAGE_FOR_RERUN := '(LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)|(LaTeX Warning: There were undefined references.)|(LaTeX Warning: Citation [^[:cntrl:]]* on page [0-9]* undefined on)|(Package natbib Warning: There were undefined citations.)|((mparhack) *Rerun to get them right.)'


    in the beginning of a makefile and



        if (egrep $(MESSAGE_FOR_RERUN) $(LOG_MANUSCRIPT_OBJECTS)); then 
    for i in $(MANUSCRIPT_FILENAMES); do $(BIBTEX) $$i ; done;
    for i in $(TEX_MANUSCRIPT_SOURCES); do $(PDFLATEX) $$i ; done;
    fi;


    (where the variables are defined appropriately) in a rule of the makefile.



    Of course, you can have latexmk or usepackage[mainaux]{rerunfilecheck} do the job, but I wonder: can you continue doing it the previous way via makefiles, and if so, which string to search for in the log files?









    share

























      0












      0








      0








      Running pdflatex ONCE on



      documentclass{elsarticle}%%% version 3.1 from CTAN
      begin{document}
      begin{frontmatter}
      author[1]{Johann Sebastian Bach}
      author[2]{Ludwig van Beethovencorref{cor2}}
      cortext[cor2]{Corresponding author}%
      address[1]{Thomaskirche, Leipzig}
      address[2]{Zentralfriedhof Wien}
      end{frontmatter}
      end{document}


      produces the following output:



      output of the first run



      As you see, the labels of both authors are 1, and the superscript star after Mr. Beethoven is missing. You need the second run of pdflatex to correct this issue.



      However, running pdflatex ALWAYS at least twice not is not what you want: it eats up your time, especially on large papers, whereas running pdflatex once might sometimes suffice if the right .aux files are available from a prior run. I looked into the .log file and console output for hints whether a second rerun is needed but cannot find anything. My usual approach to checking whether a rerun is needed is saying something like



      MESSAGE_FOR_RERUN := '(LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)|(LaTeX Warning: There were undefined references.)|(LaTeX Warning: Citation [^[:cntrl:]]* on page [0-9]* undefined on)|(Package natbib Warning: There were undefined citations.)|((mparhack) *Rerun to get them right.)'


      in the beginning of a makefile and



          if (egrep $(MESSAGE_FOR_RERUN) $(LOG_MANUSCRIPT_OBJECTS)); then 
      for i in $(MANUSCRIPT_FILENAMES); do $(BIBTEX) $$i ; done;
      for i in $(TEX_MANUSCRIPT_SOURCES); do $(PDFLATEX) $$i ; done;
      fi;


      (where the variables are defined appropriately) in a rule of the makefile.



      Of course, you can have latexmk or usepackage[mainaux]{rerunfilecheck} do the job, but I wonder: can you continue doing it the previous way via makefiles, and if so, which string to search for in the log files?









      share














      Running pdflatex ONCE on



      documentclass{elsarticle}%%% version 3.1 from CTAN
      begin{document}
      begin{frontmatter}
      author[1]{Johann Sebastian Bach}
      author[2]{Ludwig van Beethovencorref{cor2}}
      cortext[cor2]{Corresponding author}%
      address[1]{Thomaskirche, Leipzig}
      address[2]{Zentralfriedhof Wien}
      end{frontmatter}
      end{document}


      produces the following output:



      output of the first run



      As you see, the labels of both authors are 1, and the superscript star after Mr. Beethoven is missing. You need the second run of pdflatex to correct this issue.



      However, running pdflatex ALWAYS at least twice not is not what you want: it eats up your time, especially on large papers, whereas running pdflatex once might sometimes suffice if the right .aux files are available from a prior run. I looked into the .log file and console output for hints whether a second rerun is needed but cannot find anything. My usual approach to checking whether a rerun is needed is saying something like



      MESSAGE_FOR_RERUN := '(LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)|(LaTeX Warning: There were undefined references.)|(LaTeX Warning: Citation [^[:cntrl:]]* on page [0-9]* undefined on)|(Package natbib Warning: There were undefined citations.)|((mparhack) *Rerun to get them right.)'


      in the beginning of a makefile and



          if (egrep $(MESSAGE_FOR_RERUN) $(LOG_MANUSCRIPT_OBJECTS)); then 
      for i in $(MANUSCRIPT_FILENAMES); do $(BIBTEX) $$i ; done;
      for i in $(TEX_MANUSCRIPT_SOURCES); do $(PDFLATEX) $$i ; done;
      fi;


      (where the variables are defined appropriately) in a rule of the makefile.



      Of course, you can have latexmk or usepackage[mainaux]{rerunfilecheck} do the job, but I wonder: can you continue doing it the previous way via makefiles, and if so, which string to search for in the log files?







      elsarticle logging





      share












      share










      share



      share










      asked 2 mins ago









      user49915user49915

      594121




      594121






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479394%2frunning-pdflatex-the-minimally-necessary-number-of-times-for-elsarticle%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479394%2frunning-pdflatex-the-minimally-necessary-number-of-times-for-elsarticle%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

          How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...