• No results found

raggedright The rulerbox package

N/A
N/A
Protected

Academic year: 2021

Share "raggedright The rulerbox package"

Copied!
2
0
0

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

Hele tekst

(1)

The rulerbox package

* Yuchang Yang(杨宇昌)† April 18th, 2019 ver. 1.01

1 Introduction

rulerbox is an independent LATEX package providing macro\rulerbox, which draws rulers along edges of an object, in the following style:

This might be useful when showing the absolute size of something in electronic documents, or designating the relative scale in printed materials.

2

Usage

\rulerbox{⟨content⟩}somewhat resembles the macro\fbox{⟨content⟩} de-fined by LATEX. The one mandatory parameter that they receive is the con-tent to be wrapped inside a box. Then \rulerbox decorates the box edges with rulers, whereas \fbox frames the box by solid lines. Neither of them affects the vertical alignment.

ra g gedrig h t

2.1 Edge selection

\rulerbox[⟨edges⟩]{⟨content⟩}also accepts an optional parameter, telling LATEX which edges to be decorated with rulers. ⟨edges⟩ is any subset of

t, b, l, and r, controlling the top, bottom, left, and right edges respec-tively. So \rulerbox[tblr]{⟨content⟩} behaves identically the same as

*Github repository: https://github.com/Mikumikunisiteageru/rulerboxEmail address: yang.yc.allium@gmail.com

(2)

\rulerbox{⟨content⟩} (unless default switches are turned off, see below), while\rulerbox[]{⟨content⟩}regresses to\hbox{⟨content⟩}.

[tl] [t] [tr]

[l] [] [r]

[bl] [b] [br]

Default status of each edge can be set separately and globally by switch-ing \ifrulertop, \ifrulerbottom, \ifrulerleft, and \ifrulerright. For example, \rulerleftfalse suppresses all left rulers (except required explicitly by⟨edges⟩), until a \rulerlefttrueis seen.

2.2 Dimensions

Four dimensions are involved in the rulerbox package. They can be redefined locally by ⟨dimen name⟩=⟨dimen express⟩\relax in TEX style, or globally by\setlength{⟨dimen name⟩}{⟨dimen express⟩} in LATEX style.

• \rulerunit: The least count of rulers, i.e. distance between adjacent ticks in rulers. Default is 1mm, one millimetre, which produces rulers of metric length system. \rulerunit may be redefined to adapt to other decimal length systems, or draw rulers of relative scales.

For example, if one wants to switch to Chinese length units, he may define\rulerunit=1cm\divide\rulerunit3\relax, which makes the least count 10/3 mm, namely one fen(分), or one tenth cun(寸).

• \rulersep: Distance between box edges and rulers. Default is 3pt. • \rulerwidth: Length of longest ticks in rulers. Default is 7pt. • \rtickrule: Width of tick lines in rulers. Default is0.4pt.

Referenties

GERELATEERDE DOCUMENTEN

Width is fixed at 2 in, a tight frame is specified (\fboxsep of 0 pt), a short caption appears in the List of Figures, and the additional text is using the default

Many fonts are supported by metalogox, and if one of these is in use then the ap- propriate settings are assigned automatically, according to the default text body font: L A TEX 2ε..

If you have selectec the option ocr-b or ocr-b-sharp it is possible to use the command \ocrneg which typsesets the text with the “negative” of the selected

If you want some text typeset with the pandora roman fonts for a short text you can use one of the commands. \

If you want some text typeset with the punk fonts for a short text you can use one of the commands. \ t e x t p u n

3.3 Inside the Scratch commands: the little boxes How to get some specific commands, like: stop all ▼. How to type wait until color

However, remember that texsurgery is a python project whose main focus is on evaluating code inside a jupyter kernel, and this is only achieved by installing the python package

\l__unravel_setup_restore_tl This token list variable will contain code to restore category codes to their value when the package was loaded.. 20 \gdef \l__unravel_setup_restore_tl {