Document Classesnewlfm | Address Data from Database

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

newlfm | Address Data from Database

Post by sjkiss »

Hi,

this is some basic code for a letter I'm trying to produce. According to the documentation, the letrinfo.tex file is supposed to go into the Tex path. I'm using TexShop on Mac Os 10.6. Looking into the Texlive utility > Preferences menu there is a path listed there, i.e. "HD > usr> texbin". So I put it there. Although I also found a tex path elsewhere in my file hierarchy and put it there as well.

Regardless, the following code chokes on \setadrto and \setadrfrom responding with unidentified control sequence. Address IDs CCX and LVB are in the letrinfo.tex file that is provided.
Any assistance is appreciated! Yours,
Simon Kiss

Code: Select all

\documentclass[stdletter]{newlfm}
\newlfmP{noLines}

\greetto{Dear Name}\closeline{Yours truly,}

\begin{document}
\setadrto{\addrCCX}
\setadrfrom{\addrLVB}
\begin{newlfm}

Test
\end{newlfm}
 
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

Re: newlfm | Address Data from Database

Post by sjkiss »

Guess I'm going back to Microsoft Word and Excel. Latex is nice, but it just takes way too freaking long to do the most basic tasks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

newlfm | Address Data from Database

Post by localghost »

sjkiss wrote:Guess I'm going back to Microsoft Word and Excel. […]
If you think that you will have more success this way, make it so.

Perhaps you should take a look at the »scrlttr2« class from KOMA-Script. It has a user interface for serial letters that seems to be much easier to use. The user guide of the bundle has a dedicated chapter for the letter class .


Thorsten
Post Reply