现在我正在设计我的论文的标题页。我的大学徽标应该在左上角,然后我想要一条垂直线,从徽标顶部开始,到页面底部结束。右下角应该有更多文字。
我尝试使用嵌套框来实现这一点。这是我的 MWE:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\begin{document}
\begin{titlepage}
\newgeometry{margin=2cm, headheight = 0cm, centering=true}
\fbox{
\makebox[\textwidth]{
\parbox[b]{0.3819\textwidth}{
\hspace{0.01\textwidth}\hspace{1em}\vbox{%
\raggedright
\rule{0.85\linewidth}{3cm}
}
}%
\rule{1pt}{0.99\textheight}
\begin{minipage}[t]{0.6181\textwidth}
\begin{minipage}[b]{10cm}%{%
\raggedleft
{\noindent\Large Text}\\[\baselineskip]
\end{minipage}
\end{minipage}
}%outer makebox
}
\end{titlepage}
\end{document}
很明显,规则就是问题所在。有人能帮我吗?谢谢,FFoDWindow
答案1
我认为你可以大大简化代码:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{graphicx}
\begin{document}
\begin{titlepage}
\newgeometry{margin=2cm, headheight = 0cm}%,headsep=0pt}
\setlength{\fboxsep}{0pt}
\setlength{\parindent}{0pt}
\vspace*{-\baselineskip}
\vspace*{-\topskip}
\vspace*{-\fboxrule}
\hspace*{-\fboxrule}%
\fbox{%
\begin{minipage}[t][\textheight]{0.3819\textwidth}
\centering
\vspace{0pt}% set the reference point to the top
\includegraphics[width=\dimexpr\textwidth-2em]{example-image}%
\end{minipage}%
\hspace{-.5pt}\vrule width 1pt\hspace*{-.5pt}%
\begin{minipage}[t][\dimexpr\textheight-.4pt][b]{0.6181\textwidth}
\raggedleft
\Large Text
\vspace*{\baselineskip}
\end{minipage}%
}% end of \fbox
\hspace*{-\fboxrule}
\vspace*{-\fboxrule}
\end{titlepage}
\end{document}
答案2
使用tikz
-package 您可以像这样创建标题页:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{tikz}
\begin{document}
\begin{titlepage}
\newgeometry{margin=2cm, headheight = 0cm, centering=true}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north west,yshift=-2cm,xshift=2cm] at (current page.north west)
{\rule{0.3819\linewidth}{3cm}};
\end{tikzpicture}
\hspace{0.3819\linewidth}\rule{1pt}{0.99\textheight}
\parbox[t]{0.6181\textwidth}{\raggedleft\Large Text}
\end{titlepage}
\end{document}