summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pas-tableur
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-17 22:20:16 +0000
committerKarl Berry <karl@freefriends.org>2014-04-17 22:20:16 +0000
commit88500efb629dafe35d3160d1619eb287faff82e7 (patch)
tree2589661a2776f6a0da5cfb3393af73cbf89e99a9 /Master/texmf-dist/tex/latex/pas-tableur
parent451b6c501e80faca76df23b0e3287a0e9e7ab45d (diff)
pas-tableur (17apr14)
git-svn-id: svn://tug.org/texlive/trunk@33483 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pas-tableur')
-rw-r--r--Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty46
1 files changed, 25 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty b/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty
index 45d53c917f1..d1a735b3768 100644
--- a/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty
+++ b/Master/texmf-dist/tex/latex/pas-tableur/pas-tableur.sty
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
-% pas-tableur.sty v1.04 encodage : UTF8 %
+% pas-tableur.sty v1.06 encodage : UTF8 %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
@@ -9,11 +9,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% V1.02 : 12/05/2012 -> Modification de la macro \tableur : on peut désormais écrire \tableur{A,B,C,D} ou \tableur{A-D}
% V1.03 : 13/05/2012 -> Modification de la macro \celtxt : on peut désormais insérer l'accent circonflexe dans du texte et si le texte est plus large que la cellule, le trait gris de séparation des cellules n'est plus visible (le texte s'écrit par dessus).
-% V1.04 : 13/05/2012 -> Alélioration de la macro \celtxt : le texte est réduit pour ne pas effacer les traits de cellule
+% V1.04 : 13/05/2012 -> Amélioration de la macro \celtxt : le texte est réduit pour ne pas effacer les traits de cellule
+% V1.05 : 25/03/2014 -> Amélioration de la macro \celtxt : conflit avec "$" et "^"
+% V1.06 : 17/04/2014 -> correction du bug sur la macro \celtxt : les options [c] et [r] fonctionnent
% Informations générales
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pas-tableur}[2012/05/12]
+\ProvidesPackage{pas-tableur}[2014/04/17]
\RequirePackage{tikz}
\usetikzlibrary{calc}
@@ -159,27 +161,29 @@
}
%-----------> Insérer un texte dans une cellule <---------------
-\newcommand\celtxt{%
- \begingroup
- \@makeother^%
- \@makeother$%
- \@celtxt@
+
+\newcommand\celtxt[3][l]{%
+ \begingroup
+ \@makeother\^%
+ \@makeother\$%
+ \@celtxt@{#1}{#2}{#3}%
}
-\newsavebox{\tmp@txt}
-\newlength{\tmp@ltxt}
-\newcommand\@celtxt@[4][l]{
- \StrPosition{#4}{=}[\@equalPos]
- \ifnum\@equalPos=1
- \def\@scale{1}
- \def\@style{\texttt}
- \else
- \def\@scale{0.9}
- \def\@style{\relax}
- \fi
- \node[below right] at ($(c0.south west)+({(\ValCol{#2}-1)*\colminwidth},{-(#3-1)*\lineminheight})$) {\makebox[\colminwidth][#1]{\@style{#4}\phantom{-.}}};
- \endgroup
+\newcommand\@celtxt@[4]{%
+ \endgroup
+ \StrPosition{#4}{=}[\@equalPos]
+ \ifnum\@equalPos=1
+ \def\@scale{1}%
+ \let\@style\texttt
+ \else
+ \def\@scale{0.9}%
+ \let\@style\@empty
+ \fi
+ \node[below right] at ($(c0.south west)+({(\ValCol{#2}-1)*\colminwidth},{-(#3-1)*\lineminheight})$) {\makebox[\colminwidth][#1]{\@style{#4}\phantom{-.}}};
}
+%\newsavebox{\tmp@txt}
+%\newlength{\tmp@ltxt}
+
% Macro auxiliaire : colorie en-tête colonne
\newcommand*\colorHead[2]
{