summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/logbox/logbox.sty
blob: 5601523cc90c744339732db149517702b9dceb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 <florent.chervet @t free.fr>
%% 
\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'.