涵盖乳胶问题中设置垂直规则的问题

涵盖乳胶问题中设置垂直规则的问题

我正在使用发布的示例背面创建封面。当我添加更多项目时,我遇到了以下问题:(1) 封面页有两页而不是一页,(2) 垂直线未对齐。

\documentclass[12pt,a4paper]{report} % A4 paper size and default 12pt font size

\usepackage{graphicx}
% Set figures path
\graphicspath{{./figs/}}

\newcommand*{\plogo}{\includegraphics[keepaspectratio=true,scale=0.1]{winterfell.png}} % Generic dummy publisher logo

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{stix} % Use the STIX fonts

\begin{document}

\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1

    \raggedleft % Right align the title page

    \rule{1pt}{\textheight} % Vertical line
    \hspace{0.05\textwidth} % Whitespace between the vertical line and title page text
    \parbox[b]{0.75\textwidth}{ % Paragraph box for holding the title page text, adjust the width to move the title page left or right on the page

        {\Huge\bfseries Kolkata Paise} \\
        [0.5\baselineskip] 
        {\Huge\bfseries {Restaurant (v2)}}\\
        [4\baselineskip]
        {\Large\textbf{University of WinterFell}}\\
        [0.5\baselineskip]
        {\Large\textbf{Degree in Night's Watch}}\\
        [0.5\baselineskip]
        {\Large\textbf{Exam in white walkers peacekeeper}}\\
        [4\baselineskip]
        {\Large\textsc{Jon Snow}} \\
        [1\baselineskip]
        {\large\textsc{Id: 1234567}}\\
        [0.5\baselineskip]
        {\large email: \textit{[email protected]}}\\

        \vspace{0.5\textheight} % Whitespace between the title block and the publisher
        \begin{center}
            {\noindent \plogo}\\[\baselineskip] % Publisher and logo
        \end{center}

    }

\end{titlepage}
\end{document}

在此处输入图片描述

答案1

雪诺大人需要明白,使用剑\\来打破界限就是在帮助下界之王完成将长错位带入生者王国的任务。他身边可能有整个特克塞罗斯军队,但如果没有剑,\par他就无法对抗下界之王。

有人建议斯诺勋爵避免使用固定间距,例如\vspace{4\baselineskip}(除非是生死攸关的问题),而应使用\vfill,这样空间就会根据需要填充。\vfill可以使用多个 s 来在两个元素之间获得更多空间。

在此处输入图片描述

这是工作代码:

\documentclass[12pt,a4paper]{report} % A4 paper size and default 12pt font size

\usepackage{graphicx}
% Set figures path
\graphicspath{{./figs/}}

\newcommand*{\plogo}{\includegraphics[keepaspectratio=true,scale=0.1]{winterfell.png}} % Generic dummy publisher logo

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{stix} % Use the STIX fonts

\begin{document}

\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1
    \raggedleft % Right align the title page
    \rule{1pt}{\textheight} % Vertical line
    \hspace{0.05\textwidth}% Whitespace between the vertical line and title page text
    \parbox[b]{0.75\textwidth}{% Paragraph box for holding the title page text, adjust the width to move the title page left or right on the page
        \Huge
          \bfseries
            Kolkata Paise\par
            Restaurant (v2)\par
        \vspace{4\baselineskip}
        \Large
            University of WinterFell\par
        \vspace{0.5\baselineskip}
            Degree in Night's Watch\par
            Exam in white walkers peacekeeper\par
        \vspace{4\baselineskip}
          \scshape
            Jon Snow\par
        \vspace{1\baselineskip}
            Id: 1234567\par
        \vspace{0.5\baselineskip}
        \large
          \normalfont
            email: \textit{[email protected]}
        \par
        \vfill
        % Whitespace between the title block and the publisher
        \centering
          \noindent\plogo
        \vspace*{0.5\baselineskip}
    }
\end{titlepage}
\end{document}

记住:我们对 MS Word 之神该说些什么?

相关内容