# Citation with some text inside square brackets

I'd like to add a citation which looks like this:

[_Text_ Citation_01, pages]


For example:

[See: 155, pp.89--99]


How can I do this using standard \cite{} command (without natbib or anything else)?

P.S. The text might be in Cyrillic!

• Please, can you add some more information about what you're using for citations? Just the default LaTeX commands or natbib or whatever? – egreg Jan 3 '13 at 18:25
• @egreg, just standard \cite{} command, nothing special – Physicsworks Jan 3 '13 at 18:34

A recommendable choice would be to use natbib or better yet biblatex. Let's see with natbib:

\begin{filecontents*}{\jobname.bib}
@book{01,
author={Caesar, Gaius Iulius},
title={Commentarii de bello {Gallico}},
year={703},
}
\end{filecontents*}
\documentclass{article}
\usepackage[numbers,square]{natbib}

\begin{document}

Here's a citation \cite[See:][p.~2]{01}

Another: \cite[p.~3]{01}.

Another: \cite{01}.

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}


The \cite command has now two optional argument. When only one is present, it's the "post-citation"; if two are present, the first is the "pre-citation" and the second one the post-citation.

Without extra packages you can still emulate this behavior:

\begin{filecontents*}{\jobname.bib}
@book{01,
author={Caesar, Gaius Iulius},
title={Commentarii de bello {Gallico}},
year={703},
}
\end{filecontents*}
\documentclass{article}

\makeatletter
\let\cite\relax
\DeclareRobustCommand{\cite}{%
\let\new@cite@pre\@gobble
\@ifnextchar[\new@cite{\@citex[]}}
\def\new@cite[#1]{\@ifnextchar[{\new@citea{#1}}{\@citex[#1]}}
\def\new@citea#1{\def\new@cite@pre{#1}\@citex}
\def\@cite#1#2{[{\new@cite@pre\space#1\if\relax\detokenize{#2}\relax\else, #2\fi}]}
\makeatother

\begin{document}

Here's a citation \cite[See:][p.~2]{01}

Another: \cite[p.~3]{01}.

Another: \cite{01}.

Again: \cite[See:][]{01}

\bibliographystyle{plain}
\bibliography{\jobname}

\end{document}


In case you want only the "pre-citation", use

\cite[See:][]{01}


with an empty second optional argument.

• @egreg, +1. Professional solution. – Sigur Jan 3 '13 at 19:22
• Just one more thing... How to modify this code (the part which doesn't use extra packages) in order to make a citation [See: 1], that is, WITHOUT page number(s)? – Physicsworks Jan 3 '13 at 19:39
• @Physicsworks I'd prefer the natbib solution; however I've added also the "package free" version. – egreg Jan 3 '13 at 20:23
• @egreg, I've already tried this, unfortunately, it adds a comma after citation number, so it looks like this: [See: 1,]. P.S. Sorry, I need this to be done without extra packages... – Physicsworks Jan 3 '13 at 20:44
• @Physicsworks I changed the code. With the present version no extra comma is added. – egreg Jan 3 '13 at 20:46

What do you think about a new command \Cite

\newcommand{\Cite}[2]{[See~\cite{#1},~#2]}

• This adds the text AFTER Citation_01, not before, as I'd like to have – Physicsworks Jan 3 '13 at 18:24
• I believe that "155" in the OP's question refers to the number automatically generated by \cite. – egreg Jan 3 '13 at 18:24
• @egreg, you're right – Physicsworks Jan 3 '13 at 18:25
• Oh, I see. My fault. Edited. – Sigur Jan 3 '13 at 18:25
• @Sigur, Thanks, it works, although it adds extra [] – Physicsworks Jan 3 '13 at 19:12

As noted by others, natbib or biblatex are the way to go. But if you have restrictions like me, you could try this option, which I think is a little easier to understand than the other answers here.

I couldn't get the usual precitation \cite[See: ][]{Citation_01} to work for my case, which is an IEEE computer society (compsoc) conference paper - although it has worked for me in the past with other formats. The prescribed preamble includes: \usepackage[nocompress]{cite}.

I ended up going with this hack:

\renewcommand\citeleft{[See:~}
...as proven in~\cite{Citation_01}.
\renewcommand\citeleft{[}


I'm sometimes required to use amsrefs and have been looking for something analogous to natbib's built-in \cite[pre][post]{label} for a while. Since I haven't seen it online or in the package documentation (as of 2018), I'm posting the solution here.

It turns out you can just write pre-citation and/or post-citation text inside a \citelist command, i.e., \citelist{cf. \cite{morgan-tian}} prints out: [cf. MT].

\documentclass{article}
\usepackage[shortalphabetic]{amsrefs}

\begin{document}
Theorem 1 follows from
Lemma 2 \cite{morgan-tian}*{1.1} and
Proposition 3 \citelist{cf. \cite{morgan-tian}*{1.2}}.

\begin{bibdiv}
\begin{biblist}
\bib{morgan-tian}{book}{
author={Morgan, John},
author={Tian, Gang},
title={Ricci flow and the Poincar\'e conjecture},
series={Clay Mathematics Monographs},
volume={3},
publisher={American Mathematical Society},
place={Providence, RI},
date={2007},
}
\end{biblist}
\end{bibdiv}

\end{document}