如何将 flushleft 和 flushright 排列在一起?

如何将 flushleft 和 flushright 排列在一起?
\documentclass[12pt]{article}
\usepackage{mathptmx}
\usepackage{graphicx}
%% Header Footer
\usepackage{fancyhdr}
\pagestyle{fancy}

%\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{ \thepage\ } 

\usepackage{tikz}
\usepackage{tikzpagenodes}

\pagestyle{fancy}

\newcommand{\headerpic}[1]{%
    \begin{tikzpicture}[remember picture,overlay]
    \node [anchor=south west,inner sep=0] at (current page header area.north west) 
    {\includegraphics[height=2cm]{#1}}; 
    \end{tikzpicture}
}

\begin{document}%Opening Statement

    \begin{titlepage}
        \headerpic{logo}



        \begin{center}
            \textsc {\LARGE Master Thesis\\
            \ in\\
        \ M.Sc. Mechanical Enginnnering \\}

            \vspace{2cm}

            \textsc{\LARGE Development of Method for FEA \\
                \ of the x xxxx\\}

            \vspace{2cm}
            \textsc{\Large Shubham xxxx \\
            \ Matriculation Number xxxx \\}     
        \end{center}
    \vspace{2cm}
    \begin{flushright}
        \textsc{ Second Examiner \\
        \ Mr. xxxx \\
    \ Construction Department \\
\ xxxx forschungs und entwicklungs GmbH \\
\ Rebenring xx \\
\ xxxxx Braunschweig \\}
    \end{flushright}
            \begin{flushleft}
            \textsc{ Supervising Professor (First Examiner) \\
                \ Prof.xxxxx  \\
                \ Mechanical and Process Engineering \\
                \ xxx University of applied Sciences \\
                \ Muensterstraße xx\\
                \  Duesseldorf \\}
        \end{flushleft}


    \end{titlepage}

如下图所示:

在此处输入图片描述

答案1

\Longunderstack对于这类事情来说,A是理想的。

\documentclass[12pt]{article}
\usepackage[margin=10pt]{geometry}
\usepackage{mathptmx}
\usepackage{graphicx}
%% Header Footer
\usepackage{fancyhdr}
\pagestyle{fancy}

%\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{ \thepage\ } 

\usepackage{tikz}
\usepackage{tikzpagenodes}

\pagestyle{fancy}

\newcommand{\headerpic}[1]{%
    \begin{tikzpicture}[remember picture,overlay]
    \node [anchor=south west,inner sep=0] at (current page header area.north west) 
    {\includegraphics[height=2cm]{#1}}; 
    \end{tikzpicture}
}
\usepackage[usestackEOL]{stackengine}

\begin{document}%Opening Statement

    \begin{titlepage}
        \headerpic{example-image}



        \begin{center}
            \textsc {\LARGE Master Thesis\\
            \ in\\
        \ M.Sc. Mechanical Enginnnering \\}

            \vspace{2cm}

            \textsc{\LARGE Development of Method for FEA \\
                \ of the Trans-Confabulator \\}

            \vspace{2cm}
            \textsc{\Large Sam Doe \\
            \ Matriculation Number 12345 \\}       
        \end{center}
    \vspace{2cm}
{\scshape\Longunderstack[l]{
            Supervising Professor (First Examiner) \\
                \ Prof. Dr.-Ing. habil. John Doe \\
                \ Mechanical and Process Engineering \\
                \ XYZ University of applied Sciences \\
                \ Muensterstraße 000 \\
                \ 40476 Duesseldorf \\
                \ Tel: xxx-xxxxx \\
            \ [email protected]}
\hfill
\Longunderstack[l]{Second Examiner \\
        \ Ms. Jane Doe \\
    \ Construction Department \\
\ Blah forschungs und entwicklungs GmbH \\
\ Rebenring 00 \\
\ 38106 Braunschweig \\
\ Tel: xxx-xxxxxxx \\
\ [email protected]}
}
    \end{titlepage}
\end{document}

在此处输入图片描述

相关内容