• No results found

This package allows one to create a new unit of length that can be used in length expressions of the calc package. For example,

N/A
N/A
Protected

Academic year: 2021

Share "This package allows one to create a new unit of length that can be used in length expressions of the calc package. For example,"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The bxcalcux package

Takayuki YATO (aka. “ZR”) v1.1 [2020/09/25]

1 Overview

This package allows one to create a new unit of length that can be used in length expressions of the calc package. For example,

\newcalcunit{thou}{0.07227pt}% thousandth of inch

\setlength{\lengthA}{10thou}

will assign 0.72266 pt to \lengthA.

1

Supported format L

A

TEX.

Supported engine Any engine with ε-TEX extension.

Prerequisite packages calc, etoolbox.

2 Package Loading

Use \usepackage as usual, with no options.

\usepackage{bxcalcux}

3 Usage

• \newcalcunit{huniti}{hlengthi} : Declares a new unit huniti as equal to hlengthi. The unit name must consist only of alphabets. You can use relative units such as 0.5em in hlengthi, and such relative units are resolved when calc expressions are evaluated.

• \DeclareCalcUnit{huniti}{htexti} : (for TEXnicians) Declares a new unit huniti as equal to the unit expressed by a token list htext i, which must form a “unit of dimen” (in TEX terminology).

Here is an example.

\DeclareCalcUnit{ls}{\baselineskip}% current line skip

4 Notices

• Usually unit names are treated as case-insensitive; but as exception, unit names with a single letter are case-sensitive.

• You must not create a unit name that coincides with a prefix of existing (built-in or created) units or any keywords that could be used in calc expressions (such as plus, fil, etc.); otherwise unexpected things would occur.

1

Using 0.001in instead of 0.07227pt will give rather inaccurate results, since 0.001in is evaluated to 0.7277 pt.

1

Referenties

GERELATEERDE DOCUMENTEN

The point of departure in determining an offence typology for establishing the costs of crime is that a category should be distinguished in a crime victim survey as well as in

Olivier is intrigued by the links between dramatic and executive performance, and ex- plores the relevance of Shakespeare’s plays to business in a series of workshops for senior

29–31 However, in the context of local theories, i.e., theories in which the free energy depends only on one position, and not, as for the pressure tensor, on two positions

Since the best shading is achieved at the lowest possible resolution, the font SHADE is not device independent — it uses the printer resolution.. Therefore the .dvi file is not

If the option foot was passed to the package, you may consider numbering authors’ names so that you can use numbered footnotes for the affiliations. \author{author one$^1$ and

Now the different files must be moved into the different directories in your installation TDS tree (also known as texmf tree):. uniquecounter.sty

(Note that this code wouldn’t work if \calc@B were a muglue register. This is the real reason why the calc package doesn’t support muglue expressions. To support muglue expressions

The star version prints the number in scientific notation. The default setting for the unit