diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-05 23:23:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-05 23:23:06 +0000 |
commit | 753a6b250327f75c0f4c6f5a77902be78a2d404f (patch) | |
tree | a242bdb2118b2385de39b0f40145f031dda1607c /Master/texmf-dist/tex/latex/newverbs | |
parent | 9b5e953d3b9474631ef0f47d624224e3840f14d8 (diff) |
new latex package newverbs (5apr10)
git-svn-id: svn://tug.org/texlive/trunk@17721 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/newverbs')
-rw-r--r-- | Master/texmf-dist/tex/latex/newverbs/newverbs.sty | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/newverbs/newverbs.sty b/Master/texmf-dist/tex/latex/newverbs/newverbs.sty new file mode 100644 index 00000000000..904aa1e99be --- /dev/null +++ b/Master/texmf-dist/tex/latex/newverbs/newverbs.sty @@ -0,0 +1,58 @@ +%% +%% This is file `newverbs.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% newverbs.dtx (with options: `package') +%% +%% Copyright (c) 2010 by Martin Scharrer <martin@scharrer-online.de> +%% WWW: http://latex.scharrer-online.de/ +%% +%% This work 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. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Martin Scharrer. +%% +%% This work consists of the files newverbs.dtx and newverbs.ins +%% and the derived file newverbs.sty. +%% +%% $Id: newverbs.dtx 1816 2010-04-05 18:03:28Z martin $ +\ProvidesPackage{newverbs} + [2010/04/05 v1.0 Define new 'verb' commands and short verb. characters] +\newcommand*\newverbcommand{\new@verbcommand\newcommand} +\newcommand*\renewverbcommand{\new@verbcommand\renewcommand} +\newcommand*\provideverbcommand{\new@verbcommand\providecommand} +\def\new@verbcommand#1#2#3#4{% + #1*#2{% + \begingroup + \newverbcommand@settings + \def\verb@egroup{\verb@orig@egroup#4\endgroup}% + #3\verb + }% +} +\def\newverbcommand@settings{% + \let\verb@orig@egroup\verb@egroup + \let\verbbox\@tempboxa +} +\provideverbcommand{\qverb}{\qverbbeginquote}{\qverbendquote} +\def\qverbbeginquote{`} +\def\qverbendquote{'} +\newverbcommand{\fverb} + {\setbox\verbbox\hbox\bgroup\color@setgroup} + {\color@endgroup\egroup\fbox{\box\verbbox}} +\newcommand*\MakeSpecialShortVerb[1]{% + \@ifstar + {\def\@shortvrbdef{#1*}\@MakeShortVerb}% + {\def\@shortvrbdef{#1}\@MakeShortVerb}% +} +\endinput +%% +%% End of file `newverbs.sty'. |