在 minipage 中对齐旋转的文本

在 minipage 中对齐旋转的文本

我想将旋转后的文本顶部对齐minipage。我尝试了第一个 中的\hfill和的不同组合,但似乎都没有用。vfillminipage

在此处输入图片描述

梅威瑟:

\documentclass[10pt, oneside, headinclude]{scrbook}

\usepackage{microtype}
\usepackage[osf]{newpxtext} \linespread{1.05}
\usepackage[hyphens]{url}
\usepackage{ragged2e}
\usepackage[left=32.5mm, right=25mm, top=25mm, bottom=20mm]{geometry}
\usepackage{xcolor}
    \definecolor{mblau}{RGB}{10, 59, 104}
    \definecolor{mturkis}{RGB}{0, 171, 183}

\usepackage[hidelinks, breaklinks]{hyperref}
\usepackage{graphicx}

\begin{document}

\begin{titlepage}
    \noindent\colorbox{mturkis}{%
    \begin{minipage}[c][0.99\textheight]{0.09\textwidth}
        \centering\rotatebox{90}{\bfseries\LARGE\color{white}\scshape\lsstyle bachelorarbeit}
    \end{minipage}}\hspace{25pt}%
    \begin{minipage}[c][0.99\textheight]{0.75\textwidth}
        \RaggedRight
        \vspace{40pt}

        \LARGE\textls{\linespread{1.1}\textsc{really super long title\\of my super really long thesis\\with four\\lines}}\\

        \vfill

        \normalsize
        \textit{von}\\[15pt]
        \textls{\scshape\color{mblau}name}\\[5pt]
        \href{mailto:[email protected]}{\url{[email protected]}}\\

        \vfill

        \textit{am}\\[15pt]
        \textit{datum}\\

        \vfill

        \textit{akademische Betreuung durch}\\[15pt]
        \textls{\scshape prof.\,dr.-ing. name}\\[5pt]
        \textls{\scshape faculty}\\[5pt]
        \textls{\scshape university}\\

        \vfill

        \textit{externe Betreuung durch}\\[15pt]
        \textls{\scshape name}\\[5pt]
        \textls{\scshape company}\\

        \vspace{40pt}
    \end{minipage}\hfill
\end{titlepage}

\end{document}

答案1

将旋转后的内容放入宽度略小于且右对齐的框中\textheight:\documentclass[10pt, oneside, headinclude]{scrbook}

\documentclass[10pt, oneside, headinclude]{scrbook}
\usepackage{microtype}
\usepackage[osf]{newpxtext} \linespread{1.05}
\usepackage[hyphens]{url}
\usepackage{ragged2e}
\usepackage[left=32.5mm, right=25mm, top=25mm, bottom=20mm]{geometry}
\usepackage{xcolor}
    \definecolor{mblau}{RGB}{10, 59, 104}
    \definecolor{mturkis}{RGB}{0, 171, 183}

\usepackage[hidelinks, breaklinks]{hyperref}
\usepackage{graphicx}

\begin{document}

\begin{titlepage}
    \noindent\colorbox{mturkis}{%
    \begin{minipage}[c][0.99\textheight]{0.09\textwidth}
        \centering\rotatebox{90}{\makebox[0.88\textheight][r]{\bfseries\LARGE\color{white}\scshape\lsstyle bachelorarbeit}}
    \end{minipage}}\hspace{25pt}%
    \begin{minipage}[c][0.99\textheight]{0.75\textwidth}
        \RaggedRight
        \vspace{40pt}

        \LARGE\textls{\linespread{1.1}\textsc{really super long title\\of my super really long thesis\\with four\\lines}}\\

        \vfill

        \normalsize
        \textit{von}\\[15pt]
        \textls{\scshape\color{mblau}name}\\[5pt]
        \href{mailto:[email protected]}{\url{[email protected]}}\\

        \vfill

        \textit{am}\\[15pt]
        \textit{datum}\\

        \vfill

        \textit{akademische Betreuung durch}\\[15pt]
        \textls{\scshape prof.\,dr.-ing. name}\\[5pt]
        \textls{\scshape faculty}\\[5pt]
        \textls{\scshape university}\\

        \vfill

        \textit{externe Betreuung durch}\\[15pt]
        \textls{\scshape name}\\[5pt]
        \textls{\scshape company}\\

        \vspace{40pt}
    \end{minipage}\hfill
\end{titlepage}

\end{document}

在此处输入图片描述

相关内容