时间线
\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{chronosys}
\begin{document}
\subsection*{Biographical cornerstones}
\startchronology[startyear=1850,stopyear=1950,height=0.5ex]
%\chronoevent{1858}{\parbox{5cm}{Publication of Darwin's Evolutionary Theory}}
%\chronoevent{1883}{\parbox{5cm}{born in the Austrian part of Austrian part of Austria-Hungary}}
\chronoevent{1858}{Publication of Darwin's Evolutionary Theory}
\chronoevent{1883}{born in the Austrian part of Austrian part of Austria-Hungary}
\chronoevent{1950}{died 1950 in USA}
\stopchronology
\end{document}
看起来像这样:
(PDF 截图,带有 okular reader 的边框,100% 缩放)
出现以下问题:
- 如何保留页面上的标签(换行符应自动计算)?添加 parbox(在注释中)有帮助,但它可能会破坏以下问题的对齐(因此我将其注释掉以表明它不是强制性的)。
- 如何修复垂直对齐,使其看起来像 chronosys 文档中那样(http://ftp.fau.de/ctan/macros/latex/contrib/chronosys/docchronosys_en.pdf) 在第 3.3.2.1 节中(我不知道如何实现这种布局)?
答案1
我使用选项textwidth
和 markdepth
。我认为没有自动应用这些参数的机制。chronosys
它们必须应用于每个chronoevent
。正如应用于您的 MWE 一样:
\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{chronosys}
\begin{document}
\subsection*{Biographical cornerstones}
\startchronology[startyear=1850,stopyear=1950,height=0.5ex]
%\chronoevent{1858}{\parbox{5cm}{Publication of Darwin's Evolutionary Theory}}
%\chronoevent{1883}{\parbox{5cm}{born in the Austrian part of Austrian part of Austria-Hungary}}
\chronoevent[textwidth=4cm]{1858}{Publication of Darwin's Evolutionary Theory}
\chronoevent[textwidth=4.5cm,markdepth=50pt]{1883}{born in the Austrian part of Austrian part of Austria-Hungary}
\chronoevent{1950}{died 1950 in USA}
\stopchronology
\end{document}
产生以下内容: