%\iffalse % cs-techrep.dtx generated using makedtx version 1.2 (c) Nicola Talbot % Command line args: % -doc "doc/cs-techrep.tex" % -author "Christoph P. Neumann " % -setambles ".*=>\nopreamble" % -date "2023-2024" % -dir "src" % -macrocode ".*" % -preamble "Copyright 2023-2024 Christoph P. Neumann This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or any later version. The latest version of this license is in https://www.latex-project.org/lppl.txt and version 1.3c or later is part of all distributions of LaTeX version 2008 or later. This work has the LPPL maintenance status maintained. The Current Maintainer of this work is Christoph P. Neumann. " % -src "(_cpn_copyIntoExamplesFolder_cls.cmd|cs-techrep.cls)=>\1" % cs-techrep % Created on 2024/9/14 21:40 %\fi %\iffalse %<*package> %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} % %\fi % \iffalse % Doc-Source file to use with LaTeX2e % Copyright (C) 2023-2024 Christoph P. Neumann , all rights reserved. % \fi % \iffalse %<*driver> \documentclass{ltxdoc} \CodelineNumbered \EnableCrossrefs \CodelineIndex \RecordChanges \GetFileInfo{cs-techrep.cls} \parskip1.0ex \parindent0.0ex \begin{document} \DocInput{cs-techrep.dtx} \end{document} % %\fi %\title{\textsf{cs-techrep}\\ %Technical Reports in Computer Science and Software Engineering} %\author{Christoph P.\ Neumann \texttt{$<$cyberpetaneuron@gmail.com$>$}} %\date{Version 0.4} %\maketitle %\PrintChanges % %\begin{abstract} %The \texttt{cs-techrep} class provides a convenient environment %for writing technical reports in computer science and software engineering. %The style is adopted from IEEE. %The cs-techrep class requires the latex/pdflatex %in combination with biblatex using a biber backend. %\end{abstract} % %\section{Installation} % %The \texttt{zip} or \texttt{tar.gz} file comes with a \texttt{cs-techrep.ins} %and a \texttt{cs-techrep.dtx} file included which contains the \LaTeX\ stuff. % %To extract the class files call: % %\begin{verbatim} % $ latex cs-techrep.ins %\end{verbatim} % %This call will extract all \LaTeX\ specific files to the current %directory. You can either use the files for a single %cv project or you can integrate the files into your \TeX\ installation. % %If you just want to use \textsf{cs-techrep} for a single curriculum vitae %project, the simplest way is just to copy the generated files to the %folder of the project. % %If you want to integrate \textsf{cs-techrep} into your \TeX\ installation, %create a directory \texttt{tex/latex/cs-techrep} beneath your \TeX\ installation %(e.g.~beneath \texttt{/usr/share/texmf}) and copy all files from the %current directory there. Now call: % %\begin{verbatim} % $ mktexlsr %\end{verbatim} % %to update the file--cache of \LaTeX. % %Hint: The \textsf{cs-techrep} distribution contains a sample docstrip configuration %in \texttt{docstrip.cfg} via which files can be distributed %automatically to their correct positions inside a \LaTeX\ installation. %Feel free to adapt this file to your environment and afterwards call %\texttt{latex cs-techrep.ins} to install the package to its right place. % %\section{Templates} % %For a quick start the \textsf{iaria-lite} distribution contains document %templates. %The templates can be found in the \texttt{cs-techrep-example-neumann.zip} file. % % %\section{Documentclass} % %\DescribeMacro{documentclass cs-techrep} %This package provides the documentclass \texttt{cs-techrep}. The documentclass %supports the following options: % %\begin{itemize} %\item |conference| Passed to IEEEtran %\item |a4paper| Passed to IEEEtran %\item |subfig| Loads subfig package with custom style settings %\item |subcaption| Loads subcaption package with custom style settings %\item |flushend| Activate flushend package (compatible with arXiv build process) %\item |pbalance| Activate pbalance package (incompatible with arXiv build process) %\end{itemize} % %A Remark about two-column document balancing on the last page: %The flushend package is recommended, because it works within the arXiv automated build process. %However, flushend has a major incampatibility with package lineno, which is, e.\,g., transitively loaded by package mindflow. %Thus, in case when flushend does not have any effect, check whether one of your packages loads lineno. %Usually you are stuck with your packages and, thus, will instead be forced to switch from flushend to pbalance. %Please be aware that pbalance works great and has high compatibility, but unfortunately it will not have any effect within the arXiv automated build process. %In case of both, a somehow needed lineno package and an intended arXiv upload, I recommend to do without two-column balancing on the last page and just to stay away from both flushend and pbalance, in order to ensure that your paper is layouted identically in any initial publication and a later arXiv upload. %I hope this remark proves helpful, it took me some nerve to find out. % %There is also another important difference between flushend and pbalance: the handling of footnotes on the last page. %Flushend provides a decent result, but the result of pbalance is incomprehensible. %I strongly recommend avoiding footnotes on the last page. %If you absolutely need footnotes on the last page, consider staying away from two-column balancing on the last page. % %About subfigures: %Both well-known packages subfig and subcaption can be used. %However, they are not compatible with each other and we can either load one or the other. %The document class provides options to load them for you with some customized style settings. % %\section{Requirements} % %We instrument several other \LaTeX\ packages for different purposes, %which must be available under your installation. % %\begin{itemize} %\item IEEEtran %\item acronym %\item afterpage %\item babel %\item biblatex %\item booktabs %\item ccicons %\item cleveref %\item csquotes %\item diagbox %\item doclicense %\item etoolbox %\item extdash %\item flushend %\item fontenc %\item graphicx %\item hypcap %\item hyperref %\item hyperref %\item inputenc %\item lipsum %\item listings %\item lmodern %\item lscape %\item microtype %\item newtxtt %\item orcidlink %\item paralist %\item pbalance %\item pdfcomment %\item pdflscape %\item siunitx %\item stfloats %\item subcaption %\item subfig %\item tcolorbox %\item times %\item upquote %\item url %\item xcolor %\item xpatch %\item xspace %\end{itemize} % % %\StopEventually{} %\section{The Code} %\iffalse % \begin{macrocode} %<*_cpn_copyIntoExamplesFolder_cls.cmd> % \end{macrocode} %\fi % \begin{macrocode} @echo off rem *************************************************************************** rem * author: Christoph P. Neumann rem *************************************************************************** cd /d "%~dp0" echo == ..\examples\* == for /D %%D in (..\examples\*) do ( echo == %%D == xcopy /Y ".\*.cls" "%%~D" ) pause% \end{macrocode} %\iffalse % \begin{macrocode} % % \end{macrocode} %\fi %\iffalse % \begin{macrocode} %<*cs-techrep.cls> % \end{macrocode} %\fi % \begin{macrocode} %# Copyright (c) 2023 Christoph P. Neumann, %# Copyright (c) 2018-2021 Oliver Kopp %# Reference: https://latextemplates.github.io/ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 % !TeX program = pdflatex % !BIB program = biblatex / biber % Declare that this document class file requires at least LaTeX version 2e. \NeedsTeXFormat{LaTeX2e} % Provide the name of your document class, the date it was last updated, and a comment about what it's used for \ProvidesClass{cs-techrep}[2024/09/16 Technical Reports in Computer Science and Software Engineering v0.4] % Define marker counter for options (counter are global in latex): \newcounter{cstechrep@subfigtracker} \newcounter{cstechrep@subcaptiontracker} \newcounter{cstechrep@pbalancetracker} \newcounter{cstechrep@flushendtracker} % Declare options: \DeclareOption{subfig}{ \setcounter{cstechrep@subfigtracker}{1} \typeout{cs-techrep class: subfig option is set (use subfloat command).} } \DeclareOption{subcaption}{ \setcounter{cstechrep@subcaptiontracker}{1} \typeout{cs-techrep class: subcaption option is set (use subfigure command).} } \DeclareOption{onecolumn}{\OptionNotUsed} % IEEE option onecolumn will be ignored \DeclareOption{pbalance}{ \setcounter{cstechrep@pbalancetracker}{1} \typeout{cs-techrep class: pbalance option is set.} } \DeclareOption{flushend}{ \setcounter{cstechrep@flushendtracker}{1} \typeout{cs-techrep class: flushend option is set.} } % We'll pass any document class options along to the underlying class \DeclareOption*{% \PassOptionsToClass{\CurrentOption}{IEEEtran}% recommended IEEE options: conference,a4paper } % Now we'll execute any options passed in \ProcessOptions\relax % Instead of defining each and every little detail required to create a new document class, % you can base your class on an existing document class. \LoadClass{IEEEtran} % This template has been tested with IEEEtran of 2015. % ======================= % USER PROVIDED VARIABLES \makeatletter \newcommand*\DefcstechrepVar[1]{\@namedef{cstechrep#1}##1{\global\@namedef{cstechrep#1}{##1}}} \makeatother \DefcstechrepVar{AuthorListTex} \DefcstechrepVar{AuthorListBib} % Use *and* as author separator! \DefcstechrepVar{TitleTex} \DefcstechrepVar{TitleBib} \DefcstechrepVar{Department} % e.g., Department of Electrical Engineering, Media and Computer Science \DefcstechrepVar{Institution} % e.g., Ostbayerische Technische Hochschule Amberg-Weiden \DefcstechrepVar{Address} % e.g., Amberg, Germany \DefcstechrepVar{Type} % e.g., Technical Report \DefcstechrepVar{Year} % e.g., 2023 \DefcstechrepVar{Title} \DefcstechrepVar{Month} % e.g., 6 (for June) \DefcstechrepVar{Number} % e.g., CL-2023-42 \DefcstechrepVar{Lang} % e.g., english = en-US (or: ngerman = DE) % ======================= % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 % - https://tex.stackexchange.com/a/47451/9075 % - https://tex.stackexchange.com/a/166791/9075 \RequirePackage{upquote} % Set English as language and allow to write hyphenated"=words % % Even though `american`, `english` and `usenglish` are synonyms for babel package (according to https://tex.stackexchange.com/questions/12775/babel-english-american-usenglish), the llncs document class is prepared to avoid the overriding of certain names (such as "Abstract." -> "Abstract" or "Fig." -> "Figure") when using `english`, but not when using the other 2. % english has to go last to set it as default language \RequirePackage[ngerman,main=english]{babel} % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} \RequirePackage{lmodern} % CM variant with scalable font (to prevent "pdfTeX error (font expansion): auto expansion is only possible with scalable") \RequirePackage{times} % Times New Roman, because IEEE is based on Times (and not CM/lmodern), however, package times is not a scalable font, thus, lmodern is required additionally and must be loaded before times % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? % See https://tex.stackexchange.com/a/3034/9075. \RequirePackage[hyphens]{url} % When activated, use text font as url font, not the monospaced one. % For all options see https://tex.stackexchange.com/a/261435/9075. % \urlstyle{same} % Improve wrapping of URLs - hint by http://tex.stackexchange.com/a/10419/9075 \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother % nicer // - solution by http://tex.stackexchange.com/a/98470/9075 % DO NOT ACTIVATE -> prevents line breaks %\makeatletter %\def\Url@twoslashes{\mathchar`\/\@ifnextchar/{\kern-.2em}{}} %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother % use nicer font for code \RequirePackage[zerostyle=b,scaled=.75]{newtxtt} % inputenc must be loaded before biblatex \RequirePackage[utf8]{inputenc} % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \RequirePackage[T1]{fontenc} % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ \RequirePackage[ babel=true, % Enable language-specific kerning. Take language-settings from the languge of the current document (see Section 6 of microtype.pdf) expansion=alltext, protrusion=alltext-nott, % Ensure that at listings, there is no change at the margin of the listing nopatch=eqnum, % fix unable to apply patch eqnum final % Always enable microtype, even if in draft mode. This helps finding bad boxes quickly. % In the standard configuration, this template is always in the final mode, so this option only makes a difference if "pros" use the draft mode ]{microtype} % \texttt{test -- test} keeps the "--" as "--" (and does not convert it to an en dash) \DisableLigatures{encoding = T1, family = tt* } %\DeclareMicrotypeSet*[tracking]{my}{ font = */*/*/sc/* }% %\SetTracking{ encoding = *, shape = sc }{ 45 } % Source: http://homepage.ruhr-uni-bochum.de/Georg.Verweyen/pakete.html % Deactiviated, because does not look good \RequirePackage{graphicx} % Creative Commons \RequirePackage{ccicons} % Diagonal lines in a table - http://tex.stackexchange.com/questions/17745/diagonal-lines-in-table-cell % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \RequirePackage{diagbox} \RequirePackage[cmyk, table]{xcolor} \RequirePackage[nolist,smaller]{acronym} % Code Listings \RequirePackage{listings} \definecolor{eclipseStrings}{RGB}{42,0.0,255} \definecolor{eclipseKeywords}{RGB}{127,0,85} \colorlet{numb}{magenta!60!black} % JSON definition % Source: https://tex.stackexchange.com/a/433961/9075 \lstdefinelanguage{json}{ basicstyle=\normalfont\ttfamily, commentstyle=\color{eclipseStrings}, % style of comment stringstyle=\color{eclipseKeywords}, % style of strings numbers=left, numberstyle=\scriptsize, stepnumber=1, numbersep=8pt, showstringspaces=false, breaklines=true, frame=lines, % backgroundcolor=\color{gray}, %only if you like string=[s]{"}{"}, comment=[l]{:\ "}, morecomment=[l]{:"}, literate= *{0}{{{\color{numb}0}}}{1} {1}{{{\color{numb}1}}}{1} {2}{{{\color{numb}2}}}{1} {3}{{{\color{numb}3}}}{1} {4}{{{\color{numb}4}}}{1} {5}{{{\color{numb}5}}}{1} {6}{{{\color{numb}6}}}{1} {7}{{{\color{numb}7}}}{1} {8}{{{\color{numb}8}}}{1} {9}{{{\color{numb}9}}}{1} } \lstset{ % everything between (* *) is a latex command escapeinside={(*}{*)}, % language=json, % showstringspaces=false, % extendedchars=true, % basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % % default: \rmfamily stringstyle=\ttfamily, % breaklines=true, % breakatwhitespace=true, % % alternative: fixed columns=flexible, % numbers=left, % numberstyle=\tiny, % basewidth=.5em, % xleftmargin=.5cm, % % aboveskip=0mm, % % belowskip=0mm, % captionpos=b } % Enable Umlauts when using \lstinputputlisting. % See https://stackoverflow.com/a/29260603/873282 für details. % listingsutf8 did not work in June 2020. \lstset{literate= {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1 {À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1 {ä}{ä}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{ö}1 {ü}{{\"u}}1 {Ä}{ä}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{ö}1 {Ü}{{\"U}}1 {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1 {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1 {Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1 {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } % Nicer tables (\toprule, \midrule, \bottomrule) \RequirePackage{booktabs} % Extended enumerate, such as \begin{compactenum} \RequirePackage[alwaysadjust]{paralist} % Read: Is there a disadvantage to using natbib=true with biblatex? % https://tex.stackexchange.com/questions/149313/is-there-a-disadvantage-to-using-natbib-true-with-biblatex % Substitutions: % Natbib \textcite = biblatex \textcite % Natbib \citep = biblatex \parencite \RequirePackage[ defernumbers=true, % required due to self-cite %style=ieee, % english only sorting=none, % nty, nyt, nyvt, anyt, anyvt, ynt, ydnt, none, debug sortcites=false, citestyle=numeric-comp, bibstyle=numeric, backend=biber, bibencoding=utf8, % = auto, utf8, ascii hyperref=true, % activate hyperref support backref=false, % activate backrefs isbn=true, url=true, doi=true, urldate=terse, % = iso, year, short, long, terse maxnames=5, % max number of names in text ?? minnames=1, % min number of names in text ?? maxbibnames=99, % max number of names in bibliography minbibnames=1, % number of names in bibliography (bevor et al) maxcitenames=99, % max number of names in text ?? mincitenames=1, % max number of names in text ?? giveninits=false, % abbreviate first names uniquename=init, % otherwise option conflict with firstinits=true autolang=other ]{biblatex} % Due to applied option defernumbers=true: % Prevent citations in the references are being numbered as '0' in ArXiv % https://tex.stackexchange.com/questions/463556/all-the-citations-in-the-references-are-being-numbered-as-0-in-arxiv-while-upl \makeatletter \let\blx@rerun@biber\relax \makeatother \addbibresource{selfref.bib} % selfref.bib needs to be generated, containing a bibentry with key selfref \DeclareBibliographyCategory{selfref} \addtocategory{selfref}{selfref} % How to use: \printbibliography[notcategory=selfref] % Same fontsize as without natbib \renewcommand{\bibfont}{\normalfont\small} % Enable hyperlinked author names in the case of \textcite % Source: https://tex.stackexchange.com/a/76075/9075 \RequirePackage{etoolbox} \makeatletter \patchcmd{\NAT@test}{\else \NAT@nm}{\else \NAT@hyper@{\NAT@nm}}{}{} \makeatother \makeatletter \DeclareCiteCommand{\citemonth} {\usebibmacro{prenote}} {% \let\oldabx@bibmonth\abx@bibmonth% %\let\abx@bibmonth\blx@imc@biblstring\typeout{CHG: abx@bibmonth \meaning\abx@bibmonth}% false: not abbreviated; but nowork \setkeys{blx@opt@pre}{dateabbrev=false}% nowork \mkbibmonth{\thefield{month}}% \let\abx@bibmonth\oldabx@bibmonth% restore } {\multicitedelim} {\usebibmacro{postnote}} \makeatother % Enable nice comments \RequirePackage{pdfcomment} \newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} \newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} % Compatibality with packages todo, easy-todo, todonotes \newcommand{\todo}[1]{\commentatside{#1}} % Compatiblity with package fixmetodonotes \newcommand{\TODO}[1]{\commentatside{#1}} % Put footnotes below floats % Source: https://tex.stackexchange.com/a/32993/9075 \RequirePackage{stfloats} \fnbelowfloat \RequirePackage[group-minimum-digits=4,per-mode=fraction]{siunitx} \addto\extrasgerman{\sisetup{locale = DE}} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document \RequirePackage{hyperref} % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, colorlinks=true, allcolors=black, pdfstartview=Fit, breaklinks=true } % Enable correct jumping to figures when referencing \RequirePackage[all]{hypcap} \RequirePackage{orcidlink} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command \RequirePackage[autostyle=true]{csquotes} % Enable using "`quote"' - see https://tex.stackexchange.com/a/150954/9075 \defineshorthand{"`}{\openautoquote} \defineshorthand{"'}{\closeautoquote} % amsmath must be loaded before cleveref \usepackage{amsmath,amssymb,amsfonts} % Extensions for references inside the document (\cref{fig:sample}, ...) % Enable usage \cref{...} and \Cref{...} instead of \ref: Type of reference included in the link % That means, "Figure 5" is a full link instead of just "5". \RequirePackage[capitalise,nameinlink,noabbrev]{cleveref} \crefname{listing}{Listing}{Listings} \Crefname{listing}{Listing}{Listings} \crefname{lstlisting}{Listing}{Listings} \Crefname{lstlisting}{Listing}{Listings} \RequirePackage{lipsum} \RequirePackage{tcolorbox} \tcbuselibrary{listings} %introduce \powerset - hint by http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377 \DeclareFontFamily{U}{MnSymbolC}{} \DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n} \DeclareFontShape{U}{MnSymbolC}{m}{n}{ <-6> MnSymbolC5 <6-7> MnSymbolC6 <7-8> MnSymbolC7 <8-9> MnSymbolC8 <9-10> MnSymbolC9 <10-12> MnSymbolC10 <12-> MnSymbolC12% }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} \RequirePackage{xspace} %\newcommand{\eg}{e.\,g.\xspace} %\newcommand{\ie}{i.\,e.\xspace} \newcommand{\eg}{e.\,g.,\ } \newcommand{\ie}{i.\,e.,\ } % Enable hyphenation at other places as the dash. % Example: applicaiton\hydash specific \makeatletter \newcommand{\hydash}{\penalty\@M-\hskip\z@skip} % Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx \makeatother % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details % Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 % \input{ushyphex} % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package % mmap enables mathematical symbols, but does not work with the newtx font set % See: https://tex.stackexchange.com/a/64457/9075 % Other solutions outlined at http://goemonx.blogspot.de/2012/01/pdflatex-ligaturen-und-copynpaste.html and http://tex.stackexchange.com/questions/4397/make-ligatures-in-linux-libertine-copyable-and-searchable % Trouble shooting outlined at https://tex.stackexchange.com/a/100618/9075 % % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 \RequirePackage{lscape} \RequirePackage{pdflscape} \RequirePackage{afterpage} % requires, e.g., \PassOptionsToPackage{ % type=CC,modifier=by,version=4.0}{doclicense} before \documentclass \RequirePackage[hyperxmp=false,lang=English]{doclicense} % Improve wrapping of URLs - hint by http://tex.stackexchange.com/a/10419/9075 \makeatletter \def\ps@IEEEtitlepagestyle{ \def\@oddfoot{\mycopyrightnotice} \def\@evenfoot{} } \def\mycopyrightnotice{ {\footnotesize \begin{minipage}{0.8\textwidth} \centering % Creative Commons / Open Access: %\href{https://creativecommons.org/licenses/by/4.0/}{\ccby{} This work is %licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) %License.} % License based on doclicense package: \href{\doclicenseURL}{\doclicenseIcon{} This work is licensed under a \doclicenseLongNameRef{} (\doclicenseNameRef{}) license.} % Citation advice: \\Please cite as: \fullcite{selfref}. \end{minipage} } } \makeatother \makeatletter % allows for forcing command expansion inside a filecontents* environment % (cf. https://tex.stackexchange.com/questions/534035/macros-commands-inside-a-filecontents-environment-does-not-expand) \def\filecontentsForceExpansion#1#2#3{ \global\let\ltxspecials\dospecials \gdef\dospecials{\ltxspecials \catcode`#1=0 \catcode`#2=1 \catcode`#3=2 \global\let\dospecials\ltxspecials } } \makeatother \title{\cstechrepTitleTex} \author{ \IEEEauthorblockN{\cstechrepAuthorListTex} \IEEEauthorblockA{% \cstechrepDepartment\\ \cstechrepInstitution\\ \cstechrepAddress }} \IEEEspecialpapernotice{\cstechrepType: \cstechrepNumber, \citemonth{selfref} \cstechrepYear} % subfigure captions with parentheses and footnotesize: \ifnum\value{cstechrep@subfigtracker}=1 \typeout{cs-techrep class: load subfig package (use subfloat command).} \RequirePackage[caption=false,font=footnotesize]{subfig} \fi \ifnum\value{cstechrep@subcaptiontracker}=1 \typeout{cs-techrep class: load subcaption package (use subfigure command).} \RequirePackage{subcaption} \captionsetup[subfigure]{labelformat=parens,font=footnotesize} \fi % Balance/level columns at the last page / in bibliography % DISCLAIMER: No solution is a 100%/perfect one! % Mainstream option: pbalance (see https://ctan.org/pkg/pbalance) % BUT: incompatible with arxiv automated process (!) \ifnum\value{cstechrep@pbalancetracker}=1 \typeout{cs-techrep class: load pbalance package.} \RequirePackage{pbalance} \fi % Flushend => works with arxiv, but major incampatibility with lineno (and, thus, also with mindflow et al.) \ifnum\value{cstechrep@flushendtracker}=1 \typeout{cs-techrep class: load flushend package.} \RequirePackage{flushend} \fi % ======================================================== % Packages that need to be loaded last: % Allows to hyphenate a word that contains a dash: % https://stackoverflow.com/questions/2193307/how-do-i-get-latex-to-hyphenate-a-word-that-contains-a-dash \RequirePackage[shortcuts]{extdash} % Use \-/ for a breakable dash that does not prevent the remainer of the word to be hyphenated % ======================================================== % Finally, we'll use \endinput to indicate that LaTeX can stop reading this file. LaTeX will ignore anything after this line. \endinput % \end{macrocode} %\iffalse % \begin{macrocode} % % \end{macrocode} %\fi %\Finale \endinput