[Tex/LaTex] Report custom format

fontsformattingreport

I'm new to LaTeX and I want create a report for my college. The format specified is as follows:

  • Left Margin – 1.5 inch
  • Right Margin – 0.5 inch
  • Top Margin – 1 inch
  • Bottom Margin – 1 inch
  • Font – Times New Roman
  • All main headings uppercase 14 (Bold)
  • All Sub main headings uppercase 12 (Bold)
  • Matter 12 (Regular)
  • Line Spacing – 1.5
  • Paragraph Spacing 1.5
  • Each table and figure should be numbered

For margins I've used the following code:

 \usepackage[top=1.00in, bottom=1.00in, left=1.50in,right=0.50in]{geometry}  

But I don't know what to do for the rest.

Best Answer

Summarizing and combining the comments that have been posted so far, the following setup may work for you. It assumes that you're using pdfLaTeX and that you have a reasonably current TeX distribution. (If you use XeLaTeX or LuaLaTeX, different instructions would apply for the font-loading portion of the preamble.)

There's one crucial piece of information missing in what you've provided so far: The size of the page. Is it A4, A5, US Letter, US Legal, or something else? You should provide this piece of information when loading the geometry package.

By the way, do note that opinions vary greatly on what exactly "line spacing 1.5" means. In the code below, I suggest using \setstretch{1.5}. However, \onehalfspacing (to be executed immediately after \begin{document}) may in fact be more appropriate for you. I suggest checking back with your college to clarify what is required.

It's also not clear to me what "Paragraph spacing 1.5" is supposed to mean. For now, I'm suggesting keeping interparagraph and intraparagraph line spacing the same. However, it may turn out that what's required is that interparagraph line spacing must be 50% larger than intraparagraph spacing; if that's the case, add the instruction \setlength\parskip{0.5\baselineskip} -- and prepare yourself for some really ugly-looking documents...

\documentclass[12pt]{article}  % 12pt: main font size

% dimensions of text block
\usepackage[vmargin=1in, left=1.5in, right=0.5in]{geometry}

% font family: Times Roman
\usepackage{newtxtext,newtxmath} % or: mathptmx
\usepackage[T1]{fontenc} % important if your docs contain special characters
\usepackage[utf8{inputenc}

% size and weight of font to be used in section headers
\usepackage{sectsty}
\sectionfont{\large\bfseries} 
\subsectionfont{\normalsize\bfseries}

% line spacing
\usepackage[nodisplayskipstretch]{setspace}
\setstretch{1.5} % or:  \onehalfspacing -- opinions vary...

% If you use the table and figure environments along with
% \caption commands, the floats will be numbered automatically
\usepackage{lipsum} % filler text
\begin{document}\onehalfspacing
\section{A first section}
\subsection{A first subsection}
\lipsum[2-3]
\section{Another section}
\subsection{Another subsection}
\lipsum[3-4]
\end{document}