File: calctab.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (61 lines) | stat: -rw-r--r-- 1,469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# calctab package
# Matthew Bertucci 12/26/2021 for v0.6.1

#include:alphalph
#include:booktabs
#include:eurosym
#include:xcolor
# loads table option of xcolor
#include:numprint
#include:xkeyval
#include:ifthen
#include:fltpoint
#include:xstring

\begin{calctab}
\begin{calctab}[description%text]
\end{calctab}
\amount{description%text}{value}
\amount[options%keyvals]{description%text}{value}
\perc{description%text}{percentage}
\perc[options%keyvals]{description%text}{percentage}
\add{description%text}
\add[options%keyvals]{description%text}
\inrule

\begin{xcalctab}
\end{xcalctab}
\amount{description%text}{value1}{value2}
\amount[options%keyvals]{description%text}{value1}{value2}

\ctcurrency{text}
\ctdescription{text}
\ctontranslation{on translation}
\ctheaderone{header%text}
\ctheadertwo{header%text}
\ctsep#*

#keyvals:\amount
id=%<row id%>
#endkeyvals

#keyvals:\perc#c,\add#c
id=%<row id%>
from=%<row id%>
until=%<row id%>
%<row id%>
#endkeyvals

# from table option of xcolor
#include:colortbl
\rowcolors{row}{odd-row-color}{even-row-color}
\rowcolors[commands]{row}{odd-row-color}{even-row-color}
\rowcolors{row}{color}{color}#S
\rowcolors[commands]{row}{color}{color}#S
\rowcolors*{row}{odd-row-color}{even-row-color}
\rowcolors*[commands]{row}{odd-row-color}{even-row-color}
\rowcolors*{row}{color}{color}#S
\rowcolors*[commands]{row}{color}{color}#S
\showrowcolors
\hiderowcolors
\rownum