From 626364c8a9c26cef4f43977e46a33846b8b62815 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 12 Dec 2009 01:05:45 +0000 Subject: new latex package tex-label (8dec09) git-svn-id: svn://tug.org/texlive/trunk@16372 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/tex-label/README | 23 ++++++++++++++ .../doc/latex/tex-label/tex-label-demo.pdf | Bin 0 -> 11625 bytes .../doc/latex/tex-label/tex-label-demo.tex | 27 ++++++++++++++++ .../doc/latex/tex-label/tex-label-doc.pdf | Bin 0 -> 30098 bytes .../doc/latex/tex-label/tex-label-doc.tex | 30 ++++++++++++++++++ Master/texmf-dist/source/latex/tex-label/Makefile | 10 ++++++ .../texmf-dist/tex/latex/tex-label/tex-label.sty | 34 +++++++++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/tex-label.tlpsrc | 0 10 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/tex-label/README create mode 100644 Master/texmf-dist/doc/latex/tex-label/tex-label-demo.pdf create mode 100644 Master/texmf-dist/doc/latex/tex-label/tex-label-demo.tex create mode 100644 Master/texmf-dist/doc/latex/tex-label/tex-label-doc.pdf create mode 100644 Master/texmf-dist/doc/latex/tex-label/tex-label-doc.tex create mode 100644 Master/texmf-dist/source/latex/tex-label/Makefile create mode 100644 Master/texmf-dist/tex/latex/tex-label/tex-label.sty create mode 100644 Master/tlpkg/tlpsrc/tex-label.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/tex-label/README b/Master/texmf-dist/doc/latex/tex-label/README new file mode 100644 index 00000000000..ce738183a98 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tex-label/README @@ -0,0 +1,23 @@ +== About tex-label + +This package can be used to label pages of a document just like +labelling e-mail to classify them. This is useful when you are +preparing notes and you want to sort through pages quickly looking for +keywords. + +Currently, the labels are displayed at the bottom-right corner of +pages. + +== Setup + +Copy tex-label.sty to a place where latex can find it. + +$ make doc # To build documentation +$ make demo # To build usage demo + +== Dependencies +o fancyhdr +o color + +This work (includes all source and derived files in this folder) is +distributed under LaTex Project Public License. diff --git a/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.pdf b/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.pdf new file mode 100644 index 00000000000..f7c8bf23407 Binary files /dev/null and b/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.pdf differ diff --git a/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.tex b/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.tex new file mode 100644 index 00000000000..b636c686f4d --- /dev/null +++ b/Master/texmf-dist/doc/latex/tex-label/tex-label-demo.tex @@ -0,0 +1,27 @@ +\documentclass{article} + + +\usepackage{tex-label} + +\begin{document} + +\labels{sample page, demo, tex-labels} +this is a sample page. + +this page doesn't contain any useful info. +just demonstrating use of labels. + +\vfil +\break + +\labels{second page, demo, labels} + +This is another page with different labels. + +\vfill +\break + +If a page starts without any label. It shows last page's labels. + +\end{document} + diff --git a/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.pdf b/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.pdf new file mode 100644 index 00000000000..2f035cf388a Binary files /dev/null and b/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.tex b/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.tex new file mode 100644 index 00000000000..5ce605d8a79 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tex-label/tex-label-doc.tex @@ -0,0 +1,30 @@ +\documentclass{article} + +\newcommand{\texlabel}{{\em tex-label}} +\newcommand{\labelscom}{{\em \textbackslash labels}} + +\begin{document} + +\section{Introduction} +The \texlabel{} package allows you to label parts of your document +just like labelling e-mail. + +\section{Usage} +You can use the \labelscom{} command when you want to label some part of +your document. The labels remain effective until you issue the next +\labelscom{} command. + +\section{Example} +See tex-label-demo.tex and tex-label-demo.pdf + +\section{Customizing} +You can change the color of label text and label background by +redefining {\em label-color} and {\em label-bg-color} respectievely. + +For ex:- to redefine label text to white use + +\begin{verbatim} +\definecolor{label-color}{rgb}{1,1,1} +\end{verbatim} + +\end{document} diff --git a/Master/texmf-dist/source/latex/tex-label/Makefile b/Master/texmf-dist/source/latex/tex-label/Makefile new file mode 100644 index 00000000000..681176d01cc --- /dev/null +++ b/Master/texmf-dist/source/latex/tex-label/Makefile @@ -0,0 +1,10 @@ +.PHONY: demo doc all clean + +all: demo doc + +demo: + latex -output-format=pdf tex-label-demo.tex +doc: + latex -output-format=pdf tex-label-doc.tex +clean: + rm -rf *.aux *~ *.log diff --git a/Master/texmf-dist/tex/latex/tex-label/tex-label.sty b/Master/texmf-dist/tex/latex/tex-label/tex-label.sty new file mode 100644 index 00000000000..d8b10cdcbc9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/tex-label/tex-label.sty @@ -0,0 +1,34 @@ +%% tex-label.sty +%% Copyright Balagopal Komarath +%% +% +% 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 Balagopal Komarath. +% +% This work consists of the files tex-label.sty, demo.tex, and +% doc.tex + +\ProvidesPackage{tex-label} + +\RequirePackage{color} +\RequirePackage{fancyhdr} + +\pagestyle{fancy} + +\definecolor{label-bg-color}{rgb}{0.8,0.8,0.8} +\definecolor{label-color}{rgb}{0,0,0} + +\newtoks\labels + +\rfoot{\colorbox{label-bg-color}{\color{label-color}\the\labels}} + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 1fc7f11306d..45f8029915f 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -253,7 +253,7 @@ my @WorkingTLP = qw( tabulary tabvar talk tamethebeast tdclock tdsfrmath technics ted templates-fenn templates-sommer tengwarscript - tensor termcal termlist teubner tex-ewd tex-gyre texcount + tensor termcal termlist teubner tex-ewd tex-gyre tex-label texcount texdiff texdirflatten texilikecover texloganalyser texmate texments texpower texshade textcase textfit textopo textpath textpos diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 99c29746927..c2398620242 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -559,6 +559,7 @@ depend technics depend ted depend termcal depend termlist +depend tex-label depend texilikecover depend texlogos depend texmate diff --git a/Master/tlpkg/tlpsrc/tex-label.tlpsrc b/Master/tlpkg/tlpsrc/tex-label.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3