diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-10 21:33:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-10 21:33:48 +0000 |
commit | d8d28aa3d46f4ab90e745b504027ee820bea0bc2 (patch) | |
tree | 848de563791b83341ef47bdbc05cd21db92589f4 /Master/texmf-dist | |
parent | c083335b46757ec9b33f5c7f30a2d5363b8aab7b (diff) |
ijsra (10jun17)
git-svn-id: svn://tug.org/texlive/trunk@44551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/README.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/ijsra.pdf | bin | 393116 -> 383673 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/ijsra/ijsra.tex | 27 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ijsra/ijsra.cls | 218 |
4 files changed, 164 insertions, 85 deletions
diff --git a/Master/texmf-dist/doc/latex/ijsra/README.md b/Master/texmf-dist/doc/latex/ijsra/README.md index 221853db944..3bf5ae70afb 100644 --- a/Master/texmf-dist/doc/latex/ijsra/README.md +++ b/Master/texmf-dist/doc/latex/ijsra/README.md @@ -1,9 +1,9 @@ document class __ijsra__ ======= -_2016/09/18 v0.4_ +_2017/06/09 v1.0_ -Copyright (c) 2016 Lukas C. Bossert +Copyright (c) 2017 Lukas C. Bossert Email: [lukas@digitales-altertum.de](mailto:lukas@digitales-altertum.de) diff --git a/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf b/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf Binary files differindex c585ddf6a2f..3fd9a7ac19b 100644 --- a/Master/texmf-dist/doc/latex/ijsra/ijsra.pdf +++ 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 index e0b17075678..8cd123376b5 100644 --- a/Master/texmf-dist/doc/latex/ijsra/ijsra.tex +++ b/Master/texmf-dist/doc/latex/ijsra/ijsra.tex @@ -8,16 +8,17 @@ %--------Author’s names------------ \def\authorone{Lukas C. Bossert} %-------Biographical information------------- -\def\bioone{The coding of this documentclass is done at \href{https://github.com/LukasCBossert/documentclass-ijsra}{https://github.com/LukasCBossert/documentclass-ijsra} } +\def\bioone{The coding of this documentclass is done at \href{https://github.com/LukasCBossert/documentclass-ijsra}{https://github.com/LukasCBossert/documentclass-ijsra} +\alertwarning{Please know that this documentation may be deprecated since all developments are written down it the wiki of the journal’s repository: \url{https://github.com/LukasCBossert/ijsra/wiki}.}} %-------Title------------- -\def\shorttitle{The \texttt{ijsra}-class, Version \IJSRAversion\ -- \IJSRAversiondate} -\def\maintitle{\shorttitle} +\def\maintitle{The \texttt{ijsra}-class, Version \IJSRAversion\ -- \IJSRAversiondate} +\def\shorttitle{\maintitle} \def\abstract{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}.} %------University/Institution-------------- -\def\affilone{Humboldt-Universität zu Berlin | Excellence-Cluster Topoi} +\def\affilone{digitales-altertum|de} %--------Email------------ \def\cmail{lukas@digitales-altertum.de} %\def\keywordname{} @@ -63,7 +64,6 @@ \end{filecontents} -\begin{document} \lstMakeShortInline[style=code]| \IJSRAopening @@ -202,7 +202,7 @@ At the very end you have to insert \IJSRAclosing \end{lstlisting} -\clearpage + Following there is a minimal template how the plain document should look like when you begin to edit and there is only one author. \begin{lstlisting}[label=document,caption={Plain document}] \documentclass{ijsra} @@ -260,6 +260,8 @@ Be aware to insert the code \emph{after} the first word of the paragraph under t \begin{lstlisting}[label=section,caption={Section}] This\IJSRAsection{New Paragraph} is a new paragraph under the section with the title ›New Paragraph‹. \end{lstlisting} +There is also the possibility to do a \IJSRAsubsection{subsections} |\IJSRAsubsection{<<subsection name>>}|. It will be displayed as a |\IJSRAsection{<<section name>>}| but in the pdf-bookmarks there is a differentiation. + \alertwarning{This code may conflict with wrapfigures since the section title and the wrapfigure use the margin space. In that case you have to move the wrapfigure further up or further down.} @@ -294,8 +296,7 @@ For that we edited a special form a separation mark. You can use it with |\IJSRAseparator|. \IJSRAseparator There \IJSRAsection{figures}are two ways to insert a figure into the text. -\begin{enumerate} -\item by using the plain enviroment |figure| +First by using the plain enviroment |figure| \begin{lstlisting}[label=figure,caption={figure}] \begin{figure} @@ -306,7 +307,7 @@ There \IJSRAsection{figures}are two ways to insert a figure into the text. \end{figure} \end{lstlisting} -\item by using the enhanced enviroment |wrapfigure| +Second by using the enhanced enviroment |wrapfigure| \begin{lstlisting}[label=wrapfigure,caption={wrapfigure}] \begin{wrapfigure}{O}{0.5\textwidth} @@ -317,7 +318,6 @@ There \IJSRAsection{figures}are two ways to insert a figure into the text. \label{fig:NAME_OF_THE_FIGURE_WITHOUT_SUFFIX} \end{wrapfigure} \end{lstlisting} -\end{enumerate} Since you (hopefully) place the figures into the folder named |figures| there is no need to tell the path, the figure name is sufficient. \IJSRAseparator When suitable \IJSRAsection{caption}we try to insert figures as a |wrapefigure| into the text. @@ -415,9 +415,6 @@ please have a look at the documentation of \texttt{biblatex-ijsra}.\footnote{\ci \IJSRAclosing -\clearpage -You find the code using to write this documentation below. - - +%\clearpage +%You find the code using to write this documentation below. %\lstinputlisting[language={[AlLaTeX]{TeX}}]{\jobname.tex} -\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ijsra/ijsra.cls b/Master/texmf-dist/tex/latex/ijsra/ijsra.cls index 5b74d35c246..471a794a474 100644 --- a/Master/texmf-dist/tex/latex/ijsra/ijsra.cls +++ b/Master/texmf-dist/tex/latex/ijsra/ijsra.cls @@ -2,7 +2,7 @@ %% %% LaTeX Class for ``International Journal of Student Research in Archaeology''. %% -%% Copyright (C) 2016- +%% Copyright (C) 2016,2017- %% Lukas C. Bossert %% %% It may be distributed and/or modified under the @@ -18,27 +18,34 @@ \ProvidesClass{ijsra} \RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex} -\RequirePackage{xkeyval} +\RequirePackage{xkeyval,etoolbox} -\def\IJSRAversion{0.4} -\def\IJSRAversiondate{2016/09/18} +\def\IJSRAversion{1.0} +\def\IJSRAversiondate{2017/06/09} +\newbool{issue} +\newbool{nobib} + +\boolfalse{nobib} +\boolfalse{issue} -\newcommand*\IJSRAmonth{\scshape proof} -\newcommand*\IJSRAyear{\scshape proof}% \edef\issueyear{\the\year} -\newcommand*\IJSRAvolume{\scshape proof} -\newcommand*\IJSRAnumber{\scshape proof} -\newcommand*\IJSRAtitlefigure{\color{mygold}\rule{\linewidth}{410pt}} -\newcommand*\IJSRAidentifier{\jobname} +\newcommand*\IJSRAmonth{{\scshape proof}} +\newcommand*\IJSRAyear{{\scshape proof}}% \edef\issueyear{\the\year} +\newcommand*\IJSRAvolume{{\scshape proof}} +\newcommand*\IJSRAnumber{{\scshape proof}} +\newcommand*\IJSRAtitlefigure{{\color{mygold}\rule{\linewidth}{410pt}}} +\newcommand*\IJSRAidentifier{\jobname} +\newcommand*\yearnumber{\IJSRAyear\,|\,\IJSRAnumber} \DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{scrbook}} \DeclareOptionX{month}{\def\IJSRAmonth{#1}} \DeclareOptionX{year}{\def\IJSRAyear{#1}} +\DeclareOptionX{completeissue}{\booltrue{issue}} \DeclareOptionX{volume}{\def\IJSRAvolume{Vol.\addspace #1}} -\DeclareOptionX{number}{\def\IJSRAnumber{No.\addspace #1}} +\DeclareOptionX{number}{\def\IJSRAnumber{#1}} \DeclareOptionX{titlefigure}{\def\IJSRAtitlefigure{\includegraphics[width=\linewidth]{figures/#1}}} \DeclareOptionX*{\OptionNotUsed} \ProcessOptionsX\relax @@ -48,8 +55,9 @@ \LoadClass[% + parskip=half, twoside=true, % onesite or twoside printing - open=right, % doublepage cleaning ends up right side + open=any, % 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 @@ -57,24 +65,36 @@ captions=tableabove, % display table captions above the float env numbers=noenddot, ]{scrbook}% - - + \RequirePackage{filecontents} -\RequirePackage{libertine} -\renewcommand*\ttdefault{lmvtt} +\RequirePackage{fontspec} +%\RequirePackage[osf]{libertine} +% \RequirePackage{unicode-math} +\setsansfont{Libertinus Sans} +\setmainfont[Numbers = {Monospaced, OldStyle}]{Libertinus Serif} +\defaultfontfeatures[AnonymousPro] + { + Extension = .ttf , + BoldFont = AnonymousPro-Bold , + ItalicFont = AnonymousPro-BoldItalic , + BoldItalicFont = AnonymousPro-Italic , + UprightFont = AnonymousPro-Regular , + } +\setmonofont[Scale= MatchLowercase]{AnonymousPro} + \RequirePackage[french, ngerman, spanish, italian, main=english]{babel} -%\ifxetex\else \RequirePackage[% -%,protrusion=true -%,expansion=true +,protrusion=true +,expansion=true ,verbose=true ,final=true ,letterspace=100 ,babel=true ]{microtype} -%\fi \RequirePackage{colortbl} \RequirePackage{abbrevs} +\RequirePackage[shortlabels]{enumitem} + \RequirePackage{alertmessage} \RequirePackage{marginnote} \RequirePackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text @@ -84,9 +104,9 @@ \renewcommand{\LettrineFontHook}{\normalfont} \RequirePackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them \RequirePackage{currfile} +\RequirePackage{enumerate} \RequirePackage{currfile-abspath} - \RequirePackage[ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt exponent-to-prefix = true, @@ -117,6 +137,8 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \RequirePackage{xspace} \RequirePackage{xcolor} \RequirePackage{hologo} +\RequirePackage{url} +\urlstyle{same} \definecolor{myblue}{rgb}{0,0,51} \definecolor{mygold}{RGB}{204,153,51} \definecolor{mybluetitle}{RGB}{28,40,65} % HEX 1c2841 @@ -128,6 +150,13 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \RequirePackage{pdfpages} + + + +\newcommand\submission{} +\newcommand\acceptance{} + + %----------------------------------------- \RequirePackage[ % page layout modifications paper=a4paper, % - use A4 paper size @@ -155,8 +184,9 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \RequirePackage{setspace} % for line spacing, e.g. \onehalfspacing \RequirePackage{booktabs} % Horizontal rules in tables \RequirePackage{nth} +\RequirePackage[content={Figure omitted due to faster compiling.}]{draftfigure} - + \RequirePackage{chngcntr} %Voraussetzung fuer Fussnoten durch alle Kapitel durchnummerieren \RequirePackage{listings} \AtBeginDocument{\counterwithin{lstlisting}{chapter}} @@ -166,22 +196,49 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \counterwithout{table}{chapter} %------------------------------------------- +\newcommand*{\ijsradate}[1]{\expandafter\@ijsradate#1\@nil} +\newcommand*{\@ijsradate}{} +\def\@ijsradate#1-#2-#3\@nil{\begingroup + \year=#1\relax + \month=#2\relax + \day=#3\relax + % \DayName{#1}{#2}{#3}, % + \today% + \endgroup} + \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} +\addtokomafont{pageheadfoot}{\normalfont\sffamily\footnotesize} + +\lohead{\ifdefempty{\shorttitle}{}{\shorttitle%\ \ifdefempty{\ppages}{}{$\bullet$ \ppages} +}} +\rehead{\shortauthor} +\rohead{\textbf{\thepage}} +\lehead{\textbf{\thepage}} +\refoot{International Journal of Student Research in Archaeology} +\lofoot{\yearnumber} \automark[subsection]{section} + +\newpairofpagestyles[scrheadings]{ijsrachapter}{\clearscrheadfoot +\chead{International Journal of Student Research in Archaeology | IJSRA\hfill\yearnumber\\ + \ifdefempty{\submission}{}{submission: \ijsradate{\submission}} + \ifdefempty{\acceptance}{}{| acceptance: \ijsradate{\acceptance}} + \hfill pp.\,\ppages% +\marginnote{\vspace{-5em}\includegraphics[width=\linewidth]{ijsra_logo}}} +} + + + +\newpairofpagestyles[scrheadings]{part}{\clearscrheadfoot} +\renewcommand\partpagestyle{part} +\renewcommand\chapterpagestyle{ijsrachapter} + + %----------------------------- \setkomafont{partnumber}{\normalfont\Huge} \setkomafont{part}{\normalfont\scshape\Huge} @@ -204,7 +261,7 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \widowpenalty=10000 % prevent single lines at the end of a paragraph (Hurenkinder) \displaywidowpenalty=10000 % %----------------------------------------- -\usepackage[% +\RequirePackage[% marginal, ragged,% hang, % @@ -224,7 +281,7 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt }{} \renewcommand{\marginfont}{\noindent\rule{0pt}{0.7\baselineskip}\color{mygold}\small\sffamily} -\RequirePackage{marginfix} +%\RequirePackage{marginfix} %------------------------------------------- %---Zitate/Quote \def\signed #1{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em @@ -242,25 +299,44 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \newcommand\ppages{\pagerange{firstpage\IJSRAidentifier}{lastpage\IJSRAidentifier}} \newcommand\shorttitle{} \newcommand\maintitle{} +\newcommand\maintitletoc{\let\\ \relax\maintitle} \newcommand\shortauthor{} \newcommand\cmail{} \newcommand\affiliation{} \newcommand\thanknote{} -\patchcmd{\Gin@setfile}{\ttfamily\expandafter\strip@prefix\meaning\@tempa}{\@missingcopyright}{}{} -\def\@missingcopyright{% - \footnotesize\sffamily - Figure omitted due to faster compiling. - % comment the following line if you don't want to show the file name -%\expandafter\strip@prefix\meaning\@tempa - } + + \def\keywords{} \def\keywordname{Keywords} +\newcommand\mypagesize{\newgeometry{% + bindingoffset=0.5cm, % - binding correction + top=3cm, % - total body: top margin + left=2cm, % - total body: left margin (odd pages) + right=2cm, % - total body: right margin (odd pages) + marginparwidth=0cm, % - width for side note + marginparsep=0cm, % - space between notes and body text (content) + bottom=2cm, % - total body: bottom margin + }} +\newcommand\mypartstyle[1]{ +\mypagesize +\part{#1} +\restoregeometry} + + +\newcommand\pcref[1]{\parentext{\cref{#1}}} + \newcommand{\IJSRAsection}[1]{% - \marginnote{#1}\pdfbookmark[1]{#1}{#1}% + \marginnote{#1}\pdfbookmark[1]{#1}{#1\IJSRAidentifier}% } +\newcommand{\IJSRAsubsection}[1]{% + \marginnote{#1}\pdfbookmark[2]{#1}{#1\IJSRAidentifier}% +} + \let\ijsrasection\IJSRAsection + \let\ijsrasubsection\IJSRAsubsection +% \newcommand\authorone{} \newcommand\authortwo{} @@ -289,6 +365,9 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \newcommand\abstract{} \undef\abstract{} +\def\submission{} +\def\acceptance{} + \undef\authorone{} \undef\authortwo{} \undef\authorthree{} @@ -335,39 +414,36 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt {\endlist} \newcommand{\IJSRAseparator}{% - \vspace{1em} \begin{center} * * * - \end{center} - \vspace{1em} - } + \end{center}} -\newcommand{\IJSRAchapter}[1]{% - \setcounter{chapter}{1} - \chapter*{#1} - \addcontentsline{toc}{chapter}{\shortauthor\protect\newline \maintitle} - } - \newcommand\email{{\normalfont\href{mailto:\cmail}{\cmail}}} \newbool{@page} \newcommand{\pagerange}[2]{%pp.~ \edef\tempa{\getpagerefnumber{#1}\booltrue{@page}}% \edef\tempb{\getpagerefnumber{#2}}% - \ifboolexpr{bool{@page}}{}{\ $\bullet$ - \tempa--\tempb} - } + \ifboolexpr{bool{@page}}{}{\tempa--\tempb}} + %\ifdefequal{\tempa}{\tempb}{}{ \providecommand\IJSRAopening{% +\ifbool{issue}{}{\begin{document}} \begin{refsection} \setcounter{footnote}{0} \setcounter{table}{0} \setcounter{figure}{0} \renewcommand*{\thefootnote}{\fnsymbol{footnote}} - \IJSRAchapter{\maintitle} - \begin{center} - + \phantomsection + \pagestyle{ijsrachapter} + \chapter*{\maintitle} + % \vspace*{2em} +% {\LARGE\sffamily\maintitle}\\[-.3em] + \ifbool{issue}{% +% \pdfbookmark[1]{\shortauthor | \shorttitle}{\shortauthor} + \addcontentsline{toc}{chapter}{\normalfont\shortauthor\protect\newline\emph{\maintitletoc}}}{} + \begin{center} {\Large\scshape% \authorone\ifdef{\bioone}{{\footnote[1]{\bioone}}}{}% \ifdef{\authortwo}{, \authortwo\ifdef{\biotwo}{{\footnote[2]{\biotwo}}}{}}{}% @@ -398,8 +474,8 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \providecommand\IJSRAclosing{% - \IJSRAseparator - \printbibliography[heading=subbibliography] +\ifbool{nobib}{}{\IJSRAseparator\vspace*{-3em} + \printbibliography[heading=subbibliography]} \end{refsection} \label{lastpage\IJSRAidentifier} \undef\authorone{} @@ -422,16 +498,20 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt \undef\abstract{} +\def\submission{} +\def\acceptance{} + \undef\bioone{} \undef\biotwo{} \undef\biothree{} \undef\biofour{} \undef\biofive{} - } +\ifbool{issue}{}{\end{document}}} \def\Put(#1,#2)#3{\makebox(0,0){\put(#1,#2){#3}}} \def\IJSRAtitlepage{% +\pdfbookmark[1]{Titlepage}{title} \definecolor{mybluetitle}{RGB}{28,40,65} % HEX 1c2841 \newgeometry{% head=0cm, % - no header @@ -445,9 +525,9 @@ detect-all, %Zahlen werden in der aktuellen Schrift angezeigt } \thispagestyle{empty} \pagecolor{mybluetitle} -\Put(-11,-450){\IJSRAtitlefigure}\\ -\Put(-11,-450){\color{white}\rule{1.5\linewidth}{15pt}} -\Put(.5\linewidth-3.5cm,-1.1\linewidth){\includegraphics[width=7cm]{ijsra_logo.png}}\\ +\Put(0,-.85\textheight+5.3cm){\IJSRAtitlefigure}\\ +\Put(0,-.85\textheight+6cm){\color{mygold}\rule{1.5\linewidth}{5pt}} +\Put(.5\linewidth-3.5cm,-.85\textheight){\includegraphics[width=7cm]{ijsra_logo.png}}\\ \vspace{.6\linewidth} \begin{center}\color{white} @@ -458,8 +538,8 @@ Archaeology \vfill \fontsize{15}{15}\selectfont -\IJSRAnumber\ \IJSRAvolume\\ -\IJSRAmonth\ \IJSRAyear +ISSN: 2398-2012\\ +Issue \IJSRAnumber\,|\,\IJSRAmonth\ \IJSRAyear \vspace{2em} {ijsra.org} @@ -525,6 +605,7 @@ Archaeology \RequirePackage{hyperref} % For hyperlinks in the PDF \hypersetup{ % setup the hyperref-package options + unicode, colorlinks = true, %Colours links instead of ugly boxes urlcolor = myblue, %Colour for external hyperlinks linkcolor = myblue, %Colour of internal links @@ -532,12 +613,13 @@ Archaeology linktoc=page, pdfborder={0 0 0}, % - breaklinks=true, % - allow line break inside links - bookmarksnumbered=true, % - bookmarksopenlevel=2, - bookmarksopen=true, % + % bookmarksnumbered=true, % + bookmarksopenlevel=2, + % bookmarksopen=false, % + % bookmarks=true, final=true % = true, only with web-Documents!! } - +\RequirePackage{bookmark} \RequirePackage{cleveref} |