General ⇒ Section headings and figure captions
Section headings and figure captions
a couple of loose ends I have concerning my Latex document (note that I am using the IEEEtran.cls template):
1) How do I change how the section heading are displayed? Currently its centred and displays the header as III. Section Name. I'd prefer it to be left-aligned and displayed as 3. Section Name.
2) The caption for my figures is currently - Fig. 1. (with a period at the end). I'd prefer it to be Figure 1: and the caption is bolded. I tried \renewcommand{\figurename}{Fig.} but I got an error saying it doesn't know what \figurename is.
Thanks.
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
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Section headings and figure captions
Code: Select all
\def\theequation{\arabic{equation}} % 1
Code: Select all
{0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\scshape}}%
Code: Select all
\def\figurename{Figure}
Code: Select all
\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1:}~~ #2}%
Code: Select all
\def\fnum@figure{\textbf{\figurename~\thefigure}}
Code: Select all
\documentclass[compsoc]{IEEEtran}