From 53614d3ad7e989dd7cc187c2980aed8044688be7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 4 Nov 2011 23:23:09 +0000 Subject: new latex package logbox (1nov11) git-svn-id: svn://tug.org/texlive/trunk@24499 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/logbox/logbox.sty | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/logbox/logbox.sty (limited to 'Master/texmf-dist/tex/latex/logbox') diff --git a/Master/texmf-dist/tex/latex/logbox/logbox.sty b/Master/texmf-dist/tex/latex/logbox/logbox.sty new file mode 100644 index 00000000000..5601523cc90 --- /dev/null +++ b/Master/texmf-dist/tex/latex/logbox/logbox.sty @@ -0,0 +1,60 @@ +%% +%% This is file `logbox.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% logbox.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% logbox : 2011/03/26 v1.0 - e-TeX showbox facilities (FC) +%% +%% 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 +%% +%% This work consists of the main source file logbox.dtx +%% and the derived files: +%% logbox.sty, logbox.ins, logbox.drv, +%% and: logbox.pdf +%% +%% logbox : 2011/03/26 v1.0 - e-TeX showbox facilities (FC) +%% Copyright (C) 2011 by FC +%% +\NeedsTeXFormat{LaTeX2e}[2005/12/01] +\ProvidesPackage{logbox} + [2011/03/26 v1.0 - e-TeX showbox facilities for exploration (FC)] +\protected\def\logbox {\begingroup \afterassignment\logb@x@log \count@ } +\def\logb@x@log {\ifnum\tracingoutput>0 \ifnum\showboxdepth<2 \showboxdepth=2 \fi + \ifnum\showboxbreadth<10 \showboxbreadth=10 \fi + \else \showoutput \fi + \message {^^Jlogbox: \the\count@ \on@line^^J}\expandafter \scrollmode + \expandafter \showbox \expandafter \count@ \expandafter + \interactionmode\the\interactionmode \endgroup +}% \logb@x@log +\protected\def\dimbox {\begingroup \afterassignment\logb@x@dim \count@ } +\def\logb@x@dim {\nfss@text + {\ifhbox\count@ hbox\else\ifvbox\count@ vbox\else box\fi\fi + \the\count@: \ifvoid\count@ void\else wd=\the\wd\count@\ + ht=\the\ht\count@\ + dp=\the\dp\count@\ + tot=\the\dimexpr\ht\count@ +\dp\count@ \relax\fi }\endgroup +}% \logb@x@dim +\protected\def\viewbox {\begingroup \@ifstar + {\def\logb@x@ {\@@par\copy\count@ }\afterassignment\logb@x@view \count@ } + {\let\logb@x@ \relax \afterassignment\logb@x@view \count@ }} +\def\logb@x@view {\dimbox\count@ \logb@x@ \logb@x@log } +\protected\def\Viewbox {\@ifstar \logb@x@View \logb@x@View } +\long\def\logb@x@View #1{\begingroup \setbox0=\hbox {{#1}}\viewbox*0\endgroup } +\def\ShowGroups {\expandafter \scrollmode \expandafter \showgroups \expandafter + \interactionmode\the\interactionmode \relax } +\def\ShowLists {\expandafter \scrollmode \expandafter \showlists \expandafter + \interactionmode\the\interactionmode \relax } +\def\ShowIfs {\expandafter \scrollmode \expandafter \showifs \expandafter + \interactionmode\the\interactionmode \relax } +\endinput +%% +%% End of file `logbox.sty'. -- cgit v1.2.3