diff options
author | Karl Berry <karl@freefriends.org> | 2007-12-23 01:45:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-12-23 01:45:01 +0000 |
commit | 841463c39d1799ddc54c8530ed3580c82ec22b35 (patch) | |
tree | 96ee86988328b6b47b17770cf2b5bc90e54d03ce /Master/texmf-dist/tex/latex/quotmark/quotmark.sty | |
parent | 16687238a7df4f9c954d47458eb04dc7c7a56c82 (diff) |
new latex package quotmark (19dec07)
git-svn-id: svn://tug.org/texlive/trunk@5834 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/quotmark/quotmark.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/quotmark/quotmark.sty | 249 |
1 files changed, 249 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/quotmark/quotmark.sty b/Master/texmf-dist/tex/latex/quotmark/quotmark.sty new file mode 100644 index 00000000000..fbfdb4e5da8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/quotmark/quotmark.sty @@ -0,0 +1,249 @@ +%% +%% This is file `quotmark.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% quotmark.dtx (with options: `quotmark.sty,package') +%% +%% quotmark.dtx +%% Copyright 2007 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Nicola Talbot. +%% +%% This work consists of the files quotmark.dtx and quotmark.ins and the derived files quotmark.sty, quotmark-afrikaans.def, quotmark-brazil.def, quotmark-bulgarian.def, quotmark-catalan.def, quotmark-croatian.def, quotmark-czech.def, quotmark-danish.def, quotmark-dutch.def, quotmark-estonian.def, quotmark-finnish.def, quotmark-frenchb.def, quotmark-germanb.def, quotmark-greek.def, quotmark-hebrew.def, quotmark-icelandic.def, quotmark-irish.def, quotmark-italian.def, quotmark-magyar.def, quotmark-ngermanb.def, quotmark-norsk.def, quotmark-polish.def, quotmark-portuges.def, quotmark-romanian.def, quotmark-russianb.def, quotmark-serbian.def, quotmark-slovak.def, quotmark-slovene.def, quotmark-sorbian.def, quotmark-spanish.def, quotmark-swedish.def, quotmark-swiss.def, quotmark-turkish.def, quotmark-UKenglish.def, quotmark-ukraineb.def, quotmark-USenglish.def, quotmark-welsh.def. +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\NeedsTeXFormat{LaTeX2e}[1994/12/01] +\ProvidesPackage{quotmark}[2007/12/10 v1.0] +\newcommand*{\qt@marklist}{{\elqq}{\erqq},{\elq}{\erq}} +\newcommand*{\qt@mark@list}{} +\newcommand*{\currentleftquote}{\relax} +\newcommand*{\currentrightquote}{\relax} +\newcommand*{\qt@endpar}{} +\newcommand*{\qt@startpar}{\currentleftquote} +\newcommand*{\setquotemarks}[1]{\renewcommand*{\qt@marklist}{#1}% +\renewcommand*{\qt@mark@list}{}} +\newcommand*{\setparquotemarks}[2]{% +\renewcommand*{\qt@endpar}{#1}% +\renewcommand*{\qt@startpar}{#2}} +\newcommand*{\quotemarks@load@lang}[1]{% +\IfFileExists{quotmark-#1.def}{% + \@ifundefined{quotemarks#1}{\input{quotmark-#1.def}}{}% +}{\PackageError{quotmark}{Language `#1' not implemented}{% +File `quotmark-#1.def' does not exist.}}% +} +\@ifpackageloaded{babel}{% +\newcommand*{\setlanguagequotemarks}[1]{% +\edef\qt@setlangquotemarks{\noexpand\addto + \expandafter\noexpand\csname captions#1\endcsname + {\expandafter\noexpand\csname quotemarks#1\endcsname}}% +\qt@setlangquotemarks +} +}{% +\newcommand*{\setlanguagequotemarks}[1]{\csname quotemarks#1\endcsname} +} +\@ifpackageloaded{ngerman}{% +\quotemarks@load@lang{ngermanb}}{} +\DeclareOption{nonconformance}{} +\DeclareOption{conformance}{} +\DeclareOption{acadian}{\quotemarks@load@lang{frenchb}} +\DeclareOption{afrikaans}{\quotemarks@load@lang{afrikaans}} +\DeclareOption{american}{\quotemarks@load@lang{USenglish}} +\DeclareOption{austrian}{\quotemarks@load@lang{germanb}} +\DeclareOption{brazil}{\quotemarks@load@lang{brazil}} +\DeclareOption{brazilian}{\quotemarks@load@lang{brazil}} +\DeclareOption{british}{\quotemarks@load@lang{UKenglish}} +\DeclareOption{bulgarian}{\quotemarks@load@lang{bulgarian}} +\DeclareOption{canadian}{\quotemarks@load@lang{USenglish}} +\DeclareOption{canadien}{\quotemarks@load@lang{frenchb}} +\DeclareOption{catalan}{\quotemarks@load@lang{catalan}} +\DeclareOption{croatian}{\quotemarks@load@lang{croatian}} +\DeclareOption{czech}{\quotemarks@load@lang{czech}} +\DeclareOption{danish}{\quotemarks@load@lang{danish}} +\DeclareOption{dutch}{\quotemarks@load@lang{dutch}} +\DeclareOption{english}{\quotemarks@load@lang{USenglish}} +\DeclareOption{estonian}{\quotemarks@load@lang{estonian}} +\DeclareOption{finnish}{\quotemarks@load@lang{finnish}} +\DeclareOption{francais}{\quotemarks@load@lang{frenchb}} +\DeclareOption{french}{\quotemarks@load@lang{frenchb}} +\DeclareOption{frenchb}{\quotemarks@load@lang{frenchb}} +\DeclareOption{german}{\quotemarks@load@lang{germanb}} +\DeclareOption{germanb}{\quotemarks@load@lang{germanb}} +\DeclareOption{greek}{\quotemarks@load@lang{greek}} +\DeclareOption{polutonikogreek}{\quotemarks@load@lang{greek}} +\DeclareOption{hebrew}{\quotemarks@load@lang{hebrew}} +\DeclareOption{hungarian}{\quotemarks@load@lang{magyar}} +\DeclareOption{icelandic}{\quotemarks@load@lang{icelandic}} +\DeclareOption{irish}{\quotemarks@load@lang{irish}} +\DeclareOption{italian}{\quotemarks@load@lang{italian}} +\DeclareOption{lowersorbian}{\quotemarks@load@lang{sorbian}} +\DeclareOption{magyar}{\quotemarks@load@lang{magyar}} +\DeclareOption{naustrian}{\quotemarks@load@lang{ngermanb}} +\DeclareOption{ngerman}{\quotemarks@load@lang{ngermanb}} +\DeclareOption{norsk}{\quotemarks@load@lang{norsk}} +\DeclareOption{nynorsk}{\quotemarks@load@lang{norsk}} +\DeclareOption{polish}{\quotemarks@load@lang{polish}} +\DeclareOption{portuges}{\quotemarks@load@lang{portuges}} +\DeclareOption{portuguese}{\quotemarks@load@lang{portuges}} +\DeclareOption{romanian}{\quotemarks@load@lang{romanian}} +\DeclareOption{russian}{\quotemarks@load@lang{russianb}} +\DeclareOption{scottish}{\quotemarks@load@lang{UKenglish}} +\DeclareOption{serbian}{\quotemarks@load@lang{serbian}} +\DeclareOption{slovak}{\quotemarks@load@lang{slovak}} +\DeclareOption{slovene}{\quotemarks@load@lang{slovene}} +\DeclareOption{spanish}{\quotemarks@load@lang{spanish}} +\DeclareOption{swedish}{\quotemarks@load@lang{swedish}} +\DeclareOption{swiss}{\quotemarks@load@lang{swiss}} +\DeclareOption{turkish}{\quotemarks@load@lang{turkish}} +\DeclareOption{ukrainian}{\quotemarks@load@lang{ukraineb}} +\DeclareOption{uppersorbian}{\quotemarks@load@lang{sorbian}} +\DeclareOption{welsh}{\quotemarks@load@lang{welsh}} +\DeclareOption{UKenglish}{\quotemarks@load@lang{UKenglish}} +\DeclareOption{USenglish}{\quotemarks@load@lang{USenglish}} +\def\qtmk@languages{} +\@ifpackageloaded{babel}{% +\@for\qtmk@lang:=acadian,afrikaans,american,australian,austrian,% +bahasa,basque,brazil,brazilian,breton,british,bulgarian,canadian,% +canadien,catalan,croatian,czech,danish,dutch,english,% +estonian,finnish,francais,frenchb,french,galacian,german,germanb,% +greek,polutonikogreek,hebrew,hungarian,icelandic,irish,italian,% +lowersorbian,magyar,naustrian,ngerman,norsk,samin,% +nynorsk,polish,portuges,portuguese,romanian,russian,scottish,% +serbian,slovak,slovene,spanish,swedish,turkish,ukrainian,welsh,% +UKenglish,USenglish\do{% + \@ifundefined{captions\qtmk@lang}{}{% + \ifx\qtmk@languages\@empty + \edef\qtmk@languages{\qtmk@lang}% + \else + \expandafter\toks@\expandafter{\qtmk@languages}% + \edef\qtmk@languages{\the\toks@,\qtmk@lang}% + \fi + }% +}% +\expandafter\ExecuteOptions\expandafter{\qtmk@languages} +}{} +\ProcessOptions +\ProvideTextCommand{\elq}{OT1}{% + \textormath{\textquoteleft}{\mbox{\textquoteleft}}} +\ProvideTextCommand{\elq}{T1}{% + \textormath{\textquoteleft}{\mbox{\textquoteleft}}} +\ProvideTextCommandDefault{\elq}{\UseTextSymbol{OT1}\elq} +\ProvideTextCommand{\erq}{OT1}{% + \textormath{\textquoteright}{\mbox{\textquoteright}}} +\ProvideTextCommand{\erq}{T1}{% + \textormath{\textquoteright}{\mbox{\textquoteright}}} +\ProvideTextCommandDefault{\erq}{\UseTextSymbol{OT1}\erq} +\ProvideTextCommand{\elqq}{OT1}{% + \textormath{\textquotedblleft}{\mbox{\textquotedblleft}}} +\ProvideTextCommand{\elqq}{T1}{% + \textormath{\textquotedblleft}{\mbox{\textquotedblleft}}} +\ProvideTextCommandDefault{\elqq}{\UseTextSymbol{OT1}\elqq} +\ProvideTextCommand{\erqq}{OT1}{% + \textormath{\textquotedblright}{\mbox{\textquotedblright}}} +\ProvideTextCommand{\erqq}{T1}{% + \textormath{\textquotedblright}{\mbox{\textquotedblright}}} +\ProvideTextCommandDefault{\erqq}{\UseTextSymbol{OT1}\erqq} +\ProvideTextCommand{\glq}{OT1}{% + \textormath{\quotesinglbase}{\mbox{\quotesinglbase}}} +\ProvideTextCommand{\glq}{T1}{% + \textormath{\quotesinglbase}{\mbox{\quotesinglbase}}} +\ProvideTextCommandDefault{\glq}{\UseTextSymbol{OT1}\glq} +\ProvideTextCommand{\grq}{T1}{% + \textormath{\textquoteleft}{\mbox{\textquoteleft}}} +\ProvideTextCommand{\grq}{OT1}{% + \save@sf@q{\kern-.0125em% + \textormath{\textquoteleft}{\mbox{\textquoteleft}}% + \kern.07em\relax}} +\ProvideTextCommandDefault{\grq}{\UseTextSymbol{OT1}\grq} +\ProvideTextCommand{\glqq}{OT1}{% + \textormath{\quotedblbase}{\mbox{\quotedblbase}}} +\ProvideTextCommand{\glqq}{T1}{% + \textormath{\quotedblbase}{\mbox{\quotedblbase}}} +\ProvideTextCommandDefault{\glqq}{\UseTextSymbol{OT1}\glqq} +\ProvideTextCommand{\grqq}{T1}{% + \textormath{\textquotedblleft}{\mbox{\textquotedblleft}}} +\ProvideTextCommand{\grqq}{OT1}{% + \save@sf@q{\kern-.07em% + \textormath{\textquotedblleft}{\mbox{\textquotedblleft}}% + \kern.07em\relax}} +\ProvideTextCommandDefault{\grqq}{\UseTextSymbol{OT1}\grqq} +\ProvideTextCommand{\flqq}{OT1}{% + \textormath{\guillemotleft}{\mbox{\guillemotleft}}} +\ProvideTextCommand{\flqq}{T1}{% + \textormath{\guillemotleft}{\mbox{\guillemotleft}}} +\ProvideTextCommandDefault{\flqq}{\UseTextSymbol{OT1}\flqq} +\ProvideTextCommand{\frqq}{OT1}{% + \textormath{\guillemotright}{\mbox{\guillemotright}}} +\ProvideTextCommand{\frqq}{T1}{% + \textormath{\guillemotright}{\mbox{\guillemotright}}} +\ProvideTextCommandDefault{\frqq}{\UseTextSymbol{OT1}\frqq} +\ProvideTextCommand{\flq}{OT1}{% + \textormath{\guilsinglleft}{\mbox{\guilsinglleft}}} +\ProvideTextCommand{\flq}{T1}{% + \textormath{\guilsinglleft}{\mbox{\guilsinglleft}}} +\ProvideTextCommandDefault{\flq}{\UseTextSymbol{OT1}\flq} +\ProvideTextCommand{\frq}{OT1}{% + \textormath{\guilsinglright}{\mbox{\guilsinglright}}} +\ProvideTextCommand{\frq}{T1}{% + \textormath{\guilsinglright}{\mbox{\guilsinglright}}} +\ProvideTextCommandDefault{\frq}{\UseTextSymbol{OT1}\frq} +\providecommand*{\textormath}[2]{\ifmmode#2\else#1\fi} +\def\qt@getcurrentquotes{% + \ifx\qt@mark@list\@empty + \ifx\qt@marklist\@empty + \def\qt@marklist{{}{}}% + \fi + \expandafter\toks@\expandafter{\qt@marklist}% + \edef\qt@mark@list{\the\toks@,}% + \fi +\expandafter\qt@get@currentquotes\qt@mark@list\@nil +} +\def\qt@get@currentquotes#1#2,#3\@nil{% + \def\currentleftquote{#1}% + \def\currentrightquote{#2}% + \def\qt@mark@list{#3}% +} +\newcommand{\qt@beginquote}{% + \bgroup + \qt@getcurrentquotes + \let\qt@par=\par + \def\par{\qt@endpar\qt@par\qt@startpar}% + \currentleftquote +} +\newcommand*{\qt@endquote}{% + \qt@tmpcount=\spacefactor + \currentrightquote + \spacefactor=\qt@tmpcount + \egroup +} +\newcount\qt@tmpcount +\newenvironment{qt}{\qt@beginquote}{\qt@endquote} +\newcommand{\tqt}[1]{\qt@beginquote#1\qt@endquote} +\endinput +%% +%% End of file `quotmark.sty'. |