Repeat a phrase in Latex throughout document -


i set reference phrase in beginning of latex document, such can reference later in document , insert phrase.

purpose create cover letter template personalized each company. later can change reference phrase , latex rest, changing name of company throughout document.

such as,

\documentclass[]{letter}  \include{*company reference package*}  \ref{company xyz}{manufacturing , distribution company of americas, inc.} \begin{document}  dear \ref{company xyz}, have heard great work @ \ref{company xyz}. member of \ref{company xyz}  \end{document} 

you can use \newcommand, so:

\documentclass[]{letter}  \newcommand{\companyxyz}{manufacturing , distribution company of americas, inc.}  \begin{document}  dear \companyxyz, have heard great work @ \companyxyz. member of \companyxyz  \end{document} 

enter image description here


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -