TransWikia.com

Horizontal boxes alignment with minipage

TeX - LaTeX Asked on May 9, 2021

I’m trying to align 2 boxes horizontally. I would like the left one to start at the far left and the right one to start at the far right.

begin{titlepage}
    begin{center}
      vspace*{1cm}
      {tiny hrule height 0.001pt}
      vspace{5pt}
      setlength{baselineskip}{1.5baselineskip} textsf{{LARGE Title}} par
      vspace{13pt}
      {tiny hrule height 0.01pt}
      largetexttt{Some name}
      vfill
      largetextit{some text}
      vspace{2cm}
      {tiny hrule height 0.001pt}
      begin{minipage}[t]{0.4textwidth}
         begin{center}
            emph{text}
            begin{center}
                test
            end{center}
         end{center}
      end{minipage}    
      begin{minipage}[t]{0.4textwidth}    
         begin{framed}    
             begin{center}    
                 emph{text}
             end{center}    
         end{framed}    
      end{minipage}            
      vspace{2cm}          
      large Some random text   
   end{center}    
end{titlepage}

I tried flushleft but it doesn’t seem to work the way I wish. I’m also wondering why the framed one doesn’t take the same space as the not framed one.

I added the last hrule to show where I would like my left minipage to start (at the left) and my right minipage to end (at the right).

Thanks in advance.

One Answer

hfill solved the problem. Now it fills the page's width.

Answered by Dunno on May 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP