Text Formatting ⇒ Section Headings without Titles in Body of Text
-
- Posts: 3
- Joined: Wed Mar 07, 2012 8:28 am
Section Headings without Titles in Body of Text
So essentially what I am looking for is, whether it is possible to create subsections with titles but suppress having the titles printed out anywhere but in the TOC and headers?
Thanks in advance for any replies
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 Headings without Titles in Body of Text
LaTeX has certain rules about the amount of text and floats (figures) on one page. I wrote about that in this post. In short, add the following to your preamble:
Code: Select all
\renewcommand{\textfraction}{0.05}
Follow howtoTeX on twitter
-
- Posts: 3
- Joined: Wed Mar 07, 2012 8:28 am
Section Headings without Titles in Body of Text
Thanks for the reply, unfortunately space is rather at a premium on my pages so even with that cranked down to a minimum and reducing the size of my floats by 10% it still pushed the floats to a new page with the text on preceding page. I would reduce the size further but any more and I risk my figures being unreadable.
Also here is the MWE you asked for, hopefully it helps.
Code: Select all
\documentclass[letterpaper]{proc}
\usepackage{morefloats}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
\usepackage{fancyhdr}
\begin{document}
\pagestyle{fancy}
\begin{section}{mySection}
\begin{figure*}[hp]
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}\\
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}\\
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}
\subfloat[Myfloat]{\includegraphics[width=0.45\textwidth]{./myfloat}}\\
\caption{myCaption}
\end{figure*}
\end{section}
\end{document}
Section Headings without Titles in Body of Text
But your best center of knowledge for LaTeX is Wikibooks, specifically:
http://en.wikibooks.org/wiki/LaTeX/Floa ... d_Captions
You should add \usepackage{float} in the preamble and use:
Code: Select all
\begin{figure}{Ht}
Nikolay
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Section Headings without Titles in Body of Text
There is absolutely no sense in putting some stuff into a floating environment and then keep this environment from floating by this sledgehammer method. A simple use of the appropriate placement parameters will do as long as there is enough space left to place the float.justdeath wrote:[…] But your best center of knowledge for LaTeX is Wikibooks, specifically:
http://en.wikibooks.org/wiki/LaTeX/Floa ... d_Captions
You should add \usepackage{float} in the preamble and use:[…]Code: Select all
\begin{figure}{Ht}
Code: Select all
\begin{figure}[!htb]
% figure content
\end{figure}
\captionof
command a much smarter way of doing this. Perhaps this wiki should be updated in this regard.Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Section Headings without Titles in Body of Text
-
- Posts: 3
- Joined: Wed Mar 07, 2012 8:28 am