3

How I can cite: Author [Number]?. For example:

Wolsey [8]

3
  • 2
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Looking at what you are trying to accomplish, this is done by default in LaTeX when using \cite command. I think you will benefit from reading lshort.
    – hpesoj626
    Mar 19, 2013 at 3:23
  • Also, we don't usually put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say "thank you" to users who helped you.. Once again, welcome, and enjoy learning with us in this community!
    – hpesoj626
    Mar 19, 2013 at 3:25
  • It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The StackExchange staff can merge them together for you.
    – Joseph Wright
    Mar 21, 2013 at 14:30

3 Answers 3

3

You can achieve this using the natbib package in numerical mode, and its \citet command.

\documentclass{article}
\usepackage[numbers]{natbib}
\usepackage{hyperref}  % Hyperlinks bib references.
\begin{document}

  Here is a reference: \citet{Ca04}.
  \bibliographystyle{plainnat}
  \bibliography{test}
\end{document}

sample output

0

I can do it using flexbib package and \cite command:

\documentclass{article}
\usepackage{hyperref}
\usepackage[plain*,spanish]{flexbib} %in this case the document is in spanish
\begin{document}

Here is a reference: \cite{Ca04}.
\bibliographystyle{plainnat}
\bibliography{test}
\end{document}
-1
\newcommand\Myciteauthor[1]{\citeauthor{#1} \cite{#1}}

and use \Myciteauthor instead of \citeauthor in your text

2
  • 1
    Welcome to TeX.SX! Without a MWE, your answer is unusable and can even be wrong because the output of cite will depend on the bibliography style used and might not provide a numbered citation.
    – KersouMan
    Jun 24, 2020 at 8:09
  • The author never asked for the IEEE style as far as I can read, hence my comment. Moreover, I don't know who downvoted your answer.
    – KersouMan
    Jun 25, 2020 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.