Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian.jauslin@roma1.infn.it>2016-01-12 22:22:07 +0000
committerIan Jauslin <ian.jauslin@roma1.infn.it>2016-01-12 22:22:07 +0000
commit2171672c2e5dab9b4e512a8120f917f2a5fdb473 (patch)
tree15c2d70c489638cbf9dc62980bebc87b7c5dac7a /toolbox.sty
As presented at Copenhagen University on 2016-01-13v1.0
Diffstat (limited to 'toolbox.sty')
-rw-r--r--toolbox.sty32
1 files changed, 32 insertions, 0 deletions
diff --git a/toolbox.sty b/toolbox.sty
new file mode 100644
index 0000000..04c8acd
--- /dev/null
+++ b/toolbox.sty
@@ -0,0 +1,32 @@
+%%
+%% A collection of useful commands
+%%
+
+%% can call commands even when they are not defined
+\def\safe#1{%
+\ifdefined#1%
+#1%
+\else%
+{\color{red}\bf?}%
+\fi%
+}
+
+
+%% larger skip
+\newskip\hugeskipamount
+ \hugeskipamount=24pt plus8pt minus8pt
+\def\hugeskip{\vskip\hugeskipamount}
+
+
+%% stack relations in subscript or superscript
+\def\mAthop#1{\displaystyle\mathop{\scriptstyle #1}}
+
+%% array spanning the entire line
+\newlength\largearray@width
+\setlength\largearray@width\textwidth
+\addtolength\largearray@width{-10pt}
+\def\largearray{\begin{array}{@{}>{\displaystyle}l@{}}\hphantom{\hspace{\largearray@width}}\\[-.5cm]}
+\def\endlargearray{\end{array}}
+
+%% qedsquare
+\def\qed{\penalty10000\hfill\penalty10000$\square$}