-
Notifications
You must be signed in to change notification settings - Fork 21
/
currfile.cwl
67 lines (51 loc) · 1.07 KB
/
currfile.cwl
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
# currfile.sty
# Chris 28/08/2013
\currfiledir
\currfilebase
\currfileext
\currfilename
\currfilepath
\ifcurrfiledir{text}{true}{false}
\ifcurrfilebase{text}{true}{false}
\ifcurrfileext{text}{true}{false}
\ifcurrfilename{text}{true}{false}
\ifcurrfilepath{text}{true}{false}
\ifcurrfile{currfile macro or text}{text}{true}{false}
# Additional currfile macros for absolute dir and path
\currfileabsdir
\currfileabspath
\ifcurrfileabsdir{text}{true}{false}
\ifcurrfileabspath{text}{true}{false}
# Stand-alone usage of currfile-abspath
\getpwd
\thepwd
\getmainfile
\themainfile
\getabspath{file name}
\getabspath{dir/file name}
\theabspath
\theabsdir
# Parent filemacros
\parentfiledir
\parentfilebase
\parentfileext
\parentfilename
\parentfilepath
\parentfileabsdir
\parentfileabspath
# Access all parent files
\currfilegetparents
\parentfilediri
\parentfiledirii
\parentfilebasei
\parentfilebaseii
\parentfileexti
\parentfileextii
\parentfilenamei
\parentfilenameii
\parentfilepathi
\parentfilepathii
\parentfileabsdiri
\parentfileabsdirii
\parentfileabspathi
\parentfileabspathii