
我正在使用時間表chronosys
包裹。
我注意到箭頭與時間軸的矩形並不完全對齊,即使在文件中也是如此......使用顏色選項並不那麼明顯,但是當使用框選項(概述時間軸)時,轉變是可見的。
上圖顯示了文件第 20 頁中箭頭未對準的情況。
這是我透過以下程式碼得到的結果:
\documentclass[]{article}
\usepackage{chronosys}
\begin{document}
\begin{figure} \centering
\begin{chronology}
[startyear=2005,stopyear=2015, dates=false,
color=black!20, box=true,
height=1cm, width=2cm,
]
\end{chronology}
\end{figure}
\end{document}
我們可以看到,除了沒有完全對齊之外,頭部的顏色也存在問題(這對我來說並不重要,因為我希望顏色是白色的,但可能對其他人有用)
答案1
chronos
允許您使用通常的 Ti 指定箭頭kZ 語法並使用標準 Ti 進行繪製kZ 方法。
\documentclass{standalone}
\usepackage{chronos}% https://codeberg.org/cfr/chronos/
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{chronos}
[
timeline={
dates=2005:2015,
width'=20mm,
height'=10mm,
timeline years=none,
timeline line={
-{Triangle[open,black,fill=gray,line width=.4pt,length=5mm,width=12mm]},
},
timeline foreground=gray,
},
]
\end{chronos}
\end{document}