Skip to content

Typesetting TRPG Character Sheets #1407

Answered by PietroCarrara
GCRVL asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's me! Getting the math to work on rotating the text was a pain, but I did hack something together.

The more complex layouts, such as the attribute boxes, have been designed in inkscape. Then the lua code comes in, replaces some text and renders that into a png. I then insert this image into the output PDF. It does sound ugly (and is), but it's pretty versatile.

  self:registerCommand("attribute", function (opts, content)
    local file = assert(io.open(SILE.resolveFile("svg/attribute.svg"), "r"))
    local contents = file:read("a")
    file:close()

    if opts.name then
      contents = contents:gsub("@NAME@", opts.name)
    end
    if opts.mod then
      contents = contents:gsub

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GCRVL
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GCRVL
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Omikhleia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants