elsevier icon indicating copy to clipboard operation
elsevier copied to clipboard

Line numbers in the abstract are not working as expected.

Open lucas-johnson opened this issue 3 years ago • 2 comments

Thank you for such a great tool! This makes my life so much easier.

There seems to be some odd behavior with line numbering in the abstract.

A multi paragraph abstract (as follows) yields line numbers for paragraph 1, but not 2:

abstract: |
  This is my abstract.
  
  And my abstract has two paragraphs.

A single paragraph abstract (as follows) yields no line numbers:

abstract: |
  This is my abstract. And my abstract has one paragraph.

I'm using the following format in the yaml header (note the lineno package):

format: 
  elsevier-pdf:
    keep-tex: true
    output-file: landsat_agb.pdf 
    include-in-header: 
      text: |
        \usepackage{graphicx}
        \usepackage{unicode-math}
        \usepackage{hyperref}
        \def\tightlist{}
        \usepackage{setspace}
        \doublespacing
        \usepackage{lineno}
        \linenumbers
    journal:
      name: A journal
      formatting: preprint
      model: 3p
      cite-style: authoryear

lucas-johnson avatar Mar 09 '23 04:03 lucas-johnson

Same problem here, @lucas-johnson . Do you solve it?

Serenade600 avatar May 11 '23 04:05 Serenade600

https://tex.stackexchange.com/questions/356189/second-part-of-abstract-is-not-numberred-lineno-with-elsarticle#:~:text=In%20order%20to%20get%20the%20correct%20line%20numbering,abstract%20is%20numbered%20as%20well%20as%20other%20sections.

Above link solves it properly.

Serenade600 avatar May 11 '23 04:05 Serenade600