From d81b84e96b1c1ba4c23bbc54d947e00b57a221c1 Mon Sep 17 00:00:00 2001 From: abhas-19 Date: Tue, 15 Oct 2024 00:13:18 +0530 Subject: [PATCH] added a tex file! --- benchmarks/your_benchmark/bench.cls | 166 +++++++++++++++++++++++++++ benchmarks/your_benchmark/bench.tex | 32 ++++++ benchmarks/your_benchmark/config.yml | 2 + 3 files changed, 200 insertions(+) create mode 100644 benchmarks/your_benchmark/bench.cls create mode 100644 benchmarks/your_benchmark/bench.tex diff --git a/benchmarks/your_benchmark/bench.cls b/benchmarks/your_benchmark/bench.cls new file mode 100644 index 00000000..13e49564 --- /dev/null +++ b/benchmarks/your_benchmark/bench.cls @@ -0,0 +1,166 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% BENCH.CLS % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} +\LoadClass[11pt]{article} +\ProvidesClass{bench} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Making the Title, with definitions for date, abstract etc % +% This part written by David Cassel % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\@aabuffer{} +\def\author #1{\expandafter\def\expandafter\@aabuffer\expandafter +{\@aabuffer \small\rm #1\relax \par}} +\def\address#1{\expandafter\def\expandafter\@aabuffer\expandafter +{\@aabuffer \small\it #1\relax +\\ +\Photo +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\par\vspace{1em}}} + +\def\maketitle{ +\begin{center} + {\bf \@title \par} + \vskip 2em % Vertical space after title. + \@aabuffer\relax +\end{center} \par +\gdef\@aabuffer{} +} + +\def\abstracts#1{ +\begin{center} +{\begin{minipage}{5.2truein} + \footnotesize + \parindent=0pt #1\par + \end{minipage}}\end{center} + \vskip 2em \par} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Margins, textwidths, indentations etc % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\fussy +\flushbottom +\parindent 0.25in +%\oddsidemargin 4mm +%\evensidemargin 4mm +%\topmargin=0mm +%\headheight=0mm +%\headsep=0mm +%\footskip=5mm +%\textheight = 240mm +%\textwidth = 160mm +%\RequirePackage[a4paper,hmargin=1.5cm,vmargin={1.5cm,1.5cm}]{geometry} +\RequirePackage[a4paper,margin=2.5cm]{geometry} +\RequirePackage[english]{babel} +\RequirePackage{graphicx,url} +\RequirePackage[colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=black]{hyperref} +% for BibTeX - sorted numerical labels by order of first citation. +\bibliographystyle{unsrt} + +\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus + -.2ex}{2.3ex plus .2ex}{\bf }} +\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus + -.2ex}{1.5ex plus .2ex}{\it }} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% alpha footnotes, no running heads and silly citations. % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\thefootnote{\alph{footnote}} +\def\@makefnmark{{$\!^{\@thefnmark}$}} + +\pagestyle{empty} + + +\renewenvironment{thebibliography}[1] + {\begin{list}{\arabic{enumi}.} + {\usecounter{enumi}\setlength{\parsep}{0pt} + \setlength{\itemsep}{0pt} + \settowidth + {\labelwidth}{#1.}\sloppy}}{\end{list}} + +%--------------------------------------------------------------------------- +%FOLLOWING THREE COMMANDS ARE FOR `LIST' COMMAND. +\topsep=0in\parsep=0in\itemsep=0in + +\newcounter{arabiclistc} +\newenvironment{arabiclist} + {\setcounter{arabiclistc}{0} + \begin{list}{\arabic{arabiclistc}} + {\usecounter{arabiclistc} + \setlength{\parsep}{0pt} + \setlength{\itemsep}{0pt}}}{\end{list}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% ACKNOWLEDGEMENT: this portion is from John Hershberger % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout + {\string\citation{#2}}\fi +\def\@citea{}\@cite{\@for\@citeb:=#2\do + {\@citea\def\@citea{,}\@ifundefined + {b@\@citeb}{{\bf ?}\@warning + {Citation `\@citeb' on page \thepage \space undefined}} + {\csname b@\@citeb\endcsname}}}{#1}} + +\newif\if@cghi +\def\cite{\@cghitrue\@ifnextchar [{\@tempswatrue + \@citex}{\@tempswafalse\@citex[]}} +\def\citelow{\@cghifalse\@ifnextchar [{\@tempswatrue + \@citex}{\@tempswafalse\@citex[]}} +\def\@cite#1#2{{$\!^{#1}$\if@tempswa\typeout + {IJCGA warning: optional citation argument + ignored: `#2'} \fi}} +\newcommand{\citeup}{\cite} + +\setcounter{secnumdepth}{2} + +\def\baselinestretch{1.0} +\ifx\selectfont\undefined +\@normalsize\else\let\glb@currsize=\relax\selectfont +\fi + +\ifx\selectfont\undefined +\def\@singlespacing{% +\def\baselinestretch{1}\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi% +} +\else +\def\@singlespacing{\def\baselinestretch{1}\let\glb@currsize=\relax\selectfont} +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Footnote size table and figure captions % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname + ext@#1\endcsname}{#1}{\protect\numberline{\csname + the#1\endcsname}{\ignorespaces #2}}\begingroup + \@parboxrestore + \footnotesize + \expandafter\let\expandafter\@tempa\csname @make#1caption\endcsname + \ifx\@tempa\relax\let\@tempa\@makecaption\fi + \@tempa{\csname fnum@#1\endcsname}{\ignorespaces #3}\par + \endgroup} +% +% Here is the content of a .sty file containing definitions using the above +% hook. +% +% The following is the same as the \@makecaption in book.sty: +\long\def\@makefigurecaption#1#2{% + \vskip 10pt + \setbox\@tempboxa\hbox{#1 -- {\footnotesize #2}}% + \ifdim \wd\@tempboxa >\hsize #1 -- {\footnotesize #2}\par \else + \hbox to\hsize{\hfil\box\@tempboxa\hfil} % + \fi + } +% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% END OF FILE bench.cls % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/benchmarks/your_benchmark/bench.tex b/benchmarks/your_benchmark/bench.tex new file mode 100644 index 00000000..cf54908a --- /dev/null +++ b/benchmarks/your_benchmark/bench.tex @@ -0,0 +1,32 @@ + +%====================================================================% +% BENCH.TEX % +% Written by YOUR NAME % +%====================================================================% +\documentclass{bench} + +% A useful Journal macro +\def\Journal#1#2#3#4{{#1} {\bf #2}, #3 (#4)} +\NewDocumentCommand{\codeword}{v}{\texttt{\textcolor{black}{#1}}} +% Some other macros used in the sample text +\def\st{\scriptstyle} +\def\sst{\scriptscriptstyle} +\def\epp{\epsilon^{\prime}} +\def\vep{\varepsilon} +\def\vp{{\bf p}} +\def\be{\begin{equation}} +\def\ee{\end{equation}} +\def\bea{\begin{eqnarray}} +\def\eea{\end{eqnarray}} +\def\CPbar{\hbox{{\rm CP}\hskip-1.80em{/}}} + +\begin{document} +\title{YOUR BENCHMARK NAME Benchmark Figures} +\maketitle + +\codeword{benchmark_plot1.pdf}: +This figure shows... + +\end{document} + + diff --git a/benchmarks/your_benchmark/config.yml b/benchmarks/your_benchmark/config.yml index 95427750..c6d2032f 100644 --- a/benchmarks/your_benchmark/config.yml +++ b/benchmarks/your_benchmark/config.yml @@ -3,6 +3,8 @@ your_benchmark:compile: stage: compile script: - echo "You can compile your code here!" + - snakemake --cores 1 yourbench_compile_manual + your_benchmark:simulate: extends: .phy_benchmark