How do I force a hyphen instead of an en dash in page ranges in citations? #11363
-
DescriptionI am writing a book in Quarto using the 'book' class to generate a PDF output. My editor insists that I use a hyphen (-) instead of the en dash (–) to indicate the page range, both for in-text citations and in the final reference list. Currently, a citation in the format I have tried looking in my .CSL file (https://www.zotero.org/styles/taylor-and-francis-harvard-x) to see if I can change something to make it work, but I can't seem to get it right because I think Pandoc is forcing the en dash. I am using R Studio. In Tools -> Global Options -> R Markdown -> Citations, I have set 'Use BibTex for citation keys'. Thank you in advance for all the help, I am really losing my mind over this minor issue. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Without a reproducible example hard to help accurately. ---
title: "Quarto Playground"
format: html
from: markdown-smart
---
1--2 |
Beta Was this translation helpful? Give feedback.
-
Earlier today I was looking at making my rendering avoiding hyphenating so much of my text and i found this link: I don't know how if this will solve your exact issue, but maybe some of the methods mentioned there might help you. |
Beta Was this translation helpful? Give feedback.
-
You can set the
ReproBased on this repro:
|
Beta Was this translation helpful? Give feedback.
You can set the
page-range-delimiter
in your CSL file. E.g. add this after the closing of the<info>
tag:Repro
Based on this repro:
index.qmd
references.bib
: