GeneralProblems with creating PDF

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
AzTeR
Posts: 1
Joined: Wed Dec 05, 2012 2:55 pm

Problems with creating PDF

Post by AzTeR »

Hello everyone.
I hope someone will help me!

Right now I'm having a problem creating a PDF file from my .tex document.
I've made a master file which looks as follows:

Code: Select all

\documentclass[a4paper]{memoir}
\usepackage{ulem}


\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{hyperref}
\usepackage{pdfpages}
\newtheorem{thm}{Sætning}[section]
\newtheorem{hej}{Definition}[section]
\parskip = \baselineskip
\newcommand{\n}{\noindent}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\chapterstyle{veelo}
%\setlrmarginsandblock{40mm}{30mm}{*} 
%\setulmarginsandblock{25mm}{50mm}{*} 

\usepackage[margin=1in]{geometry}
\makeheadrule{headings}{\textwidth}{0.3pt}

\usepackage{fancyhdr, blindtext}
\newcommand{\changefont}{\fontsize{9}{11}\selectfont}

\fancyhf{}
\fancyhead[LE,RO]{\changefont \slshape \rightmark} 
\fancyhead[RE,LO]{\changefont \slshape \leftmark} 
\fancyfoot[C]{\changefont \thepage}

\pagestyle{fancy}



\setcounter{page}{1}

\begin{document}
	\includepdf{Frontpage}
	\cleardoublepage 
	\newpage
	
	\pagestyle{headings}
	\setcounter{page}{1}
	\pagenumbering{roman}
	
	\input{00_synopsis}
	\cleardoublepage
	\newpage
	
	\input{0_Preface}
	\cleardoublepage
	\newpage
	
	\tableofcontents
	\cleardoublepage
	\newpage
	
	\listoffigures
	\cleardoublepage
	\newpage
	
	\setcounter{page}{1}
	\pagenumbering{arabic}
	
	\chapter{Introduction}
		\input{1_Introduction}
		\cleardoublepage
		\newpage
	\chapter{Emperical Background}
		\input{2_emperical_background}
		\cleardoublepage
		\newpage
	\chapter{Pre Analysis}
		\input{3_Pre_analysis}
		\cleardoublepage
		\newpage
	\chapter{Methodology}
		\input{4_Methodology}
		\cleardoublepage
		\newpage
	\chapter{Theory}
		\input{5_theory}
		\cleardoublepage
		\newpage
	\chapter{Case Analysis}
		\input{5_5_Case_analysis}
		\cleardoublepage
		\newpage
	\chapter{Conclusion}
		\input{6_Conclusion}
		\cleardoublepage
		\newpage
	\chapter{Discussion/Solution}
		\input{7_discussion}
		\cleardoublepage
		\newpage
	\chapter{Reflection}
		\input{8_reflection}
		\cleardoublepage
		\newpage
		\input{bibliography}
		\newpage
\end{document}
The problem is that I can't create the PDF file as written above, I have to do as follows to the file, to PDF it.

Code: Select all

....
%	\chapter{Theory}
%		\input{5_theory}
%		\cleardoublepage
%		\newpage
...
I just don't think that it makes any sense that I can create the PDF when "hiding" that specific chapter??

- Anders Mortensen, Global Business Engineering at Aalborg University, Denmark
Last edited by Stefan Kottwitz on Wed Dec 05, 2012 3:17 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Problems with creating PDF

Post by cgnieder »

Hi and welcome to the LaTeX community!

Obviously no one of us can test your code as we don't have the files you include. However, if I remove the document body completely and run your preamble with

Code: Select all

\begin{document}
foo
\end{document}
I still get errors:
  • Aside from the fact that subfigure is considered obsolete (modern alternatives are subfig and subcaption) the memoir class provides own means to create subfigures, see the manual (memman) for details.
  • It seems that fancyhdr is incompatible with memoir, too. But it shouldn't be needed anyway, as memoir has various options of its own to customize the headers (again see the manual for details).
  • For different reasons it's not a good idea to say \parskip = \baselineskip. The memoir manual section 3.3.1 has some background on this and also suggest a preferred method.
  • If your troubles have been none of the above please provide a minimal example (see this link for details on this matter: Infominimal working example) that we actually can test and that show what the issue is.
Best regards
Regards
site moderator & package author
Post Reply