![如何将 flushleft 和 flushright 排列在一起?](https://linux22.com/image/394485/%E5%A6%82%E4%BD%95%E5%B0%86%20flushleft%20%E5%92%8C%20flushright%20%E6%8E%92%E5%88%97%E5%9C%A8%E4%B8%80%E8%B5%B7%EF%BC%9F.png)
\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}