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

What is the definition of "Natural Selection"?

Is a lawful good "antagonist" effective?

Best mythical creature to use as livestock?

what does the apostrophe mean in this notation?

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

Unreachable code, but reachable with exception

Force user to remove USB token

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

Do f-stop and exposure time perfectly cancel?

Why do Australian milk farmers need to protest supermarkets' milk price?

How is the Swiss post e-voting system supposed to work, and how was it wrong?

Co-worker team leader wants to inject the crap software product of his friends into our development. What should I say to our common boss?

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

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

The three point beverage

What to do when during a meeting client people start to fight (even physically) with each others?

Make a transparent 448*448 image

Is all copper pipe pretty much the same?

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

Good allowance savings plan?

Format picture and text with TikZ and minipage

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

How to make readers know that my work has used a hidden constraint?

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



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 3 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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...