我有这本书的以下页面
掌握博士学位- P. Gosling 和 B. Noordam (Springer 2006),第 42 页:
现在我想用 LaTeX 来实现这一点。我特别感兴趣的是如何让框架和页面一样宽(或者在一张 A4 纸上放两个框架,以及虚线)。
答案1
\documentclass[12pt,twoside]{report}
\usepackage[english]{babel}
\usepackage[charter]{mathdesign}
\usepackage{tikz,paralist}
\usetikzlibrary{shapes,positioning}
\usepackage[a4paper,bindingoffset=0in,left=0.1in,right=0.1in,top=0.0in,bottom=0.2in]{geometry}
%-----------------------------------------------------------------
\begin{document}
% ----------------------------------------------------------------
\begin{titlepage}
%==========================================================
\begin{tikzpicture}[remember picture,overlay]
\fill[black] (current page.north east) rectangle (current page.south west);
\fill[white, rounded corners=0.5cm] ([xshift=-1mm,yshift=-1mm]current page.north east) rectangle ([xshift=1mm,yshift=1mm]current page.south west);
\draw[dashed,ultra thick]([yshift=10cm]current page.west)-- ([xshift=0cm,yshift=10cm]current page.east);
\draw[dashed,very thick]([yshift=6cm]current page.west)-- ([xshift=0cm,yshift=6cm]current page.east);
\draw[dashed,very thick]([yshift=2cm]current page.west)-- ([xshift=0cm,yshift=2cm]current page.east);
\draw[dashed,very thick]([yshift=-2cm]current page.west)-- ([xshift=0cm,yshift=-2cm]current page.east);
\draw[dashed,ultra thick]([yshift=-7cm]current page.west)-- ([xshift=0cm,yshift=-7cm]current page.east);
\end{tikzpicture}
%==========================================================
\setlength{\parindent}{0pt}
\phantom{0}\\
\noindent{\LARGE\bfseries Monthly Progress Monitor}\\[30pt]
{\Large Name PhD student:} \hfil {\Large Name supervisor:} \\[30pt]
{\Large Date: \phantom{PhD student::} }\hfil{\Large Previous meeting:}\\
%==========================================================
\begin{compactenum}[1.]
\Large
\item{Of the results I obtained last month, which are the most important?}\\[70pt]
\item{Did I deviate from last month's planning. If so, why?}\\[70pt]
\item{What are the most important goals for the upcoming month?}\\[70pt]
\item{What do I need to do to research these goals? What are the potential hurdles and how do I overcome them?}\\[84pt]
\end{compactenum}
%==========================================================
{\Large Suggested date for next month's meeting:}\\[40pt]
{\Large\itshape General agreements:}\\[4pt]
%==========================================================
\begin{compactenum}[a.]
\Large\itshape
\item{PhD student fills out form prior to meeting with supervisor}\\
\item{At the meeting the answers are completed}\\
\item{Supervisor gets a copy of the final form after the meeting}\\
\end{compactenum}
%==========================================================
\end{titlepage}
% ----------------------------------------------------------------
\end{document}
答案2
这是一个可能的解决方案:该background
包用于制作框架:
\documentclass{article}
\usepackage[margin=3cm]{geometry}
\usepackage{background}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{enumitem}
% the dotted line
\newcommand*\dottedline{%
\makebox[\textwidth]{%
\parbox{\dimexpr\textwidth+4mm\relax}{\dotfill}}%
}
% the frame
\SetBgScale{1}
\SetBgAngle{0}
\SetBgColor{black}
\SetBgContents{\begin{tikzpicture}[overlay,remember picture]
\draw ($ (current page.north west) + (2.8cm,-2.8cm) $)
rectangle
($ (current page.south east) + (-2.8cm,2.8cm) $);
\end{tikzpicture}}
\setenumerate{leftmargin=*}
\setlength\parindent{0pt}
\pagestyle{empty}
\begin{document}
\begin{tabular}{@{}p{.5\linewidth}@{}p{.5\linewidth}@{}}
\bfseries Monthly Progress Monitor & \\[1ex]
Name PhD Student: & Name Supervisor: \\[1ex]
Date: & Previous Meeting:
\end{tabular}
\dottedline
\begin{enumerate}
\item Of the results I obtained last month, which are the most important? text text text text text text text text text text text text text text text text text text text text text text text text
\end{enumerate}\vfill\dottedline
\begin{enumerate}[resume]
\item Of the results I obtained last month, which are the most important?
\end{enumerate}\vfill\dottedline
\begin{enumerate}[resume]
\item Of the results I obtained last month, which are the most important?
\end{enumerate}\vfill\dottedline
\begin{enumerate}[resume]
\item Of the results I obtained last month, which are the most important?
\end{enumerate}\vfill\dottedline
Suggested date for next month's meeting:\\[2ex]
{\itshape General agreements:
\begin{enumerate}[label=\alph*.]
\item PhD student fills out form prior to meeting with supervisor.
\item At the meeting answers are completed.
\item Supervisor gets a copy of the final form after the meeting.
\end{enumerate}
}
\end{document}