summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/scientificpaper
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/scientificpaper
Initial commit
Diffstat (limited to 'macros/latex/contrib/scientificpaper')
-rw-r--r--macros/latex/contrib/scientificpaper/README86
-rw-r--r--macros/latex/contrib/scientificpaper/science.sty131
2 files changed, 217 insertions, 0 deletions
diff --git a/macros/latex/contrib/scientificpaper/README b/macros/latex/contrib/scientificpaper/README
new file mode 100644
index 0000000000..963f1e2058
--- /dev/null
+++ b/macros/latex/contrib/scientificpaper/README
@@ -0,0 +1,86 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+% The Scientific Paper Package for LaTeX
+% By Ryan Aycock
+% For use with LaTeX and pdfLaTeX
+% March 26, 2004
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+LaTeX has long been known as a convenient tool for writing scientific papers.
+Much to my surprise, however, there are no packages on CTAN that actually format
+scientific papers easily. The effort seeks to correct that problem by giving
+users a simple-to-use method for distributing their work. Notice, this package
+is not based on any particular style guide. It will only create a generic, two
+column paper with a single column abstract at the top.
+
+THIS PACKAGE REQUIRES THE MULTICOL PACKAGE (included).
+
+To write your own scientific papers, use the template below:
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass[letterpaper,11pt]{article}
+\usepackage{science}
+
+\title{Ultra Cool Title}
+\author{Your Name}
+\date{the date} % Can use \today
+
+\begin{document}
+\maketitle
+
+\begin{abstract}
+Type your abstract here.
+\end{abstract}
+
+\begin{body}
+
+Type your paper as normal. Use \cite{} for your citations.
+
+\begin{bib}
+
+Put your bibliography here. Use \bibitem{} for
+each of the citations used in your paper.
+
+\end{bib}
+
+\end{body}
+\end{document}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+Some final notes:
+
+To list more than one author or to list schools and contact information, use
+
+\author{First author's name$^{1}$\thanks{Contact information}, % Notice the comma and space
+Second author$^{2}$\\
+$^{1}$\textit{First university}\\
+$^{2}$\textit{Second university}}
+
+
+
+
+Floating environments such as figures or tables are forbidden in the multicol environment.
+To get around this limitation, you have two options when including a figure or table:
+
+use \begin{figurehere}... \end{figurehere} and \begin{tablehere}... \end{tablehere}
+to place a float in the two column format (right here).
+Or you can use \begin{figure*} \begin{table*}. These commands will span your float
+body across the page, usually at the top --- best for large images and tables.
+
+
+
+Finally, the bibliography uses the default LaTeX thebibliography feature. If you want to
+use BibTeX or have more than 99 sources, you will need to edit the package.
+
+
+
+To learn LaTeX, start with "The Not So Short Introduction to LaTeX" by Tobias Oetiker. It
+is available online at CTAN:/tex-archive/info/lshort . Or you can search Google for any results.
+
+If you have any more questions --- about the package, not about LaTeX --- write to me at
+aycock@phys.ufl.edu
diff --git a/macros/latex/contrib/scientificpaper/science.sty b/macros/latex/contrib/scientificpaper/science.sty
new file mode 100644
index 0000000000..3a8e7a86ed
--- /dev/null
+++ b/macros/latex/contrib/scientificpaper/science.sty
@@ -0,0 +1,131 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+% The Scientific Paper Package for LaTeX
+% By Ryan Aycock March 26, 2004
+%
+% For use with LaTeX pdflatex.
+%
+% YOU MUST HAVE THE MULTICOL PACKAGE
+%
+% This package will allow you to write generic scientific papers with two column text
+% and a single column, centered abstract. this format is not based on any published
+% style guide and should modified as needed.
+%
+% To use, simply build your document with this template:
+%
+% \documentclass[letterpaper,11pt]{article}
+% \usepackage{science}
+% \title{Ultra Cool Title}
+% \author{Your Name}
+% \date{the date} % Can use \today
+% \begin{document}
+% \maketitle
+% \begin{abstract}
+% Type your abstract here.
+% \end{abstract}
+% \begin{body}
+% Type your paper as normal. Use \cite{} for your citations.
+% \begin{bib}
+% Put your bibliography here. Use \bibitem{} for
+% each of the citations used in your paper.
+% \end{bib}
+% \end{body}
+% \end{document}
+%
+%
+% If you have more than one author or wish to list your school and contact
+% information, use the following:
+%
+% \author{First author's name$^{1}$\thanks{Contact information},
+% Second author$^{2}$\\
+% $^{1}$\textit{First university}\\
+% $^{2}$\textit{Second university}}
+%
+%
+%
+% Floating environments such as figures or tables are
+% forbidden in the multicol environment. To get around
+% this limitation, you have two options when including
+% a figure or table:
+%
+% use \begin{figurehere}... \end{figurehere}
+% and \begin{tablehere}... \end{tablehere}
+% to place a float in the two column format (right here).
+% Or you can use \begin{figure*} \begin{table*}. These
+% commands will span your float body across the page, usually
+% at the top --- best for large images and tables.
+%
+%
+% If you have any questions about how \cite and \bibitem work, consult
+% the "Not So Short Introduction to LaTeX."
+%
+% Note: The bibliography assumes that you are using LaTeX's build-in
+% bibliography and not BibTeX or another package. Also, this package
+% assumes that you will have less than 99 sources. If you should use more,
+% you will have to edit the bib environment.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\ProvidesPackage{science}
+\typeout{Scientific Paper Package - by Ryan Aycock}
+
+\ifx\pdfoutput\undefined % We're not running pdftex
+\usepackage[dvips]{graphicx}
+\else
+\usepackage[pdftex]{color,graphicx}
+\pdfpagewidth=\paperwidth
+\pdfpageheight=\paperheight
+\usepackage{thumbpdf}
+%\pdfcompresslevel=9
+\fi
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Fixing the document's size
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\setlength{\paperheight}{11in}
+\setlength{\paperwidth}{8.5in}
+\setlength{\textwidth}{6.5in}
+\setlength{\textheight}{9in}
+\setlength{\footskip}{40pt}
+\setlength{\hoffset}{0in}
+\setlength{\voffset}{-1in}
+\setlength{\oddsidemargin}{0in}
+\setlength{\evensidemargin}{0in}
+\setlength{\marginparwidth}{0in}
+\setlength{\marginparpush}{0in}
+\setlength{\marginparsep}{0in}
+\setlength{\topmargin}{.5in}
+\setlength{\headsep}{18pt}
+\setlength{\columnsep}{0.4in}
+\setlength{\parskip}{0pt}
+\setlength{\parindent}{.3in}
+
+\usepackage{multicol}
+
+
+% These commands allow you to use figures
+% and tables in the multicol environment.
+\makeatletter
+\newenvironment{tablehere}
+ {\def\@captype{table}}
+ {}
+
+\newenvironment{figurehere}
+ {\def\@captype{figure}}
+ {}
+\makeatother
+
+
+\newenvironment{body}{\vspace{1pc}\begin{multicols}{2}}{\end{multicols}}
+
+%
+% If you use more than 99 sources, change the appropriate number:
+%
+\newenvironment{bib}{\begin{thebibliography}{99}\setlength{\itemsep}{-1mm}}{\end{thebibliography}}
+