3

I am newbie on latex, my question is how can I get a structure like:
number of chapter + title of chapter (exemple: I Introduction)
I only get Introduction, I want the number before the name. If you can see the code , I apply a code which remove "Chapter x" Code of tex file:

 \documentclass[11pt,a4paper,oldfontcommands,openany]{memoir}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{microtype}
 \usepackage[dvips]{graphicx}
 \usepackage{xcolor}
 \usepackage{times}
 % Importation package use case  %
 \usepackage{tikz}
 \usepackage{tikz-uml} 
 \usepackage{amsmath}
 \usepackage{savetrees}
 %FIN IMPORTATION PACKAGE USECASE%
\usepackage[
breaklinks=true,colorlinks=true,
%linkcolor=blue,urlcolor=blue,citecolor=blue,% PDF VIEW
linkcolor=black,urlcolor=black,citecolor=black,% PRINT
bookmarks=true,bookmarksopenlevel=2]{hyperref}
\usepackage[export]{adjustbox}
\usepackage{geometry}
\usepackage[pagestyles]{titlesec}
\usepackage{etoolbox}

   % We remove chapter word {n}
  \titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Large}
  \newpagestyle{mystyle}
  {\sethead[\thepage][] [\chaptertitle]{}{}{\thepage}}
 \pagestyle{mystyle}
 %FIN IMPORT QUI ENLEVE CHAPTER 

 % PDF VIEW
 % \geometry{total={210mm,297mm},
 % left=25mm,right=25mm,%
 % bindingoffset=0mm, top=25mm,bottom=25mm}
 % PRINT
\geometry{total={210mm,297mm},
 left=20mm,right=20mm,
 bindingoffset=10mm, top=25mm,bottom=25mm}

           \OnehalfSpacing
          %\linespread{1.3}

           %%% CHAPTER'S STYLE
          %chapterstyle{bianchi}%
            %\chapterstyle{madsen}
          \chapterstyle{ell}
             %%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
           \setsecheadstyle{\Large\bfseries\sffamily\raggedright}
          \setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
       \setsubsubsecheadstyle{\bfseries\sffamily\raggedright}


             %%% STYLE OF PAGES NUMBERING
                %\pagestyle{companion}\nouppercaseheads 
              %\pagestyle{headings}
            %\pagestyle{Ruled}


               \maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
               \maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents



             \begin{document}

             %%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---  % %%
             %   TITLEPAGE
             %

                   %   due to variety of titlepage schemes it is probably better to   make titlepage manually


                       \thispagestyle{empty}

            {%%%
            \sffamily
           \centering
          \Large

       ~\vspace{\fill}


      \clearpage
      \tableofcontents*



        \chapter*{Remerciements} this page is a sample page, not a chapter page      

        \chapter{Introduction} this is a chapter , I want the number before Introduction
2
  • 2
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Commented Jul 28, 2015 at 6:16
  • 2
    This template is a real mess, in my point of view.
    – user31729
    Commented Jul 28, 2015 at 6:21

1 Answer 1

3

use

\titleformat{\chapter}[display]{\normalfont\bfseries}{\thechapter}{0pt}{\Large}
                                                      ^^^^^^^^^^^^

or

\titleformat{\chapter}[block]{\normalfont\bfseries}{\thechapter}{1em}{\Large}
                      ^^^^^^^^                      ^^^^^^^^^^^^  ^^^^

for " 1 title"

2
  • thanks, there a little problem, the number is not near the title, I got : 1 in the 1st line and introduction in the 2nd line, how can I get whole in one line
    – kingmaker
    Commented Jul 28, 2015 at 8:01
  • see edited answer
    – user2478
    Commented Jul 28, 2015 at 8:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .