Skip to content

Commit

Permalink
version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chkwon committed Feb 17, 2015
1 parent 8ad3112 commit 648f028
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 7 deletions.
Binary file modified template.pdf
Binary file not shown.
108 changes: 101 additions & 7 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

\title{A LaTeX Template for Writing Papers}
\author{Author Name \and Another Name \and Changhyun Kwon\footnote{Corresponding Author: \email{chkwon@buffalo.edu}}}
\date{Department of Industrial and Systems Engineering\\University at Buffalo\\[0.5cm] February 16, 2015}
\date{Department of Industrial and Systems Engineering\\University at Buffalo\\[0.5cm] February 17, 2015}

%\usepackage{showlabels}
%\usepackage[final]{showlabels}
Expand All @@ -108,23 +108,64 @@
\end{abstract}


\rednote{You need to open \texttt{template.tex} file and read it. Compare \texttt{.tex} file with the output \texttt{.pdf} file as you read \texttt{.tex} file.}


\section{Editor} \label{sec:editor}

For most people, I recommend TeXworks (a text editor) for editing .tex files and JabRef (a reference management tool) for editing .bib files. Mac users can also use TeXShop and BibDesk, alternatively. TeXworks comes with your LaTeX distribution (TeXLive recommended). You can download/install JabRef for free.

TeXworks has a built-in PDF viewer. The best part of TeXworks is forward/backward PDF sync. After compiling your .tex file, do `Ctrl + Click' or `Command + Click' on some text part in the .tex file. It will send you to the corresponding part in the output PDF file. While reading your PDF file (in TeXworks), also do `Ctrl + Clik' or `Command + Click' on some text part in the .pdf file. It will again send you to the corresponding part in the source TeX file. Use this functionality to read this document.











\section{Text} \label{sec:paragraph}
In LaTeX, just enter an empty line for a new paragraph.

Like this. blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.

\uline{Don't use double backslashed for a new paragraph.} Backslashed will be used in tables and equations only. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. \\
And like this. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da. Ob-la-di ob-la-da.

\uline{Don't use double backslashes for a new paragraph.} Backslashes will be used in tables and equations only. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. \\
\uline{If you use double backslashes for a new paragraph, it will look very bad.} Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere. Some random text here, there, and everywhere.

If you want to \emph{emphasize} some \emph{words}, use \emph{emph}, instead of \textit{textit}.

Quotation marks are input differently in LaTeX. ``Hello World'', not "Hello World". `linear programming', not 'linear programming'. See how different they are in the PDF output.

There are different kinds of `-':
\begin{description}
\item [Hyphen.] shortest-path
\item [En dash.] 1999--2015, New York--London flight, constraints \eqref{node_constraint2}--\eqref{node_constraint5}
\item [Em dash.] Since 2007, the consensus of the economic establishment---bankers, policymakers, CEOs, stock analysts, pundits---has been catastrophically wrong.
\item [Minus.] $-310$, $x-y$
\end{description}
Read more at \url{https://en.wikipedia.org/wiki/Dash}.







\section{Citation} \label{sec:citation}

You need to provide \texttt{.bib} files. Look at the end of this document for something like `bibliography'. This template uses \texttt{sample\_ref.bib}. Also learn how to use BibTex. (Google it!)






\section{Citation and Cross-Referencing} \label{sec:citation}

You need to provide \texttt{.bib} files. Look at the end of this document for something like `bibliography'. This template uses \texttt{sample\_ref.bib}. Also learn how to use BibTeX. (Google it!)

\begin{itemize}
\item Textual citation: \citet{Kwon2013rsp}
Expand All @@ -139,6 +180,20 @@ \section{Citation} \label{sec:citation}
In this paper, we propose a robust optimization framework for the routing methods based on the CVaR risk measure, assuming that data are uncertain within given sets. The proposed robust optimization method is closely related to robust shortest path (RSP) problems, which find a path that minimizes the worst-case travel cost with an uncertain set of travel cost data. When the uncertain set is box-constrained, the RSP problem can be solved in polynomial time \citep{Bertsimas2003network}, while the problem is NP-hard when the uncertain set is an ellipsoid \citep{Bertsimas2004,Chaerani2005} and a set of scenarios \citep{Kouvelis1996}. We refer readers to \citet{ben2009robust} and \citet{gabrel2012recent} and references therein for general robust optimization methods.
\end{quote}

For cross-referencing, you should \emph{never} do Section 1. You must always do Section \ref{sec:editor}. If you see ?? in your PDF, you would need to compile your LaTeX code one more time (or, some errors). Equation \eqref{node_constraint1} or (\ref{node_constraint1}). Table \ref{tbl:bad_example}. Figure \ref{fig:map}.
















Expand Down Expand Up @@ -234,7 +289,12 @@ \section{Math} \label{sec:math}



\section{Theorem}





\subsection{Theorem}

You can write a theorem with a proof.

Expand Down Expand Up @@ -262,6 +322,15 @@ \section{Theorem}












\section{Tables}


Expand Down Expand Up @@ -334,6 +403,18 @@ \section{Tables}















\section{Figures} \label{sec:figures}


Expand Down Expand Up @@ -367,6 +448,14 @@ \section{Figures} \label{sec:figures}











\section{Concluding Remarks}

Some guidelines are provided in \url{http://stom.chkwon.net/latex}. If you have questions regarding \LaTeX, go to \url{http://tex.stackexchange.com} and ask questions to experts. I go there every day. This document has appendices. Appendix \ref{appendix:drawing} has some interesting materials.
Expand All @@ -375,11 +464,16 @@ \section{Concluding Remarks}


\section*{Acknowledgement}
Thank you for reading this. This document was not supported by any agency.
Thank you for reading this. This document was prepared by Changhyun Kwon without any support from any agency.


\paragraph{Acknowledgement}
Thank you for reading this. This document was not supported by any agency.
Thank you for reading this. This document was prepared by Changhyun Kwon without any support from any agency.








Expand Down

0 comments on commit 648f028

Please sign in to comment.