In this code \nopagebreak has no effect when following a tabular environment. An option would be to use minipage to make this code work, but the problem with that is it would not let longtables span multiple pages as expected. A new solution is needed here
\documentclass{article}\usepackage{longtable}\newcommand{\writetenrows}{a \\ a\\ a\\ a\\ a\\ a \\ a\\ a\\ a\\ a\\}\begin{document}\huge\begin{longtable}{|l|}\hline\writetenrows\writetenrows\hline\end{longtable}
Section Header\nopagebreak\begin{longtable}{|l|}\hline\writetenrows\writetenrows\hline\end{longtable}\end{document}
It seems that longtable accepts captions as long as they are followed by \\
This code seems to work, although the alignment is not working properly
Don't forget to include 'caption' in your package list
\begin{longtable}{|l|}So here is what I have, it seems to tweak the font size slightly though for some reason.
\captionsetup{labelformat=empty,justification=raggedleft}
\caption{Blah}\\
\hline
\writetenrows
\writetenrows
\hline
\end{longtable}
\usepackage[justification=justified,singlelinecheck=false]{caption}
\begin{longtable}{!{\vrule width 1pt} #2 !{\vrule width 1pt}}
\caption*{\sectionfont EDUCATIONAL BARRIERS}\\
No comments:
Post a Comment