• Keine Ergebnisse gefunden

The Autotable Package Adrian Rettich February 26, 2020

N/A
N/A
Protected

Academic year: 2022

Aktie "The Autotable Package Adrian Rettich February 26, 2020"

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

The Autotable Package

Adrian Rettich February 26, 2020

1 Synopsis

This package provides a way to generate tabularx style tables with two important additions:

• The ability to generate a fixed number of empty rows by passing said number as an argument.

• The ability to automatically generate as many empty rows as the space on the page allows for.

2 Loaded Packages

Autotable uses tabularx, pgfopts, xparse, zref-savepos, xifthen, and pgf- plots.

3 Creating Tables

There are two ways to create an autotable: by using an environment similar to tabularx, or by setting up the desired output via a series of commands that are then executed summarily by calling the \autotable macro.

3.1 The autotable Environment

This is not yet implemented. I am working on it.

3.2 The autotable Command

\autocolumn{colspec}[coltitle] Sets up a single column with column specifi- cation colspec. The possible specifications are the same as for a tabularx environment. The optional coltitle is the title of your column. Call this command once for each column you want your table to have.

1

(2)

\autocolumns{cols}[titles] Takes a comma-separated list of column specifica- tions and optionally a comma-separated list of titles. This is essentially a shortcut for multiple \autocolumn commands. It is possible to mix both for the same table.

\countrows Activate row counting: the leftmost column of your table will con- tain the row number.

\nocountrows Deactivate row counting. This is the default.

\autotablereset Reset everything you have set up so far.

\autotable{n}: Create a table with columns according to what you have set up using the previous commands. The table hasnrows, plus one row for titles if you provided any titles. If you omitn, the table instead has (optionally a title row plus) as many rows as fit on the current page (possibly 0).

2

(3)

4 Examples

Die Tabellen auf dieser Seite wurden durch folgende Kommandos erzeugt (beachte, dass ich für die ersten beiden nicht explizit angeben musste, wie viele Zeilen ich möchte):

\autocolumn{r}

\autocolumns{X,c,c}[Name,ja,nein]

\countlines

\autotable{}

\autotablereset

\autocolumn{X}[Name]

\autocolumn{X}[E-Mail]

\autotable{}

\autotablereset

\autocolumns{X,X,X}

\autotable{3}

Name ja nein

1 2 3 4 5 6 7 8

Name E-Mail

Auch wenn ich nach der Liste noch Text stehen habe, berechnet \autotable{} die korrekte Anzahl an Zeilen.

3

(4)

5 Options

Autotable accepts no options.

6 License

THE COFFEEWARE LICENSE

Adrian Rettich (adrian.rettich@gmail.com) wrote this file. As long as you retain this notice, you can do whatever you want with this stuff. If we meet in person someday, and you think this stuff is worth it, you are welcome to buy me a coffee in return.

4

Referenzen

ÄHNLICHE DOKUMENTE

%ome of this is in Paul Demeny. Population and the invisible hand. Po~ulatioa Ca~ital and Growth. New York: Norton. Phases of Capitalist Develo~ment. New York: Oxford

Axis 7 results from the fact t h a t economics concentrates on goods that are on the market, and so deals with a truncated part of the commodity cycle, while

France is running on fumes, while the UK is choosing to be less engaged suffering from a justified “Bruxelles fatigue.” And the Mediterranean countries

When verbs like want are followed by another verb, they are usually followed by to...  I want to see

B) Put the words in the correct order to make questions. Then answer the questions. C) Match the comments on the left with the responses on the right. Bridget lives in the flat.

Annie forbidden Hector to marry has Hector's family. __Has Hector’s family forbidden Hector to

__Did Bridget advise Annie to buy some new clothes______ ? ___Yes, she did. C) Match the comments on the left with the responses on the right. Bridget lives in the flat. The girl

Israelis believe that if they can get the Palestinians to recognize that Israel is the nation-state of the Jewish people, there will be no refugee return to the state of