diff options
author | Norbert Preining <preining@logic.at> | 2007-12-28 18:55:22 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-12-28 18:55:22 +0000 |
commit | 682bb4f367624233229c3e010939620311f36356 (patch) | |
tree | 011c4a25456e61cbf1085665aae63aa2c17f6675 /Master/texmf-dist/tex/latex/exceltex | |
parent | 24dbc3defa416dfe2f3fb5d17392238bbad399e6 (diff) |
add exceltex, the perl script remains in doc ...
git-svn-id: svn://tug.org/texlive/trunk@5970 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/exceltex')
-rw-r--r-- | Master/texmf-dist/tex/latex/exceltex/exceltex.sty | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/exceltex/exceltex.sty b/Master/texmf-dist/tex/latex/exceltex/exceltex.sty new file mode 100644 index 00000000000..1b2dadeaac5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/exceltex/exceltex.sty @@ -0,0 +1,60 @@ +% $Id: exceltex.sty 155 2006-04-30 11:25:16Z pez $ +% +% get data from excel files into LaTeX +% +% (c) 2004-2006 by Hans-Peter Doerr <doerr@cip.physik.uni-freiburg.de> +% +% exceltex is free software. you can redistribute or modify it under +% the terms of the GNU GENERAL PUBLIC LICENSE Version 2. See COPYING for +% details. +% +\def\exceltexVersion{0.5.1} +% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{exceltex}[2006/04/30 v.\exceltexVersion] +\DeclareOption{cellrefs}{\def\cellrefs{1}} +\ProcessOptions +% +\typeout{This is exceltex v\exceltexVersion} +% ulem needs option normalem for not breaking \em and \emph +\RequirePackage[normalem]{ulem} +\RequirePackage{color} +%\RequirePackage{eurosym} +% +\newcounter{exceltexCounterC}\setcounter{exceltexCounterC}{0} +\newcounter{exceltexCounterT}\setcounter{exceltexCounterT}{0} +% +\immediate\openout 10=\jobname.excltx +% +% +% write index header +\ifx\cellrefs\undefined +% +\else +\immediate\write 10{;cellrefs} +\fi +\immediate\write 10{;created by exceltex v. \exceltexVersion} +% +\newcommand{\inccell}[1]{% + \stepcounter{exceltexCounterC}% + \ifx\cellrefs\undefined% + \immediate\write 10{c:\theexceltexCounterC:#1}% + \InputIfFileExists{\jobname-excltx/c-\theexceltexCounterC}{}{}% + \else + \immediate\write 10{c:#1}% + \InputIfFileExists{\jobname-excltx/c-#1}{}{}% + \fi +}% +% +% +\newcommand{\inctab}[1]{% + \stepcounter{exceltexCounterT}% + \ifx\cellrefs\undefined% + \immediate\write 10{t:\theexceltexCounterT:#1}% + \InputIfFileExists{\jobname-excltx/t-\theexceltexCounterT}{}{\\}% + \else + \immediate\write 10{t:#1}% + \InputIfFileExists{\jobname-excltx/t-#1}{}{\\}% + \fi +}% +\endinput |