LaTeX forum ⇒ Theses, Books, Title pagesRemove printing of section numbers in the margin in Legrand Orange Book Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
5998606Lp+
Posts: 1
Joined: Fri May 01, 2020 6:07 am

Remove printing of section numbers in the margin in Legrand Orange Book

Postby 5998606Lp+ » Fri May 08, 2020 5:30 am

Remove printing of section numbers in the margin in Legrand Orange Book:

help please just manage to move the section number with rlap but the numbering and the section overlap

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \makeatletter
  2. \renewcommand{\@seccntformat}[1]{\llap{\textcolor{ocre}{\csname the#1\endcsname}\hspace{1em}}} %mueve horizontalmente la numeracion
  3. \renewcommand{\section}{\@startsection{section}{1}{\z@}
  4. {-4ex \@plus -1ex \@minus -.4ex}
  5. {1ex \@plus.2ex }
  6. {\normalfont\large\sffamily\bfseries\textcolor{ocre}}}
  7. \renewcommand{\subsection}{\@startsection {subsection}{2}{\z@}
  8. {-3ex \@plus -0.1ex \@minus -.4ex}
  9. {0.5ex \@plus.2ex }
  10. {\normalfont\sffamily\bfseries\textcolor{ocre}}}
  11. \renewcommand{\subsubsection}{\@startsection {subsubsection}{3}{\z@}
  12. {-2ex \@plus -0.1ex \@minus -.2ex}
  13. {.2ex \@plus.2ex }
  14. {\normalfont\small\sffamily\bfseries}}
  15. \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
  16. {-2ex \@plus-.2ex \@minus .2ex}
  17. {.1ex}
  18. {\normalfont\small\sffamily\bfseries\textcolor{ocre}}}
Attachments
what-you-want.jpg
what-you-want.jpg (13.34 KiB) Viewed 299 times
whas is not wanted.JPG
whas is not wanted.JPG (39.74 KiB) Viewed 299 times
Last edited by cgnieder on Sun May 10, 2020 7:46 pm, edited 1 time in total.
Reason: added code formatting

User avatar
Ijon Tichy
Posts: 269
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Fri May 08, 2020 7:53 am

Without Infominimal working example and any knowledge about the class, I would say: Try just removing the \llap or replace it by \@firstofone.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests