Text FormattingNames with prefixes

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
lateks
Posts: 1
Joined: Fri Jan 31, 2014 5:35 pm

Names with prefixes

Post by lateks »

Hi,

I want to cite a surname with a prefix, like "van" or "de". How do I get Latex to do the following:

1. If the sentence where I cite the person starts with the person's name (e.g. Giorgio van Italia), I want Latex to start the sentence with upper-case V: "Van Italia (2014) wrote an interesting paper just like Smith (2013)." However, if the sentence starts with a word and the name is cited later in the sentence, I want Latex to cite the surname with lower-case v: "Unfortunately, van Italia (2014) did not reveal any new information."

2. In the bibliography, I want the reference to be "Italia, G. v. My first paper ever (2014). Journal of Hooey. Alternatively, the reference name could be "Italia, G. van".

3. I would like hyperref to put a box around "Van Italia (2014)" in the first case and "van Italia (2014)" in the second case.

Main document, as it looks now:

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[authoryear]{natbib}

\begin{document}
\cite{vanitalia} wrote an interesting paper, just like \cite{smith}. Unfortunately, \cite{vanitalia} did not reveal any new information.

\bibliographystyle{apalike}
\bibliography{bibliography}
\end{document}
Bibliography:

Code: Select all

@Article{vanitalia,
author = {Giorgio van Italia},
title = {My First Paper Ever},
journal = {Journal of Hooey},
year = {2014},
}
@Article{smith,
author = {John Smith},
title = {I Have Nothing to Say},
journal = {Journal of Hooey},
year = {2013},
}
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply