{titlesec} is a package providing an interface to {sectioning} commands.

learn more… | top users | synonyms

18
votes
1answer
22k views

Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...
14
votes
1answer
2k views

Margin notes (and subsection titles) in both sides of a two column document

I would like to write a book document with two columns and subsubsection titles as margin notes at both sides of the page (in the side which corresponds to the column). In order to specify the ...
20
votes
3answers
16k views

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
9
votes
2answers
3k views

Prevent a paragraph break after a section heading

In my .cls file for my thesis, I have defined \subsection as follows: \newcommand{\subsection}[1]{% \pagebreak[2] \refstepcounter{subsection} \addcontentsline{toc}{subsection}{ ...
6
votes
1answer
3k views

Latex IEEETran cls use titlesec package

Anyone know how to use titlesec package if I am under \documentclass[conference]{IEEEtran} ? I got following error: !Undefined control sequence. <argument> \subparagraph Thanks
5
votes
1answer
1k views

Add small line in \section title

I'm trying to duplicate an old document that has a small centered line above each \section. I have not been able to duplicate this when I set the formatting for the \section. (I'm using the titlesec ...
10
votes
2answers
2k views

How to get multi-line chapter name with ClassicThesis package?

I'm using the ClassicThesis by Miede for writing my thesis, the support package is Arsclassica. It's a nice template, however I got a little problem with the Chapter name, some of them can be very ...
3
votes
2answers
5k views

Problems with fontspec and titlesec packages

I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used \documentclass[a4paper,10pt]{article} %A Few Useful Packages \usepackage{marvosym} ...
3
votes
1answer
668 views

How to achieve different formats for label and text in a subsection heading using titlesec

How to get a different formatting for the label and text of a subsection using titlesec? Reason: Italic numbers in the subsection heading hurts my eyes and should be avoided at all cost, Label of the ...
7
votes
1answer
2k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
11
votes
2answers
3k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
25
votes
2answers
23k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} ...
8
votes
2answers
4k views

Changing the section title style for an article document type

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. ...
2
votes
1answer
266 views

Sectioning created via titlesec have wrong \label

I have created the following custom sectioning using the titlesec package. % in the preamble \newcounter{phase} \titleclass{\phase}{straight}[\section] ...
4
votes
2answers
2k views

titlesec versus titling; mangling \thetitle

I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the ...
15
votes
2answers
4k views

Formatting a \paragraph to look like a \section

I'm writing a document that contains a rather deep tree of nested lists, and was wondering if how I would go about reformatting the \paragraph macro to format the text contained within it as a ...
7
votes
1answer
3k views

Underline a section header the full width of the page

How do I get a full page width underline or bottom-border on a section title? At the moment I'm using \usepackage{sectsty} \sectionfont{\normalfont\sffamily\large\underline\bfseries\color{orange}} ...
5
votes
1answer
281 views

Margins as Subsections

Is there a way to have subsection titles show in the margin of the page? I'm never happy with subsections, I usually tend to avoid them. What I do like, is letting the readers know what's going on by ...
34
votes
2answers
26k views

How to set the font for a \section title (and chapter etc)

How do I specify the fonts, and general font size, for the titles, chapters and sections in my document Update: I can see how my question is confusing. I use \section and \chapter etc. to organise ...