summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:00:29 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:00:29 +0000
commit8b8fbae5990dee3b8ab739df0de8b7c365e4d227 (patch)
tree824392c1bb07fe8c8b620efd3992cc0daa3e433a /Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
parente9351f8ac4f8603d6020be78e092e939e24d89d0 (diff)
ncctools
git-svn-id: svn://tug.org/texlive/trunk@1132 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncctools/mboxfill.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ncctools/mboxfill.sty52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty b/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
new file mode 100644
index 00000000000..2ee614fa99c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ncctools/mboxfill.sty
@@ -0,0 +1,52 @@
+%%
+%% This is file `mboxfill.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mboxfill.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% This file is a generated file from the sources of the `ncctools'
+%% bundle.
+%%
+%% You are not allowed to modify this file.
+%%
+%% You are allowed to distribute this file if and only if
+%% it is distributed with the corresponding source files in
+%% the `ncctools' bundle.
+%%
+%% For the copying and distribution conditions of the source files,
+%% see the README file distributed with the ncctools bundle.
+%%
+%% File: mboxfill.dtx Copyright (C) 2005 by Alexander I. Rozhenko
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{mboxfill}
+ [2005/05/13 v1.0 Fill space with mbox (NCC)]
+\newcommand*\mboxfill[1][\width]{%
+ \def\@tempa{\setlength\@tempdima{#1}}%
+ \@ifnextchar[{\NCC@mboxfill}{\NCC@mboxfill[]}%
+}
+\def\NCC@mboxfill[#1]#2{%
+ \@begin@tempboxa\hbox{#2}%
+ \@tempa
+ \edef\@tempa{#1}\def\@tempb{s}%
+ \ifx\@tempa\@tempb
+ \@tempdimb\width
+ \advance\@tempdimb -\@tempdima
+ \let\@tempa\xleaders
+ \def\@tempb{\kern.5\@tempdimb}%
+ \else
+ \@ifundefined{#1leaders}{\let\@tempa\leaders}%
+ {\def\@tempa{\csname#1leaders\endcsname}}%
+ \let\@tempb\@empty
+ \fi
+ \leavevmode\@tempb\@tempa
+ \hb@xt@\@tempdima{\hss\unhbox\@tempboxa\hss}\hfill\@tempb
+ \@end@tempboxa
+}
+\endinput
+%%
+%% End of file `mboxfill.sty'.