diff options
| -rw-r--r-- | Makefile | 34 | ||||
| -rw-r--r-- | vutinf-logo.pdf | bin | 0 -> 19002 bytes | |||
| -rw-r--r-- | vutinf.dtx | 241 |
3 files changed, 275 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4bded4e --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +NAME = vutinf +SHELL = bash +PWD = $(shell pwd) +VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') +LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) +UTREE = $(shell kpsewhich --var-value TEXMFHOME) +all: $(NAME).pdf + test -e README.txt && mv README.txt README || exit 0 +$(NAME).pdf: $(NAME).dtx + pdflatex -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null + if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi + if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi + pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null + pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null +clean: + rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out} texput.fls +distclean: clean + rm -f $(NAME).{pdf,cls} README +inst: all + mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) + cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) + cp $(NAME).cls $(UTREE)/tex/latex/$(NAME) + cp $(NAME)-logo.pdf $(UTREE)/tex/latex/$(NAME) + cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) +install: all + sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME) + sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) + sudo cp $(NAME).cls $(LOCAL)/tex/latex/$(NAME) + sudo cp $(NAME)-logo.pdf $(LOCAL)/tex/latex/$(NAME) + sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) +zip: all + ln -sf . $(NAME) + zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,dtx},$(NAME)-logo.pdf} + rm $(NAME) diff --git a/vutinf-logo.pdf b/vutinf-logo.pdf Binary files differnew file mode 100644 index 0000000..f88f5fd --- /dev/null +++ b/vutinf-logo.pdf diff --git a/vutinf.dtx b/vutinf.dtx new file mode 100644 index 0000000..95fa285 --- /dev/null +++ b/vutinf.dtx @@ -0,0 +1,241 @@ +% \iffalse meta-comment +% vim: textwidth=75 +%<*internal> +\iffalse +%</internal> +%<*readme> +| +-------:| ----------------------------------------------------------------- + vutinf:| TU Wien Faculty for Informatics template + Author:| David Kaufmann + E-mail:| david.kaufmann@tuwien.ac.at +License:| Released under the LaTeX Project Public License v1.3c or later + See:| http://www.latex-project.org/lppl.txt + + +Short description: +Some text about the class: probably the same as the abstract. +%</readme> +%<*internal> +\fi +\def\nameofplainTeX{plain} +\ifx\fmtname\nameofplainTeX\else + \expandafter\begingroup +\fi +%</internal> +%<*install> +\input docstrip.tex +\keepsilent +\askforoverwritefalse +\preamble +-------:| ----------------------------------------------------------------- + vutinf:| TU Wien Faculty for Informatics template + Author:| David Kaufmann + E-mail:| david.kaufmann@tuwien.ac.at +License:| Released under the LaTeX Project Public License v1.3c or later + See:| http://www.latex-project.org/lppl.txt + +\endpreamble +\postamble + +Copyright (C) 2020 by David Kaufmann <david.kaufmann@tuwien.ac.at> + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License (LPPL), either +version 1.3c of this license or (at your option) any later +version. The latest version of this license is in the file: + +http://www.latex-project.org/lppl.txt + +This work is "maintained" (as per LPPL maintenance status) by +David Kaufmann. + +This work consists of the file .dtx and a Makefile. +Running "make" generates the derived files README, vutinf.pdf and vutinf.cls. +Running "make inst" installs the files in the user's TeX tree. +Running "make install" installs the files in the local TeX tree. + +\endpostamble + +\usedir{tex/latex/} +\generate{ + \file{\jobname.cls}{\from{\jobname.dtx}{class}} +} +%</install> +%<install>\endbatchfile +%<*internal> +\usedir{source/latex/} +\generate{ + \file{\jobname.ins}{\from{\jobname.dtx}{install}} +} +\nopreamble\nopostamble +\usedir{doc/latex/} +\generate{ + \file{README.txt}{\from{\jobname.dtx}{readme}} +} +\ifx\fmtname\nameofplainTeX + \expandafter\endbatchfile +\else + \expandafter\endgroup +\fi +%</internal> +% \fi +% +% \iffalse +%<*driver> +\ProvidesFile{.dtx} +%</driver> +%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%<class>\ProvidesClass{} +%<*class> + [2020/01/31 v1.00 TU Wien for Informatics template] +%</class> +%<*driver> +\documentclass{ltxdoc} +\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry} +\usepackage[numbered]{hypdoc} + +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} + \DocInput{\jobname.dtx} +\end{document} +%</driver> +% \fi +% +% \GetFileInfo{\jobname.dtx} +% \DoNotIndex{\newcommand,\newenvironment} +% +%\title{\textsf{} --- TU Wien Faculty for Informatics template\thanks{This file +% describes version \fileversion, last revised \filedate.} +%} +%\author{David Kaufmann\thanks{E-mail: david.kaufmann@tuwien.ac.at}} +%\date{Released \filedate} +% +%\maketitle +% +%\changes{v1.00}{2020/01/31}{First public release} +% +% \begin{abstract} +% ==== Put abstract text here. ==== +% \end{abstract} +% +% \section{Usage} +% +% ==== Put descriptive text here. ==== +% +% \DescribeMacro{\dummyMacro} +% This macro does nothing.\index{doing nothing|usage} It is merely an +% example. If this were a real macro, you would put a paragraph here +% describing what the macro is supposed to do, what its mandatory and +% optional arguments are, and so forth. +% +% \DescribeEnv{dummyEnv} +% This environment does nothing. It is merely an example. +% If this were a real environment, you would put a paragraph here +% describing what the environment is supposed to do, what its +% mandatory and optional arguments are, and so forth. +% +%\StopEventually{^^A +% \PrintChanges +% \PrintIndex +%} +% +% \section{Implementation} +% +% \begin{macrocode} +%<*class> +\LoadClass[a4paper,final]{article} +\RequirePackage[utf8]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage[a4paper,left=24mm,right=20mm,top=20mm,bottom=25mm]{geometry} +\RequirePackage{graphicx} +\RequirePackage{ifthen} +\RequirePackage{lastpage} +\RequirePackage{ragged2e} +% \end{macrocode} +% sans serif font +% \begin{macrocode} +\RequirePackage{helvet} +\renewcommand{\familydefault}{\sfdefault} +% \end{macrocode} +% clickable links, same font for links as rest of text +% \begin{macrocode} +\RequirePackage[bookmarks]{hyperref} +\RequirePackage{xcolor} +\urlstyle{sf} +\hypersetup{% + colorlinks=false, + linkcolor=black, + linkbordercolor=red, + pdfborderstyle={/S/U/W 1}% border style will be underline of width 1pt +} +% \end{macrocode} +% \begin{macro}{\myuline} +% This macro makes prettier underline lines.\\ +% Sourced from: https://alexwlchan.net/2017/10/latex-underlines/ +% \begin{macrocode} +\RequirePackage{contour} +\RequirePackage{ulem} + +\renewcommand{\ULdepth}{1.8pt} +\contourlength{0.8pt} + +\newcommand{\myuline}[1]{% + \uline{\phantom{#1}}% + \llap{\contour{white}{#1}}% +} +% \end{macrocode} +% \end{macro} +% line spacing +% \begin{macrocode} +\RequirePackage{setspace} +\onehalfspacing +% \end{macrocode} +% header +% \begin{macrocode} +\RequirePackage{fancyhdr} +\pagestyle{fancy} +\fancyhf{} +% \end{macrocode} +% header logo and page numbers +% \begin{macrocode} +\setlength\headheight{13mm} +\renewcommand{\headrulewidth}{0pt} +\lhead{\includegraphics[height=11mm]{vutinf-logo.pdf}} +\rhead{\ifthenelse{\value{page}=1}{}{Seite \thepage|\pageref*{LastPage}\\}} +\lfoot{} +\cfoot{} +\rfoot{} +% \end{macrocode} +% no indentation at line start +% \begin{macrocode} +\setlength{\parindent}{0cm} +% \end{macrocode} +% +% \begin{environment}{dummyEnv} +% This is a dummy environment. If it did anything, we'd describe its +% implementation here. +% \begin{macrocode} +\newenvironment{dummyEnv}{% +}{% +% \end{macrocode} +% \changes{v1.00a}{2020/01/31}{Added a spurious change log entry to +% show what a change \emph{within} an environment definition looks +% like.} +% Don't use |%| to introduce a code comment within a |macrocode| +% environment. Instead, you should typeset all of your comments with +% LaTeX---doing so gives much prettier results. For comments within a +% macro/environment body, just do an |\end{macrocode}|, include some +% commentary, and do another |\begin{macrocode}|. It's that simple. +% \begin{macrocode} +} +% \end{macrocode} +% \end{environment} +% +% \begin{macrocode} +\endinput +%</class> +% \end{macrocode} +%\Finale |
