<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% ----------------------------------------------------------
\chapter{Tabelas longas e rotacionadas}\label{apd:tabs}
% ----------------------------------------------------------

A \cref{tab:dscf} Ã© um exemplo de tabela longa, que ocupa mais de uma pÃ¡gina, construÃ­da com o ambiente \texttt{longtable} do pacote com mesmo nome (para mais informaÃ§Ãµes sobre o pacote, consulte seu manual\footnote{DisponÃ­vel em \url{https://mirrors.ctan.org/macros/latex/required/tools/longtable.pdf}}). Para quadros longos, utilize o ambiente \texttt{longquadro}, disponibilizado na classe UnB\TeX. 

A \cref{tab:rot} foi construÃ­da com o ambiente \texttt{landscape} do pacote \textsf{lscape}. Para rotacionar, alÃ©m da tabela, tambÃ©m a pÃ¡gina do arquivo \texttt{pdf}, utilize o pacote \textsf{pdflscape}\footnote{DisponÃ­vel em \url{http://mirrors.ctan.org/macros/latex/contrib/pdflscape/pdflscape.pdf}}. De forma anÃ¡loga, os pacotes mencionados para rotacionar tabelas, podem rotacionar figuras.

\begin{longtable}{L{2.5cm}C{2.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}}
%\begin{longquadro}{L{2.5cm}C{2.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}}
% CabeÃ§alho no inÃ­cio da tabela
\caption{Tabela longa}
\label{tab:dscf} \\
\toprule
\multirow{3}{*}{\bfseries Variable} &amp; 
\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &amp; 
\multicolumn{6}{c}{\bfseries Proportions by Subtype (\%)} \\
\cmidrule(lr){3-8}
&amp; &amp;
\multicolumn{2}{c}{\bfseries Graduated} &amp; \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &amp; 
\multicolumn{2}{c}{\bfseries Censored} \\
\midrule
\endfirsthead
% CabeÃ§alho da continuaÃ§Ã£o da tabela no topo da pÃ¡gina seguinte
\caption[]{Tabela longa (continuaÃ§Ã£o)} \\ \toprule
\multirow{3}{*}{\bfseries Variable} &amp; 
\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &amp; 
\multicolumn{6}{c}{\bfseries Proportions by Subtypes (\%)} \\
\cmidrule(lr){3-8}
&amp; &amp;
\multicolumn{2}{c}{\bfseries Graduated} &amp; \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &amp; 
\multicolumn{2}{c}{\bfseries Censored} \\
\midrule
\endhead
\hline
\multicolumn{8}{r}{(Continua)}\\
\endfoot
\bottomrule
\endlastfoot
\bfseries Total &amp; 100.0 &amp; 50.1 &amp; (45.8) &amp; 7.5 &amp; (14.9) &amp; 42.4 &amp; (39.3) \\
\addlinespace
\bfseries Gender \\
Male   &amp; 52.4 &amp; 49.6 &amp; (44.3) &amp; 8.7 &amp; (17.3) &amp; 41.7 &amp; (38.5) \\
Female &amp; 47.6 &amp; 50.7 &amp; (48.0) &amp; 6.2 &amp; (11.5) &amp; 43.1 &amp; (40.5) \\
\addlinespace
\bfseries Race \\
White &amp; 40.3 &amp; 59.8 &amp; (58.7) &amp; 3.0 &amp; (4.6) &amp; 37.2 &amp; (36.7) \\
Black &amp; 32.4 &amp; 38.7 &amp; (32.5) &amp; 13.1 &amp; (26.3) &amp; 48.2 &amp; (41.2) \\
Coloured &amp; 13.0 &amp; 49.8 &amp; (44.5) &amp; 7.4 &amp; (16.1) &amp; 42.8 &amp; (39.5) \\
Indian/Asian &amp; 14.3 &amp; 48.9 &amp; (44.6) &amp; 7.9 &amp; (13.3) &amp; 43.3 &amp; (42.1) \\
\addlinespace
\bfseries Financial Aid \\
Ineligible for Financial Aid &amp; 82.3 &amp; 52.1 &amp; (48.7) &amp; 5.5 &amp; (10.6) &amp; 42.4 &amp; (40.7) \\
Eligible for Financial Aid &amp; 17.7 &amp; 40.7 &amp; (35.2) &amp; 17.2 &amp; (30.3) &amp; 42.1 &amp; (34.5) \\
\addlinespace
\bfseries Programme \\
Mainstream &amp; 76.9 &amp; 55.4 &amp; (51.3) &amp; 5.7 &amp; (10.8) &amp; 38.9 &amp; (37.9) \\
Academic Development &amp; 23.1 &amp; 32.5 &amp; (27.1) &amp; 13.7 &amp; (28.7) &amp; 53.8 &amp; (44.2) \\
\addlinespace
\bfseries English Home Language \\
Yes &amp; 69.3 &amp; 55.1 &amp; (52.8) &amp; 4.9 &amp; (8.6) &amp; 39.9 &amp; (38.6) \\
No &amp; 30.7 &amp; 38.8 &amp; (32.8) &amp; 13.4 &amp; (26.6) &amp; 47.8 &amp; (40.6) \\
\addlinespace
\bfseries School Quintile \\
1 &amp; 0.8 &amp; 34.6 &amp; (26.1) &amp; 30.8 &amp; (42.6) &amp; 34.6 &amp; (31.3) \\
2 &amp; 1.6 &amp; 30.2 &amp; (28.1) &amp; 16.0 &amp; (35.1) &amp; 53.8 &amp; (36.8) \\
3 &amp; 5.0 &amp; 32.0 &amp; (27.7) &amp; 17.5 &amp; (35.3) &amp; 50.5 &amp; (37.0) \\
4 &amp; 4.1 &amp; 37.7 &amp; (29.5) &amp; 17.7 &amp; (32.0) &amp; 44.5 &amp; (38.5) \\
5 &amp; 45.4 &amp; 52.0 &amp; (49.2) &amp; 6.9 &amp; (12.0) &amp; 41.1 &amp; (38.9) \\
Independent  &amp; 43.1 &amp; 52.5 &amp; (50.4) &amp; 5.3 &amp; (8.6) &amp; 42.2 &amp; (41.0) \\
\addlinespace
{\bfseries Province} \\
Western Cape &amp; 40.0 &amp; 55.1 &amp; (51.3) &amp;5.9 &amp; (11.6) &amp;39.0 &amp; (37.0) \\
Non-Western Cape &amp; 59.9 &amp; 46.8 &amp; (41.9) &amp; 8.6 &amp; (17.2) &amp; 44.6 &amp; (41.0) \\
\addlinespace
{\bfseries Year of First Registration} \\
{2006} &amp; 11.6  &amp; 87.8 &amp; (79.9) &amp; 11.3 &amp; (18.9) &amp; 0.9 &amp; (1.2) \\
{2007} &amp; 11.9 &amp; 88.2 &amp; (79.4) &amp; 10.1 &amp; (19.2)   &amp; 1.7 &amp; (1.4) \\
{2008} &amp; 12.6 &amp; 87.1 &amp; (76.7) &amp; 10.3 &amp; (20.3) &amp; 2.6 &amp; (3.0) \\
{2009} &amp; 11.9 &amp; 80.9 &amp; (64.9) &amp; 9.7 &amp; (24.9) &amp; 9.4 &amp; (10.2) \\
{2010} &amp; 11.1 &amp; 62.6 &amp; (57.5) &amp; 6.4 &amp; (12.7) &amp; 31.1 &amp; (29.8) \\
{2011} &amp; 11.7 &amp; 15.8 &amp; (15.3) &amp; 7.2 &amp; (12.8) &amp; 77.0 &amp; (71.9) \\
{2012} &amp; 14.1 &amp; 0.0 &amp; (0.0)  &amp; 5.4 &amp; (7.5) &amp; 94.6 &amp; (92.5) \\
{2013} &amp; 15.1 &amp; 0.0 &amp; (0.0) &amp; 1.7 &amp; (3.0) &amp; 98.3 &amp; (97.0) \\
%\end{longquadro}
\end{longtable}

\afterpage{ % Evita quebra de pÃ¡gina ao inserir tabela rotacionada
\begin{landscape} % Rotaciona a tabela
\begin{table}%
\centering\small
\caption{Tabela rotacionada}\label{tab:rot}
\setlength\tabcolsep{3pt} % define o espaÃ§amento entre colunas
\begin{tabular}{@{}L{1.1cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}@{}} % @{} elimina o espaÃ§o nas bordas laterais
\toprule
Sv,ieq &amp; 000436xa &amp; 000594xa &amp; 001715xa &amp; 001932ya &amp; 006040ya &amp; 006263xa &amp; 007162ya &amp; 007257ya &amp; IT0605ya &amp; IT0790xa &amp; emiliaeo-retro &amp; emilians-retro \\ \midrule
0.4 &amp; 2.447  &amp; 2.177  &amp; 2.304  &amp; 4.921  &amp; 4.298  &amp; 2.121  &amp; 3.928  &amp; 3.478  &amp; 3.462  &amp; 1.751  &amp; 0.875  &amp; 0.525 \\
0.8 &amp; 4.894  &amp; 4.354  &amp; 4.609  &amp; 9.843  &amp; 8.597  &amp; 4.241  &amp; 7.857  &amp; 6.957  &amp; 6.924  &amp; 3.502  &amp; 1.750  &amp; 1.049 \\
1.2 &amp; 7.341  &amp; 6.530  &amp; 6.913  &amp; 14.764 &amp; 12.895 &amp; 6.362  &amp; 11.785 &amp; 10.435 &amp; 10.386 &amp; 5.252  &amp; 2.625  &amp; 1.574 \\
1.6 &amp; 9.789  &amp; 8.707  &amp; 9.218  &amp; 19.686 &amp; 17.194 &amp; 8.482  &amp; 15.713 &amp; 13.914 &amp; 13.848 &amp; 7.003  &amp; 3.500  &amp; 2.099 \\
2   &amp; 12.236 &amp; 10.884 &amp; 11.522 &amp; 24.607 &amp; 21.492 &amp; 10.603 &amp; 19.642 &amp; 17.392 &amp; 17.310 &amp; 8.754  &amp; 4.375  &amp; 2.624 \\
2.4 &amp; 14.683 &amp; 13.061 &amp; 13.827 &amp; 29.529 &amp; 25.791 &amp; 12.723 &amp; 23.570 &amp; 20.871 &amp; 20.772 &amp; 10.505 &amp; 5.250  &amp; 3.148 \\
2.8 &amp; 17.130 &amp; 15.237 &amp; 16.131 &amp; 34.450 &amp; 30.089 &amp; 14.844 &amp; 27.498 &amp; 24.349 &amp; 24.234 &amp; 12.256 &amp; 6.125  &amp; 3.673 \\
3.2 &amp; 19.577 &amp; 17.414 &amp; 18.435 &amp; 39.372 &amp; 34.388 &amp; 16.965 &amp; 31.427 &amp; 27.828 &amp; 27.697 &amp; 14.006 &amp; 7.000  &amp; 4.198 \\
3.6 &amp; 22.024 &amp; 19.591 &amp; 20.740 &amp; 44.293 &amp; 38.686 &amp; 19.085 &amp; 35.355 &amp; 31.306 &amp; 31.159 &amp; 15.757 &amp; 7.875  &amp; 4.723 \\
4   &amp; 24.471 &amp; 21.768 &amp; 23.044 &amp; 49.215 &amp; 42.984 &amp; 21.206 &amp; 39.283 &amp; 34.784 &amp; 34.621 &amp; 17.508 &amp; 8.750  &amp; 5.247 \\
4.4 &amp; 26.919 &amp; 23.945 &amp; 25.349 &amp; 54.136 &amp; 47.283 &amp; 23.326 &amp; 43.212 &amp; 38.263 &amp; 38.083 &amp; 19.259 &amp; 9.625  &amp; 5.772 \\
4.8 &amp; 29.366 &amp; 26.121 &amp; 27.653 &amp; 59.058 &amp; 51.581 &amp; 25.447 &amp; 47.140 &amp; 41.741 &amp; 41.545 &amp; 21.009 &amp; 10.500 &amp; 6.297 \\
5.2 &amp; 31.813 &amp; 28.298 &amp; 29.957 &amp; 63.979 &amp; 55.880 &amp; 27.567 &amp; 51.068 &amp; 45.220 &amp; 45.007 &amp; 22.760 &amp; 11.375 &amp; 6.821 \\
5.6 &amp; 34.260 &amp; 30.475 &amp; 32.262 &amp; 68.900 &amp; 60.178 &amp; 29.688 &amp; 54.996 &amp; 48.698 &amp; 48.469 &amp; 24.511 &amp; 12.250 &amp; 7.346 \\
6   &amp; 36.707 &amp; 32.652 &amp; 34.566 &amp; 73.822 &amp; 64.477 &amp; 31.809 &amp; 58.925 &amp; 52.177 &amp; 51.931 &amp; 26.262 &amp; 13.125 &amp; 7.871 \\ \bottomrule 
\end{tabular}
\end{table}%
\end{landscape}
}</pre></body></html>