随着时间的推移,我在文档开头添加了许多命令,但我迷失了方向,现在无法简单地修改垂直间距和边距。
当前文件
这是我的包裹和东西
% ---------------------------
DOCUMENTCLASS
% ---------------------------
\documentclass[letterpaper,12pt]{scrartcl}
% --------------------------
BIBLIOGRAPHY
% ---------------------------
\usepackage[round,mcite]{natbib}
\bibliographystyle{plainnat}
% --------------------------
INPUTSTRUCTURE
% ---------------------------
\input{structure.tex}
% --------------------------
OTHER
% ---------------------------
\usepackage{pifont}% http://ctan.org/pkg/pifont
\usepackage{hhline}
\usepackage{multirow}
\newcommand{\xmark}{\ding{55}}
\hypersetup{citecolor=brown}
\hyphenation{Fortran hy-phen-ation}
这是我的structure.tex
\usepackage[
nochapters, % Turn off chapters since this is an article
beramono, % Use the Bera Mono font for monospaced text (\texttt)
eulermath,% Use the Euler font for mathematics
pdfspacing, % Makes use of pdftex’ letter spacing capabilities via the microtype package
dottedtoc % Dotted lines leading to the page numbers in the table of contents
]{classicthesis} % The layout is based on the Classic Thesis style
\usepackage{arsclassica} % Modifies the Classic Thesis package
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
%\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage{graphicx} % Required for including images
\graphicspath{{Figures/}} % Set the default folder for images
\usepackage{enumitem} % Required for manipulating the whitespace between and within lists
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage{subfig} % Required for creating figures with multiple parts (subfigures)
\usepackage{amsmath,amssymb,amsthm} % For including math equations, theorems, symbols, etc
\usepackage{varioref} % More descriptive referencing
%----------------------------------------------------------------------------------------
% THEOREM STYLES
%---------------------------------------------------------------------------------------
\theoremstyle{definition} % Define theorem styles here based on the definition style (used for definitions and examples)
\newtheorem{definition}{Definition}
\theoremstyle{plain} % Define theorem styles here based on the plain style (used for theorems, lemmas, propositions)
\newtheorem{theorem}{Theorem}
\theoremstyle{remark} % Define theorem styles here based on the remark style (used for remarks and notes)
%----------------------------------------------------------------------------------------
% HYPERLINKS
%---------------------------------------------------------------------------------------
\hypersetup{
%draft, % Uncomment to remove all links (useful for printing in black and white)
colorlinks=true, breaklinks=true, bookmarks=true,bookmarksnumbered,
urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, % Link colors
pdftitle={}, % PDF title
pdfauthor={\textcopyright}, % PDF Author
pdfsubject={}, % PDF Subject
pdfkeywords={}, % PDF Keywords
pdfcreator={pdfLaTeX}, % PDF Creator
pdfproducer={LaTeX with hyperref and ClassicThesis} % PDF producer
}
问题
如何修改垂直间距(行间距)和边距?
我尝试过
以下内容似乎对文档没有任何影响
\usepackage[body={4.8in,7.5in},
top=1.2in, left=1.8in]{geometry}
同样
\usepackage[a4paper, total={6in, 8in}]{geometry}
我尝试从 切换scrartcl
到article
但没有取得太大进展。
我也尝试过类似
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\setlength{\parindent}{4em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.5}
但我经常会收到错误消息,尽管我不知道为什么以及何时收到。
答案1
首先,您有:
% ---------------------------
DOCUMENTCLASS
% ---------------------------
这之前缺少一个注释字符DOCUMENTCLASS
,这将导致错误(尽管我希望这只是复制/粘贴时出现的错误)。
现在关于修改边距,正如您所想的那样,最简单的方法是使用geometry
包。请注意,如果另一个包正在更改页面布局,您可能需要\geometry
在之前使用该命令\begin{document}
:
\geometry{vmargin=2cm,hmargin=3cm}
\begin{document}
关于行间距,Chris 已经在他的评论中给出了答案,\linespread{1.1}
例如。你也可以看看setspace
提供\singlespacing
、\onehalfspacing
和的包doublespacing
(尽管它通常用于创建校对副本)。
最后,您应该查看日志文件,因为您收到了很多警告。例如,KOMA 类(例如scrartcl
)提供了很多与其他包重叠的功能(cfr 刚才在评论中也提到了这一点)。这些包的重叠可能会导致功能被部分覆盖,然后两个包都无法正常工作。
最后,你通常应该更喜欢subcaption
包裹在subfig
您正在使用的包。