Code: Select all
\titleformat{\section}[display]
{\Huge \bfseries}
{}
{0.4\textheight}
{\thesection.}
Code: Select all
\titleformat{\section}[display]
{\Huge \bfseries}
{}
{0.4\textheight}
{\thesection.}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and many kinds of documents
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
You just need to learn how to read manuals. Your code does not exactly do what you plan. The heading is neither properly centered nor on its own page.eelkefolmer wrote:[…] I wish someone would write some better documentation for titlesec.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\titleformat{\section}
{\clearpage\null\vfil\bfseries\Huge}
{\filright\thesection}
{1em}
{\filright\Huge}
[\vfil\newpage]
\begin{document}
\section{Foo}
The quick brown for jumps over the lazy dog.
\section{Bar}
The quick brown for jumps over the lazy dog.
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.