如何混合两个不同的文档?

如何混合两个不同的文档?

以下是文档一及其相关.lco文件:


.lco


\ProvidesFile{standard.lco}[%    
    2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]    
\usepackage[english]{babel}    
\usepackage{fontspec}
\usepackage{fix-cm} 
\usepackage{marvosym}
% ==================================================    
% PERSONAL DATA
% ==================================================
\setkomavar{fromname}{From Name}
\setkomavar{fromaddress}{From Address}
\setkomavar{fromphone}{From Phone}
\setkomavar{fromemail}{From Email}
\setkomavar{place}{From Place}
\setkomavar{signature}{Signature(s)}
% ==================================================
% FORMATTING
% ==================================================
\defaultfontfeatures{Mapping=tex-text}
\setmainfont {Diavlo Light Regular}
\setsansfont {Gill Sans Light}
\renewcommand{\normalsize}{\fontsize{11}{16}\selectfont}
\newcommand\myname{%
    {\addfontfeature{LetterSpace=15.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}
}
\newcommand\mytitle{%
    \fontsize{21}{21}\selectfont\scshape Profession
}
\setkomavar{firsthead}{
    \centering
        \myname\\[5mm]
        \mytitle
}
\setkomavar{firstfoot}{
    \centering
    \addfontfeature{LetterSpace=20.0}\scshape
    {\renewcommand{\\}{\ {\large\textperiodcentered}\ }
    \usekomavar{fromaddress}}\\
    {\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}
}   
\endinput

文档 1


\documentclass[standard,letterpaper,pagesize,UScommercial9,foldmarks=false]{scrlttr2}%backaddress=plain
\usepackage[english]{babel}
\usepackage{fontspec}
\usepackage{fix-cm} 
\usepackage{marvosym}
\begin{document}    
\begin{letter}{    
    Master of Provisions            \\%
    Company Name        \\%
    Company Address             \\%    
    Company Address \\%
    USA
}    
\setkomavar{subject}{Business Proposal}    
\opening{Dear Sir or Madam,}    

Hello, and good evening \footnote{Note well this message. It's important}. I am a businessman, and I do business.

\closing{Regards}    
\end{letter}    
\end{document}

以下为文件二:


文档 2


\documentclass[standard]{letter}
\usepackage{invoice}
\address{Address \\ Address \\ Address \\ Address}
\signature{Pig Master}
\date{23. May 2009}
\begin{document}
  \begin{letter}{Address \\ Address \\ Address \\ Address}
    \opening{Invoice no. 1}
    My greeting
    \begin{invoice}{USD}{0}
      \ProjectTitle{Project 1}%
      \Fee{Development} {1000.00} {1}
    \end{invoice}
    \closing{I am a bumblebee}
  \end{letter}
\end{document}

我想知道如何将文档一及其相关.lco文件的一些功能融合到文档二中;也就是说,发票底部如何显示电话电子邮件页脚?如何获取文档范围的 Diavlo Light Regular 字体?标题为 wm.jpg 的水印怎么样?

答案1

您问的基本上是,如何在第一个文档中获取发票。答案出奇的简单,只需加载包即可。

\begin{filecontents}{mikeBlendDocs.lco}
\ProvidesFile{mikeBlendDocs.lco}[%    
    2014/12/18 v0.1 LaTeX2e unsupported letter-class-option]    
\setkomavar{fromname}{From Name}
\setkomavar{fromaddress}{From Address}
\setkomavar{fromphone}{From Phone}
\setkomavar{fromemail}{From Email}
\setkomavar{place}{From Place}
\setkomavar{signature}{Signature(s)}

\setkomavar{firstfoot}{\parbox{\textwidth}{\centering%
    {%
        \renewcommand{\\}{~{\large\textperiodcentered}~}%
        \usekomavar{fromaddress}%
    }\\%
    \usekomavar*{fromemail}\usekomavar{fromemail}\quad\usekomavar*{fromphone}\usekomavar{fromphone}%
}%
}
\endinput
\end{filecontents}

\documentclass[mikeBlendDocs,symbolicnames,letterpaper,pagesize,UScommercial9,foldmarks=false]{scrlttr2}%backaddress=plain
\usepackage[english]{babel}
\usepackage{invoice}
\begin{document}    
\begin{letter}{    
    Master of Provisions            \\%
    Company Name        \\%
    Company Address             \\%    
    Company Address \\%
    USA
}    
\setkomavar{subject}{Business Proposal}    
\opening{Dear Sir or Madam,}    

Hello, and good evening \footnote{Note well this message. It's important}. I am a businessman, and I do business.
    \begin{invoice}{USD}{0}
      \ProjectTitle{Project 1}%
      \Fee{Development} {1000.00} {1}
    \end{invoice}

\closing{Regards}    
\end{letter}    
\end{document}

相关内容