2

I am using JabRef to reference papers, but i want to access author name stored corresponding to that entry.

Suppose i have the following JabRef entries

I cite it directory in texstudio using \cite{bibtexKey} which will produce ouput something like [7]

But i also want to access to also access author/editor name corresponding to that entry.

Something like following

Garbled circuit by \cite{bibtexKey}.author \cite{bibtexKey}

which automatically genertes

Garbled circuit by Thomsan et.al [7]

11
  • 2
    What about the \citeauthor command from natbib package?
    – Troy
    Apr 11, 2017 at 11:39
  • 1
    @Troy I am using Jabref , can i use natbib with JabRef
    – Infinity
    Apr 11, 2017 at 11:48
  • 3
    I have no prior experience with JabRef, but I believe JabRef merely manages the BibTeX database (i.e. the .bib file), whereas natbib controls the citations and references within the .tex file. I don't see a reason why you can't use them both at the same time..
    – Troy
    Apr 11, 2017 at 11:53
  • 3
    JabRef is only for managing bib files. In your Latex document you can use things like \citeauthor or \citetitle from the biblatex package Apr 12, 2017 at 8:04
  • 1
    Add a MWE then. It's hard to help when I can't reproduce your problem. It's also possible I'm misunderstanding your question. So an example would really help clarify things
    – Troy
    Apr 15, 2017 at 6:13

1 Answer 1

2

[Note: Even though the problem turned out to be erroneous files in OP's folder, I believe that the original question still has some merit, and so I'll give a 'textbook' answer.]

Answer:

The \cite{bibtexkey}.author-like command that you are searching for can be achieved by using the \citet{<key>} from the natbib package. Or if you just want the name, like Thomson et al., then use the \citeauthor{<key>} command from the natbib package.

All these are well documented in the natbib package documentation.

Few things to note: (motivated from comments)

  • cite should not be used with natbib
  • Use a bibliography style which actually supports author-year citations, like plainnat from the natbib package.
  • This is a good example where the very act of constructing an MWE by the OP's effort can solve the question. MWE is important! :D
1
  • I would recommended using biblatex instead of natbib, it also supports the citeauthor and citetitle command and offers greater support for different styles, author year style is for example the biblatex-apa package Apr 15, 2017 at 7: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.