14
submitted 11 months ago by drailin@kbin.social to c/programming@beehaw.org

Hey there programmers, I know this is a more markup/typesetting deal, but I thought there might be people who are interested. After being dissapointed with many of the options out there for making ttrpg item cards, I made a LaTeX template for that exact purpose. I wanted it to be relatively easy to use, generate clean images, and be (semi) form fillable. The cards scale in height with the quantity of text given and image size, so users don't need to finagle with the box dimensions too much, and all card sections (generated by custom commands) can either be commented out or toggled off if they aren't relevant to the item.

If there are any people familiar with TeX who have thoughts or constructive criticism, I would love to get some more eyes on this. I have already posted this in the relavant ttrpg areas, but I am hoping people here might have more technical critiques. I have already gotten feedback that a setting for fixed dimensions would be smart in case players want to get card sleeves or a card binder, and want to make a back side for longer item descriptions, which I will work into V2.

Here is an example of a completed card with all the trimmings: Staff of the Jackal Lord

Thanks to anyone who takes the time to check it out, and if anyone uses it, please let me know what you think!

top 8 comments
sorted by: hot top controversial new old
[-] Butterbee@beehaw.org 2 points 11 months ago

Hey this looks super cool! I don't know LaTeX or TeX, nor am I a programmer, but I do play D&D and would love to be able to make some item cards for my group. Any tips on getting started aside from the obvious of looking up what on earth LaTeX is and how to use it?

[-] drailin@kbin.social 3 points 11 months ago* (last edited 11 months ago)

LaTeX is a typeset that is written in plain text with Markup language. Word, docs, acrobat are all WYSIWYG (what you see is what you get) editors, so you type the words and use toolbars to edit formatting. In markup, what you write is what you get: you type everything, including the commands for alignment, spacing, etc. It makes control and customization of your document easier. If you ever have tried to use MS Word to make a good looking equation and wanted to die when it messed up your images and spacing 10 pages back, markup typesetting is the solution.

My tip would be to find a few templates on overleaf that you might find useful and just mess around and try to come up with what you want to see. Could be for work documents, could be for a hobby, whatever. Overleaf, the website I shared this project on, is great because it handles the backend stuff like compiling, software installs, etc. and allows you to easily copy templates over from premade projects in the gallery.

I learned to use it for writing scientific publications, but eventually I used it for all my homework, making 'official' looking DnD content, keeping a log of my work; basically most documents that are longer than 1 page. It is particularly good for science and math writing, but is almost as versatile as HTML for whatever you want to make.

[-] Butterbee@beehaw.org 2 points 11 months ago
[-] Domiku@beehaw.org 2 points 11 months ago

It's a really great system for writing technical documents. I used it a ton in college for my research papers.

[-] IrritableOcelot@beehaw.org 2 points 11 months ago

I use LaTeX almost every day for typesetting, and I had no idea you could use it for this complex of graphical representation! This is awesome.

[-] drailin@kbin.social 2 points 11 months ago

It was funky and felt distinctly un-LaTeX with the pdf cropping and graphic declarations, but was super fun. Way different from academic writing or even hobby typesetting with normal, pre-made classes (the DnD 5e LaTeX Template by rpgtex is a gamechanger for homebrewed dnd content and was the catalyst for this). The standalone document class is really weird to work with, and using tcolorboxes as the main document content feels like I am fitting a square peg into a non-euclidean hole, but it is still working!

I am just glad I decided to use LaTeX and not python for this.

[-] gromnar@beehaw.org 1 points 11 months ago

How much I do love those fonts. That proper spacing and balancing... It will always a place in my heart and I fear the day that I will fail to recognize it!

[-] drailin@kbin.social 2 points 11 months ago

They are, and will always be, iconic. I only used one other source when making this, mainly for the font pack and the potential to add a texture map to the text block in lieu of solid gray.

this post was submitted on 21 Nov 2023
14 points (100.0% liked)

Programming

13360 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS