summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hindawi-latex-template/hindawi_latex_template.tex
blob: 9b2ce6c809c1cc288ddd3ace2a30af490d793bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
% Please refer README file for more details about this document

\documentclass[twoside,twocolumn]{article}

\usepackage{tabulary,graphicx,times,caption,fancyhdr,amsfonts,amssymb,amsbsy,latexsym,amsmath}
\usepackage[utf8]{inputenc}
\usepackage{url,multirow,morefloats,floatflt,cancel,tfrupee,textcomp,colortbl,xcolor,pifont}
\usepackage[nointegrals]{wasysym}
\urlstyle{rm}

\makeatletter

%Etal definition in references
\usepackage{ifxetex}
\ifxetex\else
  \usepackage{dblfloatfix}
\fi

\@ifundefined{subparagraph}{
\def\subparagraph{\@startsection{paragraph}{5}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
{0ex}{\normalfont\small\itshape}}%
}{}

\def\URL#1#2{\@ifundefined{href}{#2}{\href{#1}{#2}}}

%%For url break
\def\UrlOrds{\do\*\do\-\do\~\do\'\do\"\do\-}%
\g@addto@macro{\UrlBreaks}{\UrlOrds}

\makeatother
\def\floatpagefraction{0.8} 
\def\dblfloatpagefraction{0.8}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[paperheight=11in,paperwidth=8.3in,margin=2.5cm,headsep=.7cm,top=2.5cm]{geometry}
\usepackage[T1]{fontenc}
\def\floatpagefraction{0.8}
\widowpenalty 10000
\clubpenalty 10000

\renewenvironment{abstract}
	{\trivlist\item[]\leftskip0pt\par\vskip4pt\noindent
  	\textbf{\abstractname}\mbox{\null}\\}
	{\par\noindent\endtrivlist}

\def\keywords#1{\par\medskip\par\noindent\textbf{Keywords}: #1\par}

\linespread{1.13} \date{} \emergencystretch 8pt

\captionsetup[figure]{labelfont=normal,skip=1.4pt,aboveskip=1pc}
\captionsetup[table]{labelfont=normal,skip=1.4pt}

\makeatletter
\def\author#1{\gdef\@author{\hskip-\tabcolsep%
	\parbox{\textwidth}{\raggedright\bfseries#1\\[1pc]}}}
\def\address[#1]#2{\g@addto@macro\@author{\\\hskip-\tabcolsep\parbox{\textwidth}{\raggedright%
	\normalsize\normalfont\textsuperscript{#1}#2}}}
\let\addresslink\textsuperscript
\def\correspondence#1{\g@addto@macro\@author{\\\hskip-\tabcolsep\parbox{\textwidth}{\raggedright%
	\vspace*{10pt}\normalsize\normalfont~\\#1~\\[12pt]}}}
\def\email#1{\g@addto@macro\@author{\\\hskip-\tabcolsep\parbox{\textwidth}{\raggedright%
	\normalsize\normalfont Emails: #1}}}

\def\title#1{\gdef\@title{\vspace*{-30pt}%
	\raggedright\textbf{\@journaltitle}~\\%
  \raggedright\bfseries\ifx\@articleType\@empty\vspace*{20pt}\else%
  \vspace*{20pt}\@articleType\vspace*{20pt}\\\fi#1}}
\let\@journaltitle\@empty \def\journaltitle#1{\gdef\@journaltitle{{\normalfont\itshape#1}}}
\let\@articleType\@empty \def\articletype#1{\gdef\@articleType{{\normalfont\itshape#1}}}

\let\@runningHead\@empty \def\RunningHead#1{\gdef\@runningHead{{\normalfont #1}}}

\usepackage{fancyhdr}
\fancypagestyle{headings}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}
  \fancyhead[R]{\itshape\@runningHead}
  \fancyfoot[C]{\thepage}}
\pagestyle{headings}

\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}%
	\fancyhf{}\fancyhead[R]{\LaTeX\ template for Hindawi journal articles}
  \fancyfoot[C]{\thepage}}
\makeatother

\usepackage[%
	numbers,sort&compress%
	%authoryear
  ]{natbib}

\setcounter{secnumdepth}{0}
\usepackage{float,xcolor}

\journaltitle{<journal title>}
\articletype{<article type>} % Research Article/Review Article/Clinical Study

\begin{document}

% Title of the document
\title{Title goes here}

% Author names
\author{%
		A. Author\addresslink{1,2},
  	B. Author\addresslink{2} and
  	C. Author\addresslink{3}
    }
		
% Affiliation
\address[1]{Affiliation one}
\address[2]{Affiliation two}
\address[3]{Affiliation three}

% Corresponding author details
\correspondence{Correspondence should be addressed to 
    	<corresponding author's name>: <corresponding author's email>}

% Emails of authors
\email{A@gmail.com (A. Author), B@gmail.com (B. Author)}%

% Running Head
\RunningHead{Running head}

\maketitle 

% Abstract
\begin{abstract}
Abstract text goes here 

Abstract text goes here Abstract text goes here Abstract text goes here
Abstract text goes here Abstract text goes here  Abstract text goes
here Abstract text goes here Abstract text goes here Abstract text goes
here Abstract text goes here  Abstract text goes here Abstract text
goes here Abstract text goes here Abstract text goes here Abstract text
goes here 

% Keywords - if any
\keywords{Key1; Key2; Key3}
\end{abstract}
    
% First level heading
\section{Introduction}
Normal section goes here ...

% Second level heading
%\subsection{}

% Third level heading
%\subsubsection{}

% Fourth level heading
%\paragraph{}

% Fourth level heading
%\subparagraph{}

% Numbered equation
%\begin{eqnarray}
%\end{eqnarray}

% Table
\begin{table}[!htbp]
% Use starred version (\begin{table*} \end{table*}) for two column spanned table
\caption{\label{tbl1}Caption of the table.}
\centering 
\def\arraystretch{1.15} % To increase the row spacing
\begin{tabular}{ll}
\hline
One & Two \\
\hline
Three & Four\\
\hline
\end{tabular} 
\end{table}

% Figure
\begin{figure}[!htbp]
\centering 
% Uncomment below line to include image
% \includegraphics{image1}% <image name>
\caption{\label{fig1}Caption of the figure}
\end{figure}

% Itemized list
%\begin{itemize}
%  \item 
%  \item 
%  \item 
%\end{itemize}

% Numbered list
%\begin{enumerate}
	%\item 
	%\item 
	%\item 
%\end{enumerate}

% Bibliography style - if using a .bib file
	%\bibliographystyle{hindawi_bib_style}
	%\bibliography{<bib file name>} % without .bib extension
  
  %Or
  
  \begin{thebibliography}{00}
  \bibitem{b1}
		J. Bruix and M. Sherman, ``Management of hepatocellular carcinoma: 
		an update'', \textit{Hepatology}, vol. 53, no. 3, pp. 1020--1022, 2011.
 
 %  \bibitem{b2}
		% ...

 %  \bibitem{b3}
		% ...
 
 \end{thebibliography}  

\end{document}