QQ群:91940767/145316219/141877998/80300084/194770436淘宝店:http://latexstudio.taobao.com
效果图:演示代码(pdflatex来运行),这是比较老的代码实现,大家可以把它变成较为新的实现方式,推荐BHCexam来做:
% Written by Shadow % Tue Jun 7 21:07:36 CST 2005 % usage: % pdflatex exampaper % (may be compile twice) % %\documentclass[a4paper]{scrartcl} \documentclass[a4paper]{article} %\pagestyle{plain} %\renewcommand{\baselinestretch}{1.25} \renewcommand{\baselinestretch}{1.5} \topmargin -12mm \oddsidemargin 0mm \evensidemargin 0mm \textwidth 180mm \textheight 217mm \addtolength{\headsep}{13mm} %\flushbottom \newif\ifpdf \ifx\pdfoutput\undefined \pdffalse % we are not running PDFLaTeX \else \pdfoutput=1 % we are running PDFLaTeX \pdftrue \fi \ifpdf \usepackage[pdftex]{graphicx} \pdfcompresslevel=9 \else \usepackage[dvips]{graphicx} \fi \ifpdf \DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png} \fi \usepackage{fancyhdr} \usepackage{afterpage} \usepackage{lastpage} \usepackage{listings} \usepackage{CJK,CJKnumb} \usepackage{indentfirst} \begin{document} \begin{CJK*}{UTF8}{song} %\CJKcaption{GB} \CJKtilde \CJKindent \newcounter{mynum} \newcounter{subnum}[mynum] \newcommand{\dati}{\stepcounter{mynum}\CJKnumber{\arabic{mynum}}、\ } \newcommand{\xiaoti}{\stepcounter{subnum}\arabic{subnum}.\ } \newcommand{\kg}[1]{\,\underline{\hspace{#1em}}\,} %-------版面的线框用页眉元素表现-------- %---第一页与众不同--- \newsavebox{\firstpgframe} \sbox{\firstpgframe}{\parbox{157mm}{ \begin{center} \begin{minipage}[t][153mm][t]{157mm} \makebox[4mm][l]{\fbox{\parbox[t][153mm][t]{157mm}{\ }}} \end{minipage} \end{center} }} %\thispagestyle{fancy} \pagestyle{fancy} %\fancyhead{} \fancyhf{}% \fancyhead[C]{\setlength{\unitlength}{1in} \begin{picture}(0,0) \put(-3.1,-6.65){\usebox{\firstpgframe}} \end{picture}} \renewcommand{\headrulewidth}{0pt} \newsavebox{\otherpgframe} \sbox{\otherpgframe}{\parbox{157mm}{ \begin{center} \begin{minipage}[t][224mm][t]{157mm} \makebox[4mm][l]{\fbox{\parbox[t][226mm][t]{157mm}{\ }}} \begin{minipage}[t][224mm][t]{148mm} \end{minipage} \end{minipage} \end{center} }} %----后继的其他页面使用较大的版面线框---- \afterpage{% \fancyhf{}% \fancyhead[C]{\parbox[c][0mm][c]{157mm}{\vspace*{25mm} {\centering \CJKfamily{kai} \Large \normalsize \hspace*{55mm} 布啦布啦学院试卷\hspace*{4cm}共\,\pageref{LastPage}\,页\ \ \ 第\,\thepage\,页}} \setlength{\unitlength}{1in} \begin{picture}(0,0) \put(-6.2,-5.15){\usebox{\otherpgframe}} \end{picture}}} %%%%%%%% 文档开始 %%%%%%%%% %-------先是试卷头------- \vspace*{-6mm} %\ \\[-18mm] \begin{center} {\LARGE{\CJKfamily{kai}布啦布啦学院试卷}} { \CJKfamily{kai} \Large \normalsize \hspace*{12cm} 共\,\pageref{LastPage}\,页\ \ \ 第\,\thepage\,页 \parbox{150mm}{ \begin{tabbing} 试卷类型 \underline{\makebox[12mm][c]{~~}} \= 考试形式 \underline{\makebox[12mm][c]{闭卷}} ~~~~~~~~\= \makebox[7em][c]{命\hfill{}题\hfill{}人} \underline{\makebox[22mm][c]{赵钱孙}} \= \underline{\makebox[6mm][c]{03}}年 \underline{\makebox[6mm][c]{12}}月 \underline{\makebox[6mm][c]{02}}日\kill % \underline{\makebox[26mm][c]{ 2004 / 2005 }}学年~第\underline{\makebox[8mm][c]{ 一 }}学期 \> \> \makebox[7em][c]{课\hfill{}程\hfill{}名\hfill{}称} \underline{\makebox[48mm][c]{ 奇门遁甲原理 }} \\ 试卷类型 \underline{\makebox[12mm][c]{ A 卷}} \> 考试形式 \underline{\makebox[12mm][c]{ 闭卷 }} \> \makebox[7em][c]{命\hfill{}题\hfill{}人} \underline{\makebox[22mm][c]{ 赵钱孙 }} \> \underline{\makebox[6mm][c]{ 04 }}年 \underline{\makebox[6mm][c]{ 12 }}月 \underline{\makebox[6mm][c]{ 25 }}日 \\ 使用班级 \underline{\makebox[41mm][c]{ 123456/123457 }} \> \> \makebox[7em][c]{教研室主任签字} \underline{\makebox[22mm][c]{}} \> \underline{\makebox[6mm][c]{}}年 \underline{\makebox[6mm][c]{}}月 \underline{\makebox[6mm][c]{}}日 \\ \> \> \makebox[7em][c]{系、部主任签字} \underline{\makebox[22mm][c]{}} \> \underline{\makebox[6mm][c]{}}年 \underline{\makebox[6mm][c]{}}月 \underline{\makebox[6mm][c]{}}日 \end{tabbing} } \parbox{158mm}{ \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|} % after\\:\hline or \cline{col1-col2} \cline{col3-col4} ... \hline 题~号 & \makebox[7.5mm][c]{一} & \makebox[7.5mm][c]{二} & \makebox[7.5mm][c]{三} &\makebox[7.5mm][c]{四} & \makebox[7.5mm][c]{五} & \makebox[7.5mm][c]{六} &\makebox[7.5mm][c]{七} & \makebox[7.5mm][c]{八} & \makebox[7.5mm][c]{九} &\makebox[7.5mm][c]{十} & ~总~分~ & 阅卷人\\ \hline 得~分& & && & && & && & & \\ \hline \end{tabular} } } \end{center} \newsavebox{\zdx} \sbox{\zdx} {\parbox{412pt}{ \centering \CJKfamily{kai} 班~级\underline{\makebox[34mm][c]{}}~学~号\underline{\makebox[34mm][c]{}}~~~姓~名\underline{\makebox[34mm][c]{}} \vspace{3mm} \dotfill{}装\dotfill{}订\dotfill{}线\dotfill{} }} \setlength{\marginparsep}{-10mm} \reversemarginpar \marginpar{ \parbox{10mm}{\vspace{5cm} \rotatebox[origin=c]{90}{ \usebox{\zdx} } }} \vspace{4mm} \large \CJKindent \newenvironment{mytext} {\begin{list}{}{% \setlength{\leftmargin}{15mm} \setlength{\rightmargin}{12mm} }\item[]}{\end{list}} \begin{mytext} % 在下面输入试卷内容 % ================== {\CJKfamily{hei}说明:} {\CJKfamily{kai} 某些题目的正确答案并不是唯一的。请认真阅读题目,尽可能详细、全面地作答。 } \vspace{2ex} \dati 简答题(\,20\,分) % 所谓的大题 \xiaoti 请回答土遁的三种基本方法?(\,6\,分)% 所谓的小题 \xiaoti 怎样隐身?请解释。布啦布啦布啦啦布啦布啦布啦布啦;布啦布啦布啦布啦布啦布啦布啦布啦 布啦布啦,布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦,布啦布啦布啦布啦布啦布啦布啦布 布啦布啦,布啦布啦。布啦布啦布啦布啦。(\,6\,分) \vspace{26ex} \xiaoti 踩莲水面行的六种咒语?布啦布啦布啦啦布啦布啦布啦布啦;布啦布啦布啦布啦布啦布啦布啦布啦 布啦布啦,布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦,布啦布啦布啦布啦布啦布啦布啦布 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦布啦啦布啦布啦布啦布啦;布啦布啦布啦布啦布啦布啦布啦布啦 布啦布啦,布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦,布啦布啦布啦布啦布啦布啦布啦布 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦布啦啦布啦布啦布啦布啦;布啦布啦布啦布啦布啦布啦布啦布啦 布啦布啦,布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦布啦,布啦布啦布啦布啦布啦布啦布啦布 布啦布啦,布啦布啦。布啦布啦布啦布啦。(\,6\,分) \vspace{20ex} \dati 论述题(\,80\,分) \xiaoti 论述布啦布啦,布啦布啦。布啦布啦布啦布啦。(\,40\,分) \vspace{20ex} \xiaoti 论述布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 布啦布啦,布啦布啦。布啦布啦布啦布啦。布啦布啦,布啦布啦。布啦布啦布啦布啦。 (\,40\,分) %%%%%%%% 结束试卷内容 %%%%%%%%% \end{mytext} \clearpage \end{CJK*} \end{document}
发表评论 取消回复