diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/iaria/iaria.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/iaria/iaria.cls | 116 |
1 files changed, 73 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/iaria/iaria.cls b/Master/texmf-dist/tex/latex/iaria/iaria.cls index a8e4a472a67..27f3b2d5744 100644 --- a/Master/texmf-dist/tex/latex/iaria/iaria.cls +++ b/Master/texmf-dist/tex/latex/iaria/iaria.cls @@ -3,12 +3,24 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{iaria}[2024/04/10 unofficial IARIA conference template v0.2] +\ProvidesClass{iaria}[2024/10/24 unofficial IARIA conference template v0.5] +\newcounter{iaria@subfigtracker} +\newcounter{iaria@subcaptiontracker} \newcounter{iaria@pbalancetracker} \newcounter{iaria@flushendtracker} -\DeclareOption{onecolumn}{\OptionNotUsed} % IEEE option onecolumn will be ignored + +\DeclareOption{subfig}{ + \setcounter{iaria@subfigtracker}{1} + \typeout{iaria class: subfig option is set (use subfloat command).} +} +\DeclareOption{subcaption}{ + \setcounter{iaria@subcaptiontracker}{1} + \typeout{iaria class: subcaption option is set (use subfigure command).} +} + +\DeclareOption{onecolumn}{\OptionNotUsed} \DeclareOption{pbalance}{ \setcounter{iaria@pbalancetracker}{1} @@ -20,7 +32,7 @@ } \DeclareOption*{% - \PassOptionsToClass{\CurrentOption}{IEEEtran}% required IEEE options: conference (for IARIA purposes) + \PassOptionsToClass{\CurrentOption}{IEEEtran} } \ProcessOptions\relax @@ -42,40 +54,55 @@ \RequirePackage{hyperref} \hypersetup{hidelinks,unicode} -\RequirePackage[style=ieee, backend=biber, url=false, hyperref, maxnames=5, minnames=1, maxcitenames=2, mincitenames=1]{biblatex} +\RequirePackage[ + defernumbers=true, + style=ieee, + backend=biber, + url=false, + hyperref, + maxnames=5, + minnames=1, + maxcitenames=2, + mincitenames=1 +]{biblatex} + +\makeatletter +\let\blx@rerun@biber\relax +\makeatother + \renewcommand*{\bibfont}{\small} \DeclareBibliographyDriver{online}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author/editor+others/translator+others} - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \printfield{version}% - \newunit - \printfield{note}% - \newunit\newblock - \printlist{organization} - \newunit\newblock - \usebibmacro{date}% - \newunit\newblock - \iftoggle{bbx:eprint} - {\usebibmacro{eprint}} - {}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \usebibmacro{addendum+pubstate}% - \setunit{\bibpagerefpunct}\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others} + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{version}% + \newunit + \printfield{note}% + \newunit\newblock + \printlist{organization} + \newunit\newblock + \usebibmacro{date}% + \newunit\newblock + \iftoggle{bbx:eprint} + {\usebibmacro{eprint}} + {}% + \newunit\newblock + \usebibmacro{url+urldate}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} \makeatletter \renewcommand{\fnum@figure}{Figure~\thefigure} @@ -93,22 +120,14 @@ \renewcommand{\IEEEauthorblockN}[1]{% \relax\@IEEEauthorblockNstyle% set the default text style \gdef\@IEEEauthorblockXinterlinespace{0pt}% disable strut for spacer row - % the \expandafter hides the \cr in conditional tex, see the array.sty docs - % for details, probably not needed here as the \cr is in a macro - % do a spacer row if needed \if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockNtopspaceline\fi \global\@IEEEprevauthorblockincoltrue% we now have a block in this column - %restore the correct strut value \gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockNinterlinespace}% - % input the author names \large #1% - % end the row if the user did not already \crcr} \makeatother -\RequirePackage[caption=false,font=footnotesize]{subfig} - \usepackage{etoolbox} \makeatletter \patchcmd{\@makecaption} @@ -118,7 +137,15 @@ {} \makeatother -\RequirePackage[shortcuts]{extdash} % Use \-/ for a breakable dash that does not prevent the remainer of the word to be hyphenated +\ifnum\value{iaria@subfigtracker}=1 + \typeout{iaria class: load subfig package (use subfloat command).} + \RequirePackage[caption=false,font=footnotesize]{subfig} +\fi +\ifnum\value{iaria@subcaptiontracker}=1 + \typeout{iaria class: load subcaption package (use subfigure command).} + \RequirePackage{subcaption} + \captionsetup[subfigure]{labelformat=parens,font=footnotesize} +\fi \ifnum\value{iaria@pbalancetracker}=1 \typeout{iaria class: load pbalance package.} @@ -129,6 +156,9 @@ \RequirePackage{flushend} \fi + +\RequirePackage[shortcuts]{extdash} + \endinput %% %% End of file `iaria.cls'. |