Justified text

This commit is contained in:
Krishna Kumar 2014-06-29 12:13:35 +01:00
parent 43b69242ae
commit b818b8ab34
4 changed files with 61 additions and 8 deletions

View File

@ -37,16 +37,57 @@ doesn't it? well we can add some text to it \dots
\section{Second section of the third chapter}
and here I write more \dots
\section{The layout of formal tables}
You will not go far wrong if you remember two simple
guidelines at all times:
\begin{enumerate}
\item Never, ever use vertical rules.
\item Never use double rules.
\end{enumerate}
These guidelines may seem extreme but I have
never found a good argument in favour of breaking them. For
example, if you feel that the information in the left half of
a table is so different from that on the right that it needs
to be separated by a vertical line, then you should use two
tables instead. Not everyone follows the second guideline:
I have worked for a publisher who insisted on a
double light rule above a row of totals. But this would not
have been my choice.
There are three further guidelines worth mentioning here as they
are generally not known outside the circle of professional
typesetters and subeditors:
\begin{enumerate}\setcounter{enumi}{2}
\item Put the units in the column heading (not in the body of
the table).
\item Always precede a decimal point by a digit; thus 0.1
{\em not} just .1.
\item Do not use `ditto' signs or any other such convention to
repeat a previous value. In many circumstances a blank
will serve just as well. If it won't, then repeat the value.
\end{enumerate}
Whether or not you wish to follow the minor niceties,
if you use only the following commands in your formal tables
your reader will be grateful. I stress that
the guidelines are not just to
keep the pedantic happy. The principal is that enforced structure of
presentation
enforces structured thought in the first instance.
Now we can refer to the table using Table.~\ref{t:borders}.
\begin{table}[h]
\begin{table}
\caption{Table with borders}
\centering
\label{t:borders}
\begin{tabular}{|l|c| r|}
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\ \hline
\begin{tabular}{l c r}
\toprule
1 & 2 & 3 \\ \midrule
4 & 5 & 6 \\ \midrule
7 & 8 & 9 \\ \bottomrule
\end{tabular}
\end{table}

View File

@ -122,6 +122,11 @@
\fi
}
% ************************* Header / Footer Styling ****************************
\newif\ifPHD@textJustify\PHD@textJustifyfalse % Set No Justification false
\DeclareOption{justify}{\PHD@textJustifytrue}
% ************************* Header / Footer Styling ****************************
\newif\ifPHD@pageStyleI\PHD@pageStyleIfalse % Set Page StyleI
\DeclareOption{PageStyleI}{\PHD@pageStyleItrue}
@ -634,9 +639,16 @@ supported!}
% ******************************** Justification *******************************
% Left aligned as per University identity guidelines
\ifPHD@textJustify
\AtBeginDocument{
\raggedright
}
\else
\message{PhDThesisPSnPDF: The University identity guidelines recommend using
left aligned text. Please use `flushleft' in the documentclass option, if you
wish to left align your text}
\fi
% ************************** TOC and Hide Sections *****************************
\newcommand{\nocontentsline}[3]{}

View File

@ -56,7 +56,7 @@
\usepackage{subcaption}
% ********************************** Table *************************************
\usepackage{booktabs} % For professional looking tables
%\usepackage{longtable}
%\usepackage{multicol}
%\usepackage{multirow}

Binary file not shown.