顶部对齐

顶部对齐

有人能解决这个问题吗?我正在制作简历,想使用一些旋转的文本来改善演示效果。这是一个 MWE。

\documentclass[10pt]{article}
\usepackage[a4paper,inner=1.5cm, outer=1.5cm, top=2.5cm, bottom=2.5cm]{geometry}

\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}

\usepackage{rotating}
\usepackage{calligra}

\usepackage{helvet}
\usepackage{lipsum}
\usepackage[parfill]{parskip}
\usepackage{multicol}
\usepackage{titling}

%Set the format of tables.
\def\colMyBlue{NavyBlue}
\def\colMyGray{Grey}
\def\colMyDarkGray{white!25!black}
\def\colMyCalig{MidnightBlue}

\usepackage[compact]{titlesec}
\titleformat{\section}{\color{\colMyBlue}\Large\sc\bfseries}{\thesection}{}{}
\titleformat{\subsection}{\color{\colMyDarkGray}\sc}{\thesubsection}{}{}
\titlespacing\section{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
\titlespacing\subsection{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}

\usepackage{lettrine}
\usepackage{graphicx, type1cm, blindtext} %The Lettrine Options.
    \setcounter{DefaultLines}{3}
    \setlength{\DefaultSlope}{0pt}
    \setlength{\DefaultFindent}{2pt}
    \setlength{\DefaultNindent}{0pt}
    \renewcommand{\DefaultLoversize}{0.05}
    \renewcommand{\DefaultLhang}{0}
    \renewcommand{\LettrineFontHook}{\color{\colMyDarkGray}\fontfamily{ptm}\fontseries{m}\fontshape{n}}
    \renewcommand{\LettrineTextFont}{\color{\colMyDarkGray}\scshape}

\newcommand\myHrule{\vspace{1em}{\color{\colMyGray}\hrule}\vspace{1em}}

\title{Resum\'{e}\normalfont{~/~Curriculum Vit\ae}.}
\author{John Smith}
\renewcommand{\today}{25\textsuperscript{th} December 2012}

%-------------------------------------------
%Create the document.
\begin{document}
\begin{minipage}{0.075\textwidth}
    %\vspace{-8em} %TOP
    %\vspace{8em}  %BOTTOM
    \begin{turn}{90}
        \calligra\Huge\color{\colMyCalig}\theauthor
    \end{turn}
\end{minipage}
\begin{minipage}{0.925\textwidth}
    \begin{flushleft}
        \begin{minipage}{0.75\textwidth}
            \begin{flushleft}
                \Huge\color{\colMyDarkGray}\sc\thetitle\\[0.5em]
                \normalsize\color{\colMyDarkGray}\today
            \end{flushleft}
        \end{minipage}
    \end{flushleft}

    \begin{multicols}{2}
        \section*{Summary}
            \lettrine{L}{orem} Ipsum \lipsum[2]
        \columnbreak
        \section*{Personal Details}
        \lipsum[2]
    \end{multicols}
\end{minipage}

\myHrule

\section*{Education}
\lipsum[2-3]
\section*{Employment History}
\lipsum[2-3]

\end{document}

其产生以下输出:

居中对齐

我遇到的麻烦在于旋转文本的对齐,我希望它看起来像这样:

顶部对齐

或者底部对齐:

底部对齐

上述期望的输出已通过 \vspace{...} 命令实现(分别在负方向和正方向)。虽然这可以完成工作,但它很繁琐,是否有与 raggedleft 和 raggedright 等效的功能,但在旋转环境中,在旋转的意义上?

答案1

[tcb]您可以调整 s的可选位置说明符minipage

\documentclass[10pt]{article}
\usepackage[a4paper,inner=1.5cm, outer=1.5cm, top=2.5cm, bottom=2.5cm]{geometry}

\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}

\usepackage{rotating}
\usepackage{calligra}

\usepackage{helvet}
\usepackage{lipsum}
\usepackage[parfill]{parskip}
\usepackage{multicol}
\usepackage{titling}

%Set the format of tables.
\def\colMyBlue{NavyBlue}
\def\colMyGray{Grey}
\def\colMyDarkGray{white!25!black}
\def\colMyCalig{MidnightBlue}

\usepackage[compact]{titlesec}
\titleformat{\section}{\color{\colMyBlue}\Large\sc\bfseries}{\thesection}{}{}
\titleformat{\subsection}{\color{\colMyDarkGray}\sc}{\thesubsection}{}{}
\titlespacing\section{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
\titlespacing\subsection{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}

\usepackage{lettrine}
\usepackage{graphicx, type1cm, blindtext} %The Lettrine Options.
    \setcounter{DefaultLines}{3}
    \setlength{\DefaultSlope}{0pt}
    \setlength{\DefaultFindent}{2pt}
    \setlength{\DefaultNindent}{0pt}
    \renewcommand{\DefaultLoversize}{0.05}
    \renewcommand{\DefaultLhang}{0}
    \renewcommand{\LettrineFontHook}{\color{\colMyDarkGray}\fontfamily{ptm}\fontseries{m}\fontshape{n}}
    \renewcommand{\LettrineTextFont}{\color{\colMyDarkGray}\scshape}

\newcommand\myHrule{\vspace{1em}{\color{\colMyGray}\hrule}\vspace{1em}}

\title{Resum\'{e}\normalfont{~/~Curriculum Vit\ae}.}
\author{John Smith}
\renewcommand{\today}{25\textsuperscript{th} December 2012}

%-------------------------------------------
%Create the document.
\begin{document}
\begin{minipage}[t]{0.075\textwidth}   %% <---------- here
    %\vspace{-8em} %TOP
    %\vspace{8em}  %BOTTOM
    \begin{turn}{90}
        \calligra\Huge\color{\colMyCalig}\theauthor
    \end{turn}
\end{minipage}%
\begin{minipage}[b]{0.925\textwidth} %% <------- here
    \begin{flushleft}
        \begin{minipage}{0.75\textwidth}
            \begin{flushleft}
                \Huge\color{\colMyDarkGray}\sc\thetitle\\[0.5em]
                \normalsize\color{\colMyDarkGray}\today
            \end{flushleft}
        \end{minipage}
    \end{flushleft}

    \begin{multicols}{2}
        \section*{Summary}
            \lettrine{L}{orem} Ipsum \lipsum[2]
        \columnbreak
        \section*{Personal Details}
        \lipsum[2]
    \end{multicols}
\end{minipage}

\myHrule

\section*{Education}
\lipsum[2-3]
\section*{Employment History}
\lipsum[2-3]

\end{document}

在此处输入图片描述

顶部对齐

\documentclass[10pt]{article}
\usepackage[a4paper,inner=1.5cm, outer=1.5cm, top=2.5cm, bottom=2.5cm]{geometry}

\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}

\usepackage{rotating}
\usepackage{calligra}

\usepackage{helvet}
\usepackage{lipsum}
\usepackage[parfill]{parskip}
\usepackage{multicol}
\usepackage{titling}

%Set the format of tables.
\def\colMyBlue{NavyBlue}
\def\colMyGray{Grey}
\def\colMyDarkGray{white!25!black}
\def\colMyCalig{MidnightBlue}

\usepackage[compact]{titlesec}
\titleformat{\section}{\color{\colMyBlue}\Large\sc\bfseries}{\thesection}{}{}
\titleformat{\subsection}{\color{\colMyDarkGray}\sc}{\thesubsection}{}{}
\titlespacing\section{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
\titlespacing\subsection{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}

\usepackage{lettrine}
\usepackage{graphicx, type1cm, blindtext} %The Lettrine Options.
    \setcounter{DefaultLines}{3}
    \setlength{\DefaultSlope}{0pt}
    \setlength{\DefaultFindent}{2pt}
    \setlength{\DefaultNindent}{0pt}
    \renewcommand{\DefaultLoversize}{0.05}
    \renewcommand{\DefaultLhang}{0}
    \renewcommand{\LettrineFontHook}{\color{\colMyDarkGray}\fontfamily{ptm}\fontseries{m}\fontshape{n}}
    \renewcommand{\LettrineTextFont}{\color{\colMyDarkGray}\scshape}

\newcommand\myHrule{\vspace{1em}{\color{\colMyGray}\hrule}\vspace{1em}}

\title{Resum\'{e}\normalfont{~/~Curriculum Vit\ae}.}
\author{John Smith}
\renewcommand{\today}{25\textsuperscript{th} December 2012}

%-------------------------------------------
%Create the document.
\begin{document}
\begin{minipage}[t]{0.075\textwidth}
    %\vspace{-8em} %TOP
    %\vspace{8em}  %BOTTOM
    \begin{turn}{90}
        \makebox[0pt][r]{\calligra\Huge\color{\colMyCalig}\theauthor} %% replace 0pt by -12pt to lower.
    \end{turn}
\end{minipage}%
\begin{minipage}[t]{0.925\textwidth}
%    \begin{flushleft}
%        \begin{minipage}[b]{0.75\textwidth}
%            \begin{flushleft}
                \Huge\color{\colMyDarkGray}\sc\thetitle\\[0.5em]
                \normalsize\color{\colMyDarkGray}\today
%            \end{flushleft}
%        \end{minipage}
%    \end{flushleft}

    \begin{multicols}{2}
        \section*{Summary}
            \lettrine{L}{orem} Ipsum \lipsum[2]
        \columnbreak
        \section*{Personal Details}
        \lipsum[2]
    \end{multicols}
\end{minipage}

\myHrule

\section*{Education}
\lipsum[2-3]
\section*{Employment History}
\lipsum[2-3]

\end{document}

在此处输入图片描述

相关内容