diff --git a/test.tex b/test.tex index 740b41f23f39383be932604f0d7fec9eb64f1ddb..aa10ef3c294b6db0546dc5df5c30c150b0b99378 100644 --- a/test.tex +++ b/test.tex @@ -40,6 +40,18 @@ Tiny: {\tiny hello} Small: {\small hello} + \makeatletter + \newcommand{\test}[1][l]{ + { + \def\t{#1} + \if\t l left + \else + right + \fi + } + } + \test; \test[right] + \lipsum[5-6] \pagebreak @@ -56,8 +68,6 @@ \end{figure} \makeatletter - \g@addto@macro\@floatboxreset\raggedright % center all floats - \setcapwidth[l]{0.8\textwidth} % center all captions \begin{figure} \graphicspath{{svg/build/}} % double curly brackets needet for unknown reason @@ -65,6 +75,15 @@ \caption{made via inkscape} \end{figure} + \begin{table} + \caption{hello} + \begin{tabular}{c|c} + test & hello \\\hline\hline + 1 & 2 \\ + \multicolumn{2}{|c|}{temp} + \end{tabular} + \end{table} + \printbibliography \listoffigures \end{document}