我正在使用 ticket-pakage 排版文件夹标签。这很好用,但由于宽度不同,我尝试使用相对位置而不是绝对位置来增加更多灵活性。我目前的解决方案是使用一个表格,所有内容都放进去。我希望“主题”(旋转)位于标签底部(mwe 中的页面)。
我如何实现这个目标?
\documentclass[a4paper,10pt,draft]{letter}
\usepackage[emptycrossmark]{ticket}
\usepackage[]{enumitem}
\setlist[itemize]{leftmargin=2mm}
\unitlength=1mm
\hoffset=-16.2mm
\ticketNumbers{1}{4}
\ticketSize{192}{61}
\ticketDistance{0}{0}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\renewcommand{\ticketdefault}{}%neccessary to 'clean' the
\newcommand{\filelabel}[3]{
\ticket{
\put(0,0){
\begin{sideways}
\begin{minipage}[t][\ticketHeight][t]{\ticketWidth}
\begin{tabular}{@{}p{\ticketHeight}@{}}
\multicolumn{1}{c}{
\includegraphics[width=.8\ticketHeight]{unilogo_cut}
}\\[2mm]
\hspace*{\fill}\huge#2\hspace*{2mm}\\[2mm]
#3\\
\multicolumn{1}{r|}{
\begin{rotate}{90}
\Huge#1%this entry should go to the bottom of the label
\end{rotate}
}
\end{tabular}
\end{minipage}
\end{sideways}
}
}
}
\newcommand{\entry}[2]{
\textbf{\Large#1}
#2
\vspace{5mm}
}
% and here are the labels...
\begin{document}
\sffamily
\filelabel{Versicherungen}{1}{
\entry{PKV}{
\begin{itemize}
\item Vertragswerk
\end{itemize}
}
\entry{Haftpflicht}{
\begin{itemize}
\item Vertragswerk
\end{itemize}
}
\entry{Hausrat}{
\begin{itemize}
\item Sonstiges
\end{itemize}
}
}
\ticketNumbers{1}{7}
\ticketSize{192}{35}
\filelabel{DSS / ICT}{1}{
\entry{ADSP}{
\begin{itemize}
\item Script
\item Übungen
\begin{itemize}
\item Mitschrift
\item Selbstrechen
\end{itemize}
\item Fragezettel
\item Altklausuren
\end{itemize}
}
\entry{Wireless Comm.}{
\begin{itemize}
\item Script
\item Übungen
\begin{itemize}
\item Mitschrift
\item Selbstrechen
\end{itemize}
\item Fragezettel
\item Altklausuren
\end{itemize}
}
}
\end{document}