I search for a command that do something like this: I can enter two time intervals: the first is the total length of the time-line, and the second is the period to be highlighted. For example the following command:
\timeline{1900-2000}{1950}{2000}
produce something like this:
Another example:
\timeline{1900-2000}{1925}{1965}
Optionally I can print the years (for example with the *
symbol):
\timeline{*1900-*2000}{*1945}{1976}
If I want to print all the years, I can enter both the following commands:
\timeline{*1900-*2000}{*1950}{*2000}
\timeline[*]{1900-2000}{1950}{2000}
Another example:
\timelineyears[*]{1900-2000}{1925}{1965}
If I want I can enter an inexact year (for example with the ~
symbol), that produce a colour gradient in the direction of that year. Example:
\timelineyears{1900-2000}{1945}{~1976}
\timelineyears{1900-2000}{~1945}{1976}
\timelineyears{1900-2000}{~1945}{~1976}
(Perhaps, if I enter an inexact year and I print it, it is better to differentiate it in some way respect to the exact years.)
I can also set the time interval:
\settimeinterval{1900-2000}
in this way I have only to specify the range to highlight:
\timeline{1912}{1920}
The time interval remains the same until the next \settimeinterval
declaration (but I can overwrite it with the default command \timeline{a-b}{c}{d}
).