I searched the net and I can't find the exact solution to my problem.
I'd like my report preamble to be numbered in roman numbers and the rest in arabic numbers.
I kind of succeded but the sections are still numbered as usual and my first 'real' chapther, the introduction is now listed as chapter 6.
I use the "article" version.
Below is my main:
Code: Select all
\documentclass[12pt,a4paper]{article}
%\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{comment}
\usepackage{parskip}
\usepackage[nopar]{lipsum}
\usepackage{todonotes}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{tcolorbox}
%-----bibliography begin -----%
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{Bibliography.bib}
%-----bibliography end -----%
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage[titletoc]{appendix}
\usepackage{amsmath}
\usepackage{float}
\usepackage{fancyhdr}
\setlength{\headheight}{19pt}
\pagestyle{fancy}
\usepackage{lastpage}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{afterpage}
\usepackage{caption}
\captionsetup[figure]{textfont={it}}
\usepackage[bottom]{footmisc}
%-----header/footer -----%
\lhead{\includegraphics[height=0.5cm]{figurer/DTU/DTU_Logo.jpg}}
\chead{s140504}
\rhead{\includegraphics[height=0.5cm]{figurer/BWSC/bwsclogo.jpg}}
\fancyfoot[L]{Section \thesection}
\fancyfoot[C]{Kristian Dalgaard}
\fancyfoot[R]{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
%-----header/footer -----%
\begin{document}
\include{Frontpage}
\clearpage
\thispagestyle{empty}
\mbox{}
\newpage
\pagenumbering{Roman}
\include{Abstract}
\include{Preface}
\include{Abbreviations}
\include{Problem_statement}
\include{Introduction}
\pagenumbering{arabic}
\renewcommand{\baselinestretch}{1.0}\normalsize
\tableofcontents
\renewcommand{\baselinestretch}{1.0}\normalsize
\newpage
\renewcommand{\baselinestretch}{1.0}\normalsize
\listoffigures
\renewcommand{\baselinestretch}{1.0}\normalsize
\include{Introducing_Elements}
\include{Theory}
%\include{Generator_protection}
\include{Parameters}
\include{Simulation}
\include{LabTests}
\include{Results}
\include{Concluding}
%\input{Bibliography_test}
%\newpage
\pagestyle{empty}
\printbibliography
\begin{appendices}
\include{Appendix/Appendix_A}
\include{Appendix/Appendix_B}
\include{Appendix/Appendix_C}
\end{appendices}
\clearpage
\thispagestyle{empty}
\mbox{}
\newpage
\end{document}
The sections I'd like to have in 'contents' but without chapter numbers: In the text-files I'd like the sections and subsections to have the roman numbering: I'd like my footer to count the preamble as one thnig and rest of document as another and I'd like \lastpage to be last page of preamble and counted in roman numbers: The roman/arabic pagecount I currently have only does a little of what I need.
Would I e.g. need a second header/footer setup for preamble?
Thank you and have a good day