TransWikia.com

How to change the numbering format for citations in text?

TeX - LaTeX Asked by Paul Rimmer on January 15, 2021

I would like to change the numbering for my citations from [X] to [1.X] throughout the text. I found a way to change [X] to [1.X] in the bibliography:

renewcommand{bibnumfmt}[1]{[1.#1]}

This changes [X] to [1.X] throughout the bibliography, but not in the body of the text. How would I change [X] to [1.X] also within the body of the text?

One Answer

I suppose you are using natbib like this:

usepackage[numbers]{natbib}

If so, just try this:

renewcommand{bibnumfmt}[1]{[1.#1]}
makeatletter
letcite@orignalcite
defcite{cite@original[1.@gobble][]}
makeatother

Explanation: @gobble eats the space between 1. and X.

Answered by domperor on January 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP