Skip to content

Instantly share code, notes, and snippets.

@strongh
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strongh/0b0e53ec6840f202c7fe to your computer and use it in GitHub Desktop.
Save strongh/0b0e53ec6840f202c7fe to your computer and use it in GitHub Desktop.
RMarkdown template for CI workshop abstract
\documentclass[11pt,twocolumn,twoside]{IEEEtran}
\usepackage{amsmath}
\usepackage[pdftex]{epsfig}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fancyhdr}
\include {graphicsx}
\usepackage[unicode=true]{hyperref}
\usepackage{setspace}
\usepackage{longtable}
\usepackage{epigraph}
\usepackage{csquotes}
\usepackage{fixltx2e}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\makeatletter
\newcommand{\distas}[1]{\mathbin{\overset{#1}{\kern\z@\sim}}}%
\newcommand{\indep}{\rotatebox[origin=c]{90}{\models}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{#1#2}\mkern2mu{#1#2}}}
\pagestyle{fancy}
%\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
\rhead{\includegraphics[height=0.6in]{CITransparentwithTitleForWeb.png}}
\fancyhead[LO]{\sc $shorttitle$} % shorter form of title to fit in space
\fancyhead[LE]{\sc $shortauthors$} % author list or et al., to fit in space
\chead{}
\cfoot{}
\begin{document}
\title{\vspace{0.2in}\sc $title$}
\author{$authors$ \thanks{$authorinfo$}}
\maketitle
\thispagestyle{fancy}
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$body$
\bibliographystyle{ieeetr}
\bibliography{bibfile,benherzog}
\end{document}
@strongh
Copy link
Author

strongh commented Jul 30, 2015

output:
  pdf_document:
    template: ci_abstract.tex

http://rmarkdown.rstudio.com/developer_document_templates.html

@strongh
Copy link
Author

strongh commented Jul 30, 2015

Special fields: shorttitle, shortauthors (these are shown at the tops of each page), and authorinfo (were e.g. affiliations go).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment