Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

BibTeX can abbreviate names, e.g. change Smith, John to J. Smith. In some languages, certain (not all) names must be abbreviated with more than one letter (it's not optional as in the case of Ch. for Charles). How can I force BibTeX to do this for particular names?

EDIT: I encounter this all the time, including for my own name which should be abbreviated Sz rather than S. I used to work around the problem by hand editing the reference list in the final version of the paper, but I'd prefer using BibTeX for everything if possible.

Requested example:

.tex file:

\documentclass{article}
\begin{document}
Text \cite{kovacs, smith}.

\bibliographystyle{abbrv}
\bibliography{references}
\end{document} 

.bib file:

@Book{smith,
  author  = "Peter Smith",
  title   = "Title 1",
  year    = 1980,
  publisher = "Addison-Wesley"
}

@Book{kovacs,
  author  = "Csaba Kov\'{a}cs",
  title   = "Title 2",
  year    = 1986,
  publisher = "Addison-Wesley"
}

The output I get:

Text [1, 2].

References

[1] C. Kovács. Title 2. Addison-Wesley, 1986.

[2] P. Smith. Title 1. Addison-Wesley, 1980.

I need to tell bibtex that for Csaba Kovács I need to get Cs. Kovács in the output, and not C. Kovács, as this is incorrect. The document is in English, so this is not a babel-issue. This applies only to certain author names, and it's because in Hungarian C and Cs are considered to be distinct units of the alphabet.

share|improve this question
    
Please add a minimal working example (MWE) that illustrates your problem. –  N.N. Aug 23 '11 at 12:22
    
Do you require a bibtex style where all first names are to be abbreviated to 2 or 3 letters (instead of 1), or are you looking to put markers on just some names? –  Mico Aug 23 '11 at 12:29
    
@Mico, only certain names. The rules of certain languages require that names beginning with certain letter combinations be abbreviated to those combinations (since both S and Sz are considered to be units in the alphabet, a name starting with Sz must always be abbreviated to Sz in this language) –  Szabolcs Aug 23 '11 at 12:37
    
@N.N. see example, please ask about what exactly is not clear in the question –  Szabolcs Aug 23 '11 at 12:41
    
@Mico, there are no rules that BibTeX can use to determine how to abbreviate the name. It's too complicated, language dependent, etc. I am looking for a way to tell it explicitly to abbreviate this particular name in this particular way. –  Szabolcs Aug 23 '11 at 12:44
show 3 more comments

2 Answers 2

up vote 42 down vote accepted
+100

Just replace the first name in question, say Csaba, with {\relax Cs}aba.

More generally, place the part of the name that is to be unaffected by the abbreviation inside a TeX group, which is a field that's delimited by { and }, and insert the command \relax at the beginning of that group.

Another example of how to make use of this method: To help one's readers distinguish the works authored by "Timothy Jones" and "Thomas Jones", one could set the respective author fields to "{\relax Tim}othy Jones" and "{\relax Th}omas Jones".

share|improve this answer
1  
This is what I've been looking for. –  Szabolcs Aug 23 '11 at 15:20
add comment

Put

\newcommand{\Cs}{Cs}

in your .tex document and use

author="{\Cs}aba Kov{\'{a}}cs"

in the .bib file.

share|improve this answer
    
Thanks, however I'd prefer a solution which does not require author-specific modifications in the .tex (not .bib) file –  Szabolcs Aug 23 '11 at 15:21
4  
The \newcommand bit can go in the .bib file: @preamble{"\newcommand{\Cs}{Cs}"}; however this can conflict with user defined commands. –  egreg Aug 23 '11 at 15:26
    
I did not know it could go in the .bib –  Szabolcs Aug 23 '11 at 15:36
    
To avoid the conflicts, what about \newcommand{\CsSeriouslyNoOneElseIsUsingThisCommandNameEver}{Cs}? –  Federico Poloni Oct 18 '12 at 7:04
    
@FedericoPoloni This might be a good idea. :-) But probably this is more easily solvable with biblatex –  egreg Oct 18 '12 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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