emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* scrlttr2 class and org-mode
@ 2019-03-12 18:13 Joseph Vidal-Rosset
  2019-03-12 21:24 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Vidal-Rosset @ 2019-03-12 18:13 UTC (permalink / raw)
  To: emacs-orgmode list

Hello, 

Thanks               to                the               documentation
https://orgmode.org/worg/exporters/koma-letter-export.html
I have succeeded to export in scrlttr2 class. 

Thanks to this lco files,

https://tex.stackexchange.com/questions/63085/adding-sectioning-support-in-scrlttr2-class 

it  is also  possible to  get sections  in a
letter with scrlttr2 class. Nevertheless, I have to write the latex code
\section{}  and I  ignore how  getting  sections via  org-mode for  this
class. Is it possible to get an org-mode translation for section in this
class? 

Another problem is the bibiography .  I am a fan of org-ref (many
thanks again to John  Kitchin) and I would be happy to  use org-ref in a
letter with scrlttr2 class. 

My  goal is to be  able to write  emails in
gnus and org-mode and optionally to export the content of the email in a
nice letter to attach it. I guess that it is possible, but I need help.

Your help would be very welcome. 

Best wishes, 
-- 
Joseph Vidal-Rosset

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

* Re: scrlttr2 class and org-mode
  2019-03-12 18:13 scrlttr2 class and org-mode Joseph Vidal-Rosset
@ 2019-03-12 21:24 ` Nick Dokos
  2019-03-13  8:55   ` Joseph Vidal-Rosset
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2019-03-12 21:24 UTC (permalink / raw)
  To: emacs-orgmode

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> ...
> it  is also  possible to  get sections  in a
> letter with scrlttr2 class. Nevertheless, I have to write the latex code
> \section{}  and I  ignore how  getting  sections via  org-mode for  this
> class. Is it possible to get an org-mode translation for section in this
> class?
>

C-h v org-latex-classes RET

Briefly, you need to add a new element to it, describing what you want org
to do with this class.

Here's a snippet from my init file that adds two latex classes to this
variable. Hope this makes the process clear:

