FranklinUtils.html
— Methodhtml(s)
Mark a string as HTML to be included in Franklin-markdown. Line spacing is to reduce issues with <p>
.
FranklinUtils.isapproxstr
— Methodisapproxstr(s1, s2)
Check if two strings are similar modulo spaces and line returns.
FranklinUtils.lxargs
— Functionlxargs(s)
Extract function-style arguments. Expect (arg1, arg2, ..., name1=val1, name2=val2, ...)
Example:
julia> a = ":section, 1, 3, title="hello", name="bar""
julia> lxargs(a)
(Any[:section, 1, 3], Any[:title => "hello", :name => "bar"])
FranklinUtils.lxargs
— Methodlxarg(com)
For a LxCom, extract the first brace and process as function arguments.
FranklinUtils.lxd
— Methodlxd(n)
Create a dummy latex definition (useful for testing).
FranklinUtils.lxmock
— Methodlxmock(s)
Creates a mock command from a string so that it can be parsed as a Franklin.LxCom.
FranklinUtils.lxproc
— Methodlxproc(com)
Extract the content of a single-brace lx command. For instance \com{foo}
would be extracted to foo
.
FranklinUtils.@env
— Macro@env
Same as @lx
but for environments
FranklinUtils.@lx
— Macro@lx
Streamlines the creation of a "latex-function".