emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mohamed Zaki <mzaki77@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: Org mode latex export with "Letter" Class
Date: Sun, 12 Nov 2017 14:34:04 -0800	[thread overview]
Message-ID: <CAPwP6Q5J2TfnDeHDVmRyvgO3qYqdQ3uLvqZRSOCs6FUZXX1yyw@mail.gmail.com> (raw)
In-Reply-To: <CAPwP6Q7+MtxcLcW_TdKin1aOckQ86cigaXoe7W-0niK4HFyfFA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 908 bytes --]

Hi

I am trying to export an org file to latex using the org-mode version
9.1.2. The input file structure is:
#+LaTeX_CLASS: LTR
* letter{}
.
.<some text here>
.
\closing{Thank you,}

Unfortunately, the compilation fails to generate the proper tex file
The body of the tex file is missing. The output tex file is:
\documentclass{letter}
...
\begin{document}

\begin{letter}
letter\{\}
\end{document}

It seems that the exporter does not recognize the letter environment.

I use auctex-11.89.5 and the .emacs file includes the following lines

(require 'ox-latex)
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes '("LTR" "\\documentclass{letter}"
("\\begin{letter}" "\\end{letter}" "\\begin{letter}" "\\end{letter}"))))

I've been using an older version of org-mode 7.x for many years and never
had this problem. But i understand that the export code has changed.
I appreciate your help
M.Zaki

[-- Attachment #2: Type: text/html, Size: 1479 bytes --]

       reply	other threads:[~2017-11-12 22:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPwP6Q7+MtxcLcW_TdKin1aOckQ86cigaXoe7W-0niK4HFyfFA@mail.gmail.com>
2017-11-12 22:34 ` Mohamed Zaki [this message]
2017-11-13  9:17   ` Fwd: Org mode latex export with "Letter" Class Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPwP6Q5J2TfnDeHDVmRyvgO3qYqdQ3uLvqZRSOCs6FUZXX1yyw@mail.gmail.com \
    --to=mzaki77@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).