From de587a218ecf99a5139abd9ab45c1ef5c905e67e Mon Sep 17 00:00:00 2001 From: Romain Jacob Date: Mon, 1 Feb 2021 10:27:49 +0100 Subject: [PATCH] revert header line and added table examples --- README.md | 7 +++++-- jsys.sty | 10 ++++++++-- jsys.tex | 38 ++++++++++++++++++++++++++++++-------- 3 files changed, 43 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 528fb83..f75e7fc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ # JSys paper template Paper template for the [Journal of Systems Research (Jsys)](http://jsysr.org/), written for submissions to -JSys by Vijay Chidambaram. +JSys by [Vijay Chidambaram](https://www.cs.utexas.edu/~vijay/) and [Romain Jacob](https://www.romainjacob.net/). This template was adapted from the USENIX template with their permission. Thanks a lot! ## Version -+ 1.0: First release (current) ++ 1.0.1: (current) + + Added `booktab` example + + `hrule` separating the header ++ 1.0: First release diff --git a/jsys.sty b/jsys.sty index 1b63ba5..81e2b89 100644 --- a/jsys.sty +++ b/jsys.sty @@ -38,7 +38,14 @@ urlcolor={blue!70!black} } -% JSys +% Table +\usepackage{booktabs} +\usepackage{multirow} +\usepackage{tabularx} +\BeforeBeginEnvironment{tabular}{\small} +\AfterEndEnvironment{tabular}{} + +% Formatting \usepackage{fancyhdr} % % USENIX wants margins of: 0.75" sides, 1" bottom, and 1" top. @@ -72,7 +79,6 @@ \fancyhead[l]{Submitted to the Journal of Systems Research (JSys)} \fancyhead[r]{\the\year{}} \fancyfoot[c]{\thepage} -\renewcommand{\headrule}{} % Title stuff, taken from deproc. \def\maketitle{\par diff --git a/jsys.tex b/jsys.tex index 8aebc93..096478b 100644 --- a/jsys.tex +++ b/jsys.tex @@ -3,10 +3,10 @@ % % History: % -% - TEMPLATE for the Journal of Systems Research, written for submissions to -% JSys in 2020 by Vijay Chidambaram, CS Department, University of Texas at -% Austin. This was originally the USENIX template, which was adapted with -% USENIX permission. Thanks! +% - TEMPLATE for the Journal of Systems Research, prepared for submissions to +% JSys in 2020 by Vijay Chidambaram (CS Department, University of Texas at +% Austin) and Romain Jacob (ETH Zurich). This was originally the USENIX +% template, which was adapted with USENIX permission. Thanks! % % - TEMPLATE for Usenix papers, specifically to meet requirements of USENIX '05. % originally a template for producing IEEE-format articles using LaTeX. @@ -61,13 +61,10 @@ \usepackage{tikz} \usepackage{amsmath} - -\usepackage{layout} - % Uncomment the following line if you want the columns of the last page equal in % size. But note that doing so may cause issues with some document-generating % tools. -\usepackage{flushend} +% \usepackage{flushend} % inlined bib file -> only for making the file compilable on its own. %------------------------------------------------------------------------------- @@ -223,7 +220,31 @@ The noindent at the start of this paragraph in its tex version makes it clear that it's a continuation of the preceding paragraph, as opposed to a new paragraph in its own right. +\subsection{Tables with \texttt{booktabs}} +JSys recommends using the \texttt{booktabs} package, which provides the \texttt{toprule}, \texttt{midrule}, and \texttt{bottomrule} commands with much nicer spacing around horizontal lines. Table's caption should be placed {below} the table; centering is optional. Table text font is set to \texttt{small} by default. \textbf{Do not} make it any smaller; larger is fine. + +The template also includes the \texttt{tabularx} and \texttt{multirow} packages, which should fill most table-related needs. + +\begin{table} + \centering + \begin{tabular}{llr} + \toprule + \multicolumn{2}{c}{Item} \\ + \cmidrule(r){1-2} + Animal & Description & Price (\$) \\ + \midrule + Gnat & per gram & 13.65 \\ + & each & 0.01 \\ + Gnu & stuffed & 92.50 \\ + Emu & stuffed & 33.33 \\ + Armadillo & frozen & 8.99 \\ + \bottomrule + \end{tabular} + \caption{Table's caption should be placed \textbf{below} the table. The \texttt{booktabs} package provides nicer spacing around lines.} + \label{tab:booktab_ex} +\end{table} + \subsection{LaTeX-ing Your TeX File} %----------------------------------- @@ -250,6 +271,7 @@ In particular, papers introducing new software solutions, tools, or benchmarks by a third-party without author help for the paper to be accepted. The JSys Artifact Evaluation Board will ensure this is the case. + %------------------------------------------------------------------------------- \bibliographystyle{plain} \bibliography{\jobname}