Artefact2 / texbrew

An attempt to make good-looking homebrew documents for various roleplaying systems using XeTeX for typesetting.
Do What The F*ck You Want To Public License
53 stars 8 forks source link

Conversion to Documentclass or Package? #1

Open bashterm opened 7 years ago

bashterm commented 7 years ago

How hard would it be to convert texbrew into a documentclass or package? I'd be happy to help with the little knowledge of latex that I have.

Am I missing some design philosophy of the way the code is designed?

Thanks,

bashterm

Artefact2 commented 7 years ago

I'm sure it's possible.

What would be a good use case for doing it though? The code base assumes that memoir is being used, especially for setting up the layout, the sectioning, the table of contents…

bashterm commented 7 years ago

It would modularize it. This way people can just throw \documentclass[10pt,letterpaper,twoside]{dndbook} or whatever you'd want to call it, and then can use the built in commands without needing to make a new copy of the code each time they do so.

As for the memoir class that can actually be extended upon by using the \LoadClass[options]{memoir} flag in the .cls file itself.

I've done some research and if it's alright with you I'd like to tackle it in my free time. I haven't done a lot of work with making documentclasses before, so this is a fun challenge for me.

Artefact2 commented 7 years ago

Sure! If it works and is more easily customisable, I'll gladly merge it. I would name it dndmemoir though, as to avoid confusion with the book document class.

bashterm commented 7 years ago

Ok thanks.