TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My title marks are not working as I want them to. I had to move away from using the native section and subsectionand therefore my title marks does not work. I had a look at the extramarks feature of the titelps package but can't figure it out especially to use alongside the titlesec package.

On page 3 of this MWE this is the idea of what I want: Correct

However, this is what I get because the section and subsection does not register: Problem

How do I add Section and Subsection into the title marks? Or else how do I force section and subsection to still increment and actually work in the title marks?

This question relates to the discussion in one of my old questions. Calculating the exact width of text and the lettrine

Please run in XeLaTeX.

\documentclass[pagesize=pdftex, fontsize=12]{scrbook}
\usepackage[paperwidth=15.6cm, paperheight=23.4cm, top=2cm,bottom=1cm, left=1cm, right=1cm]{geometry}
\usepackage{fix2col} %fixes numbering of the sections in the header for two columns

\setmainfont{Times New Roman}




% sets the marks to be used (section and subsection)

% definition of the page style with required headers


\newcommand{\newtocname}{\LARGE{TABLA DE LOS LIBROS DEL}}



  \par\vskip\z@ \@plus 2\p@






\Section EN el principio crió Dios los cielos y la tierra.
\Subsection Y la tierra estaba desordenada y vacía, y las tinieblas estaban sobre la haz del abismo, y el Espíritu de Dios se movía sobre la haz de las aguas.
\Subsection Y dijo Dios: Sea la luz: y fué la luz.
\Subsection Y vió Dios que la luz era buena: y apartó Dios la luz de las tinieblas.

\Section Y FUERON acabados los cielos y la tierra, y todo su ornamento.
\Subsection Y acabó Dios en el día séptimo su obra que hizo, y reposó el día séptimo de toda su obra que había hecho.
\Subsection Y bendijo Dios al día séptimo, y santificólo, porque en él reposó de toda su obra que había Dios criado y hecho.
share|improve this question
Your sectioning commands should issue mark-commands which stores the wanted content (\markboth{left mark}{right mark} or \markright{right mark}). And your header should use this content with \leftmark or \rightmark (or \firstleftmark etc from the extramarks package). – Ulrike Fischer Dec 10 '12 at 13:03

Perhapsthis will help you. For me, I use titlesec package, as follows:

\titleformat{\section}{\Large\scshape}{Section \thesection}{1ex}{}

Which creates "Section 1.x Bla Bla Bla" for the section headings, where the spacing between 1.x and Bla Bla is 1ex.

If you want a prefix "SS" infront of the subsection (in this case, large small caps, seperated by 1ex):

\titleformat{\subsection}{\large\scshape}{SS \thesubsection}{1ex}{}

This will result in "SS 1.x.x Bla Bla Bla" as the subsection headings.

share|improve this answer
up vote 0 down vote accepted

As Fermat said:

I have discovered a truly marvelous proof of this, which this margin is too narrow to contain.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.