GeneralRemoving the word "Chapter #" before the introduction ONLY

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
aiman
Posts: 4
Joined: Thu Feb 06, 2014 8:36 pm

Removing the word "Chapter #" before the introduction ONLY

Post by aiman »

hi all,

I want to remove the word that says "Chapter 1" before the introduction ONLY, as technically the introduction is not a chapter, however, I would like to still the introduction in the TOC. Also I would like to know how to change the number on TOC so that introduction has no number on the left, but the numbers start counting from the second chapter "1 definizioni importanti". p.s. each of the capitolo, is started with \chapter{introduction} etc etc.. Thanks for all your help in advance

Code: Select all

\documentclass[a4paper,11 pt,twoside]{report}
\usepackage{latexsym}
\usepackage[italian]{babel}
\usepackage[bookmarks, hidelinks]{hyperref}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{color}
\usepackage[bottom=2.9in, a4paper, twoside]{geometry}
\usepackage{pdflscape}
\usepackage{pdfpages}% http://ctan.org/pkg/pdfpages
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{titlesec}
% package italiano
\renewcommand{\contentsname}{Sommario}
\renewcommand{\listfigurename}{List of Figures}
\renewcommand{\listtablename}{List of Tables}
\renewcommand{\bibname}{Bibliografia}
\renewcommand{\indexname}{Indice}
\renewcommand{\figurename}{Figura}
\renewcommand{\tablename}{Tavola}
\renewcommand{\partname}{Parte}
\renewcommand{\chaptername}{Capitolo}
\renewcommand{\appendixname}{Appendice}
\renewcommand{\abstractname}{Abstract}
\renewcommand{\today}{\ifcase\month\or
  Gennaio\or Febbraio\or Marzo\or Aprile\or Maggio\or Giugno\or
  Luglio\or Agosto\or Settembre\or Ottobre\or Novembre\or Dicembre\fi
  \space\number\day, \number\year}
\pagestyle{plain}
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.0in}
\setlength{\footskip}{0.5in}
\setlength{\textheight}{8.3in}
\setlength{\textwidth}{6.0in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\parindent}{0.4 in}

\def\cent{\centerline}
\def\vs{\vskip 10 pt plus 1 pt}
\def\bs{\bf}
\def\grad{\vec{\nabla}}
\def\gradx{\vec{\nabla}_x}
\def\epsilon{\varepsilon}

\newtheorem{lemm}{Lemma}[chapter]
\newtheorem{proposizion}[lemm]{Proposizione}
\newtheorem{definizion}[lemm]{Definizione}
\newtheorem{teorem}[lemm]{Teorema}
\newtheorem{corollari}[lemm]{Corollario}
\newtheorem{esempi}[lemm]{Esempio}
\newtheorem{osservazion}[lemm]{Osservazione}

\def\lemma{{\bf Lemma}}
\def\proposizione{{\bf Proposizione}}
\def\Definizione{{\bf Definizione}}
\def\teorema{{\bf Teorema}}
\def\corollario{{\bf Corollario}}
\def\esempio{{\bf Esempio}}
\def\DIM{{\bf Dimostrazione}}
\def\osservazione{{\bf Osservazione}}
\def\de{\partial}
\def\R{{\bf R}}
\def\P{{\bf P}}
\def\Q{{\bf Q}}
\def\N{{\bf N}}
\def\1{{\bf 1}}
\def\Z{{\bf Z}}
\def\X{{\bf X}}
\def\E{{\bf E}}
\def\T{{\bf T}}


\newcommand{\cvd}{\begin{flushright}$\Box$\end{flushright}}
\newcommand{\tr}{{\rm Tr}\;}
\newcommand{\eq}{\begin{equation}}
\newcommand{\feq}{\end{equation}}
\makeatletter
\newcommand*{\defeq}{\mathrel{\rlap{%
                     \raisebox{0.2ex}{$\m@th\cdot$}}%
                     \raisebox{-0.2ex}{$\m@th\cdot$}}%
                     =}
\makeatother
\fancypagestyle{mylandscape}{%
  \fancyhf{}% Clear header/footer
  \fancyfoot{% Footer
    \makebox[\textwidth][r]{% Right
      \rlap{\hspace{\footskip}% Push out of margin by \footskip
        \smash{% Remove vertical height
          \raisebox{\dimexpr.5\baselineskip+\footskip+.5\textheight}{% Raise vertically
            \rotatebox{90}{\thepage}}}}}}% Rotate counter-clockwise
  \renewcommand{\headrulewidth}{0pt}% No header rule
  \renewcommand{\footrulewidth}{0pt}% No footer rule
  \setlength{\headheight}{0.0in}

}
\begin{document}
\thispagestyle{empty}

ggg

\pagenumbering{roman}
%\begin{titlepage}

%\input{prefazione}

%\input{ringraziamenti}

%\end{titlepage}

\tableofcontents
\setcounter {page}{1}
\newpage
\pagenumbering{arabic}
\setcounter {page}{1}

\input{capitolo1}

\input{capitolo2}

\input{capitolo3}

\input{capitolo4}

%\bibliographystyle{plain}
%\bibliography{bibfile}

\end{document}
Attachments
tesi.pdf
(298.48 KiB) Downloaded 489 times
Last edited by cgnieder on Thu Feb 06, 2014 9:05 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.

AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Removing the word "Chapter #" before the introduction ONLY

Post by AleCes »

Hello,

In those cases I usually resort to

Code: Select all

