From 40d949a3c4d2f3c9185ca563cf7641b006a43bf6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 17 Apr 2010 16:12:26 +0000 Subject: new latex package roundbox (14apr10) git-svn-id: svn://tug.org/texlive/trunk@17896 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/roundbox/README | 15 +++++ Master/texmf-dist/tex/latex/roundbox/roundbox.sty | 69 +++++++++++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-pictures.tlpsrc | 1 + Master/tlpkg/tlpsrc/roundbox.tlpsrc | 0 5 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/roundbox/README create mode 100644 Master/texmf-dist/tex/latex/roundbox/roundbox.sty create mode 100644 Master/tlpkg/tlpsrc/roundbox.tlpsrc diff --git a/Master/texmf-dist/doc/latex/roundbox/README b/Master/texmf-dist/doc/latex/roundbox/README new file mode 100644 index 00000000000..2a9bacbcf1f --- /dev/null +++ b/Master/texmf-dist/doc/latex/roundbox/README @@ -0,0 +1,15 @@ +_________________ +The roundbox package +v0.1 + +This package implements \roundbox command that can be used +for producing round boxes in LaTeX. + +General syntax: \roundbox{This is a test.} + +______________ +Vafa Khalighi +vafakh84@gmail.com + +Copyright 2010 +Distributed under the LaTeX Project Public License diff --git a/Master/texmf-dist/tex/latex/roundbox/roundbox.sty b/Master/texmf-dist/tex/latex/roundbox/roundbox.sty new file mode 100644 index 00000000000..d73fd7231dd --- /dev/null +++ b/Master/texmf-dist/tex/latex/roundbox/roundbox.sty @@ -0,0 +1,69 @@ +%% +%% This is file `roundbox.sty', + +%% +%% __________________________________ +%% Copyright © 2010 Vafa Khalighi +%% +%% License information appended. +%% +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{roundbox}[2010/04/14 v0.1 round boxes in LaTeX] +\def\vb@xt@{\vbox to} +\long\def\@roundbox#1{{\chardef\lub=\@ne \chardef\rub=\tw@ + \chardef\llb=\thr@@ \chardef\rlb=\f@ur + \ifdim\fboxrule > 0.4pt \let\cf=\tencircw \else \let\cf=\tencirc \fi + \boxmaxdepth\maxdimen + \setbox\@temprbox=\hbox{\hskip\hrboxsep#1\relax\hskip\hrboxsep}% + \setbox\z@=\hbox{\cf\char19}\@tempdima=0.5\wd\z@ \dimen@=\@tempdima + \advance\@tempdima\fboxrule + \setbox\lub\hb@xt@\dimen@{\cf\char19\hss}% + \setbox\llb\hb@xt@\dimen@{\cf\char18\hss}% + \setbox\rub\hb@xt@\@tempdima{\hskip\dimen@\cf\char16\hss}% + \setbox\rlb\hb@xt@\@tempdima{\hskip\dimen@\cf\char17\hss}% + \setbox\lub\vb@xt@ \z@{\vss\box\lub}% + \setbox\rub\vb@xt@ \z@{\vss\box\rub}% + \setbox\llb\vb@xt@ \@tempdima{\box\llb\vss}% + \setbox\rlb\vb@xt@ \@tempdima{\box\rlb\vss}% + \setbox\@temprbox=\vbox{\vskip \vrboxsep \box\@temprbox \vskip \vrboxsep}% + \setbox\@tempboxa\vbox{\offinterlineskip + \@dorowbox\lub\rub \dimen@=\ht\@temprbox + \advance\dimen@-\dp\lub \advance\dimen@-\ht\llb + \advance\dimen@-\dp\rub \advance\dimen@-\ht\rlb + \ifdim\dimen@ > \p@ + \hb@xt@\wd\@temprbox{\vrule \@width \fboxrule + \vb@xt@\dimen@{\dimen@=\wd\@temprbox + \advance\dimen@-2\fboxrule + \hb@xt@\dimen@{\hss}\vfill}\vrule \@width \fboxrule}\fi + \vss\@dorowbox\llb\rlb}% + \setbox\@tempboxa\hbox{{$\vcenter{\box\@tempboxa}$}}% + \setbox\@temprbox\hbox{{$\vcenter{\box\@temprbox}$}}% + \leavevmode\hbox to\wd\@temprbox{\box\@tempboxa\hss\box\@temprbox}% +}} +\long\def\roundbox#1{\@roundbox{\hbox{#1}}} +\def\@dorowbox#1#2{{\dimen@=\wd#1\advance\dimen@ \wd#2% + \advance\dimen@\fboxrule + \hb@xt@\wd\@temprbox{\box#1% + \ifdim\wd\@temprbox > \dimen@ \leaders\hrule \@height\fboxrule\hfill + \else \hss \fi \box#2}}} +\@ifundefined{vrboxsep}{\newdimen\vrboxsep\vrboxsep=7.2pt}{} +\@ifundefined{hrboxsep}{\newdimen\hrboxsep\hrboxsep=4pt}{} +\@ifundefined{@temprbox}{\newbox\@temprbox}{} +\@ifundefined{f@ur}{\chardef\f@ur4}{} +\endinput +%% +%% Copyright © 2010 by Vafa Khalighi +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) +%% by Vafa Khalighi. +%% +%% +%% +%% +%% +%% End of file `roundbox.sty'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 6ed9ea36f2b..6f99d4248ec 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -253,7 +253,7 @@ my @TLP_working = qw( recipe recipecard recycle refman refstyle regcount register relsize renditions resumemac revtex rjlparshap - robustcommand robustindex romannum rotating rsc rsfs + robustcommand robustindex romannum rotating roundbox rsc rsfs rtkinenc rtklage ryethesis sageep sauerj sauterfonts savefnmark savesym savetrees scale scalebar schemabloc scientificpaper sciposter screenplay script diff --git a/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc b/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc index 2d80cf69317..ef5faf8b412 100644 --- a/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc @@ -39,6 +39,7 @@ depend pictex2 depend pinlabel depend pmgraph depend randbild +depend roundbox depend schemabloc depend swimgraf depend texdraw diff --git a/Master/tlpkg/tlpsrc/roundbox.tlpsrc b/Master/tlpkg/tlpsrc/roundbox.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3