2

The following is in the preamble I "inherited":

\documentclass[a4paper,12pt]{book}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.1pt} % for upper line
\renewcommand{\footrulewidth}{0.1pt} % for lower line
\fancyhead[LE,RO]{\itshape \nouppercase \rightmark}
\fancyhead[LO,RE]{\itshape \nouppercase \leftmark}
\fancyfoot[C]{\thepage}

\usepackage{fancybox}

\usepackage{xcolor}
\usepackage{framed}

\numberwithin{equation}{section} % numbering according to the section
\bibliographystyle{plain} %Choose a bibliograhpic style

\usepackage{color}
\usepackage[colorlinks=true,linkcolor=red,citecolor=blue,urlcolor=black{hyperref}
\setlength{\headheight}{15pt}

%\parindent0em
\parskip1ex

In my .tex file, for each reference I state, for instance: "as reported in \citep{schum98,berg90,tom90}". The pdf output "[Schuman, 1998, Berg, 1990, Tomaven, 1990]". As you may notice, such a listing is awkward. How could I separate the data belonging to a specific author by a semi-colon from the data belonging to other authors, as in "[Schuman, 1998; Berg, 1990; Tomaven, 1990]". Note that a large portion of the .tex document has been written, and I would prefer the option of just changing the preamble.

3
  • 1
    With that preamble you won't get an author-year citation scheme.
    – egreg
    Apr 25, 2012 at 13:16
  • 3
    I solved it by adding \usepackage[semicolon]{natbib}. Thanks for pointing out the missing natbib.
    – boy
    Apr 25, 2012 at 13:26
  • 3
    @boy: once the software allows you to do so, you should post your resolution (the comment above) as an answer. Apr 25, 2012 at 14:58

3 Answers 3

4

I solved it by adding \usepackage[semicolon]{natbib}. Thanks for pointing out the missing natbib.

0

If you prefer the cite package, nospace option:

\usepackage{cite}
\def\citepunct{;\penalty\citepunctpenalty}

and space option:

\usepackage{cite}
\def\citepunct{;\penalty\citepunctpenalty}
-1
\def\citepunct{; \penalty\citepunctpenalty}
2
  • This answer has already been given by @Thomas Rebele.
    – Roland
    Jul 8, 2021 at 4:32
  • Actually there is an extra space after the ;. So it is not a duplicate if this has an influence. Jul 8, 2021 at 5:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .