我打算在論文標題頁之前設定兩頁空白頁。但是,我使用的解決方法對於第一頁效果很好,但在標題頁中引入了水平線(有“文字文字...”)。以下是我的程式碼:
\documentclass[a4paper,12pt]{book}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{url}
\usepackage[algoruled,vlined]{algorithm2e}
\usepackage{graphicx,subfigure}
% for nice tables
\usepackage{booktabs}
% end for nice tables
% for using color names
\usepackage[usenames,dvipsnames]{color}
% end for using color names
% for nicer figure captions
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}
% end for nicer figure captions
% fancy headers and footers
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.1pt} % for upper line
\renewcommand{\footrulewidth}{0.1pt} % for lower line
\fancyhead[LE,RO]{\itshape \nouppercase \rightmark}
\fancyhead[LO,RE]{\itshape \nouppercase \leftmark}
\fancyfoot[C]{\thepage}
% end fancy headers and footers
% for shaded table cells
\usepackage{colortbl}
% for multirow option in the tables
\usepackage{multirow}
\usepackage[semicolon]{natbib}
\usepackage{fancybox}
\usepackage{xcolor}
\usepackage{framed}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newenvironment{myfancybox}{%
\def\FrameCommand{\fboxsep=\FrameSep \fcolorbox{black}}%
\color{black}\MakeFramed {\FrameRestore}}%
{\endMakeFramed}
% for theorems, lemmas...
\theoremstyle{plain} % use "default" font
\newtheorem{thm}{Theorem}[chapter]
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem*{thma}{Theorem}
%\theoremstyle{definition} % use "definition-style" font for the rest
%\bibliographystyle{plain} %Choose a bibliograhpic style
\usepackage{sectsty}
\allsectionsfont{\itshape}
% for height of the heading
\setlength{\headheight}{15pt}
\parskip1ex
\begin{document}
\begin{titlepage}
\fancyhf{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
{\large text text text text
text text text text text text text text
text text text text text text text text
text text text text text text text text}
\end{titlepage}
\end{document}
是否可以將起始頁兩頁空白,扉頁沒有水平線?請注意,水平線對於文件的其餘部分是必要的,但不應出現在標題頁中。
答案1
您可以使用\pagestyle{empty}
代替\fancyhf{}
來獲得沒有線條的空腳線和頭線。