summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dirtytalk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-11-21 23:52:20 +0000
committerKarl Berry <karl@freefriends.org>2010-11-21 23:52:20 +0000
commit00076ea08ace90e5d76ff06db470c1be81449289 (patch)
treed3d1a9376aa5b6098db73b8c798d64e51e416fe3 /Master/texmf-dist/tex/latex/dirtytalk
parent0e1f49987ec2d778902462f0e37d9b47645eed74 (diff)
new latex package dirtytalk 1.0 (22nov10)
git-svn-id: svn://tug.org/texlive/trunk@20520 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dirtytalk')
-rw-r--r--Master/texmf-dist/tex/latex/dirtytalk/dirtytalk.sty73
1 files changed, 73 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/dirtytalk/dirtytalk.sty b/Master/texmf-dist/tex/latex/dirtytalk/dirtytalk.sty
new file mode 100644
index 00000000000..27327054dcd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/dirtytalk/dirtytalk.sty
@@ -0,0 +1,73 @@
+%%
+%% This is file `dirtytalk.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% dirtytalk.dtx (with options: `package')
+%%
+%% M. Klammler, 2010
+%%
+%% I, the copyright holder of this work, release the source code of the dirtytalk
+%% package as well as the accompaining documentation into the public domain. This
+%% applies worldwide.
+%%
+%% In some countries this may not be legally possible; if so: I grant anyone the
+%% right to use this work for any purpose, without any conditions, unless such
+%% conditions are required by law.
+%%
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{dirtytalk}[2010/11/21 A package making "quoting" easier]
+\RequirePackage{kvoptions}
+\newcommand{\dirtytalk@lqq}{``}
+\newcommand{\dirtytalk@rqq}{''}
+\newcommand{\dirtytalk@lq}{`}
+\newcommand{\dirtytalk@rq}{'}
+\DeclareStringOption{left}
+\DeclareStringOption{right}
+\DeclareStringOption{leftsub}
+\DeclareStringOption{rightsub}
+\ProcessKeyvalOptions*
+\RequirePackage{ifthen}
+\ifthenelse%
+ {\equal{\dirtytalk@left}{}}%
+ {}%
+ {\renewcommand{\dirtytalk@lqq}{\dirtytalk@left}}
+\ifthenelse%
+ {\equal{\dirtytalk@right}{}}%
+ {}%
+ {\renewcommand{\dirtytalk@rqq}{\dirtytalk@right}}
+\ifthenelse%
+ {\equal{\dirtytalk@leftsub}{}}%
+ {}%
+ {\renewcommand{\dirtytalk@lq}{\dirtytalk@leftsub}}
+\ifthenelse%
+ {\equal{\dirtytalk@rightsub}{}}%
+ {}%
+ {\renewcommand{\dirtytalk@rq}{\dirtytalk@rightsub}}
+\newcounter{dirtytalk@qdepth}
+\newcommand%
+ {\dirtytalk@lsymb}%
+ {\ifthenelse%
+ {\value{dirtytalk@qdepth}>1}%
+ {\dirtytalk@lq}%
+ {\dirtytalk@lqq}%
+ }%
+\newcommand{\dirtytalk@rsymb}%
+ {\ifthenelse%
+ {\value{dirtytalk@qdepth}>1}%
+ {\dirtytalk@rq}%
+ {\dirtytalk@rqq}%
+ }
+\providecommand{\say}[1]%
+ {%
+ \addtocounter{dirtytalk@qdepth}{1}%
+ \dirtytalk@lsymb%
+ #1%
+ \dirtytalk@rsymb%
+ \addtocounter{dirtytalk@qdepth}{-1}%
+ }
+\endinput
+%%
+%% End of file `dirtytalk.sty'.