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.

Is there a way to capitalize the "n.d." or no date in in-text citation in LaTeX? As in:

Lorem ipsum (Doe, n.d.) to Lorem Ipsum (Doe, N.D.)

Or for the sake of it is there a way to customize "n.d." to something else?

I am using APA citation style for BibTeX:

\bibliographystyle{apacite}    

Sample reference with no date:

@misc{Git,
  author = {Git},
  title = {Git: the fast version control system},
  howpublished = {Retrieved November 11, 2011, from CVS: \url{"http://git-scm.com/"}}
}
share|improve this question
add comment

1 Answer

Assuming you are using the apacite package, you need to alter the \bibnodate command. This seems to be set at the start of the document, so use the \AtBeginDocument hook:

\begin{filecontents}{\jobname.bib}
@misc{Git,
  author = {Git},
  title = {Git: the fast version control system},
  howpublished = {Retrieved November 11, 2011, from CVS: \url{"http://git-scm.com/"}}
}
\end{filecontents}
\documentclass{article}
\usepackage{apacite}
\bibliographystyle{apacite}
\AtBeginDocument{%
  \renewcommand*{\bibnodate}{N.D.\hbox{}}%
}
\begin{document}
\cite{Git}
\bibliography{\jobname}
\end{document}
share|improve this answer
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.