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

Reference figures not working properly #15

Open
MiguelDLM opened this issue Oct 7, 2024 · 3 comments
Open

Reference figures not working properly #15

MiguelDLM opened this issue Oct 7, 2024 · 3 comments
Assignees

Comments

@MiguelDLM
Copy link

The figures cited in the text appear like this:

Figure? and?

I supposed it was my code or because I'm working on VS Code, by I tried from RStudio with the original files from the repo and I got the same results. This is the output:

pandoc 
  to: latex
  output-file: template.tex
  template: _extensions/ramiromagno/wiley-njd/wiley-njd-template.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  toc: true
  cite-method: natbib
  wrap: preserve
  
metadata
  block-headings: true
  documentclass: WileyNJDv5
  article-type: Article Type
  author-mark: 'TAYLOR \textsc{et al.}'
  title-mark: PLEASE INSERT YOUR ARTICLE TITLE HERE
  received: Date Month Year
  revised: Date Month Year
  accepted: Date Month Year
  journal: Journal
  volume: '00'
  issue: '00'
  pages: 1--18
  year: 2023
  copy-year: 2023
  present-address: This is sample for present address text this is sample for present address text.
  abbreviations-note: 'ANA, anti-nuclear antibodies; APC, antigen-presenting cells; IRF, interferon regulatory factor.'
  colorlinks: true
  linkcolor: blue
  citecolor: blue
  filecolor: black
  urlcolor: black
  title: Please insert your article title here
  author:
    - name: Mark Taylor
      corresponding: true
      affiliations:
        - name: Institution Name 1
          department: Department Name 1
          city: State Name 1
          country: Country Name 1
      email: authorone@gmail.com
    - name: Author Two
      affiliations:
        - name: Institution Name 2
          department: Department Name 2
          city: State Name 2
          country: Country Name 2
        - name: Institution Name 3
          department: Department Name 3
          city: State Name 3
          country: Country Name 3
    - name: Author Three
      affiliations:
        - name: Institution Name 3
          department: Department Name 3
          city: State Name 3
          country: Country Name 3
  abstract: |
    This is a generic template designed for use by multiple journals,
    which includes several options for customization. Please
    refer the author guidelines and author LaTeX manuscript preparation document for the journal to which you
    are submitting in order to confirm that your manuscript will
    comply with the journal’s requirements. Please replace this
    text with your abstract. This is sample abstract text just for the template display purpose.
  keywords:
    - keyword1
    - keyword2
    - keyword3
    - keyword4
  bibliography:
    - bibliography.bib
  classoption:
    - AMA
    - Times1COL
  

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
generating bibliography
  This is BibTeX, Version 0.99d (TeX Live 2023/Debian)
  The top-level auxiliary file: template.aux
  The style file: WileyNJD-AMA.bst
  Database file #1: bibliography.bib
  Warning--I didn't find a database entry for "fig-fig1"
  Warning--I didn't find a database entry for "fig-fig2"
  (There were 2 warnings)
  
running xelatex - 2
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
running xelatex - 3
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  

Output created: template.pdf

Watching files for changes
Browse at http://localhost:6865/web/viewer.html
@MiguelDLM
Copy link
Author

solved changing:

Figure [-@fig:fig1]

for:

Figure \ref{fig-fig1}

@ramiromagno ramiromagno self-assigned this Oct 7, 2024
@ramiromagno
Copy link
Owner

Hi @MiguelDLM,

Thanks for reporting this! This is something that needs to be worked out still...

@MiguelDLM
Copy link
Author

Hi @MiguelDLM,

Thanks for reporting this! This is something that needs to be worked out still...

Thanks for the template, it is really useful but it was a little bit complicated to find the error. It would be good to include this on the documentation or in the qmd template

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