Re: Tool for document management



On Thu, Sep 27, 2007 at 01:31:57AM -0500, Manoj Srivastava wrote:

On Wed, 26 Sep 2007 21:31:32 -0400, Douglas A Tutty
<dtutty@xxxxxxxxxxxxx> said:

Here's my personal letter template. I copy it to the correct file
name, edit it, then latex it. The letter text itself is just plain
text.


\documentclass[letterpaper,12pt]{article}
%preamble here
\begin{document}
% no page number on this first page
\thispagestyle{empty} \begin{flushleft} Douglas A. Tutty\\ xxx
xxxxxxxxx, RR. x\\ xxxxxx, ON xxx xxx\\ Ph: (xxx) xxx--xxxx\\ Email:
dtutty@xxxxxxxxxxxxx\\ \end{flushleft}

\noindent \today

\bigskip
[...]

--8<---------------cut here------------letter_template------------->8---

\documentclass[12pt]{letter}
\usepackage[dvips]{graphicx}
\usepackage{times}
\pagestyle{empty}
\usepackage[margin=1in, head=0.25in, headsep=0.25in, nofoot]{geometry}
\setlength{\topmargin}{0pt}
\setlength{\oddsidemargin}{0pt}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\footskip}{5pt}
\setlength{\textheight}{9.0in}
\setlength{\textwidth}{6.5in}

\address{Manoj Srivastava\\
229 Brandon Lane\\
Woodbury, TN 37190}
[...]

Thanks, guys. I have been doing the same sort of thing -- in more
complex templates -- for some years. I've always felt it was a bit
clumsy to finish up with all these files cluttering up my nice clean
directories. So now you have spurred me into writing a script to take
a given letter -- just the bit from the address to the end of the
content -- and add the template letterhead, the date, and the closing,
put the heading in bold, then latex, dvips, save a tagline on the
original body file to say which template was used, what date, and what
style of closing, clean up the intermediate files and make tea.

Well, I nearly did it too, but I couldn't persuade bash to stop
stripping out backslashes, so I've started again in perl. Nearly there
now. So thanks for the stimulation. I've been putting this off for
years. Now I'll be able to write letters mostly in plain text. :-)

But it doesn't yet make tea...
--
richard


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: What Software to Type Math In?
    ... What is "plain text"? ... which has the relevant fonts. ... This goes completely against the typesetting mentality. ... that I can type the left version directly into LaTeX. ...
    (sci.math)
  • Re: using a template to open a text file
    ... In Word 2007, even if you change the plain text style, the opening of a text ... may as well use the automacro to apply the required appearance. ... Word MVP web site http://word.mvps.org ... template, ...
    (microsoft.public.word.conversions)
  • Re: Office should have small buisness integration capacity
    ... I do use only plain text in my emails and I ... really don't want to spend a lot of money on developing a bespoke app. ... Office programs appear to have different template designs and lack the ... able to use that same design scheme for my Publisher Designs, ...
    (microsoft.public.office.misc)
  • Re: plainTeX to LaTeX
    ... Use the plain package within a LaTeX document and put the plain TeX ... or you might have defined a macro \heading that does all that. ...
    (comp.text.tex)
  • Re: hyperref problems
    ... Plain old "latex" nowadays is PDFTeX. ... incomprehensible, unmaintanable mess - no doubt it's very clever, just ... another ugly "font selection layer" to cover up the nightmarish lower ...
    (comp.text.tex)