Text Formatting ⇒ \section formating question
\section formating question
Article 1 - Stuff
where the 1 is auto-numbered, instead of
1 Article - Stuff
if i do \section{Article - Stuff}
thanks!
danny
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 more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\section formating question
Code: Select all
/section{article - first}
/section{article - second}
/section{article - third}
1 article - first
2 article -second
3 article - third
how do i write it so that i get:
article 1 - first
article 2 - second
article 3 - third
thanks!
danny
\section formating question
your example suggest that the word "article" will be constant in the title, so to achieve something like
Code: Select all
article 1 - first
article 2 - second
article 3 - third
Code: Select all
\section{first}
\section{second}
\section{third}
Code: Select all
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}
{\normalfont\Large\bfseries}{article\space\thesection\space--\space}{0pt}{}
\titlespacing*{\section}
{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\begin{document}
\section{first}
\section{second}
\section{third}
\end{document}Re: \section formating question
-danny