Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line numbers in the abstract are not working as expected. #16

Open
lucas-johnson opened this issue Mar 9, 2023 · 2 comments
Open

Line numbers in the abstract are not working as expected. #16

lucas-johnson opened this issue Mar 9, 2023 · 2 comments

Comments

@lucas-johnson
Copy link

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
@Serenade600
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants