以下是我目前的工作内容:
\documentclass{letter}
\usepackage{background}
\usepackage{lipsum}
\backgroundsetup{%
scale=4, %% change accordingly
angle=0, %% change accordingly
opacity=.1, %% change accordingly
color =green, %% change accordingly
contents={\begin{tikzpicture}[remember picture,overlay]
\node at ([yshift=11pt,xshift=5pt]current page.center) {\includegraphics[width=5cm]{example-image-a}};
\end{tikzpicture}}
}
\usepackage{invoice}
\address{\emph{Invoice from:} \\ My Address \\ My Address \\ My Address}
\signature{Elmo Face}
\date{23. May 2009}
\begin{document}
\begin{letter}{\emph{Invoice to:} \\ Your Address \\ Your Address \\ Your Address}
\opening{Invoice no. 1}
My greeting \footnote{Super important, so don't forget.}
\begin{invoice}{USD}{0}
\ProjectTitle{Example Project}
\Fee{Development} {1000.00} {1}
\end{invoice}
\closing{Invoice Release Authorization}
\end{letter}
\end{document}
我想在这里添加评论框,但我不知道如何获取
stackengine
:
\documentclass{letter}
\usepackage[usestackEOL]{stackengine}
\edef\tmpbs{\the\baselineskip}
\setstackgap{L}{\tmpbs}
\newlength\tmpwd
\newlength\tmpht
\usepackage{invoice}
\fboxrule=1pt
\let\svaddress\address
\renewcommand\address[2][]{ OPTIONAL ARGUMENT AS [~] FOR EMPTY INVOICE BOX
\ifx\relax#1\relax\svaddress{#2}\else
\def\theaddress{#2}\invoicenote{#1}\fi}
\def\invoicenote#1{
\def\stackalignment{l}
\setbox0=\hbox{\expandafter\Longstack\expandafter{\theaddress}}
\tmpwd=\wd0\relax
\tmpht=\ht0\relax
\def\y{\fboxsep=0pt\fbox{\rule{0pt}{\tmpht}
\stackon[\tmpht-\tmpbs]{\rule{\dimexpr\textwidth-\tmpwd-3cm\relax}{0pt}}
{~\textsf{\strut INVOICE}~~\smash{\Longunderstack{#1}}}}}
\svaddress{\llap{\y\hspace{3cm}}\expandafter\Longstack\expandafter{\theaddress}}
}
ANY OF THESE FORMS WILL WORK:
\address{\emph{Invoice from:} \\ My Address \\ My Address \\ My Address}
\address[~]{\emph{Invoice from:} \\ My Address \\ My Address \\ My Address}
\address[Hi, Joe\\ Here is your order]{\emph{Invoice from:} \\ My Address \\ My Address \\ My Address}
\signature{Piglet Master}
\date{23. May 2009}
\begin{document}
\begin{letter}{\emph{Invoice to:} \\ Your Address \\ Your Address \\ Your Address}
\opening{Invoice no. 1}
My greeting \footnote{I am a man.}
\begin{invoice}{Euro}{0}
\ProjectTitle{Example Project}
\Fee{Development} {1000.00} {1}
\end{invoice}
\closing{Invoice Release Authorization}
\end{letter}
\end{document}
从我目前所得到的内容开始——除了这个评论框版本之外,我想将它与下面的一些元素混合——我将在图片下方解释:
我希望在最底部放置“感谢您的惠顾。”标语——比如在页面底部上方 1.5 厘米处(居中),并在“发票发放授权”文本正上方放置一个注释框,该注释框的宽度是固定的,但高度是动态的,与发票分隔线的长度相同。此外,我还需要一个大的二维码来编码我的发票号码,其边长与脚注上方的线的长度相同。
我也遇到了对齐水印的问题。它没有居中,为什么整个文档看起来都移到了页面顶部以下这么低的位置?