--8<---------------cut here---------------start------------->8---
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; latex export
(setq revtex-class
      '("revtex" "\\documentclass[11pt]{revtex4-1}"
        ("\\section{%s}" . "\\section*{%s}")
        ("\\subsection{%s}" . "\\subsection*{%s}")
        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
        ("\\paragraph{%s}" . "\\paragraph*{%s}")
        ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(setq koma-article-class
      '("koma-article" "\\documentclass[11pt]{scrartcl}"
        ("\\section{%s}" . "\\section*{%s}")
        ("\\subsection{%s}" . "\\subsection*{%s}")
        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
        ("\\paragraph{%s}" . "\\paragraph*{%s}")
        ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(progn
    (require 'ox-latex)
    (add-to-list 'org-latex-classes revtex-class t)
    (add-to-list 'org-latex-classes koma-article-class t)))
--8<---------------cut here---------------end--------------->8---

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

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

* Re: scrlttr2 class and org-mode
  2019-03-12 21:24 ` Nick Dokos
@ 2019-03-13  8:55   ` Joseph Vidal-Rosset
  2019-03-13 17:21     ` Joseph Vidal-Rosset
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Vidal-Rosset @ 2019-03-13  8:55 UTC (permalink / raw)
  To: Nick Dokos; +Cc: Liste-emacs-orgmode@gnu.org

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

Many thanks Nick for this help. I am going to inspect my user.el file, in
order to correct it, and I will inform you about the result.

Best wishes,

Jo.

Le mar. 12 mars 2019 à 22:34, Nick Dokos <ndokos@gmail.com> a écrit :

> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
>
> > ...
> > it  is also  possible to  get sections  in a
> > letter with scrlttr2 class. Nevertheless, I have to write the latex code
> > \section{}  and I  ignore how  getting  sections via  org-mode for  this
> > class. Is it possible to get an org-mode translation for section in this
> > class?
> >
>
> C-h v org-latex-classes RET
>
> Briefly, you need to add a new element to it, describing what you want org
> to do with this class.
>
> Here's a snippet from my init file that adds two latex classes to this
> variable. Hope this makes the process clear:
>
> --8<---------------cut here---------------start------------->8---
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;; latex export
> (setq revtex-class
>       '("revtex" "\\documentclass[11pt]{revtex4-1}"
>         ("\\section{%s}" . "\\section*{%s}")
>         ("\\subsection{%s}" . "\\subsection*{%s}")
>         ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>         ("\\paragraph{%s}" . "\\paragraph*{%s}")
>         ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (setq koma-article-class
>       '("koma-article" "\\documentclass[11pt]{scrartcl}"
>         ("\\section{%s}" . "\\section*{%s}")
>         ("\\subsection{%s}" . "\\subsection*{%s}")
>         ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>         ("\\paragraph{%s}" . "\\paragraph*{%s}")
>         ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (progn
>     (require 'ox-latex)
>     (add-to-list 'org-latex-classes revtex-class t)
>     (add-to-list 'org-latex-classes koma-article-class t)))
> --8<---------------cut here---------------end--------------->8---
>
> --
> Nick
>
> "There are only two hard problems in computer science: cache
> invalidation, naming things, and off-by-one errors." -Martin Fowler
>
>
>

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

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

* Re: scrlttr2 class and org-mode
  2019-03-13  8:55   ` Joseph Vidal-Rosset
@ 2019-03-13 17:21     ` Joseph Vidal-Rosset
  0 siblings, 0 replies; 4+ messages in thread
From: Joseph Vidal-Rosset @ 2019-03-13 17:21 UTC (permalink / raw)
  To: Nick Dokos; +Cc: Liste-emacs-orgmode@gnu.org

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

Hello Nick, hello everybody,

I do not understand how printing the bibliography with the koma class. The
examples with filecontents lead me to think that it is not very convenient.
Usually, with other latex classes, I use org-ref and it works smoothly. It
is not the case with this class. I guess that I do not get something.

Best wishes,

Jo.

Le mer. 13 mars 2019 à 09:55, Joseph Vidal-Rosset <
joseph.vidal.rosset@gmail.com> a écrit :

> Many thanks Nick for this help. I am going to inspect my user.el file, in
> order to correct it, and I will inform you about the result.
>
> Best wishes,
>
> Jo.
>
> Le mar. 12 mars 2019 à 22:34, Nick Dokos <ndokos@gmail.com> a écrit :
>
>> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
>>
>> > ...
>> > it  is also  possible to  get sections  in a
>> > letter with scrlttr2 class. Nevertheless, I have to write the latex code
>> > \section{}  and I  ignore how  getting  sections via  org-mode for  this
>> > class. Is it possible to get an org-mode translation for section in this
>> > class?
>> >
>>
>> C-h v org-latex-classes RET
>>
>> Briefly, you need to add a new element to it, describing what you want org
>> to do with this class.
>>
>> Here's a snippet from my init file that adds two latex classes to this
>> variable. Hope this makes the process clear:
>>
>> --8<---------------cut here---------------start------------->8---
>>
>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>> ;;; latex export
>> (setq revtex-class
>>       '("revtex" "\\documentclass[11pt]{revtex4-1}"
>>         ("\\section{%s}" . "\\section*{%s}")
>>         ("\\subsection{%s}" . "\\subsection*{%s}")
>>         ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>         ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>         ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>
>> (setq koma-article-class
>>       '("koma-article" "\\documentclass[11pt]{scrartcl}"
>>         ("\\section{%s}" . "\\section*{%s}")
>>         ("\\subsection{%s}" . "\\subsection*{%s}")
>>         ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>         ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>         ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>
>> (progn
>>     (require 'ox-latex)
>>     (add-to-list 'org-latex-classes revtex-class t)
>>     (add-to-list 'org-latex-classes koma-article-class t)))
>> --8<---------------cut here---------------end--------------->8---
>>
>> --
>> Nick
>>
>> "There are only two hard problems in computer science: cache
>> invalidation, naming things, and off-by-one errors." -Martin Fowler
>>
>>
>>

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

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

end of thread, other threads:[~2019-03-13 17:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12 18:13 scrlttr2 class and org-mode Joseph Vidal-Rosset
2019-03-12 21:24 ` Nick Dokos
2019-03-13  8:55   ` Joseph Vidal-Rosset
2019-03-13 17:21     ` Joseph Vidal-Rosset

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).