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

Code, edit and compile here:
\birthdate{Bob}{January}{1}
\birthdate{Tom}{February}{1}
\birthdate{Jill}{January}{15}
\birthdate{Alice}{January}{1}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply