-
Notifications
You must be signed in to change notification settings - Fork 0
/
WriteLaTeXusingWord.tex
71 lines (62 loc) · 2.51 KB
/
WriteLaTeXusingWord.tex
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
% WriteLaTeXinWord.tex
% Choose style
\newcommand{\mode}{0} % (IEEE used in this example template) 0 = IEEE draft style, 1 = IEEE final (conference)
\newcommand{\figPosInText}{1} % 1 = figs normally on text, 0 = figs to end
\ifnum\mode=0 % IEEE draft style, no foot
\documentclass[draftclsnofoot, onecolumn, 12pt]{./partfiles/IEEEtran}
\else % IEEE style, 2 columns
\documentclass[conference]{./partfiles/IEEEtran}
\fi
\usepackage{cite} % IEEEcitation style
\usepackage{verbatim} % for multiline
% Position of Figures / Tables
\ifnum\figPosInText=0
% Figures and tables set to the end after references
\usepackage[nomarkers]{endfloat}
\fi
% some addition commands
\newcommand{\vect}[1]{\boldsymbol{#1}} % bold vectors
% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}
%%%% load packages %%%%%%%%%%%%%%%%%%%
% GRAPHICS RELATED PACKAGES
\ifCLASSINFOpdf
\usepackage[pdftex]{graphicx}
\graphicspath{{./figs/}}
\else
\usepackage[dvips]{graphicx}
\graphicspath{{./figs/}}
\fi
% To add parts from another .tex file (see below the file), e.g. figures, tables, equations
% see also: https://texblog.org/2012/12/04/keeping-things-organized-in-large-documents/
\usepackage{catchfilebetweentags} % load the package
\newcommand{\loadPart}[1]{
% define command to load figures, equations, tables,...
\ExecuteMetaData[./partfiles/additional_parts.tex]{#1}
% call the package macro to load chunk from file
}
\usepackage{subcaption} %\usepackage{subfigure}
\usepackage{amsmath}
% \usepackage{bm} % bold symbols´, but not needed as \boldsymbol are included in amsmath
\usepackage{dblfloatfix} % To enable figures at the bottom of page
\usepackage{epstopdf} % for eps figs
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{soul, color} % higlight text: \usepackage{color,soul}
\usepackage{placeins} % to have full control for figure locations, requires \FloatBarrier command after \end{figure}
\usepackage{textcomp} % textmu etc
\usepackage{hyperref} % hyperlinks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title{How to write \LaTeX{} documents using Word}
\author{\IEEEauthorblockN{Antti-Juhana~M\"aki\IEEEauthorrefmark{2}\IEEEauthorrefmark{1}\\}
\IEEEauthorblockA{\IEEEauthorrefmark{2} Tampere, Finland\\}
\IEEEauthorblockA{\IEEEauthorrefmark{1}Email: [email protected]}}
\maketitle
\input{main_text}
\ifCLASSOPTIONcaptionsoff
\newpage
\fi
\bibliographystyle{./partfiles/IEEEtran}
\bibliography{./partfiles/reference_list}
\end{document}