[Tex/LaTex] Word template to latex

conversionmsword

I need to write an article, the template is provided in MS Word, however the file they accept could be either PDF or MSWord. Then I prefer to write it in latex.

From this question it seems there is no tool for automatic conversion. but I would like to create a latex template manually which covers some basic features. So I would like to find the simplest way to get the following correspondences. I guess it could be a useful question for those who want to start a manual conversion.

Size:

  • Page Size: Letter: 21.59cm x 27.94cm
  • Margins : Top:2.54 cm, Bottom: 2.79 cm, left:1.9cm, Right:2.16cm
  • Two columns, 8.36 wide, Spacing: 0.81cm

Fonts:

  • Text : Times New Roman, 10 pt
  • Heading: Times New Roman, bold 12 pt
  • Subheading: Times New Roman, Regular, 11pt
  • Title : Century, Bold, 18pt
  • Abstract: Times New Roman, 9pt
  • References: Times New Roman, 9pt

Paragraphs:

  • Line Spacing : single
  • Paragraph Spacing : Before: 0pt, After: 0pt
  • Indentation : Before Text: 0pt, After text: 0pt, Special: First Line: 0pt
  • Heading spacing: Before : 20pt, After:10pt
  • Subheading spacing: Before : 10pt, After: 10pt

Captions:

  • Figure Captions: 8pt
  • Tables caption: 8pt
  • Table content: 9pt
  • Table headings: 9pt, bold

Page Numbers:

  • No page number

Best Answer

Here's a suggested template, to be saved in a file named word2latextemplate.sty. I've had to fill in some gaps with educated guesses, as your instructions aren't nearly enough to define a template unambiguously.

%%% Save this file as 'word2latextemplate.sty'
%%% Load it from the main tex file via "\usepackage{word2latextemplate.sty}"

\ProvidesPackage{word2latextemplate}[2016/06/12]

\twocolumn

\usepackage{newtxtext,newtxmath}      % Times Roman clone

\usepackage[top=2.54cm, bottom=2.79cm, left=1.9cm, right=2.16cm, 
            columnsep=0.81cm, letterpaper]{geometry}

\usepackage{sectsty}
\sectionfont{\large} % 12pt
\subsectionfont{\fontsize{11}{13}\selectfont\mdseries}

\setlength\parindent{0pt} % no indentation of first line of paragraphs

\usepackage{caption}
\captionsetup{size=footnotesize, % 8pt
              font=bf, % bold
              skip=0.25\baselineskip}

\usepackage{etoolbox}
\AtBeginEnvironment{abstract}{\small} % 9pt in 'abstract' env.
\apptocmd{\@xfloat}{\small} % 9pt in tables and figures
% no page numbers on title pages:
\apptocmd{\maketitle}{\thispagestyle{empty}}{}{} 
% no page numbers on 'plain' pages
\pagestyle{empty} 

\endinput % end of "word2latextemplate"

Load it from your main tex file with the instruction \usepackage{word2latextemplate}.

Note that I didn't try to resolve what I perceive to be a conflict between the requirements "Tables caption: 8pt" and "Table headings: 9pt...". I gave the nod to the first-mentioned requirement.

Note also that not all formatting-related instructions are contained in the style file. Some additional formatting still has to be performed in the main tex file, as is done in the following MWE (minimum working example). Specifically, font-related commands have to be provided in the argument of \title.

\documentclass{article}
\usepackage{word2latextemplate}
\usepackage{lipsum}  % for filler text
\begin{document}

\title{\renewcommand{\rmdefault}{qcs} % Century clone
       \fontfamily\familydefault
       \fontsize{18}{22}\selectfont  % set font size
       \bfseries                     % set bold weight
       Article Title}
\author{FirstName LastName}
\date{January 1, 3001}
\maketitle

\begin{abstract}
\lipsum[2]
\end{abstract}

\section{Hello World}
\subsection{Good Morning}

\lipsum[2-4]

\begin{table}[h!]
\small  % switch to 9pt font size for body of 'table' env.
\caption{A table}
\centering
\begin{tabular}{lll}
\hline
a & b & c \\
d & e & f \\
\hline
\end{tabular}
\end{table}

\lipsum[6]

\end{document}

Here's a screenshot to go with the MWE:

enter image description here