From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to export casual letter without from and to address? Date: Sat, 05 Mar 2016 22:15:22 -0500 Message-ID: <878u1ws3ed.fsf@pierrot.dokosmarshall.org> References: <8737s56xom.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acPAc-0000Yw-F4 for emacs-orgmode@gnu.org; Sat, 05 Mar 2016 22:15:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acPAX-0002GP-FD for emacs-orgmode@gnu.org; Sat, 05 Mar 2016 22:15:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:47833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acPAX-0002GB-94 for emacs-orgmode@gnu.org; Sat, 05 Mar 2016 22:15:45 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1acPAU-0001ZL-VP for emacs-orgmode@gnu.org; Sun, 06 Mar 2016 04:15:43 +0100 Received: from pool-74-104-158-160.bstnma.fios.verizon.net ([74.104.158.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Mar 2016 04:15:42 +0100 Received: from ndokos by pool-74-104-158-160.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Mar 2016 04:15:42 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org York Zhao 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 '("letter" "\\documentclass[11pt]{letter}")) (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--- -- Nick