diff --git a/.gitignore b/.gitignore index 71828232afe16e5630ca230400ec01a855559441..66c354fe620a66cfb3fedac906165088684950ea 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ *.lof *.log *.toc -help_* \ No newline at end of file +help_* +build/ +img/logos-fakultäten.svg diff --git a/.vscode/settings.json b/.vscode/settings.json index 9712a398d7be9e4a647d040a8057591d4ce741ce..5f9c3f4ebc63d089cb5bb094dfd84d61cd8c6d1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { + "latex-workshop.latex.outDir": "%DIR%/build", "latex-workshop.latex.tools": [ { "name": "pdflatex", @@ -7,10 +8,11 @@ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", + "--output-directory=build", "%DOC%" ], "env": { - "TEXINPUTS": "%DIR%//src" + "TEXINPUTS": "%DIR%/src" } } ] diff --git a/img/HSH-Logo-Fak1.pdf b/img/HSH-Logo-Fak1.pdf deleted file mode 100644 index c6597e7053c1be9ab0e555791af274b9f3065316..0000000000000000000000000000000000000000 Binary files a/img/HSH-Logo-Fak1.pdf and /dev/null differ diff --git a/img/HSH-Logo.pdf b/img/HSH-Logo.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f6ddc0fa82f4999a70cbe8ca9834745f4a8a2108 Binary files /dev/null and b/img/HSH-Logo.pdf differ diff --git a/logo-test.pdf b/logo-test.pdf deleted file mode 100644 index 66fdcc1bf981749d6d0430b6f321b5ff10869719..0000000000000000000000000000000000000000 Binary files a/logo-test.pdf and /dev/null differ diff --git a/logo-test.svg b/logo-test.svg deleted file mode 100644 index 5035f055ce9085bb8f54136e1c56b82f8c959df7..0000000000000000000000000000000000000000 --- a/logo-test.svg +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:version="1.0 (4035a4fb49, 2020-05-01)" - sodipodi:docname="logo-test.svg" - width="175.89999mm" - height="354mm" - viewBox="0 0 175.89999 354" - version="1.1" - id="svg8"> - <sodipodi:namedview - inkscape:current-layer="svg8" - inkscape:window-maximized="1" - inkscape:window-y="-8" - inkscape:window-x="-8" - inkscape:cy="769.10222" - inkscape:cx="573.15333" - inkscape:zoom="0.36850798" - showgrid="false" - id="namedview8" - inkscape:window-height="1017" - inkscape:window-width="1920" - inkscape:pageshadow="2" - inkscape:pageopacity="0" - guidetolerance="10" - gridtolerance="10" - objecttolerance="10" - borderopacity="1" - bordercolor="#666666" - pagecolor="#ffffff" /> - <defs - id="defs2" /> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - id="layer1"> - <path - id="path1" - d="m 30,272.3 c 5.5,0 10.2,-4.7 10.2,-10.3 V 150.3 h 95.4 V 262 c 0,5.5 4.7,10.3 10.2,10.3 h 19.8 c 5.5,0 10.2,-4.7 10.2,-10.3 V 10.3 C 175.8,4.8 171.1,0 165.6,0 h -19.8 c -5.5,0 -10.2,4.7 -10.2,10.3 V 112.2 H 40.2 V 10.3 C 40.2,4.7 35.5,0 30,0 H 10.2 C 4.7,0 0,4.7 0,10.3 V 262 c 0,5.5 4.7,10.3 10.2,10.3 z" - style="fill:#00ffff" /> - <path - id="path2" - d="m 165.7,354 c 5.5,0 10.2,-4.8 10.2,-10.4 v -20.1 c 0,-5.6 -4.7,-10.4 -10.2,-10.4 H 10.2 C 4.7,313.2 0,318 0,323.5 v 20.1 c 0,5.6 4.7,10.4 10.2,10.4 z" - style="fill:#00ffff" /> - </g> -</svg> diff --git a/src/HSH-Logo.pdf b/src/HSH-Logo.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f6ddc0fa82f4999a70cbe8ca9834745f4a8a2108 Binary files /dev/null and b/src/HSH-Logo.pdf differ diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 787fd473e405b95071248d91c28d78f183e074e1..91bd2c35889b939f549fda5e516fde53659a48c2 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -3,84 +3,99 @@ \newcommand{\myClassName}{HsH-report} \ProvidesClass{\myClassName}[2020/09/21 HsH Report based on KOMA] - \LoadClass[bibliography=totoc,listof=totoc]{scrreprt} -\RequirePackage[utf8]{inputenc} -\RequirePackage[T1]{fontenc} -\RequirePackage{lmodern} -\RequirePackage{graphicx} -\RequirePackage{hyperref} -\RequirePackage{bookmark} - -\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} +\newcommand{\HsHlogoPath}{HSH-Logo.pdf} +\newcommand{\HsHlogoPage}{6} +\newcommand{\includeHsHlogohere}{\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}} +\newcommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche \DeclareOption{ngerman}{% \PassOptionsToPackage{\CurrentOption}{babel} - \PassOptionsToPackage{figurename=Abb.,tablename=Tab.}{caption} + \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure + \renewcaptionname{ngerman}{\tablename}{Tab.} %Table } \DeclareOption{english}{% - \PassOptionsToPackage{\CurrentOption}{babel} - \PassOptionsToPackage{figurename=fig.,tablename=tab.}{caption} + \PassOptionsToPackage{\CurrentOption,main=english}{babel} + \renewcaptionname{english}{\figurename}{Fig.} %Figure + \renewcaptionname{english}{\tablename}{Tab.} %Table +} +\DeclareOption{f1}{% + \renewcommand{\HsHlogoPage}{1} +} +\DeclareOption{f2}{% + \renewcommand{\HsHlogoPage}{2} +} +\DeclareOption{f3}{% + \renewcommand{\HsHlogoPage}{3} +} +\DeclareOption{f4}{% + \renewcommand{\HsHlogoPage}{4} +} +\DeclareOption{f5}{% + \renewcommand{\HsHlogoPage}{5} } \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} \ExecuteOptions{ngerman} \ProcessOptions\relax -\RequirePackage{babel} -\RequirePackage{geometry} -\RequirePackage{caption} +\InputIfFileExists{personal.tex}{ + \ClassInfo{\myClassName}{personal.tex was found. Using it...} +}{ + \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe} +} + +% recomendet options for packages +\PassOptionsToPackage{utf8}{inputenc} +\PassOptionsToPackage{T1}{fontenc} +\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} +\PassOptionsToPackage{free-standing-units}{siunitx} +\PassOptionsToPackage{babel, german=quotes}{csquotes} +\PassOptionsToPackage{headsepline}{scrlayer-scrpage} + +%used packages: +\RequirePackage{inputenc} % inputencoding, utf8 recomendet +\RequirePackage{fontenc} % outputencoding, T1 recomendet +\RequirePackage{lmodern} % font +\RequirePackage{geometry} % required for changing layout +\RequirePackage{graphicx} % required for importing images +\RequirePackage{babel} % required for german names +\RequirePackage{scrlayer-scrpage} % required for header and footer +\RequirePackage{scrhack} % compatability with listings +\RequirePackage{pgffor} % foreach loops + +\RequirePackage{subfigure} +\RequirePackage{pdfpages} +\RequirePackage{hyperref} +\RequirePackage{bookmark} +\RequirePackage{csquotes} + -\RequirePackage[headsepline]{scrlayer-scrpage} % kopf und Fußzeilen, linie oben (footsepline für unten) + % config for header and footer \pagestyle{scrheadings} -\clearpairofpagestyles \renewcommand{\chapterpagestyle}{scrheadings} % Kapitelanfang standart Kopf/Fußzeile \automark{chapter} - \ohead{\headmark} \ihead{\@title} \ofoot{\pagemark} -% typesetting indexes upright by default +% typesetting indexes upright or standart \def\subinrm#1{\sb{\textnormal{#1}}} {\catcode`\_=13 \global\let_=\subinrm} \mathcode`_="8000 -\newcommand\upsubscripts{\catcode`\_=12 }% the toggle for upright subscripts -\newcommand\normalsubscripts{\catcode`\_=8 }% the toggle for italic subscripts -\upsubscripts +\newcommand\upsubscripts{\catcode`\_=12 } % the toggle for upright subscripts +\newcommand\normalsubscripts{\catcode`\_=8 } % the toggle for italic subscripts +\upsubscripts % setting upright as default -\PassOptionsToPackage{free-standing-units}{siunitx} -\setlength\parindent{0pt} +\setlength\parindent{0pt} % indentation of new paragraphs +\raggedbottom \renewcommand{\fps@figure}{h!t} % positioning of figures \renewcommand{\fps@table}{h!t} % Positonierung of tables - -\renewcommand\maketitle{ - \newpage - \null - \thispagestyle{empty} - \vspace{-1.5cm} - - \hfill\includegraphics[width=6cm]{img/HSH-Logo-Fak1} - \rule{\textwidth}{0.5pt} - - \begin{center} - \Large - \vspace*{\fill} - {\Huge\textbf{\@title}}\\ - \vspace{1cm} - von \@author\\ - - \vfill - \vspace{10cm} - \@date - \end{center} - \clearpage -} - \newcommand\declarationAuthorship{ - \pagebreak + \newpage + \thispagestyle{plain} \vspace*{\fill} {\rule{\textwidth}{0.1pt}} \vspace{0.5cm} @@ -89,26 +104,24 @@ \Large über selbstständiges Erarbeiten dieses Berichtes\\ \end{center} \vspace{1cm}\normalsize - Hiermit bestätige ich, dass ich die folgenden Arbeit unter Berücksichtigung der zur Verfügung + Hiermit bestätige ich, dass ich die folgende Arbeit unter Berücksichtigung der zur Verfügung gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quel-len selbstständig erarbeitet habe.\\ \vspace{1cm} \begin{flushright} - \rule{5cm}{0.4pt} \\ - {\footnotesize\makeatletter\@author} + \begin{tabular}[t]{r} + \rule{4cm}{0.4pt} \\ + {\footnotesize\makeatletter\@author} + \end{tabular} \end{flushright} - \newpage } - \renewenvironment{abstract}{% - \renewcommand\abstractname{Abstract} - - %\addchap*{\centering\abstractname} \chapter*{\centering\abstractname} + \thispagestyle{plain} \addcontentsline{toc}{chapter}{\abstractname} - \small - \quotation + \small + \quotation }{% \endquotation } @@ -121,4 +134,267 @@ \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} } \makeatother -} \ No newline at end of file +} + +\renewcommand\maketitle[1][1]{% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \else + \def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + }% + \fi + \if@titlepage + \begin{titlepage} + \setcounter{page}{% + #1% + }% + \if@titlepageiscoverpage + \edef\titlepage@restore{% + \noexpand\endgroup + \noexpand\global\noexpand\@colht\the\@colht + \noexpand\global\noexpand\@colroom\the\@colroom + \noexpand\global\vsize\the\vsize + \noexpand\global\noexpand\@titlepageiscoverpagefalse + \noexpand\let\noexpand\titlepage@restore\noexpand\relax + }% + \begingroup + \topmargin=\dimexpr \coverpagetopmargin-1in\relax + \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax + \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax + \textwidth=\dimexpr + \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax + \textheight=\dimexpr + \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax + \headheight=0pt + \headsep=0pt + \footskip=\baselineskip + \@colht=\textheight + \@colroom=\textheight + \vsize=\textheight + \columnwidth=\textwidth + \hsize=\columnwidth + \linewidth=\hsize + \else + \let\titlepage@restore\relax + \fi + \let\footnotesize\small + \let\footnoterule\relax + \let\footnote\thanks + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \let\@oldmakefnmark\@makefnmark + \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% + \ifx\@extratitle\@empty + \ifx\@frontispiece\@empty + \else + \if@twoside\mbox{}\next@tpage\fi + \noindent\@frontispiece\next@tdpage + \fi + \else + \noindent\@extratitle + \ifx\@frontispiece\@empty + \else + \next@tpage + \noindent\@frontispiece + \fi + \next@tdpage + \fi + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + % Customised: ----------------------------------------------------------- + \IfFileExists{\HsHlogoPath}{}{ + \ClassError{\myClassName}{HsH-Logo.pdf not found!}{ + The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use \HsHlogoPath to define the file location + } + } + \vspace*{1cm} + \begin{minipage}[t]{\textwidth}% + \ifx\@titlehead\@empty \else + \usekomafont{titlehead}{\@titlehead}% + \fi + \hfill + \includeHsHlogohere + \end{minipage} + \raisebox{10pt}{\rule{\textwidth}{0.5pt}} + % end Customised: -------------------------------------------------------- + \null\vfill + \begin{center} + \ifx\@subject\@empty \else + {\usekomafont{subject}{\@subject\par}}% + \vskip 3em + \fi + {\usekomafont{title}{\huge \@title\par}}% + \vskip 1em + {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% + \vskip 2em + {% + \usekomafont{author}{% + \lineskip 0.75em + \begin{tabular}[t]{c} + \parbox{\linewidth}{\centering\@author} + \end{tabular}\par + }% + }% + \vskip 1.5em + {\usekomafont{date}{\@date \par}}% + \vskip \z@ \@plus3fill + {\usekomafont{publishers}{\@publishers \par}}% + \vskip 3em + \end{center}\par + \@thanks\global\let\@thanks\@empty + \vfill\null + \if@twoside + \@tempswatrue + \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax + \else + \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty + \@tempswafalse + \fi\fi + \fi + \if@tempswa + \next@tpage + \begin{minipage}[t]{\textwidth} + \@uppertitleback + \end{minipage}\par + \vfill + \begin{minipage}[b]{\textwidth} + \@lowertitleback + \end{minipage}\par + \@thanks\global\let\@thanks\@empty + \fi + \else + \ifx\@uppertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\uppertitleback\space ignored + by \string\maketitle\MessageBreak + in `twoside=false' mode% + }% + \fi + \ifx\@lowertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\lowertitleback\space ignored + by \string\maketitle\MessageBreak + in `twoside=false' mode% + }% + \fi + \fi + \ifx\@dedication\@empty + \else + \next@tdpage\null\vfill + {\centering\usekomafont{dedication}{\@dedication \par}}% + \vskip \z@ \@plus3fill + \@thanks\global\let\@thanks\@empty + \cleardoubleemptypage + \fi + \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi + \end{titlepage} + \else + \par + \@tempcnta=% + #1% + \relax\ifnum\@tempcnta=1\else + \ClassWarning{\KOMAClassName}{% + Optional argument of \string\maketitle\space ignored\MessageBreak + in `titlepage=false' mode% + }% + \fi + \ifx\@uppertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\uppertitleback\space ignored + by \string\maketitle\MessageBreak + in `titlepage=false' mode% + }% + \fi + \ifx\@lowertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\lowertitleback\space ignored + by \string\maketitle\MessageBreak + in `titlepage=false' mode% + }% + \fi + \begingroup + \let\titlepage@restore\relax + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \let\@oldmakefnmark\@makefnmark + \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% + \next@tdpage + \if@twocolumn + \ifnum \col@number=\@ne + \ifx\@extratitle\@empty + \ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi + \else + \@makeextratitle + \fi + \ifx\@frontispiece\@empty + \ifx\@extratitle\@empty\else\next@tdpage\fi + \else + \next@tpage + \@makefrontispiece + \next@tdpage + \fi + \@maketitle + \else + \ifx\@extratitle\@empty + \ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi + \else + \twocolumn[\@makeextratitle]% + \fi + \ifx\@frontispiece\@empty + \ifx\@extratitle\@empty\else\next@tdpage\fi + \else + \next@tpage + \twocolumn[\@makefrontispiece]% + \next@tdpage + \fi + \twocolumn[\@maketitle]% + \fi + \else + \ifx\@extratitle\@empty + \ifx\@frontispiece\@empty\else \mbox{}\fi + \else + \@makeextratitle + \fi + \ifx\@frontispiece\@empty + \ifx\@extratitle\@empty\else\next@tdpage\fi + \else + \next@tpage + \@makefrontispiece + \next@tdpage + \fi + \@maketitle + \fi + \ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi + \@thanks\global\let\@thanks\@empty + \endgroup + \fi + \setcounter{footnote}{0}% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \let\thanks\relax + \let\maketitle\relax + \let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\@subtitle\@empty + \global\let\@extratitle\@empty + \global\let\@frontispiece\@empty + \global\let\@titlehead\@empty + \global\let\@subject\@empty + \global\let\@publishers\@empty + \global\let\@uppertitleback\@empty + \global\let\@lowertitleback\@empty + \global\let\@dedication\@empty + \global\let\author\relax + \global\let\title\relax + \global\let\extratitle\relax + \global\let\titlehead\relax + \global\let\subject\relax + \global\let\publishers\relax + \global\let\uppertitleback\relax + \global\let\lowertitleback\relax + \global\let\dedication\relax + \global\let\date\relax + \fi + \global\let\and\relax +}% \ No newline at end of file diff --git a/src/config.tex b/src/config.tex index 07783d91c39d62b8d53ec421a1adf6295581f21b..46cd1263a54a9a8a286bda913716fa8db0843390 100644 --- a/src/config.tex +++ b/src/config.tex @@ -1,3 +1,15 @@ +\renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract +\@ifpackageloaded{biblatex}{ + \ExecuteBibliographyOptions{ + sorting=nyt, + bibwarn=true, + isbn=false, + url=true + } +}{}% +\@ifpackageloaded{csquotes}{ + \MakeOuterQuote{"} +}{}% \@ifpackageloaded{siunitx}{ \sisetup{ free-standing-units, diff --git a/src/personal.tex b/src/personal.tex new file mode 100644 index 0000000000000000000000000000000000000000..ef35318d66de28c76921aa40bc1cd63b2ad18314 --- /dev/null +++ b/src/personal.tex @@ -0,0 +1,10 @@ +\author{ + Max Mustermann, + Mira Musterfrau, + Max Meier +} +\titlehead{Fachbereich} +\subject{Grund der Arbeit} +\title{Mustertitel} +\subtitle{Untertitle} +\date{\today} diff --git a/test.pdf b/test.pdf deleted file mode 100644 index 42eae629d427c1a4245b7e941240b8f6cdcdcc18..0000000000000000000000000000000000000000 Binary files a/test.pdf and /dev/null differ diff --git a/test.tex b/test.tex index f3df3ee6a018298eba8956fda22e6e00c5aeccb6..540f32da90796678436d9ba5b691e3eba9dd8d9f 100644 --- a/test.tex +++ b/test.tex @@ -1,8 +1,4 @@ -\documentclass[11pt,a4paper,twoside]{HsH-report} - -\title{Test Dokument} -\author{Jan Wille} -\date{\today} +\documentclass[11pt,a4paper,twoside,f1]{HsH-report} \usepackage{color} \usepackage{lipsum} @@ -10,28 +6,67 @@ \usepackage{ziffer} \begin{document} -\maketitle +\pagenumbering{Roman} +\maketitle \declarationAuthorship \begin{abstract} - \lipsum[5-8] + \lipsum[5-8] \end{abstract} \tableofcontents +\cleardoublepage % unbedingt erforderlich bei Doppelseitigem layout vor neuer Seitennummerreirung! +\pagenumbering{arabic} % Seitennummerierung normale zahlen + \chapter{one} - \label{chap: one} - {\color{red}test} und stuff - \begin{figure} - \centering - \includegraphics[width=.15\textwidth]{logo-test} - \caption{test} - \end{figure} + \label{chap: one} + {\color{red}test} und stuff + \begin{figure} + \centering + \includegraphics[width=.15\textwidth]{logo-test} + \caption{test} + \end{figure} + + noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ + + mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ + \vspace{2cm}\\ - noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ - mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ + \makeatletter + \newcommand{\tempA}{A-} + \newcommand{\tempB}{B-} + \newcommand{\temp}{} + \newcommand{\declatationAutorshipAuthors}{} + \let\declatationAutorshipAuthors\@empty + \foreach \x [count=\i] in \@author{ + \ifnum\i>1{ + \gdef\tempA{wir} + \gdef\tempB{nicht2} + }\else\fi + \ifx\declatationAutorshipAuthors\@empty{ + A + \gdef\declatationAutorshipAuthors{ + \begin{tabular}[t]{r} + \rule{4cm}{0.4pt} \\ + {\footnotesize first} + \end{tabular} + } + }\else{ + \let\temp\declatationAutorshipAuthors + \gdef\declatationAutorshipAuthors{ + \temp + \begin{tabular}[t]{r} + \rule{4cm}{0.4pt} \\ + {\footnotesize test} + \end{tabular} + } + }\fi + \i\space this is \x \\ + } + \declatationAutorshipAuthors \listoffigures \end{document}