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

Missing LaTeX rerun prevent from adding backlink to biblatex references #5969

Closed
cderv opened this issue Jun 19, 2023 Discussed in #5895 · 1 comment · Fixed by #5970
Closed

Missing LaTeX rerun prevent from adding backlink to biblatex references #5969

cderv opened this issue Jun 19, 2023 Discussed in #5895 · 1 comment · Fixed by #5970
Assignees
Labels
latex LaTeX engines related libraries and technologies
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Jun 19, 2023

Discussed in #5895

Originally posted by pipme June 12, 2023

Description

This question is related to #290 . backref=true seems not working for generating backlinks in the output pdf. A minimal reproducible example is below:

index.qmd file:

---
title: "Start Blogging with Quarto"
date: "2023-06-10"
bibliography: [local.bib]
format:
  html: default
  pdf:
    cite-method: biblatex
    biblatexoptions:
      - "backend=biber"
      - "backref=true"
    keep-tex: true
---

For testing backref. [@navarro2022]

With a local.bib file:

@online{navarro2022,
  author = {Navarro, Danielle},
  title = {Porting a Distill Blog to Quarto},
  date = {2022-04-20},
  url = {https://blog.djnavarro.net/posts/2022-04-20_porting-to-quarto},
  langid = {en}
}

The command I used is quarto preview index.qmd --to pdf.


Apart from the above question for generating backlinks in pdf, can we do the same thing for HTML? i.e., adding back links in the reference list to go back to some specific locations of the HTML where the article got cited. It would be something like the footnote backlink I guess, which is a nice feature.

Thanks!

Additional information

Quarto version: 1.3.361
MacOS: 13.4 (22F66)
Xelatex:

XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023)
kpathsea version 6.3.5
Copyright 2023 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 72.1; using 72.1
Compiled with zlib version 1.2.13; using 1.2.13
Compiled with FreeType2 version 2.13.0; using 2.13.0
Compiled with Graphite2 version 1.3.14; using 1.3.14
Compiled with HarfBuzz version 7.0.1; using 7.0.1
Compiled with libpng version 1.6.39; using 1.6.39
Compiled with pplib version v2.05 less toxic i hope
Using Mac OS X Core Text and Cocoa frameworks

biber version: 2.19

Terminal output log:

❯ quarto preview index.qmd --to pdf
pandoc 
  to: latex
  output-file: index.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  cite-method: biblatex
  
metadata
  documentclass: scrartcl
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  title: Start Blogging with Quarto
  date: '2023-06-10'
  bibliography:
    - local.bib
  biblatexoptions:
    - backend=biber
    - backref=true
  
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
generating bibliography
  INFO - This is Biber 2.19
  INFO - Logfile is 'index.blg'
  INFO - Reading 'index.bcf'
  INFO - Found 1 citekeys in bib section 0
  INFO - Processing section 0
  INFO - Looking for bibtex file 'local.bib' for section 0
  INFO - LaTeX decoding ...
  INFO - Found BibTeX data source 'local.bib'
  INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
  INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
  INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
  INFO - No sort tailoring available for locale 'en-US'
  INFO - Writing 'index.bbl' with encoding 'UTF-8'
  INFO - Output to index.bbl
  
running xelatex - 2
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  

Output created: index.pdf

Watching files for changes
Browse at http://localhost:3243/web/viewer.html
@cderv cderv added the latex LaTeX engines related libraries and technologies label Jun 19, 2023
@cderv cderv added this to the v1.4 milestone Jun 19, 2023
@cderv cderv self-assigned this Jun 19, 2023
@cderv
Copy link
Collaborator Author

cderv commented Jun 19, 2023

I think we just need to adapt the regex. The log file has this

Package biblatex Warning: Please rerun LaTeX.
(biblatex)                Page breaks have changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
latex LaTeX engines related libraries and technologies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant