GeneralWant to create sorted list of Birthdays

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

Want to create sorted list of Birthdays

Post by west.logan »

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

Code: Select all

\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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply