答案1
\documentclass{article}
\usepackage{lipsum}
\usepackage{gitinfo2}% Don't pass mark option here
%You need to install gitinfo2 as described in the manual before compiling this
\usepackage{graphicx}
\makeatletter
\AddToShipoutPictureBG{%
\AtPageLowerLeft{%
\kern1cm
\raisebox{\dimexpr.5\paperheight-.5\height}
{\rotatebox{90}{\gitMarkFormat\gitMarkPref{} \textbullet{} \gitMark}}%
}%
}%
\makeatother
\begin{document}
\lipsum
\end{document}
(图像已准备好,但由于某些未指定的原因上传失败error at imgur
;好的,10 小时后它可以正常工作)
并进行了一些定制\gitMarkFormat
(特别是\small
不太适应左边距的垂直标记)。
这是
\renewcommand{\gitMarkFormat}{\color{blue}\Large\sffamily\bfseries}
已添加到序言中。