| 1 |
\ProvidesFile{fstrutst.tex}[2011/03/14 test/demo finstrut.sty (DA/UL)] |
| 2 |
\documentclass{article} |
| 3 |
\usepackage{readprov} |
| 4 |
\usepackage{array} |
| 5 |
\usepackage[fullpar,show]{finstrut}[2011/02/18] %% upd. 2011/03/14 |
| 6 |
\makeatletter |
| 7 |
% with array.sty |
| 8 |
\@ifpackageloaded{array}{% |
| 9 |
\def\arraytest{% |
| 10 |
\begin{tabular}{|l|b{2cm}|}\hline |
| 11 |
b alignment & b alignment\par \\\hline |
| 12 |
\end{tabular} |
| 13 |
\nobreak\hfill |
| 14 |
\begin{tabular}{|l|b{2cm}|}\hline |
| 15 |
b alignment & b alignment \\\hline |
| 16 |
\end{tabular} |
| 17 |
\par\medskip\noindent |
| 18 |
}% |
| 19 |
}{\let\arraytest\relax} |
| 20 |
\makeatother |
| 21 |
\textheight=3.5in |
| 22 |
\begin{document} |
| 23 |
\begin{center} |
| 24 |
\bfseries |
| 25 |
Trying \textsf{finstrut} |
| 26 |
\UseVersionOf{finstrut.sty} as of \UseDateOf{finstrut.sty} |
| 27 |
\end{center} |
| 28 |
% \edef\latexoutput{\the\output} |
| 29 |
% \output{\tracingonline=1 \showboxbreadth=10 \showboxdepth=1 |
| 30 |
% \showbox\footins |
| 31 |
% \latexoutput |
| 32 |
% \global\output\expandafter{\latexoutput}} |
| 33 |
% \makeatletter \let\@finalstrut\@gobble \makeatother %% WITHOUT |
| 34 |
\begin{tabular}{|l|p{2cm}|}\hline |
| 35 |
deep & $\displaystyle \int_j$\par \\\hline |
| 36 |
\end{tabular} |
| 37 |
\nobreak\hfill |
| 38 |
\begin{tabular}{|l|p{2cm}|}\hline |
| 39 |
deep & $\displaystyle \int_j$\\\hline |
| 40 |
\end{tabular} |
| 41 |
\par\medskip\noindent\nobreak\hfil |
| 42 |
\begin{tabular}{|l|p{2cm}|}\hline |
| 43 |
bad prevdepth & Hello world\hrule \\\hline |
| 44 |
\end{tabular} |
| 45 |
\nobreak\hfil |
| 46 |
%% irrelevant according to Donald 2011/02/15: |
| 47 |
% \nobreak\hfill |
| 48 |
% \begin{tabular}{|l|p{2cm}|}\hline |
| 49 |
% bad prevdepth & Hello world \\\hline |
| 50 |
% \end{tabular} |
| 51 |
\par\medskip\noindent |
| 52 |
\arraytest |
| 53 |
O\footnote{\vrule depth22.22pt\par} |
| 54 |
A\footnote{x\par} |
| 55 |
B\footnote{y\par} |
| 56 |
O\footnote{\vrule depth22.22pt} |
| 57 |
A\footnote{x} |
| 58 |
B\footnote{y} |
| 59 |
\end{document} |