如何在多项选择题的页末写“谢谢”?

如何在多项选择题的页末写“谢谢”?

在三天前的上一个问题中如何在页面末尾写“结束”和“非常感谢”?,我只想把它放在页面末尾。但是,我已经用其他模板测试过了,无法把“谢谢”的文字放在页面末尾。我该怎么做?非常感谢

我的代码在这里:

test_exam.tex 文件的内容如下

\usepackage{exam} 
\usepackage[a4paper,tmargin=1.0cm, bmargin=1.5cm, lmargin=1.5cm, rmargin=1.5cm]{geometry}
\ContinuousNumbering 
\ShortKey
\NumberOfVersions{1}  
\SectionPrefix{\relax }
\madethi{111}
\tieudetracnghiem
\tieudedapan
\tieudeduoi
\daungoac{}{.}
\chucauhoi{Question} 
\mauchu{black}
\sotrang{4}
\renewcommand{\baselinestretch}{1.125}
\NoRearrange

exam.sty 文件在这里

\ProvidesPackage{exam}
\RequirePackage{ifthen}
\ProcessOptions\relax
\parskip=0pt
\parindent=0pt
\makeatletter
\newcommand\@scau{\ }
\newcounter{madetracnghiem}
\newcommand{\madethi}[1]{\setcounter{madetracnghiem}{#1}
\addtocounter{madetracnghiem}{-1}}
\newcommand{\socauhoi}[1]{\renewcommand{\@scau}{ #1}}
\makeatother
\renewcommand{\Fullpages}{\setlength{\topmargin}{0pc}
                        \setlength{\oddsidemargin}{0pc}
                        \setlength{\evensidemargin}{0pc}
                        \setlength{\headheight}{0pt}
                        \setlength{\headsep}{0pt}
                        \setlength{\textwidth}{17truecm}
                        \setlength{\textheight}{25truecm}
\setlength{\voffset}{-1cm}
}
\makeatletter
\def\tieudetracnghiem{
\begin{examtop}
\stepcounter{madetracnghiem}
\begin{minipage}[b]{0.65\textwidth}
\centering
{\bf \@tkythi}\\
\qquad\qquad\qquad\qquad{\bf  \@tmonhoc}\qquad\qquad\qquad \textbf{\fbox{Code \themadetracnghiem}}\\ \bigskip 
{\it \@tgian}\\
\end{minipage}

\end{examtop}
}

% 
\def\tieudedapan{
\begin{keytop}
\@@line{\fbox{Code \themadetracnghiem}\hfill{\bf\Large ANSWER}\hfill}
\end{keytop}
}
\def\@strang{ }
\newcommand{\sotrang}[1]{\renewcommand{\@strang}{#1}}
\def\tieudeduoi{
\renewcommand{\@oddfoot}{%
\parbox{\textwidth}{%
 \vspace*{-18pt}%
{\hfill {\it  Page\ \thepage/\@strang - Code \themadetracnghiem}}
}%
}}

\newcommand{\chucauhoi}[1]{\renewcommand{\labelenumi}{\textcolor{\@mauchu}{\bf #1\ \theenumi.}}}
\newcommand{\mauchu}[1]{\renewcommand{\@mauchu}{#1}}
\newcommand{\daungoac}[2]{\renewcommand{\@leftdot}{#1}\renewcommand{\@rightdot}{#2}}
\newcommand{\chuphuongan}[1]{\renewcommand{\@upletter}{#1}} 


\setlength{\labelwidth}{48truept}
\newcommand{\bonpa}[4]{
\examvspace*{-0.6\baselineskip}
\word{{#1}{#4}{#1}{#1}{#4}{#1}{#1}{#2}{#4}{#2}{#2}{#4}{#2}{#2}{#3}{#4}{#3}{#3}{#4}{#3}{#3}{#1}{#2}{#3}}
\word{{#2}{#1}{#4}{#3}{#1}{#4}{#3}{#1}{#2}{#4}{#3}{#2}{#4}{#3}{#1}{#3}{#4}{#2}{#3}{#4}{#2}{#2}{#1}{#1}}
\word{{#3}{#2}{#2}{#2}{#3}{#3}{#4}{#3}{#1}{#1}{#1}{#3}{#3}{#4}{#2}{#1}{#1}{#1}{#2}{#2}{#4}{#4}{#4}{#4}}
\word{{#4}{#3}{#3}{#4}{#2}{#2}{#2}{#4}{#3}{#3}{#4}{#1}{#1}{#1}{#4}{#2}{#2}{#4}{#1}{#1}{#1}{#3}{#3}{#2}}
}

\def\@datcotphai{ }
\def\@datcottrai{\examhspace*{-12pt}}

\newcommand{\datcot}[1][0]{\ifthenelse{#1=0}{
\renewcommand{\@datcotphai}{ }
}{
\renewcommand{\@datcotphai}{\parbox[t]{#1\shortitemwidth}}
}}

\newcommand{\sai}[1]{\choice{\@datcotphai{#1\@datcottrai}}}
\newcommand{\dung}[1]{\choice[!]{\@datcotphai{#1\@datcottrai}}}
\newcommand{\false}[1]{\choice{#1}}
\newcommand{\true}[1]{\choice[!]{#1}}
\newcommand{\liencau}{\renewcommand{\@tachcau}{\examvspace*{-0.7\baselineskip}}}
\newcommand{\motcot}[1]{\parbox[t]{\shortitemwidth}{#1\strut}}
\newcommand{\haicot}[1]{\parbox[t]{2\shortitemwidth}{#1\strut}}
\newcommand{\bacot}[1]{\parbox[t]{3\shortitemwidth}{#1\strut}}
\newcommand{\boncot}[1]{\parbox[t]{4.4\shortitemwidth}{#1}}
\makeatother

\abovedisplayskip=0pt plus 0pt minus 3pt
\abovedisplayshortskip=0pt plus 0pt minus 3pt
\belowdisplayskip=\abovedisplayskip
\belowdisplayshortskip=\abovedisplayshortskip
\setlength{\afterinstsep}{0truept}
\setlength{\aftersectsep}{0truept}
\setlength{\beforeinstsep}{0truept}
\setlength{\shortitemwidth}{3.5truecm}
 \setlength{\leftmargin}{0truept}
\setlength{\rightmargin}{0pc}
\setlength{\parskip}{0pc}
\def\ktrang{\makebox[1.5cm]{\hrulefill}}
\hfuzz=1pt
\sloppy

main.text 文件在这里

\input{test_exam.tex}
\begin{document}

\begin{vnmultiplechoice}[ rearrange=yes, keycolumns=5]%

\begin{question}  % question 1
    Determine whether or not each of the following signal is periodic $x[n] = cos(\frac{\pi n^{2}}{8})$. If a signal is periodic, determine its fundamental period.
    \datcot
    \bonpa
    {\false{$0$.}}
    {\false{$T = 4$.}}
    {\false{$T = 6$.}}
    {\true{$T = 8$.}}
\end{question}

\begin{question}  % question 2
    Find T of the discrete signal $x[n] = cos(\pi n^{2})$?
    \datcot
    \bonpa
    {\false{$T = 0$.}}
    {\false{$T = 4$.}}
    {\true{$T = 6$.}}
    {\false{$T = 8$.}}
\end{question}
\end{vnmultiplechoice}

\end{document}

在此处输入图片描述

模板如下

https://www.dropbox.com/sh/qqxclcd8j28sfxv/AADq8McA9LjVqHWMItLbjpCua?dl=0

答案1

编辑:

在聊天室讨论后,我认识到您使用的文档样式examdesign,所有特定环境(问题,vnmultiplechoice)都视为浮点数,因此所有添加的文本都被推送到第一页。因此,简单的解决方案,适用于article和其他标准文档类:

\documentclass{article}
\usepackage{lipsum}                   % for dummy text

\begin{document}
\lipsum[1-4]

\vfill\centerline{\Large Thank you}
\clearpage

\textbf{here follows answers}

\lipsum[1]
\end{document}

在此处输入图片描述

(红线表示文本区域边框)

不起作用examendesign,您的需求到目前为止不可能用这个文档类来实现。

也许值得写信给软件包作者寻求一些建议或者向他发送功能请求。

相关内容