I have a portrait page with a section heading below which I would like to place a table in landscape (as in this orientation it should take up most of the rest of the page).
I can get the whole page in landscape and do it that way, however, if I do this, the section heading does not appear on the same page.
My current attempt (which sticks the table on a new, landscape, page looks like this:
\documentclass[a4paper]{report}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{booktabs}
\usepackage{float}
\usepackage{tabularx}
\usepackage{pdflscape}
\begin{document}
\section{Appendix B - Risk Assessment}
\begin{landscape}
\begin{table}[H]
\centering\ra{1.3}
\caption{Table to show risks, hazards and mitigation techniques for this experiment}
\label{tbl:RiskMatrix}
\begin{tabularx}{\linewidth}{X X c X c c}
\toprule
Description of Hazard & Consequences & Risk Before & Mitigations Required & Risk After & ALARP? (Yes/No) \\ [0.5ex]
\midrule
Electrocution & Serious injury or death & 0.5 & Ensure hands are dry when plugging in. Do not tamper with any electrical components & 0.1 & Yes \\
Burns from hot components & Non-serious burns & 0.7 & Wear thermally insulated gloves when operating equipment & 0.2 & Yes \\
Burns from steam & Very serious burns, potential loss of sight & 0.6 & Wear safety goggles and a lab coat to protect from steam egress & 0.2 & Yes \\
Loss of apparatus integrity & Injuries from shrapnel, serious burns, potentially fatal & 0.3 & Check equipment for signs of buckling before use. Ensure that it remains within safe operating pressures. Ensure ballistic screen is in place around equipment. & 0.2 & Yes \\\bottomrule
\end{tabularx}
\end{table}
\end{landscape}
\end{document}
If anyone would have any suggestions on how I could achieve this or, if this is not possible, what the best alternative solution might be.
\documentclassand ending with\end{document}) would be nice. - Does this question and answers help you? – Bobyandbob Oct 19 '17 at 10:18landscapealways starts a new page usesidewaystablefrom the rotating package (or just\rotateboxaround the tabular if you don't want to rotate the caption) – David Carlisle Oct 19 '17 at 10:23\begin{table}to\begin{sidewaystable}(and the\end) has caused my table to vanish. Do you know what could be causing this off the top of your head? If not, I'll dig through the docs – ScottishTapWater Oct 19 '17 at 10:27\rotateboxtoo and that just results in a mangled table with overlapping columns and text. – ScottishTapWater Oct 19 '17 at 10:37\begin{sideways}is a very thin wrapper around\rotatebox(mostly for compatibility with documents from the 1980's written for the latex2.09 version of the rotating package) (sidewaystable probably doesn't support H so if you still had that try without) – David Carlisle Oct 19 '17 at 11:37\textwidthparameter – ScottishTapWater Oct 19 '17 at 12:58\begin{table}to\begin{sidewaystable}(and the\end) and this caused my table to vanish... – MrT77 Apr 14 '22 at 15:15