I am taking an example from a book and citing the reference with the example. I want the citation right-aligned. If the citation is on the same line as some of the text, \hfill will do the job. If the citation is on a new line (by itself), \hfill apears to be ignored and the citation is on the left.
In the example below, the result is as desired (at least it is when I run it!) but if you remove ", then you'll see the problem" (not forgetting the comma, but leaving the full stop) from the example, the citation is on a line by itself and there is no horizontal filling in sight.
Minimal working example:
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[margin=1in]{geometry}
\usepackage{harvard}
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex\label{rule:formation:wrong}Add or remove as much text here as required to force the citation onto a new line, then you'll see the problem.\hfill\cite[p.~1]{author:2009}
\end{exe}
\bibliographystyle{apsr}
\bibliography{minworkingex}
\end{document}
Code: Select all
@BOOK{author:2009,
AUTHOR = {Author, A N},
editor = {},
TITLE = {A really interesting book},
PUBLISHER = {A Publisher},
YEAR = {2009}
}
I've also looked at various FAQs and formatting guides, but nothing seems to do exactly what I want.
Anyone know how to do it? Any time and effort you spend on this is greatly appreciated. I'm using Kile 2.0.1 on Ubuntu 8.10.
Cheers,
pandammonium