[Tex/LaTex] Article class: avoid page break after appendix title

appendicespage-breaking

I am using the article class:

\documentclass[11pt,letterpaper]{article}
\usepackage{times}
\usepackage{url}
\usepackage{latexsym}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{subfigure}
\usepackage{graphicx}
\usepackage[shortlabels]{enumitem}
\usepackage{pgfplotstable}
\usepackage{subfigure}

With this setup, I am trying to add an appendix after the bibliography:

\bibliography{mybib}
\bibliographystyle{mystyle}
\pagebreak %or actually any other command for starting on a new page (newpage, clearpage)
%appendix title
%appendix content

The appendix starts on a new page. However, it should also have a title displayed on the same page. I have tried a wide choice of commands to have the appendix title on the same page, but nothing works. Anything I do sets the appendix title to a new page and the appendix content on yet another page. I want a new page after the bib and the appendix title and content should both be on that new page. Can anyone help?

Thanks,
anne

Best Answer

I have given up on solving this, but I can share an alternative solution. Instead of making a section title, I marked my content as appendix in the caption (since my appendix content is actually a table). This is what I did:

In the preamble: \usepackage{caption} After the bib:

\captionsetup{type=table}
\captionsetup{name=\textbf{Appendix}}

Within my table environment:

\renewcommand{\thetable}{\textbf{\Alph{table}}}
\addtocounter{table}{-3}

Produces this without creating ugly blanks:

enter image description here

Cheers, a

Related Question