From 21d6eea48d90d26eb515396b9660ebbbf1a14dfd Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 23 May 2019 13:14:19 +0200 Subject: [PATCH] Add new shortcut for textsuperscript and textsubscript command --- shortcuts/shortcuts.sty | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shortcuts/shortcuts.sty b/shortcuts/shortcuts.sty index 020bee5..e3198b7 100644 --- a/shortcuts/shortcuts.sty +++ b/shortcuts/shortcuts.sty @@ -60,6 +60,15 @@ {C'est-à-dire} } +% textsuperscript and textsubscript +\NewDocumentCommand \tup { g } { + \textsuperscript{#1} +} + +\NewDocumentCommand \tub { g } { + \textsubscript{#1} +} + % smileys \NewDocumentCommand \wink { } { {\DejaVuSans 😉}