我有一份 B5 格式的文档。最初它是“双面”的,奇数页和偶数页的边距不同。现在我想要相同的边距,所以我尝试删除“双面”命令,但章节末尾不再添加空白页。
我该如何解决这个问题?谢谢
\documentclass[twoside,b5paper,12pt,fleqn]{psd_thesis}
\usepackage[T1]{fontenc}
\usepackage{newtxmath,newtxtext}
\usepackage{ragged2e}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphics,graphicx}
\usepackage{amscd,verbatim,slashbox}
\usepackage{array}
\usepackage{graphics,graphicx}
\usepackage{longtable}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes,arrows,positioning,chains}
\usepackage{subfigure}
\usepackage{float}
\usepackage{placeins}
\usepackage{tabulary}
\usepackage{array}
\usepackage{booktabs}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}m{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}m{#1}}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{chngcntr}
\usepackage{titlesec}
\usepackage{textcomp}
\usepackage[justification=centering]{caption}
\usepackage{bm}
\usepackage{caption}
\usepackage{lscape}
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
\usepackage{fancyref}
\usepackage{appendix}
\usepackage{algpseudocode}
\usepackage{hyperref}
\usepackage{datetime}
\usepackage[b5paper, total={5in, 8in}]{geometry}
\usepackage{midpage}
\titlespacing{\section}{10pt}{\parskip}{10pt}
\titlespacing{\subsection}{10pt}{\parskip}{10pt}
\titlespacing{\subsubsection}{10pt}{\parskip}{10pt}
\titleformat*{\section}{\bfseries}
\titleformat*{\subsection}{\bfseries}
\titleformat*{\subsubsection}{\bfseries}
\DeclareMathSizes{10}{10}{9}{9}
\everymath{\displaystyle}
\pagenumbering{Roman}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{7}
\begin{document}
\pagenumbering{roman}
\clearpage \input{acknowledgements.tex} \cleardoublepage
\clearpage \input{Preface.tex} \cleardoublepage
\tableofcontents
\listoffigures
\listoftables
\cleardoublepage
\pagenumbering{arabic}
\clearpage \input{Introduction.tex} \cleardoublepage
\clearpage \input{Ch_2.tex}
\end{document}
psd_thesis.cls报告如下:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{psd_thesis}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions
\LoadClass{report}
\renewcommand{\baselinestretch}{1.5} % Double-spaced
\usepackage[round]{natbib} % bib style
%\usepackage[tx]{sfmath} % a package of fonts
%\usepackage{helvet} % For Helvetica (Arial is just a bad copy of Helvetica)
%\renewcommand\familydefault{\sfdefault}
\renewcommand{\@makechapterhead}[1]{%
\vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\large \scshape \bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\interlinepenalty\@M
\large \bfseries #1\par\nobreak
\vskip 40\p@ }}
\renewcommand{\@makeschapterhead}[1]{%
\vspace*{50\p@}%{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\large \scshape \bfseries #1\par\nobreak
\vskip 40\p@ }}
\renewcommand{\section}{\@startsection{section}% % the name{1}% % the level{0mm}% % the indent{3.0\baselineskip}% % the before skip{2.5\baselineskip}% % the after skip{\normalfont \normalsize}} % the style
\renewcommand{\subsection}{\@startsection{subsection}% % the name
{2}% % the level{0mm}% % the indent{-\baselineskip}% % the before skip{1.5\baselineskip}% % the after skip{\normalfont \normalsize}} % the style
\endinput
答案1
B5 纸张,12 号大小,行距加大,排版效果肯定很差,事实上,排版效果是我见过的最糟糕的。无论如何,如果你有要使用一个类,为什么还要改变它的设置?
\documentclass[openright,twoside,b5paper,12pt,fleqn]{psd_thesis}
\linespread{1.5}\selectfont % the class does the wrong thing
\usepackage{geometry}
\geometry{
textwidth=\the\textwidth,
hratio=1:1,
heightrounded,
}
\usepackage{lipsum}
\begin{document}
\pagenumbering{Roman}
\begin{abstract}
\lipsum*[1]
\end{abstract}
\chapter*{Introduction}
\lipsum[1-10]
\cleardoublepage
\pagenumbering{arabic}
\chapter{First}
\lipsum[11-30]
\end{document}