使用 tikz 创建页面边框线后,如何启动新页面?

使用 tikz 创建页面边框线后,如何启动新页面?

我已经制作了带有边框的纸张封面。但问题如下图所示我想开始“A 部分(新页面 10 分)。希望有人能帮助我。谢谢!

\documentclass{exam}

\usepackage{fullpage}
\usepackage[flushleft]{threeparttable}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[a4]{crop}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{figure}

\pagestyle{empty}
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=1pt,rounded corners=0pt,]
      ($ (current page.north west) + (1cm,1cm) $)
    rectangle
    ($ (current page.south east) + (-1cm,1cm) $);  
\end{tikzpicture}

\begin{center}
\hspace{2.5cm} \includegraphics[scale=0.3]{upm.png}
\newline
\newline
\newline
\begin{center}
\titlepage \bfseries FAKULTI SAINS \\ \vspace{1cm} Peperiksaan Akhir \\  Semester Kedua 2013/2014 \\


\vspace{1cm}

\begin{tabular}{>{\raggedright\arraybackslash}m{23mm}@{:}m{12.3cm}}
\hline 
\multicolumn{2}{c}{} \\
KURSUS  &   STATISTIK BAGI SAINS GUNAAN \\
KOD     &   MTH3003 \\  
\multicolumn{2}{c}{} \\
\hline
\hline
\hline
\multicolumn{2}{c}{} \\
PROGRAM & BS(K) \\
\multicolumn{2}{c}{} \\
TARIKH     & 20 JUN 2014 \\
\multicolumn{2}{c}{} \\
MASA          & 8.30-10.30 PAGI \hfill JANGKAMASA \hfill : 2 JAM \\

\end{tabular}\\
\vspace{0.8cm}

\begin{flushleft}
ARAHAN KEPADA CALON:
\mdseries   \begin{enumerate}
        \item  Jawab Semua Soalan \newline \textit{Answer all question}
        \end{enumerate}
\end{flushleft}

\bfseries
\begin{center}
\begin{tabular}{>{\raggedright\arraybackslash}m{23mm}@{:}m{5cm}m{30mm}@{:}m{5cm}}
\hline
\hline
\multicolumn{4}{c}{}\\
\multicolumn{4}{c}{SLIP KEHADIRAN}\\
\multicolumn{4}{c}{}\\
No. Matrik & &Program & \\
\multicolumn{2}{c}{} \\
No. Meja   & & Tandatangan &\\
\end{tabular}
\\
\vspace{2cm}
\mdseries 
Kertas soalan ini mengandungi 14 halaman tidak termasuk helaian pertama\\
\vspace{4.5cm}
Hak Cipta Terpelihara UPM \\
\end{center}
\end{center}
\end{center}



\textbf{Part A (10 marks)}
\begin{questions}

\question

A test of the breaking strengths of two different types of cables was conducted using samples of \\
$n_1 = n_2 = 100$

\end{questions}
\end{figure}
\end{document}

答案1

这是一个解决方法。Exam类有一个\begin/\end{coverpages}可以利用的环境。因此,此解决方案标记出\begin/\end{figure}\titlepage。注意:在实际实现中,删除选项demo中的。graphicx

在此处输入图片描述

代码

\documentclass{exam}
%\usepackage[margin=1cm]{geometry}
\usepackage{fullpage}
\usepackage[flushleft]{threeparttable}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[demo]{graphicx}  % remove demo for real case implementation
\usepackage[a4]{crop}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
%\begin{figure}
\begin{coverpages}
\pagestyle{empty}
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=1pt,rounded corners=0pt,]
      ($ (current page.north west) + (1cm,1cm) $)
    rectangle
    ($ (current page.south east) + (-1cm,1cm) $);  
\end{tikzpicture}

\begin{center}
\hspace{2.5cm} \includegraphics[scale=0.3]{upm.png}
\newline
\newline
\newline
\begin{center}
%\titlepage 
\bfseries FAKULTI SAINS \\ \vspace{1cm} Peperiksaan Akhir \\  Semester Kedua 2013/2014 \\

\vspace{1cm}

\begin{tabular}{>{\raggedright\arraybackslash}m{23mm}@{:}m{12.3cm}}
\hline 
\multicolumn{2}{c}{} \\
KURSUS  &   STATISTIK BAGI SAINS GUNAAN \\
KOD     &   MTH3003 \\  
\multicolumn{2}{c}{} \\
\hline
\hline
\hline
\multicolumn{2}{c}{} \\
PROGRAM & BS(K) \\
\multicolumn{2}{c}{} \\
TARIKH     & 20 JUN 2014 \\
\multicolumn{2}{c}{} \\
MASA          & 8.30-10.30 PAGI \hfill JANGKAMASA \hfill : 2 JAM \\

\end{tabular}\\
\vspace{0.8cm}

\begin{flushleft}
ARAHAN KEPADA CALON:
\mdseries   \begin{enumerate}
        \item  Jawab Semua Soalan \newline \textit{Answer all question}
        \end{enumerate}
\end{flushleft}

\bfseries
\begin{center}
\begin{tabular}{>{\raggedright\arraybackslash}m{23mm}@{:}m{5cm}m{30mm}@{:}m{5cm}}
\hline
\hline
\multicolumn{4}{c}{}\\
\multicolumn{4}{c}{SLIP KEHADIRAN}\\
\multicolumn{4}{c}{}\\
No. Matrik & &Program & \\
\multicolumn{2}{c}{} \\
No. Meja   & & Tandatangan &
\end{tabular}

\vspace{1cm}             % adjust this parameter
\mdseries 
Kertas soalan ini mengandungi 14 halaman tidak termasuk helaian pertama

\vspace{1cm}             % adjust this parameter
Hak Cipta Terpelihara UPM 

\end{center}
\end{center}
\end{center}
\end{coverpages}

\textbf{Part A (10 marks)}
\begin{questions}

\question

A test of the breaking strengths of two different types of cables was conducted using samples of \\
$n_1 = n_2 = 100$

\end{questions}
%\end{figure}
\end{document}

相关内容