mrzool / invoice-boilerplate

Simple automated LaTeX invoicing system
http://mrzool.cc/tex-boilerplates/
GNU General Public License v2.0
702 stars 102 forks source link

custom yaml file #13

Open pedro-nonfree opened 5 years ago

pedro-nonfree commented 5 years ago

allow changing the yaml file when executing the make command

I put this here for commenting, what do you think? Is a way of saving the invoice in both formats: yaml and pdf. Without this I feel a little bit of chaos, copying the yaml I want from invoice1111.yml to details.yml and so on

example with the default usage (but output would be details.pdf)

make with yml=details.yml

example of another random yml file (output would be invoice111.pdf)

make with yml=invoice111.yml
bibz commented 4 years ago

Thank you for this patch, very useful!

Worth noting that the new recipe is indented with spaces and not tabs. Some Make implementations are on the conservative side by default and won't accept that with the following error:

% make
makefile:17: *** missing separator.  Stop.
pedro-nonfree commented 4 years ago

Glad you liked, @bibz

Commit fixed as you said

looks like this project is dead, check it out my fork to get even more inspiration: https://gitlab.com/pedrolab/invoice-boilerplate