Text FormattingSection Titles

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Section Titles

Post by latexhelp1 »

I'd like to assign a section title to my figures and tables, but such that it is not enumerated like my references section is not. How can this be done?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Section Titles

Post by Stefan Kottwitz »

You could use \section*. Or use \section, and customize the secnumdepth counter.

Stefan
LaTeX.org admin
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Section Titles

Post by latexhelp1 »

Stefan,

Thank you for the great suggestion. It seems though that the the section title gets generated on a page all by itself rather than as the top of the page of the first figure as I'd like. Do you have any suggestions as to why this might be the case?

Code: Select all

\begin{singlespace}
\section*{Figures and Tables}
\begin{figure}[p]
 \vbox to .7\textheight{\vfill
  \begingroup
    \centering
    \caption{First Figure Title}
    \includegraphics[%height = 4.75in, 
width = .9\textwidth]{Figure.eps}
    
  \endgroup
  
  \smallskip
  \footnotesize
  Notes: 
  \vfill}
\end{figure}
Stefan_K wrote:You could use \section*. Or use \section, and customize the secnumdepth counter.

Stefan
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Section Titles

Post by Stefan Kottwitz »

That's because of the p argument:

Code: Select all

\begin{figure}[p]
This way the figure will be placed on a separate page, possibly together with other floats/figures, but not with text and not with section titles.

You could place them within the text instead, such as by

Code: Select all

\begin{figure}[!htb]
(or less positioning options), but not p.

Or, place a simple text as heading within the figure environment, with the same font size, weight (bold) and shape as in section headings.

Stefan
LaTeX.org admin
Post Reply