首先我是 LaTeX 的初学者,当然我用它来写短文但从来没有写过论文...出于这个原因(现在我觉得这很愚蠢)我寻找了一份论文样本并且花了几个星期研究那篇论文;
现在我发现,对于一篇 30 页的学士论文,文档类别“回忆录”可能是一个错误的选择,并试图将其改为报告;但如果我这样做,我只会收到错误消息,而且对我来说,如果不丢失所有的格式和设计就不可能解决这个问题;
现在主要的问题是“回忆录”用于双面纸,这就是为什么页边距从一页变为另一页的原因;如果我只打印一面,那么左边距应该比右边距宽,并且它不应该旋转;另外,每章之间有一页空白也不是我想要的;
现在你对我有什么建议:将其改为报告还是尝试以正确的方式修改回忆录?如果有人能帮助我,我会非常高兴,因为我现在有点迷茫……
以下是示例 LaTeX 代码:
\RequirePackage[l2tabu]{nag}
\documentclass[a4paper,11pt,leqno,openbib]{memoir}
\usepackage{datetime}
% Declare figure/table as a subfloat.
\newsubfloat{figure}
\newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
%
\frenchspacing
% Font with math support: New Century Schoolbook
\usepackage{fouriernc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\OnehalfSpacing
%
% Sets numbering division level
\setsecnumdepth{subsection}
\maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
\usepackage{calc,soul,fourier}
\makeatletter
\newlength\dlf@normtxtw
\setlength\dlf@normtxtw{\textwidth}
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{gray}{\color{white}\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][c]{% aka \rlap
\makebox[1cm][r]{\usebox\feline@chapter}%
}}
\makechapterstyle{daleifmodif}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}
\renewcommand\chaptitlefont{\normalfont\Large\bfseries\scshape}
\renewcommand\chapternamenum{} \renewcommand\printchaptername{}
\renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}
\renewcommand\afterchapternum{\par\vskip\midchapskip}
\renewcommand\printchaptertitle[1]{\color{gray}\chaptitlefont\raggedleft ##1\par}
}
\makeatother
\chapterstyle{daleifmodif}
\makepagestyle{myvf}
\makeoddfoot{myvf}{}{\thepage}{}
\makeevenfoot{myvf}{}{\thepage}{}
\makeheadrule{myvf}{\textwidth}{\normalrulethickness}
\makeevenhead{myvf}{\small\textsc{\leftmark}}{}{}
\makeoddhead{myvf}{}{}{\small\textsc{\rightmark}}
\pagestyle{myvf}
\makeindex
\usepackage{import}
\usepackage{amsfonts}
\usepackage[centertags]{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
% Für Pseudocode Kapitel 3
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}
\renewcommand\lstlistingname{Teil}
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{16cm}{#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
\usepackage{hyperref}
\usepackage{microtype}
%reduziert falsche Formatierungen
\widowpenalty=1000
\clubpenalty=1000
\DeclareMathOperator \ggT {ggT}
\newcommand{\NN}{\mathbb N}
\newcommand{\ZZ}{\mathbb Z}
\newcommand{\QQ}{\mathbb Q}
\newcommand{\RR}{\mathbb R}
\newcommand{\CC}{\mathbb C}
\newcommand{\FF}{\mathbb F}
\newcommand{\PP}{\mathbb P}
%
%An initial of the very first character of the content
\usepackage{lettrine}
\newcommand{\initial}[1]{%
\lettrine[lines=3,lhang=0.33,nindent=0em]{
\color{gray}
{\textsc{#1}}}{}}
\renewenvironment{proof}{{\bfseries Beweis: }}{$\hfill \Box$}
% Anpassung der Proof Umgebung
%Anpassung von plain, definition und erstellung von theoremstyle kommentar
\newtheoremstyle{plain}
{\topsep} % ABOVESPACE
{\topsep} % BELOWSPACE
{\nopagebreak\itshape} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{\nopagebreak\bfseries} % HEADFONT
{.} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{}
\newtheoremstyle{definition}
{0.5\topsep} % ABOVESPACE
{0.5\topsep} % BELOWSPACE
{\nopagebreak\normalfont} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{\nopagebreak\bfseries} % HEADFONT
{.} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{}
\newtheoremstyle{kommentar}
{}
{}
{}
{}
{\bfseries}
{:}
{5pt plus 1pt minus 1pt}
{}
\newtheorem{lem}{Lemma}[section]
\newtheorem{thm}[lem]{Theorem}
\newtheorem{satz}[lem]{Satz}
\newtheorem{kor}[lem]{Korollar}
\theoremstyle{definition}
\newtheorem{defn}[lem]{Definition}
\newtheorem{beispiel}[lem]{Beispiel}
\newtheorem{algo}[lem]{Algorithmus}
\theoremstyle{kommentar}
\newtheorem*{bemerkung}{Bemerkung}
\begin{document}
\pagenumbering{roman}
\tableofcontents*
\mainmatter
\chapter{Sample 1}
\lipsum
\lipsum[1-5]
\section{Subsample 1}
\lipsum
\lipsum[1-5]
\section{Subsample 2}
\lipsum
\lipsum[1-5]
\chapter{Sample 2}
\lipsum
\lipsum[1-5]
\chapter{Sample 3}
\lipsum
\lipsum[1-5]
\appendix
\chapter{Sample appendix}
\lipsum
\lipsum[5-10]
\end{document}
我会非常高兴听到任何关于我能做什么的建议...!! 提前非常非常感谢您... :)
答案1
您需要一些额外的memoir
选择:
\documentclass[a4paper,11pt,leqno,openbib,oneside,openany]{memoir}
此oneside
选项将保持每页的布局相同。此openany
选项将使章节从下一页开始,中间没有空白页。