texmf-dist/doc/latex/ximera/src/leash.dtx
raw| 1 | % \subsubsection{Leashes} |
| 2 | % \DescribeEnv{leash}{Put content inside a scrollable box.} |
| 3 | % \begin{macrocode} |
| 4 | %<*classXimera> |
| 5 | |
| 6 | \newenvironment{leash}[1]{% |
| 7 | }{% |
| 8 | } |
| 9 | |
| 10 | |
| 11 | %</classXimera> |
| 12 | % \end{macrocode} |
| 13 | |
| 14 | % \begin{macrocode} |
| 15 | %<*htXimera> |
| 16 | \renewenvironment{leash}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{<div style="overflow: auto; height: #1px">}}{\HCode{</div>}\IgnoreIndent} |
| 17 | %</htXimera> |
| 18 | % \end{macrocode} |