summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/finstrut/docsrc/fstrutst.tex
blob: 6e6fc1c06dd245ef3ecbe444d3eef4cc028f2b6b (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
\ProvidesFile{fstrutst.tex}[2011/03/14 test/demo finstrut.sty (DA/UL)] 
\documentclass{article} 
\usepackage{readprov}
\usepackage{array}
\usepackage[fullpar,show]{finstrut}[2011/02/18] %% upd. 2011/03/14
\makeatletter
  % with array.sty
    \@ifpackageloaded{array}{%
        \def\arraytest{%
          \begin{tabular}{|l|b{2cm}|}\hline
              b alignment & b alignment\par \\\hline
          \end{tabular}
            \nobreak\hfill
          \begin{tabular}{|l|b{2cm}|}\hline
              b alignment & b alignment \\\hline
          \end{tabular}
          \par\medskip\noindent
        }%
      }{\let\arraytest\relax}
\makeatother
\textheight=3.5in
\begin{document}
  \begin{center}
    \bfseries 
      Trying \textsf{finstrut} 
      \UseVersionOf{finstrut.sty} as of \UseDateOf{finstrut.sty}
  \end{center}
% \edef\latexoutput{\the\output}
% \output{\tracingonline=1 \showboxbreadth=10 \showboxdepth=1 
%         \showbox\footins
%         \latexoutput
%         \global\output\expandafter{\latexoutput}}
% \makeatletter \let\@finalstrut\@gobble \makeatother %% WITHOUT
\begin{tabular}{|l|p{2cm}|}\hline
    deep & $\displaystyle \int_j$\par \\\hline
\end{tabular}
  \nobreak\hfill
\begin{tabular}{|l|p{2cm}|}\hline
    deep & $\displaystyle \int_j$\\\hline
\end{tabular}
  \par\medskip\noindent\nobreak\hfil
\begin{tabular}{|l|p{2cm}|}\hline
    bad prevdepth & Hello world\hrule \\\hline
\end{tabular}
\nobreak\hfil
%% irrelevant according to Donald 2011/02/15:
%   \nobreak\hfill
% \begin{tabular}{|l|p{2cm}|}\hline
%     bad prevdepth & Hello world \\\hline
% \end{tabular}
  \par\medskip\noindent
\arraytest
O\footnote{\vrule depth22.22pt\par} 
A\footnote{x\par} 
B\footnote{y\par} 
O\footnote{\vrule depth22.22pt}
A\footnote{x} 
B\footnote{y}
\end{document}