更改发票类别选项卡

更改发票类别选项卡

这是一个较老的问题,但我想知道如何更改下面的代码,让数量选项卡显示“项目”而不是“小时”?

\documentclass{invoice}

\def \tab {\hspace*{3ex}} 

\begin{document}

\hfil{\Huge\bf Initech Inc.}\hfil 
\bigskip\break % Whitespace
\hrule % Horizontal line

123 Broadway \hfill (000) 111-1111 \\ 
City, State 12345 \hfill [email protected]
\\ \\
{\bf Invoice To:} \\
\tab James Smith \\ % Invoice recipient
\tab Generic Corporation \\ % Recipient's company

{\bf Date:} \\
\tab \today \\ 

\begin{invoiceTable}

\feetype{Consulting Services} 

\hourrow{October 3, 2012}{8}{12} 
\hourrow{October 4, 2012}{6.5}{12}
\hourrow{October 5, 2012}{5.25}{12}
\hourrow{October 10, 2012}{9.75}{20}
\hourrow{October 11, 2012}{5}{12.51}

\feetype{Accounting Services} % Fee category description

答案1

您可以使用\unitrow如以下 MWE 所示的命令:

在此处输入图片描述 \documentclass{发票}

\def \tab {\hspace*{3ex}} 

\begin{document}

\begin{invoiceTable}

\feetype{Consulting Services} 

\unitrow{October 3, 2012}{8}{12}{items}
\hourrow{October 4, 2012}{6.5}

\end{invoiceTable}
\end{document}

相关内容