按照这个答案(https://tex.stackexchange.com/a/472967/211164),我正在尝试创建一个从公元前 200,000 年至公元 2020 年的历史时间线,但似乎页面空间不足:"Dimension too large."
我如何才能扩展尺寸以使我的时间轴适合一张纸?或者,垂直放置是否更容易?
\documentclass{article}
\usepackage{chronosys}
\newcommand{\mychronodatestyle}[1]{
\pgfmathparse{equal(sign(#1),-1)? int(abs(#1)):#1 }
\pgfmathresult
\pgfmathparse{equal(sign(#1),-1)? "BCE":}
~\pgfmathresult
}
\catcode`\!=11
\def\eventyear{\!chreventyear}
\catcode`\!=12
\newcommand{\myeventdatestyle}[1]{
\pgfmathparse{equal(sign(\eventyear),-1)? int(abs(\eventyear)):"#1"}
\pgfmathresult
\pgfmathparse{equal(sign(\eventyear),-1)? "BCE":}
~\pgfmathresult
}
\begin{document}
\startchronology
[startyear=-200000,stopyear=2020, arrow=false, height=0.2em, dateselevation=10pt,datesstyle=\mychronodatestyle]
\chronoevent[datestyle=\myeventdatestyle ]
{12/-100000}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/-80000}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/-7000}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/-753}{Rome's foundation}
\chronoperiode[datesstyle=\mychronodatestyle,dateselevation=2pt]{-500}{-200}{important event}
\chronoevent[datestyle=\myeventdatestyle ]
{12/-80}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/-2}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/6}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/68}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/895}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/1003}{something}
\chronoevent[datestyle=\myeventdatestyle ]
{12/2018}{something}
\stopchronology
\end{document}
注意:这是一个浓缩版本,因为实际版本包含更多日期输入。