Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin{luacode*}
- function doline(line)
- local splitpoint = string.find(line, "=")
- local title = line:sub(1, splitpoint-1)
- local description = string.gsub(line:sub(splitpoint + 1), "\par", "n")
- tex.print(title)
- for token in string.gmatch(description, "[^n]+") do
- tex.print("&\multicolumn{4}{p{11cm}}{" .. token .. "}\\[2pt]")
- end
- tex.print("\hline")
- end
- end{luacode*}
- newcommand{tabularline}[1]{%
- directlua{
- doline("luatexluaescapestring{detokenize{#1}}")
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement