![右边距有两条线:这是需要担心的事情吗?](https://linux22.com/image/303411/%E5%8F%B3%E8%BE%B9%E8%B7%9D%E6%9C%89%E4%B8%A4%E6%9D%A1%E7%BA%BF%EF%BC%9A%E8%BF%99%E6%98%AF%E9%9C%80%E8%A6%81%E6%8B%85%E5%BF%83%E7%9A%84%E4%BA%8B%E6%83%85%E5%90%97%EF%BC%9F.png)
MWE [注意,这必须通过西拉特克斯]:
\documentclass[11pt, twoside]{article}
\usepackage[showframe, top=0.5 in, bottom=0.5in, left=1in, right=1in, includehead, includefoot, headheight = 13.6pt]{geometry}
\usepackage{amsmath}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
%%titlename - CHANGE THE TITLE HERE!
\newcommand{\titlename}{\text{Some Title}}
%headers, footers
\usepackage{fancyhdr}
\pagestyle{fancyplain} %header
\fancyhf{} % sets both header and footer to nothing
\fancyhead[LO, RE]{\titlename}
\fancyhead[RO, LE]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}%header line
\renewcommand{\footrulewidth}{0.5pt}%footer line
\fancyfoot[L]{\footnotesize{Left Blah}}
\fancyfoot[R]{\footnotesize{Right Blah}} %for 11pt, \footnotesize is 9pt.
%headers, fo
%item indent amount
\newcommand{\itemamount}{0.5in}
\newcommand{\indentamount}{0.4in}
%%exam stuff
\usepackage[load-headings]{exsheets} %need to have exsheets.cfg in the same folder
\SetupExSheets{
headings = runin-nr ,
headings-format = \normalsize ,
counter-format = 1-qu. %1-question number. is the counter format.
}
\usepackage[inline]{enumitem}
\newlist{choices}{enumerate*}{1}
\setlist[choices]{itemjoin = \hspace{0.75in},before=\hspace{0.125in},label=(\Alph*)}
%%exam stuff
%Times New Roman Font
\renewcommand\rmdefault{ptm}
%Times New Roman Font
\begin{document}
\setlength\parindent{\indentamount}
\begin{question}[type = exam]
\hspace{0.125in}Here's a question.
\begin{enumerate}[label=(\roman*)]
\setlength\itemindent{\itemamount}
\item
\item
\end{enumerate}
\end{question}
\begin{choices}
\item Test
\item Test
\item Test
\item Test
\item Test
\end{choices}
\end{document}
我必须遵守以下边距:顶部和底部 0.5 英寸,左侧和右侧 1 英寸。页眉和页脚必须位于边距之外。使用上面的代码,我得到了以下图像 [红色部分是我做的]:
为什么右边有两条线? 如果我们将其扩展到第二页,同样,我们会在左边得到两行。
在第一页上,红色圆圈所在行左侧的行左侧是否包含任何内容?这是我最关心的问题。
答案1
引用geometry
包装文档,
marginparsep
修改\marginparsep
,正文与边注的分离。
因此设置marginparsep=⟨length⟩
为,比如说0pt
会使这个分离为零。
\usepackage[showframe,
marginparsep=0pt,
top=0.5in,
bottom=0.5in,
left=1in,
right=1in,
includehead,
includefoot,
headheight=13.6pt]{geometry}
这里有一张供参考的图片。