Header for landscaped tables with the mandatory 1.8" to 2.0" bound-thesis margin (nevermind the fact that no one actually knows if and whether these bound theses serve any use at all in this electronic age).
For the UofR thesis, the stuffy rules are:
Letter-sized page: 8.5 X 11"
Left margin: 1.8"
Right, top and left margins: 1.25"
In the geometry package, this means a printable total area of:
Horizontal: 8.5 - (1.8 + 1.25) = 5.45
Vertical: 11 - (1.25*2) = 8.5
total={5.45in,8.5in}
The table is a 3 column longtable multipage table with alternating color rows.
-------------
Installing TeX packages on the fly:
For the UofR thesis, the stuffy rules are:
Letter-sized page: 8.5 X 11"
Left margin: 1.8"
Right, top and left margins: 1.25"
In the geometry package, this means a printable total area of:
Horizontal: 8.5 - (1.8 + 1.25) = 5.45
Vertical: 11 - (1.25*2) = 8.5
total={5.45in,8.5in}
The table is a 3 column longtable multipage table with alternating color rows.
\documentclass[11pt]{article}
\usepackage[landscape, tmargin=1.8in, bmargin=1.25in, hmargin=1.25in,centering]{geometry}
\usepackage{longtable}
\usepackage[table]{xcolor}
\usepackage[none]{hyphenat}
\usepackage[T1]{fontenc}
\usepackage[default]{cantarell}
\usepackage{booktabs}
\definecolor{tableShade}{HTML}{F1F5FA}
\definecolor{tableShade2}{HTML}{ECF3FE}
\pagestyle{empty}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\arraystretch}{1.3} %Sets row height
\setlength{\tabcolsep}{1.5pt} % Specifies column separation
\begin{document}
\begin{center}
\textbf{Title 1 goes here.}\\
\textbf{Title 2 goes here}\\\vspace{2em}
\textbf{Table x.1: Title of the table.}\\
\textbf{}\\
\end{center}
\setlength\LTleft{0in}
\setlength\LTright\fill
\rowcolors{1}{tableShade}{white}\centering %[commands]{row}{odd-row color}{even-row color}
\begin{longtable}{>{\raggedright}p{4cm}p{5cm}p{11cm}}
\midrule
\hiderowcolors
\textbf{Heading of 1st column} & \textbf{Heading of 2nd column}& \textbf{3rd Col Heading\protect\footnotemark[1] and heading continued}\\
\addlinespace[0.5em]
\midrule
\endhead
%\multicolumn{3}{c}[1]{Some footnote goes here x.x}\\
\midrule
\endfoot
\showrowcolors
% Table data goes here
\end{longtable}
\end{document}
-------------
Installing TeX packages on the fly:
yum install 'tex(epsfig.sty)'
Next project: Try and emulate the look and fee of this table. Font is Gotham and it's some baby blue color with white rules. The question is can I use the xcolor package and specify that color with hex codes?
0 Comments:
Post a Comment