[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to export casual letter without from and to address?

From: Nick Dokos
Subject: Re: [O] How to export casual letter without from and to address?
Date: Sat, 05 Mar 2016 22:15:22 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.1.50 (gnu/linux)

York Zhao <address@hidden> writes:

>> Why use a letter exporter (koma?) if you don't want something that looks like
>> a letter?
> I wanted it to be a letter in all aspects, except that it doesn't have the 
> "from
> address" and "to address" in the header. More specifically, I want my letter
> looks like:
>   Hi Flora,
>   Blah blah blah!
>   Regards,
>   York
>> simply write it as a normal org document and export it to pdf or odt or
>> whatever you wish to send.
> The problem is, it seems to me that to export to pdf, LaTeX export is the only
> way to go. But then you would have to choose a document class. Obviously you
> can't use "article", nor "book". So my question may probably rephrase as: 
> which
> latex document class do you use to export the letter "as is"?

Here's a first approximation using the built-in latex letter class:

o Add the following to some appropriate initialization file:

(require 'ox-latex)
(setq simple-letter-class
(add-to-list 'org-latex-classes simple-letter-class t)

o Then export the following:

--8<---------------cut here---------------start------------->8---
#+LATEX_CLASS: letter
#+OPTIONS: toc:nil
#+BIND: org-latex-title-command nil

#+LATEX_HEADER: \signature{York}

#+LATEX: \begin{letter}{}
Hi Flora,

Blah, blah!

#+LATEX: \closing{Regards,}
#+LATEX: \end{letter}
--8<---------------cut here---------------end--------------->8---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]