File: rangen.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 (108 lines) | stat: -rw-r--r-- 2,157 bytes parent folder | download | duplicates (2)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# rangen package
# Matthew Bertucci 2022/05/10 for v1.4

#include:lcg

#keyvals:\usepackage/rangen#c
testmode
# options passed to lcg
counter=%<counter%>
first=%<integer%>
last=%<integer%>
seed=%<integer%>
quiet
#endkeyvals

\RandomZ{cmd}{int1}{int2}#d
\RandomZ[options%keyvals]{cmd}{int1}{int2}#d
\nOf{%<\name%>}
\dOf{%<\name%>}
\fmt{%<\name%>}
\ds{%<\name%>}
\RandomQ{cmd}{num1}{num2}#d
\RandomQ{cmd}[max denom]{num1}{num2}#d
\RandomZ[options%keyvals]{cmd}{num1}{num2}#d
\RandomZ[options%keyvals]{cmd}[max denom]{num1}{num2}#d
\RandomR{cmd}{int1}{int2}#d
\RandomR[options%keyvals]{cmd}{int1}{int2}#d

#keyvals:\RandomZ,\RandomQ,\RandomR
ne=%<integer(s)%>
#endkeyvals

#keyvals:\RandomR
round=%<integer%>
showzeros#true,false
#endkeyvals

\RNGpowerOfTen#*
\nDivisionsPowerOfTen{integer}
\RandomL{cmd}{n1,n2,...}#d
\RandomL[options%keyvals]{cmd}{n1,n2,...}#d
\RandomI{cmd}{integer}#d
\RandomP{cmd}{list of literals%definition}#d
\RandomP[options%keyvals]{cmd}{list of literals%definition}#d
\iOf{%<\name%>}

#keyvals:\RandomL,\RandomP
index=%<integer%>
#endkeyvals

\RandomS{cmd}#d
\RandomS[dec]{cmd}#d
\cfmt{%<\name%>}
\efmt{%<\name%>}
\cds{%<\name%>}
\eds{%<\name%>}
\typeOf{%<\name%>}

\defineZ{cmd}{integer}#d
\defineQ{cmd}{numerator}{denominator}#d
\defineR{cmd}{number}#d

\reduceFrac{numerator}{denominator}
\rfNumer
\rfDenom
\gcd{int1}{int2}
\thegcd
\lcm{int1}{int2}
\thelcm

\RNGprintf{string}
\defineDepQJS{cmd}{numerator}{denominator}{script%definition}#d
\js{%<\name%>}
\begin{writeRVsTo}{quizzes|exercises}
\end{writeRVsTo}

\RNGadd{%<\name1%>}{%<\name2%>}
\zZero
\zOne
\zMinusOne
\rPI
\rE

# not documented
\amodb{arg1}{arg2}#*
\cntNumDec{arg1}{arg2}#*
\convertRatTo{arg1}{arg2}{arg3}#*
\decPls#*
\loopCnt#*
\maxLoopLimit#*
\reseedEachRun#*
\retnmod#*
\rndnDec#*
\rndPower#*
\RNGparseRat{arg1}#*
\RNGround{arg1}{arg2}{arg3}#*
\seedCnt#*
\simplifyCurrentQ#*
\simplifyCurrentR#*
\syncronizeQs{arg1}#*
\theseDigits#*
\thisseed#*
\typeCodeForq#*
\typeCodeForr#*
\typeCodeForz#*
\updateQ{arg1}{arg2}{arg3}#*
\updateZ{arg1}{arg2}#*
\varType#*