3 ms·
I use JSON to store my resume, and Latex to format it. Here is a snippet: ``` \begin{luacode} require("lualibs.lua") local file = io.open('data.json') loc
by MikeKusold 7y ago
I use JSON to store my resume, and Latex to format it.
Here is a snippet:
```
\begin{luacode}
require("lualibs.lua")
local file = io.open('data.json')
local jsonstring = file:read('*a')
file.close()
local jsonData = utilities.json.tolua(jsonstring)
-- Header --
local personal = jsonData["personal"]
-- Education --
local education = jsonData["education"]
tex.print('\\section{Education}')
for key, value in pairs (education) do
tex.print('\\cventry{' .. value["year"] .. '}{' .. value["degree"] .. '}{' .. value["school"] .. '}{' .. value["location"] .. '}{}{' .. value["specialty"] .. '}')
end
```