• No results found

The Tabbing package

N/A
N/A
Protected

Academic year: 2021

Share "The Tabbing package"

Copied!
4
0
0

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

Hele tekst

(1)

The Tabbing package

Jean-Pierre F. Drucbert drucbert@onecert.fr

1999/08/03

Abstract

This package

1

provides a ‘Tabbing’ environment, analog to the L

A

TEX standard ‘tabbing’ environment, but allowing accented letters. No more

\a’, \a‘ and \a= needed.

1 The Tabbing package

L

A

TEX provides the tabbing environment. But it is not user-friendly when you must use accented letters, whith the grave, acute and macron accents, \’a ´ a,

\‘a ` a and \=a ¯ a. Even when you use a good input encoding on 8 bits. So the Tabbing package offers a Tabbing environment, which is a slightly modified copy of the standard tabbing environment. In the Tabbing environment, the local commands \>, \<, \=, \+, \-, \‘ and \’ are replaced by \TAB>, \TAB<, \TAB=,

\TAB+, \TAB-, \TAB‘ and \TAB’ respectively. Hence the conversion is rather easy.

Acute and grave accents are very often used in french, this environment should be useful. In the example of Figure 1, the vertical rules mark the tab stops (with the macro \tabrule, which is not part of the package)

Note that the markup is more visible than in the tabbing environment, and the syntax of accented letters is the same outside and inside of the new Tabbing environment.

1

Copyright c 1996, 1997, 1998 by Jean-Pierre F. Drucbert

ONERA/Centre de Toulouse SRI

Office National d’ ´ Etudes et de Recherches A´ erospatiales Centre de Toulouse

Service R´ eseaux et Informatique Complexe Scientifique de Rangueil

2, Avenue ´ Edouard Belin

BP 4025 F-31055 TOULOUSE CEDEX FRANCE

Email: drucbert@onecert.fr

1

(2)

\newcommand{\tabrule}[1]{\makebox[0pt]{\raisebox {0pt}[0pt]{\rule{\fboxrule}{#1\baselineskip}}}}

\begin{Tabbing}

gnomon \TAB= agn\=ostic \TAB= arma\TAB= dillo \TAB= gnash \TAB= \kill

\TAB> \TAB> gnu \TAB> gneisses \TAB> \TAB> gnarl

\\*

\TAB> \TAB> \’ecole \TAB> \’el\‘eve \TAB> \TAB> examen

\\*

\TAB> \TAB> cole \TAB> lve \TAB> \TAB> examen

\\*

\TAB> \TAB> u \TAB> e \TAB> g \TAB>

\TAB‘

\end{Tabbing}

gnu gneisses gnarl

´

ecole´ el` eve examen cole lve examen

u e g

Figure 1: A simple Tabbing environment

2

(3)

2 Implementation

1

h∗packagei

Tabbing We just copy the standard tabbing environment, and add the local macro \TAB who tests its argument. An error message has been added.

\TAB

2

\gdef\Tabbing{\lineskip \z@skip

3

% % \let\>\@rtab

4

% % \let\<\@ltab

5

% % \let\=\@settab

6

% % \let\+\@tabplus

7

% % \let\-\@tabminus

8

% % \let\‘\@tabrj

9

% % \let\’\@tablab

10

\def\TAB##1{\ifx ##1>\@rtab\else

11

\ifx ##1<\@ltab\else

12

\ifx ##1=\@settab\else

13

\ifx ##1+\@tabplus\else

14

\ifx ##1-\@tabminus\else

15

\ifx ##1‘\@tabrj\else

16

\ifx ##1’\@tablab\else

17

\PackageError{Tabbing}%

18

{Bad argument ##1 for Tabbing specification}

19

\fi\fi\fi\fi\fi\fi\fi}

20

\let\\=\@tabcr

21

\global\@hightab\@firsttab

22

\global\@nxttabmar\@firsttab

23

\dimen\@firsttab\@totalleftmargin

24

\global\@tabpush\z@ \global\@rjfieldfalse

25

\trivlist \item\relax

26

\if@minipage\else\vskip\parskip\fi

27

\setbox\@tabfbox\hbox{\rlap{\indent\hskip\@totalleftmargin

28

\the\everypar}}\def\@itemfudge{\box\@tabfbox}%

29

\@startline\ignorespaces}

30

\gdef\endTabbing{%

31

\@stopline\ifnum\@tabpush >\z@ \@badpoptabs \fi\endtrivlist}

Index

Numbers written in italic refer to the page where the corresponding entry is de- scribed; numbers underlined refer to the code line of the definition; numbers in roman refer to the code lines where the entry is used.

Symbols

\’ . . . . 9

\+ . . . . 6

\- . . . . 7

\< . . . . 4

\= . . . . 5

\> . . . . 3

\@badpoptabs . . . . 31

\@firsttab . . . 21–23 \@hightab . . . . 21

3

(4)

\@itemfudge . . . . 28

\@ltab . . . 4, 11

\@nxttabmar . . . . 22

\@rjfieldfalse . . . . 24

\@rtab . . . 3, 10

\@settab . . . 5, 12

\@startline . . . . 29

\@stopline . . . . 31

\@tabcr . . . . 20

\@tabfbox . . . 27, 28

\@tablab . . . 9, 16

\@tabminus . . . 7, 14

\@tabplus . . . 6, 13

\@tabpush . . . 24, 31

\@tabrj . . . 8, 15

\@totalleftmargin . . . 23, 27

\\ . . . . 20

\‘ . . . . 8 E

\endTabbing . . . . 30

\endtrivlist . . . . 31 environments:

Tabbing . . . . 2

\everypar . . . . 28 G

\gdef . . . 2, 30

H

\hskip . . . . 27

I

\if@minipage . . . . 26

\indent . . . . 27

\item . . . . 25

L

\lineskip . . . . 2

P

\parskip . . . . 26

R

\rlap . . . . 27

T

\TAB . . . . 3, 10

\Tabbing . . . . 2 Tabbing (environment) . . . . 2

\trivlist . . . . 25

Z

\z@skip . . . . 2

Change History

v1.0

General: First officially released version. . . . 1

v1.1

General: Added LPPL License. . . . 1

4

Referenties

GERELATEERDE DOCUMENTEN

When an acronym is being used, for the first time (with the footnote option not specified), next to the end of the line, a line break between the full name of the acronym and

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. \

The \sublabon command is to be given in the first equation to be bracket- ted, before the \label and \\ commands, while the \sublaboff command is given after the \\ of the last

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

Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue quam, in hendrerit risus eros eget felis.. Maecenas eget erat in sapien