制作带有徽标的考试格式

制作带有徽标的考试格式

我正在尝试制作带有徽标的考试页面标题。以下是我的代码。

\usepackage{graphicx}

\begin{document}

\firstpageheadrule
\begin{figure}[]
\includegraphics[width=20mm]{logo.png}
\label{overflow}
\end{figure}
\chead{Department of Mathematics}

\begin{questions}
Question one
\end{questions}

\end{document}

我正在尝试做类似的事情 在此处输入图片描述

但我的代码没有给出所需的输出。我不知道为什么我的代码不起作用。我想知道如何修复代码。

非常感谢您的帮助。非常感谢!

答案1

根据您的需要调整设置:

\documentclass{exam}  
\usepackage[demo]{graphicx}

\begin{document}

\begin{center}
\includegraphics[width=20mm]{logo.png}\quad Department of Mathematics\par
AAA School\par\bigskip
Class A\par
First Exam--Functions\par
\end{center}

\vspace{0.8cm}

\noindent\begin{tabular}{@{}p{.35\textwidth}@{\hspace{4cm}}p{.20\textwidth}@{}}
Name:\enspace\hrulefill & Marks:\enspace\hrulefill \\[2ex]
Time: 60 minutes\hfill & Date:\enspace\hrulefill 
\end{tabular}\par\bigskip

\noindent\hrulefill

\vspace{0.5cm}

\begin{questions}
\question Question one
\end{questions}

\end{document}

在此处输入图片描述

选项demo只是graphicx用黑色矩形替换实际图形;不是在实际文档中使用该选项。

答案2

让我们添加一些趣味吧!这是一个不那么简单的模板,您可以调整它以获得另一种带有一些亮点的设计。

\documentclass[11pt,addpoints,answers]{exam}
\usepackage{graphicx,lastpage}
\hyphenpenalty 10000
\usepackage[paperheight=5.8in,paperwidth=8.27in,bindingoffset=0in,left=0.8in,right=1in,
top=0.7in,bottom=1in,headsep=.5\baselineskip]{geometry}
\flushbottom
\usepackage[normalem]{ulem}
\renewcommand\ULthickness{2pt}   %%---> For changing thickness of underline
\setlength\ULdepth{1.5ex}%\maxdimen ---> For changing depth of underline
\renewcommand{\baselinestretch}{1}
\pagestyle{empty}

\pagestyle{headandfoot}
\headrule
\newcommand{\continuedmessage}{%
\ifcontinuation{\footnotesize Question \ContinuedQuestion\ continues\ldots}{}%
}
\runningheader{\footnotesize Physcis}
{\footnotesize Physics --- Sixth semester}
{\footnotesize Page \thepage\ of \numpages}
\footrule
\footer{\footnotesize Student's name:}
{}
{\ifincomplete{\footnotesize Question \IncompleteQuestion\ continues
on the next page\ldots}{\iflastpage{\footnotesize End of exam}{\footnotesize Please go on to the next page\ldots}}}
%
\usepackage{cleveref}
\crefname{figure}{figure}{figures}
\crefname{question}{question}{questions}
%
%
%==============================================================
\begin{document}
%%
%% \thispagestyle{empty}
%
\noindent
\begin{minipage}[l]{.1\textwidth}%
\noindent
\includegraphics[width=\textwidth]{example-image-a}
\end{minipage}%
%
\hfill
\begin{minipage}[r]{.68\textwidth}%
\begin{center}
 {\large \bfseries DEPARTMENT OF PHYSICS \par
 \Large Institute\\[2pt]
 \large Subject {(\normalsize Sixth semester)}  \par}
%  \vspace{0.5cm}
\end{center}
\end{minipage}%
%
\fbox{\begin{minipage}[l]{.175\textwidth}%
\noindent
{\bfseries Your name}\\
Professor\\
{\footnotesize Date: {17.01.2013}}
\end{minipage}}%
%
\par
\noindent
\uline{Time: 1 hour   \hfill \normalsize\emph{\underline{Internal Assessment test - I}} \hfill        Maximum Marks: 20}
%
\begin{questions}

\pointsinrightmargin
\pointsdroppedatright
\marksnotpoints
% \marginpointname{mark}
\pointpoints{mark}{marks}
\pointformat{\boldmath\themarginpoints}
\bracketedpoints
%
\question[08]
\label{Q:perunit}
Some question here
\droppoints
\question[08]
\label{Q:zbus}
Some question here
\droppoints
%
\newpage
\question[08]
\label{Q:ybus}
Some question here
\droppoints
\question[02]
\label{Q:puq}
Some question here
\droppoints
%%
%
\question[02]
\label{Q:power}
Some question here
\droppoints

%
\end{questions}
 \begin{center}
  \rule{.5\textwidth}{1pt}
 \end{center}
\end{document}

在此处输入图片描述

在此处输入图片描述

答案3

对于徽标,我将使用两个相邻的小页面,如下所示:

\documentclass{exam}
\usepackage{graphicx}

\begin{document}

\begin{center}
\begin{minipage}{2.5cm}
\includegraphics[width=20mm]{logo.png}
\end{minipage}%
\begin{minipage}{4.5cm}
Department of Mathematics\\
AAA School
\end{minipage}
\end{center}

\bigskip

\begin{questions}
\question Question one
\end{questions}

\end{document} 

在此处输入图片描述

相关内容