From 937f42e344ee749b7fa0b175ad026955bf90c9fd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 14 May 2011 22:30:24 +0000 Subject: new latex package xhfill 1.00 (13may11) git-svn-id: svn://tug.org/texlive/trunk@22475 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/xhfill/Changes | 3 + Master/texmf-dist/doc/latex/xhfill/Makefile | 35 ++++++++ Master/texmf-dist/doc/latex/xhfill/xhfill-doc.pdf | Bin 0 -> 39376 bytes Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex | 102 ++++++++++++++++++++++ Master/texmf-dist/tex/latex/xhfill/xhfill.sty | 64 ++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/xhfill.tlpsrc | 0 TODO | 2 + 9 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/xhfill/Changes create mode 100644 Master/texmf-dist/doc/latex/xhfill/Makefile create mode 100644 Master/texmf-dist/doc/latex/xhfill/xhfill-doc.pdf create mode 100644 Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex create mode 100644 Master/texmf-dist/tex/latex/xhfill/xhfill.sty create mode 100644 Master/tlpkg/tlpsrc/xhfill.tlpsrc diff --git a/Master/texmf-dist/doc/latex/xhfill/Changes b/Master/texmf-dist/doc/latex/xhfill/Changes new file mode 100644 index 00000000000..851f00de936 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xhfill/Changes @@ -0,0 +1,3 @@ +xhfill.sty -------- +1.00 2011-05-13 initial CTAN version + diff --git a/Master/texmf-dist/doc/latex/xhfill/Makefile b/Master/texmf-dist/doc/latex/xhfill/Makefile new file mode 100644 index 00000000000..f065fefe59a --- /dev/null +++ b/Master/texmf-dist/doc/latex/xhfill/Makefile @@ -0,0 +1,35 @@ + +# `Makefile' for `pst-3dplot.pdf', hv, 2007/03/17 + +.SUFFIXES : .tex .ltx pdf + +PACKAGE = xhfill + +MAIN = $(PACKAGE)-doc + +LATEX = pdflatex + +ARCHNAME = $(MAIN)-$(shell date +%y%m%d) + +ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Changes Makefile + +all : doc clean tds +doc: $(MAIN).pdf + +$(MAIN).pdf : $(MAIN).tex + $(LATEX) $< + if ! test -f $(basename $<).glo ; then touch $(basename $<).glo; fi + if ! test -f $(basename $<).idx ; then touch $(basename $<).idx; fi + $(LATEX) $< + +clean : + $(RM) $(addprefix $(MAIN), .log .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out .blg .bbl ) + $(RM) $(addprefix $(MAIN), .xcp) + +veryclean : clean + $(RM) $(addprefix $(MAIN), .pdf .bbl .blg) + +arch : + zip $(ARCHNAME).zip $(ARCHFILES) + +# EOF diff --git a/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.pdf b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.pdf new file mode 100644 index 00000000000..099f9b8ac85 Binary files /dev/null and b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex new file mode 100644 index 00000000000..0e8e19d521b --- /dev/null +++ b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex @@ -0,0 +1,102 @@ +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} +\usepackage[scaled=0.85]{beramono} +\usepackage{berasans} +\usepackage{beraserif} +\usepackage{xhfill} +\let\FileVersion\fileversion +\usepackage{listings} +\lstset{language=[LaTeX]TEX,basicstyle=\ttfamily\small,% + extendedchars=true,numbers=left,numberstyle=\tiny,% + xleftmargin=2em,breaklines=true} + +\newcommand{\xfill}[2][1ex]{{% + \dimen0=#2\advance\dimen0 by #1 + \leaders\hrule height \dimen0 depth -#1\hfill% +}} +\newcommand{\xfilll}[2][1ex]{% + \dimen0=#2\advance\dimen0 by #1% + \leaders\hrule height \dimen0 depth -#1\hfill% +} + +\begin{document} +\title{Package \texttt{xhfill}\\v\FileVersion} +\author{Herbert Vo\ss} +\date{\today} +\maketitle +blah\xfill{1pt}blub +\begin{lstlisting} +blah\xfill{1pt}blub +\end{lstlisting} + +blah\xfill{3pt}blub +\begin{lstlisting} +blah\xfill{3pt}blub +\end{lstlisting} + +blah\xfill[0pt]{4pt}blub +\begin{lstlisting} +blah\xfill[0pt]{4pt}blub +\end{lstlisting} + +blah\xfill[-12pt]{12pt}blub +\begin{lstlisting} +blah\xfill[-12pt]{12pt}blub +\end{lstlisting} + +blah\xfilll{1pt}blub +\begin{lstlisting} +blah\xfilll{1pt}blub +\end{lstlisting} +blah\xfilll{1pt}blub +\begin{lstlisting} +blah\xfilll{1pt}blub +\end{lstlisting} + +blah\xfilll[0pt]{4pt}blub +\begin{lstlisting} +blah\xfilll[0pt]{4pt}blub +\end{lstlisting} + +blah\xfilll[-12pt]{12pt}blub +\begin{lstlisting} +blah\xfilll[-12pt]{12pt}blub +\end{lstlisting} + +blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub +\begin{lstlisting} +blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub +\end{lstlisting} + +laber\xrfill[0pt]{4pt}[green]blub blub +\begin{lstlisting} +laber\xrfill[0pt]{4pt}[green]blub blub +\end{lstlisting} + +blah\xrfill[-1ex]{1pt}[red]blub +\begin{lstlisting} +blah\xrfill[-1ex]{1pt}[red]blub +\end{lstlisting} + +blah \xhrulefill{cyan}{1cm} blub +\begin{lstlisting} +blah \xhrulefill{cyan}{1cm} blub +\end{lstlisting} + +blah \xhrectanglefill{0.5cm}{1pt} blubber +\begin{lstlisting} +blah \xhrectanglefill{0.5cm}{1pt} blubber +\end{lstlisting} + +blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub +\begin{lstlisting} +blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub +\end{lstlisting} + + +\subsection*{The code} + +\lstinputlisting{xhfill.sty} + + +\end{document} diff --git a/Master/texmf-dist/tex/latex/xhfill/xhfill.sty b/Master/texmf-dist/tex/latex/xhfill/xhfill.sty new file mode 100644 index 00000000000..d285a8b86f4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/xhfill/xhfill.sty @@ -0,0 +1,64 @@ +%% $Id: pst-3dplot.tex 467 2011-03-01 21:04:36Z herbert $ +%% +%% This is file `xhfill.sty', +%% +%% IMPORTANT NOTICE: +%% +%% Package `xhfill' +%% +%% Herbert Voss +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN archives +%% in directory macros/latex/base/lppl.txt. +%% +%% DESCRIPTION: +%% `xhfill' is a package for extended hfillrules +%% +%% Usage +%% \xhrulefill{blue}{5pt} +%% \xrfill[raise]{ruleheight}[color] +%% \xhrectanglefill{}{} +%% \xhrectanglefill{1cm}{1pt} +% + \NeedsTeXFormat{LaTeX2e} + \RequirePackage{xcolor} + \RequirePackage{calc} + \RequirePackage{xspace} +\def\fileversion{1.00} +\def\filedate{2011/05/13} + + \ProvidesPackage{xhfill}[\filedate\ v \fileversion\ modify width and color of hrulefill] +% +\providecommand{\xhrulefill}[2]{% + \leavevmode\color{#1}\leaders\hrule height #2% + \hfill\color{black}\xspace} +% +\providecommand{\xhrectanglefill}[2]{% + \rule{#2}{#1}\kern-#2\kern.1pt% + \cleaders + \hbox to 1pt{% + \hss + \rlap{\rule{1.2pt}{#2}}% + \raisebox{#1-#2}{\rule{1.2pt}{#2}}% + \hss + }\hfill\kern.1pt\kern-#2\rule{#2}{#1}% + \xspace% +} +\def\xrfill{\@ifnextchar[{\@xrfilli}{\@xrfilli[1ex]}} +\def\@xrfilli[#1]#2{% + \@ifnextchar[{\@xrfillii[#1]{#2}}{\@xrfillii[#1]{#2}[black]}} +\def\@xrfillii[#1]#2[#3]{% + \leaders + \hbox{\raisebox{#1}{\color{#3}\rule{1.2pt}{#2}}}\hfill% + \color{black}} +% +\def\xdotfill{\@ifnextchar[{\@xdotfilli}{\@xdotfilli[0.5ex]}} +\def\@xdotfilli[#1]#2{% + \@ifnextchar[{\@xdotfillii[#1]{#2}}{\@xdotfillii[#1]{#2}[black]}} +\def\@xdotfillii[#1]#2[#3]{% + \leaders + \hbox{\raisebox{#1}{\color{#3}\rule{1.2pt}{#2}\kern1.2pt}}\hfill% + \color{black}} + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 3093b04ff2b..a317020c1f9 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -381,7 +381,7 @@ my @TLP_working = qw( xargs xcolor xcomment xdoc xecjk xecolour xecyr xeindex xepersian xesearch xetex-def xetex-devanagari xetex-itrans xetex-pstricks xetexfontinfo - xetexref xfor xgreek + xetexref xfor xgreek xhfill xifthen xits xkeyval xlop xltxtra xmpincl xnewcommand xoptarg xpackages xq xskak xstring xtab xunicode diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 073585e98ab..e38c2341dcd 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -734,6 +734,7 @@ depend wrapfig depend xargs depend xbmc depend xcomment +depend xhfill depend xtab depend xdoc depend xfor diff --git a/Master/tlpkg/tlpsrc/xhfill.tlpsrc b/Master/tlpkg/tlpsrc/xhfill.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/TODO b/TODO index 85d6ce3a6e7..a4944bff207 100644 --- a/TODO +++ b/TODO @@ -41,6 +41,8 @@ not complain on the tlpsrc-set (installer only option) not complain - dviout +- mactex.README.zip from koch in Master/source. + 1a. fix ctan2tds et al. ----------------------- (Aside from the whole script being a horrible kludge that needs -- cgit v1.2.3