目前文件

目前文件

隨著時間的推移,我在文件的開頭添加了許多命令,但我迷失了方向,現在我無法簡單地修改垂直間距和邊距。

目前文件

這是我的包裹和東西

% ---------------------------
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}

我嘗試從 切換scrartclarticle,但沒有太多成果。

我也嘗試過類似的事情

\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}

關於行之間的間距,克里斯已經在他的評論中使用\linespread{1.1}例如 提供了答案。您也可以查看setspace包提供\singlespacing,\onehalfspacingdoublespacing(儘管這通常用於創建校對副本)。

最後,您應該查看日誌文件,因為您收到了很多警告。例如,KOMA 類別(例如scrartcl)提供了許多與其他套件重疊的功能(cfr 在他剛才的評論中也提到了這一點)。這些包的重疊可能會導致功能被部分覆蓋,然後兩個包都無法正常工作。

最後,您通常應該更喜歡subcaption包過subfig您正在使用的套件。

相關內容