@@ -23,7 +23,7 @@ julia> Pkg.add("LibTeXPrintf")
23
23
24
24
# Documentation
25
25
26
- LibTeXPrintf.jl export eight functions
26
+ LibTeXPrintf.jl export nine functions
27
27
28
28
``` julia
29
29
texfonts ():: Vector{String}
@@ -32,11 +32,10 @@ texsetfont!(font::String)::String # modifies global state, doesn't modify its ar
32
32
33
33
texsymbols ():: ImmutableDict{String, String}
34
34
35
- texprintf (format:: String , args... ; [lw]):: String
36
- texprintf (format:: LaTeXString , args... ; [lw]):: String
35
+ texstring (tex:: String ; [lw]):: String
37
36
38
- stexprintf (format :: String , args ... ; [lw]):: String
39
- stexprintf (format :: LaTeXString , args ... ; [lw]):: String
37
+ texprint (tex :: String ; [lw]):: String
38
+ texprintln (tex :: String ; [lw]):: String
40
39
41
40
texsetascii ()
42
41
texsetunicode ()
@@ -45,18 +44,6 @@ texsetunicode()
45
44
The documentation of every one of these can be consulted in help mode in the
46
45
REPL (press ` ? ` to change to help mode, ` backspace ` to exit).
47
46
48
- ### Format string
49
-
50
- The ` format ` positional argument is interpreted as $\LaTeX$ code, but with the
51
- extra that format specifiers of ` @printf ` (or the ` printf ` function in the
52
- C language) are allowed inside.
53
-
54
- The argument ` format ` can also be a ` LaTeXString ` , from
55
- [ LaTeXStrings.jl] ( https://github.com/stevengj/LaTeXStrings.jl ) . Interpolation
56
- from ` LaTeXString ` will have precedence over substitution of variables. That
57
- is, if ` %$expr ` appears in a ` LaTeXString ` passed to ` stexprintf ` , ` expr ` will
58
- be interpolated into the string before being passed as argument.
59
-
60
47
** Note**
61
48
: Newline character is not supported by libtexprintf. If you use it, it will not work or
62
49
errors will appear.
@@ -68,29 +55,30 @@ julia> using LibTeXPrintf
68
55
69
56
julia> using LaTeXStrings
70
57
71
- julia> stexprintf (" \\ frac{1}{%d} " , 2 )
58
+ julia> texstring (" \\ frac{1}{2} " )
72
59
" 1\n ─\n 2"
73
60
74
- julia> texprintf (" \\ sum_{i=0}^{10}{%c }^2" , ' i ' )
61
+ julia> texprintln (" \\ sum_{i=0}^{10}{i }^2" )
75
62
10
76
63
⎯⎯
77
64
╲ 2
78
65
╱ i
79
66
⎺⎺
80
67
i= 0
68
+
81
69
julia> texgetfont ()
82
70
" text"
83
71
84
72
julia> texsetfont! (" mathbb" )
85
73
" mathbb"
86
74
87
- julia> texprintf (" This is a LaTeX string." )
75
+ julia> texprintln (" This is a LaTeX string." )
88
76
𝕋𝕙𝕚𝕤 𝕚𝕤 𝕒 𝕃𝕒𝕋𝕖𝕏 𝕤𝕥𝕣𝕚𝕟𝕘.
89
77
90
78
julia> texsetfont! (" text" )
91
79
" text"
92
80
93
- julia> stexprintf (" This is a LaTeX string." )
81
+ julia> texprint (" This is a LaTeX string." )
94
82
" This is a LaTeX string."
95
83
```
96
84
0 commit comments