
следующий код вставляет дополнительную пустую первую страницу в мой документ, хотя я даже не упомянул никакого заголовка или чего-либо еще. Пожалуйста, подскажите мне, где я ошибаюсь. Спасибо заранее.
\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}
\begin{center}
\chapter*{TITLE}
\section*{\texttt{NAME and ID}}
\section*{ \emph{Supervisor}}
\textbf{\textsf{DISSERTATION INITIAL DRAFT}}
\end{center}
\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}
\end{document}
Я использую TexMaker, если это поможет :)
решение1
Использование \chapter
внутри center
среды создает дополнительную страницу(ы). Если вы хотите создать заголовок, лучше не использовать команды секционного блока. Вы можете сделать это самостоятельно вручную или с помощью специального пакета, такого какtitling
; небольшой пример:
\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}
\begin{center}
{\Huge\bfseries TITLE\par\bigskip}
{\Large\ttfamily NAME and ID\par\medskip}
{\Large\itshape\bfseries Supervisor\par\medskip}
{\bfseries\sffamily DISSERTATION INITIAL DRAFT\par\bigskip}
\end{center}
\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}
\end{document}
Поскольку, по-видимому, не требуется никаких крупных разделов (т. е. документ не требует, чтобы главы начинались на отдельной странице), лучше переключиться на article
класс документа; вот пример использования article
и titling
пакета для создания заголовка:
\documentclass{article}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage{titling}
\pretitle{\begin{center}\Huge\bfseries}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{center}\Large\ttfamily}
\postauthor{\par{\Large\itshape\bfseries
Supervisor\par\medskip}{\bfseries\sffamily DISSERTATION INITIAL DRAFT}\end{center}}
\predate{\par\large}
\postdate{\par}
\title{TITLE}
\author{NAME and ID}
\date{}
\begin{document}
\maketitle
\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}
\end{document}
Как видно, более экономично (в этом простом случае) создать заголовок вручную.
решение2
Поскольку вы используете book
класс, вы, вероятно, захотите, чтобы первая страница вашего документа была титульным листом.
Для этой цели book
класс предоставляет titlepage
среду, в которую вы можете вставить все, что должно быть на титульном листе. В конце этой среды начинается новая страница.
МВЭ:
\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}
\begin{titlepage}
\centering
\vspace*{1in}
{\Huge\bfseries TITLE\par}
\vspace*{0.75in}
{\Large\ttfamily NAME and ID\par}
\medskip
{\Large\itshape\bfseries Supervisor\par}
\medskip
{\bfseries\sffamily DISSERTATION INITIAL DRAFT\par}
\end{titlepage}
\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}
\end{document}
Выход: