• No results found

The truncate package Donald Arseneau

N/A
N/A
Protected

Academic year: 2021

Share "The truncate package Donald Arseneau"

Copied!
1
0
0

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

Hele tekst

(1)

The truncate package

Donald Arseneau

August 2001, version 3.6

Truncating text to a given width

The package defines a command\truncate[hmarkeri]{hwidthi}{htexti}

If the text is too wide to fit in the specified width, then it is truncated, and a continuation marker is shown at the end. The default marker, used when the optional[marker]parameter is omitted, is\,\dots. You can change this default by redefining\TruncateMarker(\renewcommand {\TruncateMarker}{...}).

Normally, the text (whether truncated or not) is printed flush-left in a box with exactly the width specified. The package option[fit]causes the output text to have its natural width, up to a maximum of the specified width.

The text will not normally be truncated in the middle of a word, nor at a space specified by the tie (~). For example:

\truncate{122pt}{This text has been~truncated}

gives

“This text has. . . ”

You can give one of the package options [hyphenate], [breakwords], or [breakall] to allow breaking in the middle of words. The first two only truncate at hyphenation points; with the difference being that [breakwords] suppresses the hyphen character. On the other hand,

breakallallows truncation at any character. For example:

\truncate{122pt}{This text has been~truncated}

gives

“This text has been trun-...” (option hyphenate) “This text has been trun... ” (option breakwords) “This text has been trunc...” (option breakall)

(All of these options work through TEX’s hyphenation mechanism.)

Documentation file assembled by Robin Fairbairns

Referenties

GERELATEERDE DOCUMENTEN

Since the OT1 text fonts do not provide the lower-case greek letters, there is a package option [ eulergreek ] to take the lowercase greek from the Euler maths fonts.. Since some

will recover most of this speed, with \extrarulesep still partially in effect — extra space will still be added around \hline s, but it may be taken up by very tall or very deep

\TABcell{}{} – presents the cell content in the prevailing mode (text or math) and style set by stackengine and tabstackengine \TABcellBox{}{} – presents the cell content, in

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

The big problem with the [usetoc] method is that \titleref will not refer to a \label which was given in the title or caption itself; the label must be placed after the

The [strings] option requires the “_” character to be activated immediately in order for the cite and ref tags to be read properly from the .aux file as plain strings, and this

The zhlipsum package is used for typesetting dummy text (i.e. “Lorem ipsum”) as lipsum, kantlipsum, blindtext etc., but for Chinese language.. Dummy text will be pretty useful,

“This text has been trun- …” (package option hyphenate ). “This text has been trun … ” (package option