我想在论文中添加一些图片,但添加后\usepackage{graphicx}
,所有页面的页码都消失了。如果我删除\usepackage{graphicx}
,所有页码都会恢复。Latex 模板是由学院提供的,所以我不能做太多更改。所有页码怎么了?
\documentclass[10pt]{article}
\setlength{\textwidth}{6.85in}
\setlength{\oddsidemargin}{-0.35in}
\setlength{\topmargin}{-1.0in}
\setlength{\textheight}{9.7in}
\setlength{\footskip}{1.0in}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{graphicx}
\renewcommand{\refname}{LIST OF REFERENCES}
\renewcommand{\baselinestretch}{1.0}
%You may use any LaTeX packages unless they change the font size, font family, margin, or line spacing.
\begin{document}
\begin{center}
\begin{LARGE}
Document Screening Essays
\end{LARGE}
\vspace{0.5cm}
NAME OF APPLICANT: {\it Aaa Bbb}
%Replace with your name
\end{center}
\noindent \hrulefill
\noindent
{\small {\bf Subject 1.} Briefly explain your motivation for applying to our department, presenting your concrete research topic. (0.5 pages)}
\vspace{-0.15cm}
\noindent \hrulefill
%%%%%Notes%%%%%%
%Follow the instructions on the department web page in writing your answers.
\vspace{9.3cm} %Delete this line when filling this section.
\noindent \hrulefill
\noindent
{\small
{\bf Subject 2.}
Select one important tool in xxx (e.g., theorem, formula, methodology, and algorithm) that is related to the research topic you presented in Subject 1. About this tool, explain the following aspects in a concrete and precise manner by clarifying the relation to your research topic.
(1) Details, (2) Significance in xxx, (3) Example(s) of its application. (1.5 pages)
}
\vspace{-0.15cm}
\noindent \hrulefill
\noindent
{\bf The selected tool:} {\it XXX} \\
%Replace XXX with the selected item.
\noindent
{\bf (1) Details}
\newpage %Delete this line when filling this section.
\noindent
{\bf (2) Significance in XXXXXXXXX}
\vspace{12cm} %Delete this line when filling this section.
\noindent
{\bf (3) Example(s) of its application}
\vspace{12cm} %Delete this line when filling this section.
%%%%%Notes%%%%%%
%You should not write anything except LIST OF REFERENCES in the 3rd and subsequent pages.
\begin{thebibliography}{99}
\bibitem ...
\end{thebibliography}
\end{document}
答案1
问题不在于graphicx
。您对页面布局所做的更改使页码偏离了页面。首先,如果您删除\setlength{\footskip}{1.0in}
,您应该会再次看到页码。
以下是页面布局的一个很好的参考:
https://en.wikibooks.org/wiki/LaTeX/Page_Layout
许多人使用该geometry
包以一致的方式调整页面布局。