LaTeX¶
resume.tex is work in progress, and generates resume.pdf
I make
use of the fontawesome5
package, and a Lua pandoc
filter to workaround not having worked out how to support v6 of fontawesome yet.
It also generates resume.docx
example¶
pandoc -L fontawesome.lua ...
function Str(element)
-- Map markdown icon names to LaTeX commands
local icon_map = {
["rick-astley"] = "\\faRickAstley"
-- ...
}
-- Match :icon: pattern
local icon = string.match(element.text, "^:(.*):$")
if icon then
-- Replace :icon: with corresponding LaTeX command or empty string
local latex_icon = icon_map[icon] or ""
return pandoc.RawInline("latex", latex_icon)
else
return element
end
end
notes¶
- fix errors with
[link](javascript:xxx)
fontawesome.lua
could be improved with more icon support- superfences markdown tabbed content doesn't render well, and interprets it as a codeblock without wrap