Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[12pt]{article}
- usepackage{hyperref}
- usepackage{enumitem}
- usepackage{amsmath}
- usepackage{graphicx}
- usepackage{spverbatim}
- %lstset{breaklines=true}
- usepackage{lastpage} %page number
- usepackage{fancyhdr}%header and footer
- usepackage{calc}
- usepackage{enumitem}
- usepackage{totcount}
- usepackage{etoolbox}
- makeatletter
- newcommand{LectureCode}[1]{def@LectureCode{#1}}
- newcommand{LectureName}[1]{def@LectureName{#1}}
- newcommand{ExamType}[1]{def@ExamType{#1}}
- newcommand{ExamDate}[1]{def@ExamDate{#1}}
- newcommand{ExamStart}[1]{def@ExamStart{#1}}
- newcommand{ExamDuration}[1]{def@ExamDuration{#1}}
- LectureCode{XYZ 550}
- LectureName{Advanced Technology}
- ExamType{Final}
- ExamDate{25/6/2016}
- ExamDate{9am}
- ExamDuration{90 minutes}
- makeatother
- textwidth=7in
- textheight=9.8in
- topmargin=-1in
- headheight=0in
- headsep=.5in
- hoffset=-.85in
- pagestyle{fancy}
- fancyhf{}
- renewcommand{headrulewidth}{0pt}
- fancyfoot[R] {Page thepage ~ of ~pageref{LastPage}}
- newcounter{cnt}
- newtotcounter{Toplam}
- newcommandtextlist{}
- newcommandsettext[2]{%
- csdef{text#1}{#2}
- }
- newcommandaddtext[1]{%
- stepcounter{cnt}%
- csdef{textthecnt}{#1}
- addtocounter{Toplam}{#1}
- }
- newcommandgettext[1]{%
- csuse{text#1}
- }
- newcommand{question}[2]
- {noindenttextbf{refstepcounter{cnt}thecnt . Question ( {#1} pts ) :}
- csdef{textthecnt}{#1} addtocounter{Toplam}{#1}{#2} vspace{0.4em}
- }
- newcommand{answer}[1]{ vspace{1em}textbf{Answer : } {#1} vspace{1em}}
- makeatletter
- defvhrulefill#1{leavevmodeleadershrule@height#1hfill kernz@}
- defVhrulefill#1{leavevmodeleadershrule@height#1 height 0.7ex depth dimexpr0.4pt-0.7exhfillkern0pt}
- makeatother
- begin{document}
- makeatletter
- {bfcentering @LectureCode hfill @LectureNamembox{ - }@ExamType hfill @ExamDate \
- hfill Duration : @ExamDuration hfill
- }
- makeatother
- setlength{unitlength}{1in}
- noindentVhrulefill{1pt}
- vspace{1em}
- makeatletter
- begin{minipage}{7cm}
- textbf{Name : }
- vspace{1em}
- textbf{ID : }
- vspace{1em}
- textbf{Sign : }
- vspace{1em}
- end{minipage}hskip1pc
- begin{minipage}{5cm}
- begingroup
- fontsize{14pt}{16pt}selectfont
- begin{tabular}{|c|c@{} *{thecnt}{c|}c|} % the first row is hidden
- hline
- newcounter{colnum}%
- setcounter{colnum}{0}
- Question &
- whileboolexpr{test{ifnumcomp{value{colnum}}{<}{thecnt}}}%
- {& stepcounter{colnum}arabic{colnum}}
- & Total \ hline
- Point &
- setcounter{colnum}{0}
- whileboolexpr{test{ifnumcomp{value{colnum}}{<}{thecnt}}}%
- {&stepcounter{colnum}gettext{thecolnum}}
- & total{Toplam} \ hline
- Grade &
- setcounter{colnum}{0}
- whileboolexpr{test{ifnumcomp{value{colnum}}{<}{thecnt}}}%
- {&stepcounter{colnum}} & \ hline
- end{tabular}
- endgroup
- end{minipage}
- makeatother
- noindentVhrulefill{1pt}mbox{ bf Questions }Vhrulefill{1pt}
- vspace{1em}
- question{10}{It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that ...
- }
- question{15}{It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that It has known that ...
- }
- question{15}{Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided Analyze the provided ...
- }
- question{30}{ Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow Rainbow ...
- }
- question{15}{In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to In order to ...
- }
- question{15}{Finally,...
- }
- noindentVhrulefill{1pt}mbox{ bf End of Questions }Vhrulefill{1pt}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement