Generalabout citation format

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
guorong
Posts: 2
Joined: Sat Mar 28, 2009 4:06 pm

about citation format

Post by guorong »

Hi everyone. I am a fresh new user of TeXnicCenter. I had a problem with citation.

Then the pdf file has the following format, for example:

1) "...from previous work [1, 2, 3]".
I hope to make it "[1-3]" instead of "[1,2,3]"
the following is the Code:

Code: Select all

\documentclass[12pt]{article}
\usepackage{times}
\usepackage[pdftex]{color,graphicx}
\usepackage{hyperref}
\begin{document}
\baselineskip18pt
\section{some information about phenol}
The figure 2 is the PES from previous work \cite{1,2,3}
\clearpage
\begin{thebibliography}{99}
\bibitem{1} paper 1.
\bibitem{2} paper 2.
\bibitem{3} paper 3.
\end{thebibliography}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

about citation format

Post by localghost »

Just load the mciteplus package. Refer to its documentation to learn more.


Best regards and welcome to the board
Thorsten¹
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: about citation format

Post by josephwright »

Erm, not mciteplus in this case (although it is very good). For standard bibliography styles, see the package "cite", or you can use natbib or biblatex with appropriate styles.
Joseph Wright
guorong
Posts: 2
Joined: Sat Mar 28, 2009 4:06 pm

Re: about citation format

Post by guorong »

:) Thank you two! I solved the problem by "cite" package.

I also tried the "mciteplus" package, I had a few error, I could not solve them, then I gave it up.

You have a great day!
Guorong
Post Reply