all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fwd: Org mode latex export with "Letter" Class
       [not found] <CAPwP6Q7+MtxcLcW_TdKin1aOckQ86cigaXoe7W-0niK4HFyfFA@mail.gmail.com>
@ 2017-11-12 22:34 ` Mohamed Zaki
  2017-11-13  9:17   ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Mohamed Zaki @ 2017-11-12 22:34 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: Org mode latex export with "Letter" Class
  2017-11-12 22:34 ` Fwd: Org mode latex export with "Letter" Class Mohamed Zaki
@ 2017-11-13  9:17   ` Eric S Fraga
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2017-11-13  9:17 UTC (permalink / raw)
  To: Mohamed Zaki; +Cc: emacs-orgmode

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

On Sunday, 12 Nov 2017 at 14:34, Mohamed Zaki wrote:
> Hi
>
> I am trying to export an org file to latex using the org-mode version
> 9.1.2. The input file structure is:

You could try:

    #+LaTeX_CLASS: LTR
    #+options: toc:nil
    #+attr_latex: :options {To somebody \\ Somewhere \\ Planet Earth}
    #+begin_letter 
    \opening{Dear Sir/Madam,}
    Some text
    \closing{Thank you,}

    #+end_letter

but note that the entry you have defined for the LTR org latex class is
incorrect as it is not intended for defining blocks.  So long as you
don't use any headings, the above will work (or does for me).

In any case, I would recommend using ox-koma-letter instead...

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-155-gf474c7

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-13  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAPwP6Q7+MtxcLcW_TdKin1aOckQ86cigaXoe7W-0niK4HFyfFA@mail.gmail.com>
2017-11-12 22:34 ` Fwd: Org mode latex export with "Letter" Class Mohamed Zaki
2017-11-13  9:17   ` Eric S Fraga

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.