BibTeX, biblatex and biberHow to customize the short cut for repeating words in biblio

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

How to customize the short cut for repeating words in biblio

Post by pban92 »

In my bibliography, say, title of the journal is Journal of Environment and Earth appearing several times in different references. Instead of typing the same thing, there is a way I forgot where one can make a short cut reference to the journal name. For example every time instead of the above journal name one can simply type jee and at the beginning of the bibliography, jfe can be defined.

Could anybody please help me with this?

Thanks,

pban92

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to customize the short cut for repeating words in biblio

Post by gmedina »

Hi,

in your .bib file you can use the @string command to define abbreviations:

Code: Select all

@string{jee = "Journal of Environment and Earth"}
and now you can use the abbreviation jee in your BiBTeX fields (without enclosing it in braces or quotation marks):

Code: Select all

@article{test,
  author = "The Author",
  title  = "The title",
  journal = jee,
  year = "2009"}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Re: How to customize the short cut for repeating words in biblio

Post by pban92 »

Thanks gmedina! It was exactly what I was looking for. Cheers!
Post Reply