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 am writing a thesis and at the bottom of the title page, I need to include two participating institutes. So far, I have come up with this (using \parbox, but I cannot figure out how to right align the second block because \begin{flushright} starts a new paragraph and thus adds another line:

\parbox[t][3cm][t]{7cm}{\normalsize Figurative Unit (Optional)\\
Department of Blabla\\
University of Blabla} 
\parbox[t][3cm][t]{7cm}{\normalsize Chair of Mickey Mouse Science\\
Institute of Disneyland Studies\\
FSF Blabla} 

This results in:

enter image description here

As I said, I would like the right text block to be right-aligned to the margin of the page, which is set to 40mm ( \newgeometry{left=40mm,right=40mm,top=30mm} ). In the above example I used absolute distance measures but I assume it could be done more elegantly.

share|improve this question
    
Welcome to TeX.sx! Using \hfill instead of the space (in your code the end-of-line) between the first and second \parbox should do. –  egreg Apr 8 '13 at 8:10
    
No, that doesn't do. Or maybe I didn't understand what you meant, exactly. Maybe you could provide this as an answer? –  wnstnsmth Apr 8 '13 at 8:15
    
It's better if you add a minimal working example (MWE) that illustrates your problem. –  egreg Apr 8 '13 at 8:16
    
No. There's nothing more to explain, really. And I think this is a problem that has been solved thousands of times already (although Google hasn't much to offer. –  wnstnsmth Apr 8 '13 at 8:18
2  
Try \normalsize\raggedleft in the second parbox. If that doesn't do what you want, add a MWE. –  lockstep Apr 8 '13 at 8:18

2 Answers 2

up vote 5 down vote accepted

You could use two minipages, like this.

\documentclass{minimal}
\begin{document}
\begin{minipage}[t]{0.48\textwidth}
Figurative Unit (Optional)\\
Department of Blabla\\
University of Blabla
\end{minipage}
\hfill
\begin{minipage}[t]{0.48\textwidth}
\begin{flushright}
Chair of Mickey Mouse Science\\
Institute of Disneyland Studies\\
FSF Blabla
\end{flushright}
\end{minipage}
\end{document}
share|improve this answer
    
Welcome to TeX.sx! –  Peter Jansson Apr 8 '13 at 8:55
    
Even better and more elegant ;-) –  wnstnsmth Apr 8 '13 at 9:01
1  
+1. Note that one still may use \raggedleft instead of the flushright environment inside the minipage. –  lockstep Apr 8 '13 at 9:05
    
Thanks @PeterJansson! I've benefited from all the information on this site as a long-time lurker, so I thought I'd see if I could contribute anything. –  erik Apr 9 '13 at 7:49

Try \normalsize\raggedleft in the second parbox.

share|improve this answer

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.