• No results found

For both commands you may omit to specify the filename (foo.xls) if it has the same basename (foo) as the LaTeX file (foo.tex)

N/A
N/A
Protected

Academic year: 2021

Share "For both commands you may omit to specify the filename (foo.xls) if it has the same basename (foo) as the LaTeX file (foo.tex)"

Copied!
3
0
0

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

Hele tekst

(1)

exceltex(1) exceltex(1)

NAME

exceltex − get data from Excel files into LaTeX SYNOPSIS

exceltex [options] file[.tex]

DESCRIPTION

Exceltex is a LaTeX package combined with a helper program written in Perl. It provides a easy to use yet powerfull and flexible way to get data from Spreadsheets into LaTeX.

In difference to other existing solutions, exceltex does not seek for making the creation of tables in LaTeX easier, but to get data from Spreadsheets into LaTeX as easy as possible.

The excel fileformat acts as an interface between the spreadsheet application and exceltex beacause it is easily accessible via the Spreadsheet::ParseExcel Perl module and because most spreadsheet applica- tions are able to read and write excel files.

OPTIONS

−h|−−help

show this help

−v|−−version

show program version and exit

−c|−−cleanup

remove temporary files created by previous runs

−i|−−ignore−warnings

exit with status zero, even on warnings

−o|−−euro−symbol=sym

use sym as the euro currency symbol [EUR]. Best is to use \usepackage{eurosym} and set sym=\euro{}

−e|−−encoding=enc

set encoding to enc. Currently supported encodings are: latin1, latin9, utf8 [latin1]

−−[no]reformat−sn

(dont) reformat scientific numbers to A X 10ˆB notation

−−[no]comma

(dont) use comma for decimal numbers

−−[no]format

(dont) use formatting

−−[no]nocolor

(dont) use colors

−p|−−plain

shorthand for −−noformat −−nocolor −−noreformat−sn

Exceltex should work right out of the box in most cases without specifying any options.

LATEX COMMANDS

The exceltex LaTeX package provides two macros to include data from singe cells and cell ranges.

\inccell{foo.xls!results!B9}

includes cell B9 from sheet results in file foo.xls

version 0.5.1 April 26, 2006 1

(2)

exceltex(1) exceltex(1)

\inctab{foo.xls!results!B2!C15}

includes the 14 rows between B2 and F15 from sheet results in file foo.xls in LaTeX’ tabular format (’&’ separated columns ended by ’\\’).

For both commands you may omit to specify the filename (foo.xls) if it has the same basename (foo) as the LaTeX file (foo.tex).

EXAMPLE

The following LaTeX code demonstrates the useage of exceltex.

\documentclass{article}

\usepackage{exceltex}

\begin{document}

input cell Sheet1!A1: \inccell{example.xls!Sheet1!A1}

and now a table:

\begin{tabular}{lll}

\hline

column 1 & colum 2 & colum 3 \\

\hline

\inctab{example.xls!Sheet1!A1!C5}

\hline

\end{tabular}

\end{document}

Now, run latex, exceltex and latex again.

As said above, you may omit the filename in \inccell and \inctab if it has the same basename as the LaTeX file.

EXIT STATUS

Exceltex exits with status 0 on Success, status 1 if any warning occured and status 2 after Errors.

REQUIREMENTS

Exceltex depends on the perl module Spreadsheet::ParseExcel and the LaTeX Packages ulem and color.

Currently a Unix like operating system is required, cygwin on windows should work also.

PROBLEMS

* not all Excel files are supported, see Spreadsheet::ParseExcel documentation for details.

* all Characters which need macros in LaTeX are not supported (greek Symbols etc.)

* Don’t use any LaTeX control characters (ˆ,_,#,{,},!) in filenames or Sheet names.

FILES

.exceltexrc

You can set defaults for all options in global ($HOME/.exceltexrc) or project specific (.excel- texrc) configuration files. For example, just put the following two lines in $HOME/.exceltexrc to set the default encoding to utf8 and use the \euro{} macro (from the eurosym package) for the euro symbol:

encoding=utf8

version 0.5.1 April 26, 2006 2

(3)

exceltex(1) exceltex(1)

euro-symbol=\euro{}

Settings from the config files will be overwritten by commandline switches.

IN THE WEB

The newest version and probably more information is available at: http://www.physik.uni- freiburg.de/˜doerr/exceltex

COPYRIGHT

Copyright (c) 2004−2006 by Hans−Peter Doerr

Exceltex is distributed under the terms of the GNU GENERAL PUBLIC LICENSE Version 2.

This is free software; see the source for copying conditions. There is NO warranty; not ev en for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AUTHOR

written by Hans−Peter Doerr <doerr@cip.physik.uni−freiburg.de>

version 0.5.1 April 26, 2006 3

Referenties

GERELATEERDE DOCUMENTEN

Even though the users are taught a different format with a different command syntax, I believe StarTEX will serve as a suitable introduction to L A TEX and document processing,

The n = 2 (AABB and ABAB) probes in the starling study contained several bigrams used in the preceding training phases (2).. *Probes with “ABAB” and

gives a pattern table whose second column has width ‘width’ as a proportion of the page. The default value for this width

Es gibt f¨ ur jeden Schleifentyp eine Definition, mit der dieser Typ erzeugt werden kann.. \S{htext i} Das ist der

Praesent pretium, magna in eleifend egestas, pede pede pretium lorem, quis consectetuer tortor sapien facilisis magna.. Mauris quis magna varius nulla

The placement can be specified for a single floating object by passing an optional argument to the floating environment or for all floating objects using the \floatplacement

The other thing we do is define a command \includedoc, which includes a file which is allowed to have its own \documentclass and \begin{document} and \end{document} and

The idea presented here follows a standard LaTeX pattern – run LaTeX twice, once before Python, leaving breadcrumbs for Python to pickup during its run, then a final LaTeX run