emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Martin Schöön" <martin.schoon@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Using KOMA and Memoir?
Date: Thu, 8 May 2014 22:17:09 +0200	[thread overview]
Message-ID: <CAHxk2pC_ZswO33nhRQCiq+a2VFmwYQ_Uu0yp6abZeS6dwxmK8A@mail.gmail.com> (raw)
In-Reply-To: <20140508125830.GE2711@chitra.no-ip.org>

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

Tonight I have been a bit adventurous and I have seen some success.
But before that I tried to understand what lading ox-latex meant and how
to do it. I found something here: http://orgmode.org/worg/exporters/koma
-letter-export.html
and tried it with no luck. Then I thought, org + LaTeX and exporting to PDFworks
just fine as long as I stay away from trying KOMA so ox-latex must work...

Next I looked up org-latex.el in the directory org-mode version 8.2.5h
lives in
my computer and started to study the code. I soon found were
org-latex-classes
are defined and decided to add the code Eric has supplied.

Now komaarticle works!

This indicates to me that ox-latex has loaded just fine all the time and it
is indeed
the one from version 8.2.5h that loads.

So why didn't it work the way I was told to do it?
How much of my .emacs is needed to figure it out, all? Here are the parts I
think
are relevant. First the very beginning of my .emacs (comments are mixed
Swedish
and English):

;;; Martins nya .emacs
;;;
;;; (Re)creation started 130819
;;; Most material comes from .emacs.statler
;;;
;;;;;;;;;;;;;;;;;;;;;; Colours and fonts and what not ;;;;;;;;;;;;;;;;;;;
;; Added 2011-11-04
;; path till 'egna' lisp-filer
(add-to-list 'load-path "~/.emacs.d/my_lisp/")
;; (require 'color-theme-solarized)
;; Added 2011-11-18
;; Egenvald defaultfont
;;(set-default-font "-gohu-gohufont-medium-*-*-*-11-*-*-*-*-*-*-*")
;;(modify-frame-parameters nil '((wait-for-wm . nil)))
;; british spelling
(setq ispell-dictionary "british")

;;;;;;;;;;;;;;;;; To shift focus between frames ;;;;;;;;;;;;;;;;;;;;;;
;; Added 2013-08-19
;; from http://www.emacswiki.org/emacs/FrameMove
;; framemove.el is placed in my_lisp
;;
;;(require 'framemove)
;;    (windmove-default-keybindings)  ;; default prefix is Meta
;;    (setq framemove-hook-into-windmove t)


;;;;;;;;;;;;;;;;;;;;;; Org-mode stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Added 2014-03-02
;; to make emacs find org-mode other than default:
(add-to-list 'load-path "/home/martin/Program/Org-mode/org-8.2.5h/lisp")
(add-to-list 'load-path "/home/martin/Program/Org-mode/org-8.2.5h/contrib
/lisp")
(require 'org)
;;
;; Added 2014-04-08
;; Trying to force ox-latex as per http://orgmode.org/worg/exporters/koma
-letter-export.html
;;
;(eval-after-load 'ox-latex
;  '(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t) t))
;;

After this follows many lines of tweaks most of which is copied from
BerntHansen and
none of it related to bable or exporting. This is the stuff I have been
using for a while
and use every day at work.

Then near the end LaTeX and Eric's code (commented out):

;;;
;;;
;;; LaTeX
;;;
(org-babel-do-load-languages
 'org-babel-load-languages
 '((latex . t)))
;;;
;;; KOMA
;;;
;(add-to-list 'org-latex-classes
;               '("komaarticle" "\\documentclass{scrartcl}"
;                 ("\\section{%s}" . "\\section*{%s}")
;                 ("\\subsection{%s}" . "\\subsection*{%s}")
;                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
;                 ("\\paragraph{%s}" . "\\paragraph*{%s}")
;                 ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
;;;

So much for Thursday evening.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html

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

  reply	other threads:[~2014-05-08 20:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05 17:36 Using KOMA and Memoir? Martin Schöön
2014-05-05 18:31 ` Eric S Fraga
2014-05-05 20:23   ` Martin Schöön
2014-05-06  7:34     ` Eric S Fraga
2014-05-06 19:41       ` Martin Schöön
2014-05-06 21:28         ` Suvayu Ali
2014-05-07  5:48           ` Martin Schöön
2014-05-07  8:26             ` Ian Barton
2014-05-07 19:42               ` Martin Schöön
2014-05-07  7:38         ` Eric S Fraga
2014-05-07 20:09           ` Martin Schöön
2014-05-07 20:44             ` Nick Dokos
2014-05-07 21:03               ` Martin Schöön
2014-05-07 21:19                 ` Martin Schöön
2014-05-07 22:29                   ` Suvayu Ali
2014-05-08  6:08                     ` Martin Schöön
2014-05-08 12:58                       ` Suvayu Ali
2014-05-08 20:17                         ` Martin Schöön [this message]
2014-05-09  8:46                           ` Eric S Fraga
2014-05-09 10:58                             ` Suvayu Ali
2014-05-09 18:59                               ` Martin Schöön
2014-05-09 19:33                               ` Martin Schöön
2014-05-09 19:55                                 ` Eric S Fraga
2014-05-08  7:39                 ` 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=CAHxk2pC_ZswO33nhRQCiq+a2VFmwYQ_Uu0yp6abZeS6dwxmK8A@mail.gmail.com \
    --to=martin.schoon@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).