summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-14 21:40:33 +0000
committerKarl Berry <karl@freefriends.org>2016-07-14 21:40:33 +0000
commitf6512b3997a8ac7dd05b2bd15a0b70be17e8cab6 (patch)
tree1128f021af478087740857210b1405b2fefa669e /Master/texmf-dist/tex/latex/csquotes/csquotes.sty
parent8c9e308c574ea6a70bba4800eef52c37d19e14e2 (diff)
csquotes (14jul16)
git-svn-id: svn://tug.org/texlive/trunk@41696 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/csquotes/csquotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/csquotes/csquotes.sty30
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
index dead738f966..35ae4d6d31f 100644
--- a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
+++ b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{csquotes}
- [2016/01/31 v5.1g context-sensitive quotations (JAW)]
+ [2016/07/14 v5.1h context-sensitive quotations (JAW)]
%% Compatibility and requirements
@@ -25,7 +25,27 @@
{Outdated 'etoolbox' package}
{Upgrade to etoolbox v1.7 (2008/06/28) or later.\MessageBreak
I found: '\csuse{ver@etoolbox.sty}'.\MessageBreak
- This is a fatal error. I'm aborting now.}%
+ This is a fatal error. I'm aborting now.}%\documentclass{article}
+
+\usepackage{amsmath}
+\usepackage{xparse}
+\usepackage{xcolor}
+
+\NewDocumentCommand\MyMacro{k_}{%
+ \IfNoValueTF{#1}{%
+ \mathbf{A}
+ }{%
+ A_{\textcolor{red}{#1}}
+ }%
+}
+
+\begin{document}
+
+With a subscript: $\MyMacro_{\pi}$
+
+Without any subscript: $\MyMacro$
+
+\end{document}
\endinput}
\@ifpackageloaded{inputenc}
@@ -2254,13 +2274,13 @@
\newrobustcmd*{\fixligatures}{%
\ifhmode
\ifnum\spacefactor>3000
- \relax
+ \kern0pt
\else
\ifnum\spacefactor=1007
- \relax
+ \kern0pt
\else
\ifnum\spacefactor=1008
- \relax
+ \kern0pt
\fi
\fi
\fi