From 73f5279fe5a5e0a37bd9bd41630f4fc97427605d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sun, 19 Feb 2017 20:27:02 +0100 Subject: Made this a proper documented package --- Makefile | 13 +++- gpcfhw.cls | 105 ----------------------------- gpcfhw.dtx | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gpcfhw.ins | 26 ++++++++ gpcfmac.dtx | 216 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gpcfmac.ins | 26 ++++++++ 6 files changed, 483 insertions(+), 106 deletions(-) delete mode 100644 gpcfhw.cls create mode 100644 gpcfhw.dtx create mode 100644 gpcfhw.ins create mode 100644 gpcfmac.dtx create mode 100644 gpcfmac.ins diff --git a/Makefile b/Makefile index 3a4fe16..30c9235 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,15 @@ -install : gpcfhw.cls +gpcfhw.cls : + yes | latex gpcfhw.ins +gpcfmac.sty : + yes | latex gpcfmac.ins +install : clean gpcfhw.cls gpcfmac.sty mkdir -p ~/texmf/tex/latex/gpcfhw/ + mkdir -p ~/texmf/tex/latex/gpcfmac/ + cp gpcfmac.sty ~/texmf/tex/latex/gpcfmac/ cp gpcfhw.cls ~/texmf/tex/latex/gpcfhw/ texhash ~/texmf +clean : + rm -f *.aux *.idx *.glo *.log *.pdf *.sty *.cls *.ind *.ilg *.gls +doc : + pdflatex gpcfmac.dtx + pdflatex gpcfhw.dtx diff --git a/gpcfhw.cls b/gpcfhw.cls deleted file mode 100644 index 4a5d36b..0000000 --- a/gpcfhw.cls +++ /dev/null @@ -1,105 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesClass{gpcfhw}[2016/11/02 GPCF Homework Class] - -\LoadClass{article} -\RequirePackage{beton} -\RequirePackage{eulervm} -\RequirePackage{amsmath} -\RequirePackage[utf8]{inputenc} -\RequirePackage[T1]{fontenc} -\RequirePackage[ngerman]{babel} -\RequirePackage{amsthm} -%\RequirePackage{palatino} -%\RequirePackage{euler} -\RequirePackage[activate]{pdfcprot} -\RequirePackage[left=2.3cm, right=6.7cm, bottom=2cm]{geometry} -\RequirePackage{amssymb} -%\title{1. Hausaufgabe} -\RequirePackage{fancyhdr} -\RequirePackage{totcount} -\RequirePackage{tikz} -\RequirePackage{calc} -\pagestyle{fancy} - -\renewcommand{\headrulewidth}{0.1pt} -\date{} -\newtheorem{thm}{Satz} -\newtheorem{lem}{Lemma} -\newtotcounter{exc} % Counter that is incremented with every solution. -\newcommand{\thehanr}{} -\newcommand{\authori}{} -\newcommand{\authork}{} -\newcommand{\mati}{} -\newcommand{\matk}{} -\newcommand{\thetutorium}{} -\lhead{\authori} -\rhead{\authork} - -\chead{\thehanr. Hausaufgabe} -\newcommand{\hanr}[1]{\renewcommand{\thehanr}{#1} - \title{\thehanr. Hausaufgabe}} -\newcommand{\theex}{\thehanr.\arabic{exc}} -\renewcommand{\theequation}{\fnsymbol{equation}} -\newcommand{\aufgabe}{\stepcounter{exc}\section*{Aufgabe \theex}} -\newcommand{\bonusaufgabe}{\stepcounter{exc}\section*{Bonusaufgabe \theex}} -\newcommand{\authors}[2]{\renewcommand{\authori}{#1}\renewcommand{\authork}{#2}} -\newcommand{\mats}[2]{\renewcommand{\mati}{#1}\renewcommand{\matk}{#2}} -\newcommand{\tutorium}[1]{\renewcommand{\thetutorium}{#1}} -\newcommand{\inv}{^{-1}} -\newcommand{\Id}{\text{Id}} -\newcounter{k} -\let\implies\Rightarrow -\let\iff\Leftrightarrow -\newtheorem{bem}{Bemerkung} -\displaywidowpenalty=1000 -\DeclareUnicodeCharacter{2227}{\land} -\DeclareUnicodeCharacter{21D2}{\implies} -\DeclareUnicodeCharacter{2208}{\in} -\newcommand{\N}{\mathbb{N}} -\newcommand{\R}{\mathbb{R}} -\newcommand{\Z}{\mathbb{Z}} -\newcommand{\I}{\mathcal{I}} -\newcommand{\PM}{\mathcal{P}} -\renewcommand{\epsilon}{\varepsilon} -\renewcommand{\leq}{\leqslant} -\renewcommand{\geq}{\geqslant} -\mathchardef\arr="017E % character 7E from textfont 1 is the vector arrow -\renewcommand\vec[1]{\setbox0=\hbox{$#1$}\lower2ex\hbox to 0pt{\hbox to \wd0{\hss$\arr\;$\hss}\hss}\box0} -\renewcommand*\descriptionlabel[1]{\hspace\labelsep - \normalfont\it #1} -\newcommand{\bigline}{\mbox{\vline height 0.4cm depth 1cm}} -\renewcommand{\bfseries}{\rm} -\renewcommand{\maketitle}{ - \newpage - \thispagestyle{plain} - \vspace{-2cm} - {\centering \Large \bf \@title \par} - \noindent\authori \hfill \mati \\ - \noindent\authork \hfill \matk \\ - \noindent Tutorium: \hfill \thetutorium - \vspace{1cm}} -\newcommand{\exctable}{ - \par\noindent\vspace{0.5cm}\bigline\foreach \n in {1, ..., \totvalue{exc}} {% - \hfill\n\hfill\bigline% -} \hfill$\Sigma$\mbox{}\hfill\mbox{}\bigline\\% -\vspace{-2.4cm}\\\mbox{}\hrulefill\\\vspace{1cm} -\vspace{-1.3cm}\\\mbox{}\hrulefill\\ -\vspace{-0.1cm}\\\mbox{}\hrulefill\\\vspace{1cm} -} -% \newcommand{\exctable}{ -% \begin{tabular}{c | c | c | c | c | c | c | c | c | c | c | c | c | -% c | c} - -% \pgfplotsforeachungrouped \i in {1..\totvalue{exc}} e{\i&} -% \end{tabular}} -% \newcommand{\samp}{&} -% % % \begin{tikzpicture} -% % % \foreach \n in {1,...,\totvalue{exc}}{ -% % % \draw (\n,0) -- (\n,-2); -% % % \draw (\n+0.5,0) label above \n} -% % % \end{tikzpicture} -% \valign{\hrule\vskip 2pt plus 1fil\hbox{\strut\quad ##\quad}\vfill& -% \hrule\vskip 2pt plus 1 fil \hbox{\strut\quad ##\quad} -% \vskip 1pt plus 1fil\hrule\cr -% \foreach \n in {1, ..., \totvalue{exc}} {\n& \cr\noalign{\vrule}}} -% } \ No newline at end of file diff --git a/gpcfhw.dtx b/gpcfhw.dtx new file mode 100644 index 0000000..6e14bec --- /dev/null +++ b/gpcfhw.dtx @@ -0,0 +1,203 @@ +\iffalse meta-comment +Copyright (C) hyear i by hyour namei +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or (at your option) any later +version. The latest version of this license is in: +http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of +LaTeX version 2005/12/01 or later. +\fi +% \iffalse +%\NeedsTeXFormat{LaTeX2e} +%\ProvidesClass{gpcfhw}[2016/11/22 GPCF Macros] +%\LoadClass{article} +%%\RequirePackage{beton} +%%\RequirePackage{eulervm} +%\RequirePackage{amsmath} +%\RequirePackage[utf8]{inputenc} +%\RequirePackage[T1]{fontenc} +%\RequirePackage[ngerman]{babel} +%\RequirePackage{amsthm} +%\RequirePackage[activate]{pdfcprot} +%\RequirePackage[left=2.3cm, right=6.7cm, bottom=2cm]{geometry} +%\RequirePackage{amssymb} +%\RequirePackage{fancyhdr} +%\RequirePackage{totcount} +%\RequirePackage{tikz} +%\RequirePackage{calc} +%\RequirePackage{gpcfmac} + + +%<*driver> +\documentclass{ltxdoc} +\usepackage[ngerman]{babel} +\usepackage{gpcfmac} +\usepackage{pgffor} +\newcommand{\bigline}{\mbox{\vline height 0.45cm depth 1cm}} +\newcommand{\exctaable}{ + \par\noindent\vspace{0.5cm}\bigline\foreach \n in {1, ..., 5} {% + \hfill\n\hfill\bigline% +} \hfill$\Sigma$\mbox{}\hfill\mbox{}\bigline\\% +\vspace{-2.4cm}\\\mbox{}\hrulefill\\\vspace{1cm} +\vspace{-1.2cm}\\\mbox{}\hrulefill\\ +\vspace{-0.0cm}\\\mbox{}\hrulefill\\\vspace{1cm} +} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} +\DocInput{gpcfhw.dtx} +\PrintIndex +\end{document} +% +% \fi +% +% \CheckSum{0} +% +% \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 \~} +% +% \changes{v1.0}{2016/11/22}{Erste Version} +% +% \GetFileInfo{gpcfhw.sty} +% +% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ ,\newcommand} +% \title{\texttt{gpcfhw} -- Klasse für Mathematikhausaufgaben} +% +% \author{Gabriel Pérez-Cerezo \texttt{gabriel@gpcf.eu}} +% \maketitle +% +%\section{Nutzung} +% +% +%\subsection{Einrichtung des Dokuments} +% +%\DescribeMacro{\hanr}\marg{Nummer} \verb|\hanr| setzt die +%Hausaufgabennummer. Nutzung: \verb|\hanr|\marg{Nummer}. +% +% +%\DescribeMacro{\authors}\marg{Autor1}\marg{Autor2} Mit dem +%\verb|\authors|-Befehl werden die Autoren des Dokuments +%angegeben. \texttt{gpcfhw} ist derzeit darauf ausgelegt, dass jedes +%Dokument genau zwei Autoren besitzt. Beispiel: +%\begin{verbatim} +% \authors{Max Mustermann}{Slartibartfast} +%\end{verbatim} + +%\DescribeMacro{\mats}\marg{Autor1}\marg{Autor2} Mit dem Befehl +%\verb|\mats| gibt man die Matrikelnummern der Autoren an. Zum +%Beispiel: +% \begin{verbatim} +% \mats{000123}{123954} +% \end{verbatim} +% +%\DescribeMacro{\maketitle} Wie sonst auch, generiert +% \verb|\maketitle| den Titel des Dokuments. Bei \texttt{gpcfhw} wird +% zusätzlich noch eine Tabelle eingetragen, die die Punktzahlen +% enthält. Sie sieht ungefähr so aus und enthält automatisch für jede +% Aufgabe ein eigenes Kästchen. +% +% \vspace{0.1cm} +% \exctaable +% +% \subsection{Macros im Dokument} +% \DescribeMacro{\aufgabe}\DescribeMacro{\bonusaufgabe} Mit dem Macro +% \verb|\aufgabe| signalisiert man, dass man die nächste Aufgabe +% beginnen möchte. Analog existiert \verb|\bonusaufgabe|, damit +% markiert man, dass man eine Zusatzaufgabe beginnen möchte. +% \section{Quellcode} +% \subsection{Ästhetische Aspekte} +% \subsubsection{Setzen der Kopfzeile} +% \begin{macrocode} +\pagestyle{fancy} +\renewcommand{\headrulewidth}{0.1pt} +\lhead{\authori} +\rhead{\authork} +\chead{\thehanr. Hausaufgabe} +% \end{macrocode} +%\subsubsection{Umdefinitionen} +%Nun werden die Pfeilsymbole aus Ästhetischen Gründen umdefiniert, +%sowie das Epsilon. +%\begin{macrocode} +\let\implies\Rightarrow +\let\iff\Leftrightarrow +\renewcommand{\epsilon}{\varepsilon} +% +\displaywidowpenalty=1000 + +\date{} +\newtheorem{thm}{Satz} +\newtheorem{lem}{Lemma} +\newtotcounter{exc} % Counter that is incremented with every solution. +\newcommand{\thehanr}{} +\newcommand{\authori}{} +\newcommand{\authork}{} +\newcommand{\mati}{} +\newcommand{\matk}{} +\newcommand{\thetutorium}{} +\newcommand{\hanr}[1]{\renewcommand{\thehanr}{#1} + \title{\thehanr. Hausaufgabe}} +\newcommand{\theex}{\thehanr.\arabic{exc}} +\renewcommand{\theequation}{\fnsymbol{equation}} +\newcommand{\aufgabe}{\stepcounter{exc}\section*{Aufgabe \theex}} +\newcommand{\bonusaufgabe}{\stepcounter{exc}\section*{Bonusaufgabe \theex}} +\newcommand{\authors}[2]{\renewcommand{\authori}{#1}\renewcommand{\authork}{#2}} +\newcommand{\mats}[2]{\renewcommand{\mati}{#1}\renewcommand{\matk}{#2}} +\newcommand{\tutorium}[1]{\renewcommand{\thetutorium}{#1}} +\newcounter{k} +\newtheorem{bem}{Bemerkung} +\renewcommand*\descriptionlabel[1]{\hspace\labelsep + \normalfont\it #1} +\newcommand{\bigline}{\mbox{\vline height 0.4cm depth 1cm}} + +\newcommand{\exctaable}{ + \par\noindent\vspace{0.5cm}\bigline\foreach \n in {1, ..., \totvalue{exc}} {% + \hfill\n\hfill\bigline% +} \hfill$\Sigma$\mbox{}\hfill\mbox{}\bigline\\% +\vspace{-2.4cm}\\\mbox{}\hrulefill\\\vspace{1cm} +\vspace{-1.2cm}\\\mbox{}\hrulefill\\ +\vspace{-0.0cm}\\\mbox{}\hrulefill\\\vspace{1cm} +} + +\renewcommand{\bfseries}{\rm} +\newcommand{\exct@ble}{ + \par\noindent\vspace{0.5cm}\bigline\foreach \n in {1, ..., \totvalue{exc}} {% + \hfill\n\hfill\bigline% +} \hfill$\Sigma$\mbox{}\hfill\mbox{}\bigline\\% +\vspace{-2.4cm}\\\mbox{}\hrulefill\\\vspace{1cm} +\vspace{-1.3cm}\\\mbox{}\hrulefill\\ +\vspace{-0.1cm}\\\mbox{}\hrulefill\\\vspace{1cm} +} +\renewcommand{\exct@ble}{\exctaable} +\newcommand{\exctable}{} +\renewcommand{\maketitle}{ + \newpage + \thispagestyle{plain} + \vspace{-2cm} + {\centering \Large \bf \@title \par} + \noindent\authori \hfill \mati \\ + \noindent\authork \hfill \matk \\ + \noindent Tutorium: \hfill \thetutorium + \vspace{1cm} +\exct@ble} + +% \end{macrocode} +% \endinput +% Local Variables: +% mode: doctex +% TeX-master: t +% End: diff --git a/gpcfhw.ins b/gpcfhw.ins new file mode 100644 index 0000000..c8d8b4b --- /dev/null +++ b/gpcfhw.ins @@ -0,0 +1,26 @@ +%% Copyright (C) 2016 Gabriel Pérez-Cerezo + +%% This file may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 of this +%% license or (at your option) any later version. The latest version +%% of this license is in: http://www.latex-project.org/lppl.txt and +%% version 1.3 or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. + +\input docstrip.tex +\keepsilent +\usedir{tex/latex/gpcfhw} +\preamble +This is a generated file. +Copyright (C) 2016 Gabriel Pérez-Cerezo +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or (at your option) any later +version. The latest version of this license is in: +http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of +LaTeX version 2005/12/01 or later. +\endpreamble + +\generate{\file{gpcfhw.cls}{\from{gpcfhw.dtx}{class}}} +\endbatchfile \ No newline at end of file diff --git a/gpcfmac.dtx b/gpcfmac.dtx new file mode 100644 index 0000000..8fa4da0 --- /dev/null +++ b/gpcfmac.dtx @@ -0,0 +1,216 @@ +\iffalse meta-comment +Copyright (C) hyear i by hyour namei +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or (at your option) any later +version. The latest version of this license is in: +http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of +LaTeX version 2005/12/01 or later. +\fi +% \iffalse +%\NeedsTeXFormat{LaTeX2e} +%\ProvidesPackage{gpcfmac}[2016/11/22 GPCF Macros] +%\RequirePackage{amsmath} +%\RequirePackage[utf8]{inputenc} +%\RequirePackage{amssymb} + +%<*driver> +\documentclass{ltxdoc} +\usepackage[ngerman]{babel} +\usepackage{gpcfmac} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} +\DocInput{gpcfmac.dtx} +\PrintIndex +\end{document} +% +% \fi +% +% \CheckSum{0} +% +% \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 \~} +% +% \changes{v1.0}{2016/11/22}{Erste Version} +% +% \GetFileInfo{gpcfmac.sty} +% +% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ ,\newcommand} +% +% +% \title{\texttt{gpcfmac} -- Macros für Mathematikhausaufgaben} +% +% \author{Gabriel Pérez-Cerezo \texttt{gabriel@gpcf.eu}} +% \maketitle +% +% +%\section{Nutzung} +%\subsection{Befehle für Folgen} +% \DescribeMacro{\flg} +% \DescribeMacro{\uflg} +% \DescribeMacro{\gflg} Diese Befehle stellen folgen +% dar. \verb|$\flg{a}$| gibt $\flg a$ aus und wird verwendet, um +% normale Folgen darzustellen. \verb|\uflg{a}| ist die Folge der +% ungeraden Glieder von $\flg a$, dargestellt durch $\uflg a$ und +% \verb|\gflg{a}| ist die Folge der geraden Glieder von $\flg a$, +% dargestellt durch $\gflg a$. + +% \DescribeMacro{\tflg} \verb|\tflg| wird +% verwendet, um beliebige Folgen zu setzen, auch mit von $n$ +% abweichenden Indizes, solange die Indizes über alle natürlichen +% Zahlen laufen. \verb|$\tflg{a_{n_k}}{k}$| gibt zum Beispiel +% $\tflg{a_{n_k}}k$ aus. + +% \subsection{Macros für Grenzwerte} +% +% \DescribeMacro{\limu} +% \DescribeMacro{\limiu} +% \DescribeMacro{\limsu} +% \texttt{gpcfmac} definiert einige häufig verwendete Macros für +% Grenzwerte gegen unendlich. \verb$\limu a_n$ liefert +%\begin{equation*} +% \limu a_n, +%\end{equation*} \verb|\limiu a_n| liefert +%\begin{equation*} +% \limiu a_n +%\end{equation*} +% und \verb|\limsu a_n| liefert schließlich +%\begin{equation*} +% \limsu a_n. +%\end{equation*} +% +% \subsection{Mengensymbole} +% \DescribeMacro{\N} +% \DescribeMacro{\Z} +% \DescribeMacro{\Q} +% \DescribeMacro{\R} +% \DescribeMacro{\C} +% \DescribeMacro{\I} +% \DescribeMacro{\PM} +% Diese Befehle liefern die Symbole zu Mengen. +% +% \begin{tabular}{c c} +% Eingabe & Ausgabe\\ +% \verb|\N|&$\N$\\ +% \verb|\Z|&$\Z$\\ +% \verb|\Q|&$\Q$\\ +% \verb|\R|&$\R$\\ +% \verb|\C|&$\C$\\ +% \verb|\I|&$\I$\\ +% \verb|\PM|&$\PM$ +% \end{tabular} +% +% $\I$ ist als Symbol für eine generische Indexmenge gedacht und +% $\PM$ ist als das Symbol für die Potenzmenge gedacht, zum Beispiel +% in $\PM(\N)$ +% +% \DescribeMacro{\Gl} Der Befehl \verb|\Gl| bezeichnet die Gruppe der +% invertierbaren Matrizen, zum Beispiel, die Gruppe der Invertierbaren +% $n\times n$-Matrizen über einem Körper $K$ würde durch +% \verb|$\Gl_n(K)$|, formatiert $\Gl_n(K)$ gegeben werden. +% +% \DescribeMacro{\nozero} Der Befehl \verb|\nozero| ist dazu gedacht, +% um die Null aus Mengen auszuschließen. Zum Beispiel wird $\R\nozero$ +% durch den Befehl \verb|$\R\nozero$| produziert. +% +% \subsection{Diverse Kurzschreibweisen} +% \DescribeMacro{\inv} Der Befehl \verb|\inv| setzt die Inverse zu +% einem davorstehenden Element, zum Beispiel wird \verb|$A\inv$| als +% $A\inv$ formatiert. +% +% \DescribeMacro{\Id} Der Befehl \verb|\Id| beschreibt die +% Identitätsabbildung. Er wird standardmäßig in Serifenschrift +% gesetzt, siehe $\Id$. +% +% \DescribeMacro{\conj} Der Befehl \verb|\conj| setzt die +% komplex konjugierte einer Zahl. Dies kann auch über beliebig viele +% Zahlen geschehen. Zum Beispiel wird \verb|$\conj{a}$| als $\conj a$ +% gesetzt, \verb|$\conj{a+b\conj{c}}$| als $\conj{a+b\conj{c}}$. +% +% \DescribeMacro{\eqund}\DescribeMacro{\eqbzw} Diese Befehle +% Setzen ``und'' bzw. ``bzw.'' zwischen zwei Terme in einer +% \verb|equation|-Umgebung oder ähnlichem. Zum Beispiel liefert +% \begin{verbatim} +% \begin{equation*} +% \limu a_n = a \eqund \limsu a_n = a +% \end{equation*} +% \end{verbatim} +% den Text +% \begin{equation*} +% \limu a_n = a \eqund \limsu a_n = a +% \end{equation*} +% +% Analog liefert +% \begin{verbatim} +% \begin{equation*} +% \limu a_n = a \eqbzw \limsu a_n = a +% \end{equation*} +% \end{verbatim} +% den Text +% \begin{equation*} +% \limu a_n = a \eqbzw \limsu a_n = a +% \end{equation*} +% \section{Quellcode} + +% \begin{macrocode} +\newcommand{\inv}{^{-1}} +\newcommand{\Id}{\text{Id}} +\DeclareUnicodeCharacter{2227}{\land} +\DeclareUnicodeCharacter{21D2}{\implies} +\DeclareUnicodeCharacter{2208}{\in} +\newcommand{\N}{\mathbb{N}} +\newcommand{\R}{\mathbb{R}} +\newcommand{\Q}{\mathbb{Q}} +\newcommand{\C}{\mathbb{C}} +\newcommand{\Z}{\mathbb{Z}} +\newcommand{\I}{\mathcal{I}} +\newcommand{\PM}{\mathcal{P}} +\newcommand{\nozero}{\!\setminus\!\{0\}} + +\newcommand{\Gl}{{\rm Gl}} % GL_n groups +\newcommand{\conj}[1]{\overline{#1}} +\newcommand{\Rang}{{\rm Rang}} +% Mengen ohne \{0\} +\renewcommand{\leq}{\leqslant} +\renewcommand{\geq}{\geqslant} +%% Befehle für Folgen +\newcommand{\flg}[1]{\ensuremath \left(#1_n\right)_{n\in\N}} +\newcommand{\tflg}[2]{\ensuremath \left(#1\right)_{#2\in\N}} +\newcommand{\uflg}[1]{(#1_{2n+1})_{n\in\N}} +\newcommand{\gflg}[1]{(#1_{2n})_{n\in\N}} +\newcommand{\limu}{\lim_{n\to\infty}} +\newcommand{\limsu}{\limsup_{n\to\infty}} +\newcommand{\limiu}{\liminf_{n\to\infty}} +% Und in Gleichungen +\newcommand{\eqund}{\quad\text{und}\quad} +\newcommand{\eqbzw}{\quad\text{bzw.}\quad} +\DeclareMathOperator{\sgn}{sgn} +\DeclareMathOperator{\adj}{Adj} +\DeclareMathOperator{\spur}{Spur} +\DeclareMathOperator{\Kern}{Kern} +\DeclareMathOperator{\Bild}{Bild} +\DeclareMathOperator{\Span}{Span} +\DeclareMathOperator{\Grad}{Grad} +% \end{macrocode} +% \Finale +% \endinput +% Local Variables: +% mode: doctex +% TeX-master: t +% End: diff --git a/gpcfmac.ins b/gpcfmac.ins new file mode 100644 index 0000000..ab7461c --- /dev/null +++ b/gpcfmac.ins @@ -0,0 +1,26 @@ +%% Copyright (C) 2016 Gabriel Pérez-Cerezo + +%% This file may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 of this +%% license or (at your option) any later version. The latest version +%% of this license is in: http://www.latex-project.org/lppl.txt and +%% version 1.3 or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. + +\input docstrip.tex +\keepsilent +\usedir{tex/latex/gpcfmac} +\preamble +This is a generated file. +Copyright (C) 2016 Gabriel Pérez-Cerezo +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or (at your option) any later +version. The latest version of this license is in: +http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of +LaTeX version 2005/12/01 or later. +\endpreamble + +\generate{\file{gpcfmac.sty}{\from{gpcfmac.dtx}{package}}} +\endbatchfile \ No newline at end of file -- cgit v1.2.3