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.

I need a very special style for my university so I created a first draft with JabRef and edited the .bst file created by JabRef to better suit my requirements.

My main problem was, that I have many authors with just one Name (say just "Google", as it was an official document from them with no person as author specified). When adding them as the "Author" in my BibTex file, the bibliography would look like this:

    author = {Google},

Google, (2014): ...

basically expecting a first name, which wasn't given as seen above. I want to comma gone if there is just one name - or even better, mark the whole thing as do not touch, like:

author = { \donttouch{Google}}

Google (2014): ...

Do you know if there is an easy way to work around that issue (the extra comma)? I tried an alternative custom author field which basically worked, but had the disadvantage that sorting of the bibliography was pretty messed up.

Edit: Here an MWE:

\documentclass[11pt,oneside,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[onehalfspacing]{setspace}
\usepackage{float}

\usepackage[left=4cm,right=2cm,top=2.5cm,bottom=2.5cm,includeheadfoot]{geometry}

\renewcommand\refname{Quellenverzeichnis}
\renewcommand{\figurename}{Abbildung}
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\renewcommand\listfigurename{Abbildungsverzeichnis}

\title{mytitle}
\date{June 19}

\pagenumbering{Roman} 
\begin{document}

\clearpage\maketitle
\thispagestyle{empty}

\onehalfspacing


\newpage
\addcontentsline{toc}{section}{Quellenverzeichnis}
\bibliographystyle{fom}
\bibliography{quellen}
\end{document}

Also, I uploaded my current .bst file in case you want to take a look at it: https://dl.dropboxusercontent.com/u/13587475/fom.bst

One entry in my .bib file that doesn't work as inteded would be for example (the yeara is a custom field which I need to display it nicely):

@misc{abiSmart,
    author = {ABIresearch},
    title = {Q1 2014 Wearable Shipments: Activity Trackers Outsold Smartwatches by 4 to 1 },
    yeara = {2014},
    year = {17.06.2014},
    url = {https://www.abiresearch.com/press/q1-2014-wearable-shipments-activity-trackers-outso}
}
share|improve this question
    
Welcome to TeX.SX! Please help us to help you and 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}. –  Christian Hupfer Jun 19 at 10:02
    
Thank you! I added a MWE of the files and problem I am running into. –  stefank Jun 19 at 10:10
1  
does enclosing the name in {}, i.e., author = {{Google}} solve your problem? –  Guido Jun 19 at 10:50
    
Sadly, enclosing it in {} doesn't save the problem. I read elsewhere an additional comma might help, like {Google,} but that doesn't do the trick either. @Mico: yeah, it was initially created via JebRef and then edited by me as it didn't fit my needs. –  stefank Jun 19 at 12:08

1 Answer 1

up vote 8 down vote accepted

The cause of the problem is a faulty instruction in the bst file. Make a copy of fom.bst and edit the copy as follows:

  • in the function format.names.author, find the string

    "{vv}{ll, }{f.}"
    

    and replace it with

    "{vv~}{ll}{, f.}"
    

    That way, a comma will be inserted after the last-name component only if the author's name contains a first-name component as well.

    Note that, in addition to moving the location of the comma to the first-name component of the (full) name, I also recommend making the space between the von and last-name components non-breakable.

  • Repeat this edit for the second occurrence of the string "{vv}{ll, }{f.}" in the function format.names.author and for the two occurrences of this string in the function format.name.editors.

  • Save the modified bst file, update you TeX distribution's filename database if the new bst file isn't placed in the same directory as your main .tex file, and recompile your document from scratch.


Addendum: I can't help but voice my surprise and dismay over the fact that the fom bibliography style doesn't provide a mechanism for dealing with authors' "junior" name components (which can be Sr., Jr., III, the Elder, the Younger, and so on). You may luck out, in the sense that your bibliographic entries don't contain authors whose names contain such "junior" components. Nevertheless, it seems to be quite unsatisfactory for a bibliography style not to provide such a mechanism at all.

share|improve this answer
2  
do you really want a space before the comma? by the way, ams/math reviews has had to deal with one-name authors "forever". there's a noted mathematician, Harish-Chandra, with such a name, so that name has been one of our test cases since the very beginning of ams computerization. –  barbara beeton Jun 19 at 12:41
    
@barbarabeeton - Thanks for this suggestion. I've updated my answer accordingly. –  Mico Jun 19 at 15:49
    
It worked, awesome, thank you so much! –  stefank Jun 19 at 17:08

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.