| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage{bxcalc} |
| 3 |
% Declares new units |
| 4 |
\newcalcunit{ls}{\baselineskip} |
| 5 |
\newcalcunit{tm}{0.05em} |
| 6 |
% |
| 7 |
\title{Sample document of \textsf{bxcalc}} |
| 8 |
\author{ZR} |
| 9 |
\date{} |
| 10 |
\begin{document} |
| 11 |
\maketitle |
| 12 |
|
| 13 |
\section{Example 1} |
| 14 |
|
| 15 |
\noindent |
| 16 |
The quick brown fox\\[1ex-1ls]% so line skip is 1ex |
| 17 |
jump\hspace{6tm}s\hspace{12tm}ov\hspace{2tm}er\\[1ex-1ls] |
| 18 |
\hspace*{3tm}t\hspace{4tm}he\hspace{9tm}lazy\hspace{4tm}dog. |
| 19 |
|
| 20 |
\section{Example 2} |
| 21 |
|
| 22 |
\noindent |
| 23 |
AAAAAAAAAAAAAAAAAAAA\\[\heightof{A}-1ls+2tm] |
| 24 |
A\hspace{\widthof{A}*18}A\\[\heightof{A}-1ls+2tm] |
| 25 |
A\hspace{\widthof{A}*18}A\\[\heightof{A}-1ls+2tm] |
| 26 |
A\hspace{\widthof{A}*18}A\\[\heightof{A}-1ls+2tm] |
| 27 |
AAAAAAAAAAAAAAAAAAAA |
| 28 |
|
| 29 |
\end{document} |