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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
\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