From 00076ea08ace90e5d76ff06db470c1be81449289 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 21 Nov 2010 23:52:20 +0000 Subject: new latex package dirtytalk 1.0 (22nov10) git-svn-id: svn://tug.org/texlive/trunk@20520 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/dirtytalk/dirtytalk.sty | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/dirtytalk/dirtytalk.sty (limited to 'Master/texmf-dist/tex/latex/dirtytalk') 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'. -- cgit v1.2.3