1. The first trick with references almost never works since there may be several \cite to the same reference. Is there a way to take that into account?

• True, haven’t thought of that. Thanks for pointing it out. I wonder if there is a workaround.

• q

check this out:

\usepackage{totcount}
\newtotcounter{citenum}
\renewcommand{\@biblabel}[1]{\stepcounter{citenum}#1}
• Awesome, thanks!

Here is a minimum working example using the solution provided by q:

\documentclass{article}
\usepackage{totcount}
\makeatletter
\newtotcounter{citenum}
\renewcommand{\@biblabel}[1]{\stepcounter{citenum}#1}
\renewcommand\refname{References (\total{citenum})}
\makeatother
\begin{filecontents}{publication.bib}
@article{lamport1986latex,
title={LaTEX: User's Guide \&amp; Reference Manual},
author={Lamport, L.},
year={1986},
}
@book{knuth2006art,
title={The art of computer programming: Generating all trees: history of combinatorial generation},
author={Knuth, D.E.},
volume={4},
year={2006},
}
\end{filecontents}
\begin{document}
A few \TeX\ references by Lamport \cite{lamport1986latex, knuth2006art, lamport1986latex}
\bibliographystyle{plain}
\bibliography{publication}
\tiny\hfill Created by http://texblog.org
\end{document}
2. Preetham Aghalaya Manjunatha

Dear Tom,

Thanks a lot for your efforts. I am badly looking for a way to have a chapter counter from high to low i.e.

Chapter n

Chapter n-1

Chapter n-2 and so on. Please let me know if any work around exists for that. I really appreciate your help.

Thank you,

• Hi!

Took me a moment to figure this out :-). Here is the code:

\documentclass[twoside]{report}
\usepackage{totcount}
\usepackage{blindtext}
\regtotcounter{chapter}
\makeatletter
\renewcommand{\thechapter}{\number\numexpr\c@chapter@totc-\c@chapter+1\relax}
\makeatother
\begin{document}
\chapter{Chapter One}
\Blindtext
\chapter{Chapter Two}
\Blindtext
\chapter{Chapter Three}
\Blindtext
\end{document}
• Preetham Aghalaya Manjunatha

Dear Tom,

You are my saviour! It took hours and days to work around this, I no where found it on internet.

Thank you again.

• glad i could help. i might write a short post about it as a similar solution does not seem to exist online yet.

3. Preetham Aghalaya Manjunatha

Dear Tom,
But one thing I tested is by using,

%\setcounter{chapter}{10} or to start with some given number. Suppose there are 40 chapters in total.

When I compile this, it never starts from the chapter 10 to chapter n (say n=50). Instead it starts from chapter 1 to 40 (descending). Is there any workaround for this?

Thanks and I appreciate your time.

• Hmmm, not sure I understand what you are trying to do. You want chapter numbering to start from 50 – 10 instead of 40 – 1?
If so, try:

\renewcommand{\thechapter}{\number\numexpr 50-\c@chapter+1\relax}
4. It helped me a lot, thanks for useful alticle