-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.tex
295 lines (213 loc) · 10.3 KB
/
main.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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
\documentclass[11pt,letterpaper]{article}
% draft is an option for the documentclass but it buys us nothing here. It only inhibits the importing of images.
\usepackage{minted}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{hyperref,lineno}
\usepackage{datetime2}
\usepackage{amsmath,amssymb,amsfonts}
% Tweak the margin width to suit by changing the width of the text area.
% 6 in would be a good choice for local editing.
% 6.5 would be good for submission.
%\usepackage[letterpaper, total={7in, 9in}]{geometry}
\usepackage[letterpaper, total={6.75in, 9in}]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{setspace} \doublespacing
\usepackage{natbib}
\usepackage[T1]{fontenc}
\usepackage{authblk}
\usepackage[labelfont=bf]{caption}
% Use the cite package to clean up citations in the main text.
\usepackage{cite}
% Add running titles to avoid mixing up paper versions of two or more unstapled manuscripts stored together.
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lastpage}
\fancyhf{} % Clear header/footer
\fancyhead[L]{Student, ..., and Mooers}
\fancyhead[C]{Manuscript template in LaTeX}
\fancyhead[R]{\thepage\ / \pageref{LastPage}}
\renewcommand{\headrulewidth}{1pt} % set to 0pt to hide headrule
\DeclareCaptionType{equ}[][]
% Create a code float environment to enclosed minted environments.
\newenvironment{code}{\captionsetup{type=listing}}{}
% Approximate Arial font. To save ink by returning to a sans serif font, comment the next two lines.
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\modulolinenumbers[1]
\bibliographystyle{cell}
% Remove brackets from numbering in List of References
\makeatletter
\renewcommand{\@biblabel}[1]{\quad#1.}
\makeatother
\title{Generic Manuscript Template}
\author[1]{Graduate Student}
\author[2]{Senior Collaborator}
\author[3]{Staff Scientist}
\author[1,2,3]{Blaine Mooers\thanks{blaine-mooers at ouhsc.edu, phone: 405-271-8XXX, FAX: 405-271-3X3X}}
\affil[1]{Department of Biochemistry and Molecular Biology, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma, United States 73104}
\affil[2]{Stephenson Cancer Center, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma, United States 73104}
\affil[2]{Laboratory of Biomolecular Structure and Function, University of Oklahoma Health Sciences Center, Oklahoma City, Oklahoma, United States 73104}
%%%%%%%%%%%%%%%%%%%%%%% End of the Preamable %%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\pagenumbering{gobble} % remove page number
\newpage
\pagenumbering{arabic}
\linenumbers
\begin{singlespace}
\section*{Abstract}
I draft the abstract after defining the scope of the paper with the Introduction and outlining the key results in the Results section and maybe the Discussion section.
I usually rewrite the abstract after the first draft is finished.
The abstract is often single-spaced.
I enclosed the abstract in the \emph{singlespace} environment.
\end{singlespace}
\paragraph{Keywords:} I draft the keywords in the writing document and select the best up to the allowable limit.
% A pox on those who over-use abbreviations! Unfamiliar ones slow-down the reader. Limit them to well-known ones.
\paragraph{Abbreviations:} GUI: graphical user interface, IDE: integrated development environment
\section*{Introduction}
% The Introduction is not a literature review.
% That is a separate class manuscript.
The first paragraph defines the scope of the problem and why it is important.
It might cite several key contributions in the area \cite{Acharya2011SolvingProbabilisticProgrammingProblemsInvolvingMultiChoiceParameters, Luft2007EfficientOptimizationOfCrystallizationConditionsByManipulationOfDropVolumeRatioAndTemperature}.
I like to use the author-year format to make it easier for reviewers, regardless of the required format.
Numbered formats are harder to lookup.
The last sentence should set up the first sentence of the next paragraph by hinting at possible approaches to the question or problem at hand.
The second paragraph starts with the central hypothesis that addressed the question or problem alluded to in paragraph one.
This is followed by a summary of our approach.
A sentence or two may be expended on a summary of what we found.
The last sentence describes the audience of the article.
\section*{Materials and Methods}
This section is a series of subsections that may or may not be in chronological order.
This section is often placed after the Discussion section.
\section*{Results}
Paragraph One: Map of the Results section.
This introductory paragraph is usually missing, but no editor has ever asked me to delete it.
This paragraph tells the reader in a little more detail than the Introduction what they can expect to see and the order in which the results will be presented.
\subsection*{Most important result}
Cover the results in decreasing importance relative to the degree to which they address the central hypothesis of the paper.
If they have no relevance, save them from another paper.
Chronological order is usually a poor choice.
End each paragraph with a conclusion.
Refer to tables and figures via their labels.
For example, see the hot figure (Fig. \ref{fig:labelA}).
The numbering of the figures is handled automatically, so you can reorganize them without having to renumber them.
\subsection*{Second most important result}
See hot numbers in (Table \ref{tab:first}).
The numbering of the tables is handled automatically, so you can reorganize them without having to renumber them.
\subsection*{Third most important result}
Inline equations are placed between dollar signs: $y = mx + b$.
Display equations are placed between double-dollar signs or inside an equation environment.
These environments are not floats.
You can define a custom float to enclose them and place them inside the float to enable the use of captions as I did below.
The \emph{equ} environment is defined in the preamble.
\begin{equ}[htp]
\begin{equation}
i \hbar \frac{d}{d t}|\Psi(t)\rangle=\hat{H}|\Psi(t)\rangle
\end{equation}
\caption{Eq. \label{Eq:first}Schrodinger's time-dependent wave equation.}
\end{equ}
\subsection*{Fourth most important result}
Code listings also have to be enclosed inside floats to have captions.
The caption can be placed above or below the code listing.
These environments need to be enclosed in the singlespace environment to retain single-line spacing in the code block.
The minted package provides the syntax highlighting.
The \mintinline{bash}{-shell-escape} must be used on compiling.
\begin{singlespace}
% Line numbering on and aligned with left margin.
\begin{code}{}
\index{openCV!measureSizes}
\label{lst:measureSize}
\begin{minted}[frame=lines,
framerule=2pt,
linenos=true,
xleftmargin=\parindent,
breaklines]{python}
# import the necessary packages
from scipy.spatial import distance as dist
from imutils import perspective
from imutils import contours
import numpy as np
import argparse
import imutils
import cv2
def midpoint(ptA, ptB):
return ((ptA[0] + ptB[0]) * 0.5, (ptA[1] + ptB[1]) * 0.5)
\end{minted}
\caption{\label{lst:size}Contents of measureSizes.py.}
\end{code}
\end{singlespace}
\subsection*{Fifth most important result}
\subsection*{Sixth most important result}
There could be up to four more subsections in a results-heavy paper.
There are usually four graphics and two tables in a minimal publishable unit.
This is a weak guideline because of the trend to use multipanel figures.
I have seen figures with ten panels.
Is this one figure or ten?
Delete all results that do not address the central hypothesis or are less important.
\section*{Discussion}
How our results relate to the results of others.
(Avoid using merged Results and Discussion sections.
They rarely work well.
This is a research paper, not a seminar).
Paragraph One: Map of the Discussion section.
This paragraph is usually missing, but it can orient the reader.
Paragraphs two and beyond must end with conclusions in their last sentences.
The conclusion can be a call to do more research.
Lay out the topics in declining importance.
Delete the paragraph with no bearing on the central hypothesis.
\section*{Acknowledgments}
Acknowledgments of core facilities and grant support.
Double-check the grant numbers.
It is easy to make typos in these.
These acknowledgments are critical to the continued support of grants.
\bibliography{global}
\newpage
\listoftables
Tables should be one per page.
The manual assembly of tables is a challenge for beginners.
Pandas, R, and the Python package latextable \url{https://github.com/JAEarly/latextable} can write out LaTeX tables.
Tables are easy to assemble in org-mode in Emacs and exported to LaTeX.
Markdown tables can be exported to LaTeX with pandoc.
There are online tools to aid in the assembly of LaTeX tables: \url{https://www.tablesgenerator.com/}.
The first table below was made with vanilla LaTeX.
The second table was made with the booktabs package: The horizontal rules are of different weights in the latter table.
There is a \emph{longtable} package for supporting tables that span more than one page.
It is also possible to have tables oriented in the landscape orientation via the \emph{lscape} package.
\newpage
\begin{table}[htp]
\centering
\caption{\label{tab:first} My summary statistics in the default LaTeX table. Dummy data.}
\begin{tabular}{lllll}\hline
Parameter & Group A & Group B & Group C & Group D \\ \hline
Length ($\mu$m) & 100 & 150 & 175 & 250\\
Weight (ng) & 10 & 50 & 40 & 50\\
Density (g/m) & 0.01 & 0.03 & 0.09 & 0.77\\ \hline
\end{tabular}
\end{table}
\newpage
\begin{table}[htp]
\centering
\caption{\label{tab:second} My summary statistics made with the booktabs package. Dummy data.}
\begin{tabular}{lllll}\toprule % l c and r control the alignment f the text in the table fields
Parameter & Group A & Group B & Group C & Group D \\ \midrule
Length ($\mu$m) & 100 & 150 & 175 & 250\\
Weight (ng) & 10 & 50 & 40 & 50\\
Density (g/m) & 0.01 & 0.03 & 0.09 & 0.77\\ \bottomrule
\end{tabular}
\end{table}
\newpage
\listoffigures
One figure per page.
\newpage
\begin{figure}[htp]
\begin{center}
\includegraphics[width=3.25in]{./figs/wcPlot}
\caption{\label{fig:labelA} This beautiful graph relates X to Y. }
\end{center}
\end{figure}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: