LaTeX forum ⇒ GeneralWant to create sorted list of Birthdays

LaTeX specific issues not fitting into one of the other forums of this category.
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Want to create sorted list of Birthdays

Postby west.logan » Mon Aug 30, 2021 4:31 am

I'm creating something like a directory and it would be really nice to put each person's birthday information into something like an index and have it sorted and printed at the end. I envision something like

\birthdate{Bob}{January}{1} 
\birthdate{Tom}{February}{1}
\birthdate{Jill}{January}{15}
\birthdate{Alice}{January}{1}


Which would then be sorted into

January
1 Alice; Bob
15 Jill

February
1 Tom

Of course the months wouldn't be in alphabetical order, but calendar order. I've thought about trying to do it with an index but so far haven't been able to figure out how to make the index ignore page numbers and sort by dates. Any initial thoughts on a direction or package I should explore?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook

Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests