diff options
author | Karl Berry <karl@freefriends.org> | 2016-07-30 23:09:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-07-30 23:09:09 +0000 |
commit | 8c5e9b1d37d90dd67dded3aa0d5fb7cad45230d4 (patch) | |
tree | 2d8e57fdc03c930af9ae5bdfef2f8cc8f5b2c65c /Master/texmf-dist | |
parent | 535852b7b6a917aae03c2e757b2964fc07b5371e (diff) |
ijsra (29jul16)
git-svn-id: svn://tug.org/texlive/trunk@41769 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/README.md | 35 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/ijsra.pdf | bin | 0 -> 319331 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/ijsra.tex | 263 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/ijsra_logo.jpg | bin | 0 -> 233253 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/ijsra/ijsra.cls | 382 |
5 files changed, 680 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ijsra/README.md b/Master/texmf-dist/doc/latex/ijsra/README.md new file mode 100644 index 00000000000..f52f7d9ba60 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ijsra/README.md @@ -0,0 +1,35 @@ +document class __ijsra__ +======= + +_2016/07/28 v0.1a_ + +Copyright (c) 2016 Lukas C. Bossert + +Email: [lukas@digitales-altertum.de](mailto:lukas@digitales-altertum.de) + +This is a document class called *ijsra* which is used for the __[International Journal of Student Research in Archaeology](http://www.ijsra.org) (IJSRA)__. + +--- + +This style contains: + +documentation: + +- ijsra.tex +- ijsra.pdf + +and its style: + +* ijsra.cls + + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either version 1.3 +of this license or (at your option) any later version. +The latest version of this license is in [http://www.latex-project.org/lppl.txt](http://www.latex-project.org/lppl.txt) and version 1.3 or later is part of all distributions of LaTeX +version 2005/12/01 or later. + +--- +This work has the LPPL maintenance status _maintained_. +The current maintainer of this work is [Lukas C. Bossert](https://github.com/LukasCBossert). + diff --git a/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf b/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf Binary files differnew file mode 100644 index 00000000000..fcc667c8c44 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf diff --git a/Master/texmf-dist/doc/latex/ijsra/ijsra.tex b/Master/texmf-dist/doc/latex/ijsra/ijsra.tex new file mode 100644 index 00000000000..aaf078d3cdc --- /dev/null +++ b/Master/texmf-dist/doc/latex/ijsra/ijsra.tex @@ -0,0 +1,263 @@ +\documentclass[ +% year=2016, +% month=October, +% number=1, +% volume=2, + ]{ijsra} +\def\IJSRAidentifier{\currfilebase} + + +\def\shorttitle{The \texttt{ijsra}-class, Version \IJSRAversion\ -- \IJSRAversiondate} +\def\maintitle{The \texttt{ijsra}-class, Version \IJSRAversion\ -- \IJSRAversiondate} +\def\shortauthor{Lukas C. Bossert} +\def\authormail{lukas@digitales-altertum.de} +\def\affiliation{Humboldt-Universität zu Berlin | Excellence-Cluster Topoi} +\def\thanknote{The coding of this documentclass is done at \href{https://github.com/LukasCBossert/documentclass-ijsra}{https://github.com/LukasCBossert/documentclass-ijsra} } +%\def\keywordname{hello} +\def\keywords{documentclass, \LaTeX , IJSRA} +%-------------------------------------------------------------- + + +\begin{filecontents}{\IJSRAidentifier.bib} +@Incollection{Orengo2015, + author = {Orengo, H.}, + title = {Open Source GIS and Geospatial Software in Archaeology}, + subtitle = {Towards Their Integration into Everyday Archaeological Practice}, + pages = {64--82}, + editor = {Wilson, A. T. and Edwards, B.}, + booktitle = {Open Source Archaeology}, + booksubtitle = {Ethics and Practice}, + publisher = {deGruyter Open}, + location = {Warsaw}, + year = {2015}, +} + +@Article{Pikirayi2015, + author = {Pikirayi, I.}, + title = {The Future of Archaeology in Africa}, + journaltitle = {Antiquity}, + volume = {89}, + pages = {531--541}, + year = {2015}, + issue = {345}, +} + +@Article{Bossert-ijsra, + author = {Lukas C. Bossert}, + title = {›ijsra‹ -- bib\LaTeX-style which is used for the \emph{International Journal of Student Research in Archaeology}}, + subtitle = {Version: 0.1}, + url = {http://www.ctan.org/pkg/biblatex-ijsra}, + keywords = {latex}, + year ={2016}, + note = {https://github.com/LukasCBossert/biblatex-ijsra}, + owner = {Lukas C. Bossert}, + timestamp = {2016-07-04}, +} + +\end{filecontents} + +\begin{document} +\lstMakeShortInline[style=code]| +\IJSRAopening + + {\Large\scshape + \shortauthor}% + \footnote\thanknote% + \\[1em] + \email\\ + \affiliation + +\IJSRAmid + +\begin{IJSRAabstract}% +This is a documentation of the class \texttt{ijsra} which is used for the + \emph{International Journal of Student Research in Archaeology}. + Read this documentation carefully. + When you start editing do it according to the structure shown in \cref{document}. +\end{IJSRAabstract} + +%\IJSRAseparator + +\lettrine[nindent=0em,lines=3]{E}{very} article\marginnote{starting} starts with a lettrine as the first letter. +This bigger letter functions as an eye catcher to make clear where the article starts. +It effects the whole word: The first letter reaches down to the third line, the other letters of the word are capitalised. +In \cref{lettrine} you see the code how this is achieved. + + \begin{lstlisting}[label=lettrine,caption={Starting letter}] +\lettrine[nindent=0em,lines=3]{E}{very} article ... +\end{lstlisting} +If you have a letter which is rather slanted you can define the slope. +Let’s have a look at the letter ›A‹. + \begin{lstlisting}[label=lettrine,caption={Starting letter ›A‹}] +\lettrine[slope=4pt,findent=-3pt,lines=3]{A}{rchaeologists} … +\end{lstlisting} +And it changes of course if we start the article with a ›W‹. + \begin{lstlisting}[label=lettrine,caption={Starting letter ›W‹}] +\lettrine[slope=-4pt,nindent=-4pt,lines=3]{W}{hen} ... +\end{lstlisting} + +Each article contains several information about the author, title, etc. +This is done with some definitions. +You have to fill in the information in the curly brackets. +\begin{lstlisting}[label=information,caption={Information about the article}] +\def\IJSRAidentifier{\currfilebase} %<---- don’t change this! +\def\shorttitle{} %<---- this is for the short title +\def\maintitle{} %<---- full title +\def\shortauthor{} %<---- full name of the author +\def\authormail{} %<--- email address name@email.com +\def\affiliation{} %<--- university or institution +\def\thanknote{} %<--- further information regarding the author +\def\keywords{} %<---- keywords describing the article +%\def\keywordname{} %<---- name of keywords in an other language +\end{lstlisting} + +After the definitions there is the block regarding the bibliographical entries. +Those are written in the section +\begin{lstlisting}[label=bibliography,caption={Bibliographical information}] +\begin{filecontents}{\IJSRAidentifier.bib} %<--- don’t change this + +@Incollection{Orengo2015, + author = {Orengo, H.}, + title = {Open Source GIS and Geospatial Software in Archaeology}, + subtitle = {Towards Their Integration into Everyday Archaeological Practice}, + pages = {64--82}, + editor = {Wilson, A. T. and Edwards, B.}, + booktitle = {Open Source Archaeology}, + booksubtitle = {Ethics and Practice}, + publisher = {deGruyter Open}, + location = {Warsaw}, + year = {2015}, +} + +@Article{Pikirayi2015, + author = {Pikirayi, I.}, + title = {The Future of Archaeology in Africa}, + journaltitle = {Antiquity}, + volume = {89}, + pages = {531--541}, + year = {2015}, + issue = {345}, +} + +@Article{Bossert-ijsra, + author = {Lukas C. Bossert}, + title = {›ijsra‹ -- bib\LaTeX-style which is used for the \emph{International Journal of Student Research in Archaeology}}, + subtitle = {Version: 0.1}, + url = {http://www.ctan.org/pkg/biblatex-ijsra}, + keywords = {latex}, + note = {https://github.com/LukasCBossert/biblatex-ijsra}, + owner = {Lukas C. Bossert}, + timestamp = {2016-07-04}, +} +. +. +. + +\end{filecontents} +\end{lstlisting} + +After that we have completed the preamble and get to main part of the document. +Here we define the layout of the headline. + +\begin{lstlisting}[label=headline,caption={Headline layout}] +\IJSRAopening %<---- don’t change or forget this + {\Large\scshape + \shortauthor}% + \footnote\thanknote% + \\[1em] + \email\\ + \affiliation +\IJSRAmid %<---- don’t change or forget this +\end{lstlisting} +If there is no \texttt{thanknote} you only have to comment line no. 4 and there will be no footnote. + +After that we come to the abstract. +The abstract is set in the enviroment \texttt{IJSRAabstract}: +\begin{lstlisting}[label=abstract,caption={IJSRAabstract}] +\begin{IJSRAabstract} +Abstract +\end{IJSRAabstract} +\end{lstlisting} + +Then you can copy/paste the text of the article and make further editing. +At the very end you have to insert +\begin{lstlisting}[label=closing,caption={IJSRAclosing}] +\IJSRAclosing +\end{lstlisting} + +\clearpage +Following there is a minimal template how the plain document should look like when you begin to edit. +\begin{lstlisting}[label=document,caption={Plain document}] +\documentclass{ijsra} +\def\IJSRAidentifier{\currfilebase} +\def\shorttitle{} +\def\maintitle{} +\def\shortauthor{} +\def\authormail{} +\def\affiliation{} +\def\thanknote{} +\def\keywords{} +%\def\keywordname{} +\begin{filecontents}{\IJSRAidentifier.bib} +Bibliography-files +\end{filecontents} + +\begin{document} +\IJSRAopening + {\Large\scshape + \shortauthor}% + \footnote\thanknote% + \\[1em] + \email\\ + \affiliation +\IJSRAmid + +\begin{IJSRAabstract} +Abstract +\end{IJSRAabstract} + +\lettrine[nindent=0em,lines=3]{M}{ain} text ... + + +\IJSRAclosing +\end{document} +\end{lstlisting} +\clearpage +Let’s have a look how to do certain editing. + +How to do quotes:\marginnote{quotes} +For that we use the enviroment |IJSRAquote| and +\begin{IJSRAquote}{author of the quote} +paste the quote here +\end{IJSRAquote} +\begin{lstlisting}[label=quote,caption={Quote}] +\begin{IJSRAquote}{author of the quote} +paste the quote here +\end{IJSRAquote} +\end{lstlisting} + +For other things e.g. figures or citing, please have a look at other documentations or + +Some general information: +\begin{itemize} +\item Be aware of different brackets, e.g. |[] {}|; +These are part of \LaTeX -programming-language, every opening bracket needs a closing one. +\item Replace e.g. |19 %| with |\SI{19}{\percent}| otherwise everything after |%| will be omitted by \LaTeX; +\item Replace |&| with |\&|; same with other units, e.g. meter: |100 m| has to be written as |\SI{100}{\meter}|; +\item Replace the citation of authors (e.g |Blesser \& Salter 2006|) with |\cite{Blesser2006}|; + if you have a page-range write: |\cite[23--45]{Blesser2006}|; +\item To compile with bibliography-references; +use 1 $\times$ Xe\LaTeX, then 1 $\times$ compiler ›biber‹, then 1 $\times$ Xe\LaTeX. +\end{itemize} + +If you want to know how to cite properly +please have a look at the documentation of \texttt{biblatex-ijsra}.\footnote{\cite[see][]{Bossert-ijsra};\\ \url{http://mirrors.ctan.org//macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdf}} + +\nocite{*} +\printbibliography +\clearpage +You find the code using to write this documentation below. + +\lstinputlisting[language={[AlLaTeX]{TeX}}]{\jobname.tex} +\IJSRAclosing +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/ijsra/ijsra_logo.jpg b/Master/texmf-dist/doc/latex/ijsra/ijsra_logo.jpg Binary files differnew file mode 100644 index 00000000000..4f5f6b89cb2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ijsra/ijsra_logo.jpg diff --git a/Master/texmf-dist/tex/latex/ijsra/ijsra.cls b/Master/texmf-dist/tex/latex/ijsra/ijsra.cls new file mode 100644 index 00000000000..ded5b1c9946 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ijsra/ijsra.cls @@ -0,0 +1,382 @@ +%% This is file `ijsra.cls', +%% +%% LaTeX Class for ``International Journal of Student Research in Archaeology''. +%% +%% Copyright (C) 2016- +%% Lukas C. Bossert +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. + +\listfiles +\NeedsTeXFormat{LaTeX2e}[1999/12/01] + +\ProvidesClass{ijsra} +\RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex} +\RequirePackage{xkeyval} + +\def\IJSRAversion{0.1a} +\def\IJSRAversiondate{2016/07/28} + + + +\newcommand*\IJSRAmonth{\scshape proof} +\newcommand*\IJSRAyear{\scshape proof}% \edef\issueyear{\the\year} +\newcommand*\IJSRAvolume{\scshape proof} +\newcommand*\IJSRAnumber{\scshape proof} +\newcommand*\IJSRAidentifier{\jobname} + + + +\DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{scrbook}} +\DeclareOptionX{month}{\def\IJSRAmonth{#1}} +\DeclareOptionX{year}{\def\IJSRAyear{#1}} +\DeclareOptionX{volume}{\def\IJSRAvolume{Vol.\addspace #1}} +\DeclareOptionX{number}{\def\IJSRAnumber{No.\addspace #1}} +\DeclareOptionX*{\OptionNotUsed} +\ProcessOptionsX\relax + + +\RequirePackage{scrhack}% Andere Pakete KOMA-Script-freundlich machen + + +\LoadClass[% + twoside=true, % onesite or twoside printing + open=right, % doublepage cleaning ends up right side + chapterprefix=false, % prefix for chapter marks (Löscht "Kapitel" bei Kapitel) + headings=optiontohead, % \chapter[tocentry={}]{} + fontsize=11pt, % font size + titlepage=on, % own page for each title page + captions=tableabove, % display table captions above the float env + numbers=noenddot, +]{scrbook}% + + +\RequirePackage{filecontents} +\RequirePackage{libertine} +\renewcommand*\ttdefault{lmvtt} +\RequirePackage[main=english]{babel} + +\ifxetex\else + \RequirePackage[% + ,protrusion=true + ,expansion=true + ,verbose=true + ,final=true + ,letterspace=100 + ,babel=true + ]{microtype} + \fi +\RequirePackage{colortbl} +\RequirePackage{abbrevs} +\RequirePackage{alertmessage} +\RequirePackage{marginnote} +\RequirePackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text +\RequirePackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them +\RequirePackage{currfile} +\RequirePackage{currfile-abspath} + + +\RequirePackage[ +detect-all, %Zahlen werden in der aktuellen Schrift angezeigt + exponent-to-prefix = true, + round-mode = places, + round-precision = 1, + group-minimum-digits = 4, % Für "Tausenderpunkt" --> 1.234 anstatt 1234 + group-separator ={,}, % für "12.345" statt "12 345" + range-phrase = {~$\times$\ },% + zero-decimal-to-integer = true, %aus "2.0" wird "2" + range-units =single, % --> 2 x 2 m, - auskommentieren für 2 m x 2 m + ]{siunitx} %Supreme typesetting of units +\RequirePackage[ % advanced quotes + strict=true, % - warning are errors now + style=english, % - german quotes +]{csquotes} +\RequirePackage[ %% use for bibliography + backend=biber, + style=ijsra, + ]{biblatex} +\addbibresource{\jobname.bib} + + +\RequirePackage{etoolbox} +\RequirePackage{graphicx} +\RequirePackage{wrapfig} % Paket zur Positionierung einbinden +\RequirePackage{booktabs}%für schönere Tabellen +\RequirePackage{multirow} +\RequirePackage{xspace} +\RequirePackage{xcolor} + +\definecolor{myblue}{rgb}{0,0,51} +\definecolor{mygold}{RGB}{204,153,51} + +\definecolor{codeblue}{RGB}{0,65,137} +\definecolor{codegreen}{RGB}{147,193,26} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} + +\RequirePackage{pdfpages} +%----------------------------------------- +\RequirePackage[ % page layout modifications + paper=a4paper, % - use A4 paper size + head=4\baselineskip, % - no header + foot =4\baselineskip, + bindingoffset=0.5cm, % - binding correction + top=3cm, % - total body: top margin + left=2cm, % - total body: left margin (odd pages) + right=5cm, % - total body: right margin (odd pages) + bottom=5cm, % - total body: bottom margin + marginparwidth=4cm, % - width for side note +]{geometry} +\RequirePackage{multicol} % Used for the two-column layout of the document +\RequirePackage[% + hang, + small, + labelfont=bf, + up, + textfont=it, + up, + ]{caption} % Custom captions under/above floats in tables or figures +\RequirePackage{subcaption} +\RequirePackage{setspace} % for line spacing, e.g. \onehalfspacing +\RequirePackage{booktabs} % Horizontal rules in tables +\RequirePackage{float} % Required for tables and figures in the multi-column environment - they need to be placed in specific locations with the [H] (e.g. \begin{table}[H]) +\RequirePackage{nth} + +\RequirePackage{caption} +\RequirePackage{chngcntr} %Voraussetzung fuer Fussnoten durch alle Kapitel durchnummerieren +\RequirePackage{listings} +\AtBeginDocument{\counterwithin{lstlisting}{chapter}} + +\counterwithout{footnote}{chapter} %Fussnoten durch alle Kapitel durchnummerieren +\counterwithout{figure}{chapter} +\counterwithout{table}{chapter} + +%------------------------------------------- +\RequirePackage[ + headsepline, + draft=false, + ]{scrlayer-scrpage} +\pagestyle{scrheadings} +\clearscrheadfoot + +\lohead[\normalfont\sffamily\footnotesize International Journal of Student Research in Archaeology (IJSRA) \newline +\normalfont\sffamily\footnotesize \IJSRAmonth\ \IJSRAyear\ $\bullet$ \IJSRAvolume, \IJSRAnumber \ppages]{\normalfont\sffamily\footnotesize \shorttitle\ \ppages} +\rehead{\normalfont\sffamily\footnotesize \shortauthor} +\rohead[{{\vspace{-3em}\includegraphics[width=2cm]{ijsra_logo}}}]{\normalfont\textbf{\sffamily\thepage}} +\lehead{\normalfont\textbf{\sffamily\thepage}} +\refoot{\normalfont\sffamily\footnotesize International Journal of Student Research in Archaeology} +\lofoot{\normalfont\sffamily\footnotesize \IJSRAmonth\ \IJSRAyear\ $\bullet$ \IJSRAvolume, No. \IJSRAnumber} +\automark[subsection]{section} + +%----------------------------- +\setkomafont{partnumber}{\normalfont\Huge} +\setkomafont{part}{\normalfont\scshape\Huge} +\setkomafont{chapter}{\normalfont\LARGE}%\uppercase +\setkomafont{section}{\normalfont\Large}%\uppercase +\setkomafont{subsection}{\normalfont}%\uppercase +\setkomafont{subsubsection}{\normalfont}%\uppercase +\setkomafont{paragraph}{\normalfont\scshape}%\uppercase +\addtokomafont{descriptionlabel}{\normalfont\sffamily}%\textsf\large}%\uppercase +\addtokomafont{sectioning}{\linespread{1}\selectfont} %einfacher Zeilenabstand in Überschriften +\addtokomafont{headsepline}{\color{mygold}} +\addtokomafont{labelinglabel}{\sffamily\bfseries} + +\setfootnoterule{0pt} + +\addtolength{\skip\footins}{.5\baselineskip} % Abstand Text <-> +\KOMAoptions{headsepline=3pt} + +\clubpenalty=10000 % prevent single lines at the beginning of a paragraph (Schusterjungen) +\widowpenalty=10000 % prevent single lines at the end of a paragraph (Hurenkinder) +\displaywidowpenalty=10000 % +%----------------------------------------- +\usepackage[% + marginal, + ragged,% + hang, % + bottom% + ]{footmisc} %Fussnoten +\raggedbottom + +\deffootnote{0em}{1em}{{\sffamily\textbf\thefootnotemark}\ }%Ausgabe der Fußnotenziffer in normal +%-------------------------------------- +\robustify{\DateMark} % after having loaded abbrevs + + +\ifstr{\KOMAScriptVersion}{2015/07/02 v3.18 KOMA-Script}{% + \ifx\par@update\default@par@update\else + \AtBeginDocument{\par@updaterelative}% + \fi +}{} + +\renewcommand{\marginfont}{% + \normalfont\small\sffamily} +%------------------------------------------- +%---Zitate/Quote +\def\signed #1{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em + \hbox{}\nobreak\hfil% + ---#1% + \parfillskip=0pt \finalhyphendemerits=0 \endgraf} + +\newsavebox\mybox +\newenvironment{IJSRAquote}[1]% +{\savebox\mybox{#1}\begin{quote}} + {\signed{\usebox\mybox}\end{quote}} + +\makeatletter %%%Schriftgröße in quote kleiner +\newif\if@in@footnote@ +\renewcommand{\@footnotetext}[1]{% + \scr@saved@footnotetext{\@in@footnote@true #1}% + \csname FN@mf@prepare\endcsname +} +\AtBeginEnvironment{quote}{\if@in@footnote@\else\small\fi} +\makeatother +%----------------------------------------- +\newcommand\ppages{\pagerange{firstpage\IJSRAidentifier}{lastpage\IJSRAidentifier}} +\newcommand\shorttitle{} +\newcommand\maintitle{} +\newcommand\shortauthor{} +\newcommand\authormail{} +\newcommand\affiliation{} +\newcommand\thanknote{} +\def\keywords{} +\def\keywordname{Keywords} + +\newenvironment{IJSRAabstract} +{\list{}{\rightmargin\leftmargin}% +\item \normalsize\sffamily\textbf\keywordname : \keywords\\ + \footnotesize\itshape + \noindent\item\relax + } +{\endlist} + +\newcommand{\IJSRAseparator}{ + \vspace{2em} + \begin{center} + * * * + \end{center} + \vspace{2em}} + +\newcommand{\IJSRAchapter}[1]{ + \setcounter{chapter}{1} + \chapter*{#1} + \addcontentsline{toc}{chapter}{\shortauthor\protect\newline \maintitle} +} + +\newcommand\email{{\normalfont\href{mailto:\authormail}{\authormail}}} + +\newbool{@page} +\newcommand{\pagerange}[2]{%pp.~ + \edef\tempa{\getpagerefnumber{#1}\booltrue{@page}}% + \edef\tempb{\getpagerefnumber{#2}}% + \ifboolexpr{bool{@page}}{}{\ $\bullet$ + \tempa--\tempb}} + + +\providecommand\IJSRAopening{% + \begin{refsection} + \setcounter{footnote}{0} + \setcounter{table}{0} + \setcounter{figure}{0} + \renewcommand*{\thefootnote}{\fnsymbol{footnote}} + \IJSRAchapter{\maintitle} + \begin{center} + } + +\providecommand\IJSRAmid{% + \end{center} + \vspace{3em} + \pagestyle{scrheadings} + \setcounter{footnote}{0} + \renewcommand*{\thefootnote}{\arabic{footnote}} + \label{firstpage\IJSRAidentifier} + } + +\providecommand\IJSRAclosing{% + \printbibliography[heading=subbibliography] + \end{refsection} + \label{lastpage\IJSRAidentifier} +} + + \DeclareCaptionFormat{listing}{#1#2#3} + \captionsetup[lstlisting]{format=listing,% + singlelinecheck=false, + margin=0pt, + font={sf}, + size=footnotesize} + + + +\renewcommand{\lstlistingname}{Example}%rename caption +\renewcommand{\lstlistlistingname}{List of examples}%rename caption + + +\lstdefinestyle{code}{% + language=[LaTeX]TeX, + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{codeblue}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + escapeinside={*@}{@*}, % if you want to add LaTeX within your code + texcsstyle=*\color{codeblue}, + morekeywords={cites, parencites, parencite, textcite, textcites, citeauthor, citetitle,@String, + @Article, @Book,@Collection,@Proceedings,@Reference,@Thesis, + @Inproceedings,@Talk,@Review,@Inreference,@Incollection, + }, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + numberbychapter=false, + captionpos=b, + keepspaces=true, + %framexleftmargin=5mm, + %frame=shadowbox, + rulesepcolor=\color{codeblue}, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + literate= + *{\{}{{{\color{codegreen}{\{}}}}{1} + {\}}{{{\color{codegreen}{\}}}}}{1} + {[}{{{\color{codegreen}{[}}}}{1} + {]}{{{\color{codegreen}{]}}}}{1}, +} + + +\lstset{style=code} +%\lstMakeShortInline[style=code]| +% + + +%------------------------------------ + +\RequirePackage{hyperref} % For hyperlinks in the PDF +\hypersetup{ % setup the hyperref-package options + colorlinks = true, %Colours links instead of ugly boxes + urlcolor = myblue, %Colour for external hyperlinks + linkcolor = myblue, %Colour of internal links + citecolor = myblue, %Colour of citations + linktoc=page, + pdfborder={0 0 0}, % - + breaklinks=true, % - allow line break inside links + bookmarksnumbered=true, % + bookmarksopenlevel=2, + bookmarksopen=true, % + final=true % = true, only with web-Documents!! +} + +\RequirePackage{cleveref} + + +\endinput
\ No newline at end of file |