From f8d159fa556763f431ce7d024cb4dc92df50de41 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 16 Aug 2016 21:46:19 +0000 Subject: phfquotetext (16aug16) git-svn-id: svn://tug.org/texlive/trunk@41869 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/phfquotetext/phfquotetext.sty | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/phfquotetext/phfquotetext.sty (limited to 'Master/texmf-dist/tex/latex/phfquotetext') diff --git a/Master/texmf-dist/tex/latex/phfquotetext/phfquotetext.sty b/Master/texmf-dist/tex/latex/phfquotetext/phfquotetext.sty new file mode 100644 index 00000000000..fc99c5253f3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/phfquotetext/phfquotetext.sty @@ -0,0 +1,66 @@ +%% +%% This is file `phfquotetext.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% phfquotetext.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2016 by Philippe Faist +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (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. +%% +\NeedsTeXFormat{LaTeX2e}[2005/12/01] +\ProvidesPackage{phfquotetext} + [2016/08/15 v1.0 phfquotetext package] +\newcommand\quotetextcatcodedefs{} +\newcommand\quotetextstart{} +\newcommand\quotetextend{} +\newcommand\quotetextfont{\ttfamily} +\newenvironment{quotetext}{% + \quotetextstart% + \begingroup% + \phfquotetext@warg% +} +{% + \quotetextend% +} +\begingroup + \catcode`|=0 + \catcode`\<=1 + \catcode`\>=2 + \catcode`\{=12 + \catcode`\}=12 + \catcode`\\=12 + |long|gdef|phfquotetext@warg@#1\end{quotetext}<|endgroup + |phfquotetext@show<#1>> +|endgroup +\newtoks\qtt@mytoks +\long\def\phfquotetext@show#1{% + \qtt@mytoks={#1}% + \begingroup% + \expandafter\quotetextfont\expandafter{\the\qtt@mytoks}% + \endgroup% + \end{quotetext}% +} +\def\phfquotetext@warg{% + % + \let\do\@makeother% + \dospecials% + \catcode`\ =10\relax% keep space + \quotetextcatcodedefs% + \phfquotetext@warg@% +} +\endinput +%% +%% End of file `phfquotetext.sty'. -- cgit v1.2.3