
時間が経つにつれて、ドキュメントの先頭にいくつかのコマンドを追加したため、混乱してしまい、垂直方向の間隔と余白を簡単に変更できなくなりました。
現在のドキュメント
これが私の荷物とその他の物です
% ---------------------------
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}
\linespread{1.1}
行間の間隔については、クリスがコメントですでに例えば を使って回答しています。setspace
\singlespacing
、および を提供するパッケージです\onehalfspacing
(doublespacing
ただし、これは通常、校正用コピーの作成に使用されます)。
最後に、多くの警告が出ているので、ログ ファイルを確認する必要があります。たとえば、KOMA クラス (などscrartcl
) は、他のパッケージと重複する多くの機能を提供します (cfr もコメントでそのことを言及していました)。これらのパッケージが重複すると、機能が部分的にオーバーライドされ、どちらのパッケージも適切に動作しなくなる可能性があります。
最後に、通常はsubcaption
パッケージをsubfig
使用しているパッケージ。