4

I include citations in the titles of slides and I would like the citations to be right justified (fully) while the title itself is left justified. I used

<title-text> \hfill <\cite{}>

but this does not push the citation to make it right-justified; it simply moves the citation a bit to the right as shown in the following figure. Is there any way to make the citation right-justified?

Thanks.

enter image description here

2
  • 2
    Take a look at the last answer to this question: tex.stackexchange.com/questions/54180/… where @Daniel uses \vskip0pt plus 1filll. Perhaps it will work for you if you change \vskip0pt to \hskip0pt and then use the entire bit instead of \hfill. (I haven't tried it.) Commented Aug 23, 2014 at 3:18
  • Thanks, it worked beautifully. I had searched but totally missed that answer. Just for completeness, here is my definition: \newcommand{\myhfill}{\hskip0pt plus 1filll} and \myhfill is used instead of \hfill in my original code.
    – ozsu
    Commented Aug 23, 2014 at 11:00

1 Answer 1

7

Following the suggestion at How do I write something at the end of the slide in beamer? as suggested by 3cat I defined

\newcommand{\myhfill}{\hskip0pt plus 1filll}

and used \myhfill instead of \hfill and it works like a charm. Putting this as an answer since otherwise I cannot close the question.

2
  • I would prefer the name \hfilll.
    – Manuel
    Commented Aug 23, 2014 at 12:34
  • Of course you can choose any name you wish.
    – ozsu
    Commented Aug 23, 2014 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .