更改發票類別選項卡

更改發票類別選項卡

這是來自一個較舊的問題,但我想知道如何更改下面的程式碼以使數量選項卡顯示“項目”而不是“小時”?

\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}

相關內容