\frontmatter
\tableofcontents
\chapter{Foreword}
\markboth{Foreword}{}
\mainmatter
The rest of the document follows after \mainmatter

Hope it may help
aiman
Posts: 4
Joined: Thu Feb 06, 2014 8:36 pm

Re: Removing the word "Chapter #" before the introduction ON

Post by aiman »

hi i tried the following (below) but two questions arise from this 1. how is that going to isolate out the first chapter (introduction (to not show "Capitolo 1"), while still allow the others to show "Capitolo 1" to "Capitolo 3"? 2. I have a problem running this with the following error "[Loading MPS to PDF converter (version 2006.09.02).]
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
! Undefined control sequence.
l.116 \frontmatter

? "

\documentclass[a4paper,11 pt,twoside]{report}
\usepackage{latexsym}
\usepackage[italian]{babel}
\usepackage[bookmarks, hidelinks]{hyperref}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{color}
\usepackage[bottom=2.9in, a4paper, twoside]{geometry}
\usepackage{pdflscape}
\usepackage{pdfpages}% http://ctan.org/pkg/pdfpages
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{ltxfront}
% package italiano
\renewcommand{\contentsname}{Sommario}
\renewcommand{\listfigurename}{List of Figures}
\renewcommand{\listtablename}{List of Tables}
\renewcommand{\bibname}{Bibliografia}
\renewcommand{\indexname}{Indice}
\renewcommand{\figurename}{Figura}
\renewcommand{\tablename}{Tavola}
\renewcommand{\partname}{Parte}
\renewcommand{\chaptername}{Capitolo}
\renewcommand{\appendixname}{Appendice}
\renewcommand{\abstractname}{Abstract}
\renewcommand{\today}{\ifcase\month\or
Gennaio\or Febbraio\or Marzo\or Aprile\or Maggio\or Giugno\or
Luglio\or Agosto\or Settembre\or Ottobre\or Novembre\or Dicembre\fi
\space\number\day, \number\year}
\pagestyle{plain}
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.0in}
\setlength{\footskip}{0.5in}
\setlength{\textheight}{8.3in}
\setlength{\textwidth}{6.0in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\parindent}{0.4 in}

\def\cent{\centerline}
\def\vs{\vskip 10 pt plus 1 pt}
\def\bs{\bf}
\def\grad{\vec{\nabla}}
\def\gradx{\vec{\nabla}_x}
\def\epsilon{\varepsilon}

\newtheorem{lemm}{Lemma}[chapter]
\newtheorem{proposizion}[lemm]{Proposizione}
\newtheorem{definizion}[lemm]{Definizione}
\newtheorem{teorem}[lemm]{Teorema}
\newtheorem{corollari}[lemm]{Corollario}
\newtheorem{esempi}[lemm]{Esempio}
\newtheorem{osservazion}[lemm]{Osservazione}

\def\lemma{{\bf Lemma}}
\def\proposizione{{\bf Proposizione}}
\def\Definizione{{\bf Definizione}}
\def\teorema{{\bf Teorema}}
\def\corollario{{\bf Corollario}}
\def\esempio{{\bf Esempio}}
\def\DIM{{\bf Dimostrazione}}
\def\osservazione{{\bf Osservazione}}
\def\de{\partial}
\def\R{{\bf R}}
\def\P{{\bf P}}
\def\Q{{\bf Q}}
\def\N{{\bf N}}
\def\1{{\bf 1}}
\def\Z{{\bf Z}}
\def\X{{\bf X}}
\def\E{{\bf E}}
\def\T{{\bf T}}


\newcommand{\cvd}{\begin{flushright}$\Box$\end{flushright}}
\newcommand{\tr}{{\rm Tr}\;}
\newcommand{\eq}{\begin{equation}}
\newcommand{\feq}{\end{equation}}
\makeatletter
\newcommand*{\defeq}{\mathrel{\rlap{%
\raisebox{0.2ex}{$\m@th\cdot$}}%
\raisebox{-0.2ex}{$\m@th\cdot$}}%
=}
\makeatother
\fancypagestyle{mylandscape}{%
\fancyhf{}% Clear header/footer
\fancyfoot{% Footer
\makebox[\textwidth][r]{% Right
\rlap{\hspace{\footskip}% Push out of margin by \footskip
\smash{% Remove vertical height
\raisebox{\dimexpr.5\baselineskip+\footskip+.5\textheight}{% Raise vertically
\rotatebox{90}{\thepage}}}}}}% Rotate counter-clockwise
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{0pt}% No footer rule
\setlength{\headheight}{0.0in}

}

\begin{document}

\thispagestyle{empty}

ggg

\pagenumbering{roman}
%\begin{titlepage}

%\input{prefazione}

%\input{ringraziamenti}

%\end{titlepage}
\frontmatter
\tableofcontents
\chapter{Foreword}
\markboth{Foreword}{}
\mainmatter
\setcounter {page}{1}
\newpage
\pagenumbering{arabic}
\setcounter {page}{1}

\input{capitolo1}

\input{capitolo2}

\input{capitolo3}

\input{capitolo4}

%\bibliographystyle{plain}
%\bibliography{bibfile}

\end{document}
aiman
Posts: 4
Joined: Thu Feb 06, 2014 8:36 pm

Re: Removing the word "Chapter #" before the introduction ON

Post by aiman »

Dear all,
I have solved the issue, thanks for all your help, basically I had to use the "*" infront of my chapter, then I added this line:

\addcontentsline{toc}{chapter}{Introduzione}

Once again thanks for all
Aiman
Post Reply