* Using KOMA and Memoir? @ 2014-05-05 17:36 Martin Schöön 2014-05-05 18:31 ` Eric S Fraga 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-05 17:36 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 623 bytes --] I have tried to get KOMA and Memoir work in Org-mode. In short: I only get error messages telling me they are unknown LaTeX classes. I have looked in the archives with little success. All I find is a KOMA letter thing. I have looked all over the web (no, not really) but with little success. I am in the middle of a small project for which I think KOMA's article class is a better choice than the ordinary article class. How do I make it work? Is it even possible? This hobby, not work, so don't drop everything you are doing to help me. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 886 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 0 siblings, 1 reply; 24+ messages in thread From: Eric S Fraga @ 2014-05-05 18:31 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Monday, 5 May 2014 at 19:36, Martin Schöön wrote: > I have tried to get KOMA and Memoir work in Org-mode. In short: I only get > error messages telling me they are unknown LaTeX classes. It would help to know what you have actually tried. I have the following in my org customisation files: #+begin_src emacs-lisp (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}"))) #+end_src which defines the komaarticle class to use scrartcl from koma. In the org file, I then have #+begin_src org ,#+latex_class: komaarticle #+end_src HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-05 18:31 ` Eric S Fraga @ 2014-05-05 20:23 ` Martin Schöön 2014-05-06 7:34 ` Eric S Fraga 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-05 20:23 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 1434 bytes --] On 5 May 2014 20:31, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > On Monday, 5 May 2014 at 19:36, Martin Schöön wrote: > > I have tried to get KOMA and Memoir work in Org-mode. In short: I only > get > > error messages telling me they are unknown LaTeX classes. > > It would help to know what you have actually tried. > > I have the following in my org customisation files: > > #+begin_src emacs-lisp > (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}"))) > #+end_src > > which defines the komaarticle class to use scrartcl from koma. In the > org file, I then have > > #+begin_src org > ,#+latex_class: komaarticle > #+end_src > > HTH, > eric Thanks Eric, that was quick. I will try it but not tonight, too tired. And I have to figure out what an org customisation file is. So far I have only modified my .emacs. Sorry for my brevity. What I tried was the first thing I could think of: #+LATEX_CLASS: memoir end #+LATEX_CLASS: scrartcl neithor of which worked. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 2165 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-05 20:23 ` Martin Schöön @ 2014-05-06 7:34 ` Eric S Fraga 2014-05-06 19:41 ` Martin Schöön 0 siblings, 1 reply; 24+ messages in thread From: Eric S Fraga @ 2014-05-06 7:34 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Monday, 5 May 2014 at 22:23, Martin Schöön wrote: [...] > Thanks Eric, that was quick. I will try it but not tonight, too > tired. And I hope it works for you. Let us know how you get on. > I have to figure out what an org customisation file is. So far I have only > modified my .emacs. putting the latex classes entry in your .emacs is fine. there's no need for any other file. it's just that some of us have so much initialisation code that we use several files instead of just .emacs. > > Sorry for my brevity. What I tried was the first thing I could think of: > #+LATEX_CLASS: memoir > end > #+LATEX_CLASS: scrartcl > neithor of which worked. indeed. the name given here must match one of the entries in org-latex-classes, not necessarily the same name as the actual LaTeX class. A little confusing, unfortunately. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 7:38 ` Eric S Fraga 0 siblings, 2 replies; 24+ messages in thread From: Martin Schöön @ 2014-05-06 19:41 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 1587 bytes --] On 6 May 2014 09:34, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > On Monday, 5 May 2014 at 22:23, Martin Schöön wrote: > > [...] > > > Thanks Eric, that was quick. I will try it but not tonight, too > > tired. And > > I hope it works for you. Let us know how you get on. > No luck thus far. I added your code to my .emacs but left the #+begin_src and #+end_src lines out since I figured they have no purpose in .emacs. I the altered #+latex_class: article to #+latex_class: komaarticle in my org-file. Whe trying to export it I am told komaarticle is not a known Latex class. I then wrapped that line in #+begin_src org #+end_src which, of course, didn't work. > > > I have to figure out what an org customisation file is. So far I have > only > > modified my .emacs. > > putting the latex classes entry in your .emacs is fine. there's no need > for any other file. it's just that some of us have so much > initialisation code that we use several files instead of just .emacs. > > Sounds like a pretty good idea, even for me. > > > > Sorry for my brevity. What I tried was the first thing I could think of: > > #+LATEX_CLASS: memoir > > end > > #+LATEX_CLASS: scrartcl > > neithor of which worked. > > indeed. the name given here must match one of the entries in > org-latex-classes, not necessarily the same name as the actual LaTeX > class. A little confusing, unfortunately. > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a > -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 2540 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 7:38 ` Eric S Fraga 1 sibling, 1 reply; 24+ messages in thread From: Suvayu Ali @ 2014-05-06 21:28 UTC (permalink / raw) To: emacs-orgmode On Tue, May 06, 2014 at 09:41:27PM +0200, Martin Schöön wrote: > On 6 May 2014 09:34, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > > > On Monday, 5 May 2014 at 22:23, Martin Schöön wrote: > > > > [...] > > > > > Thanks Eric, that was quick. I will try it but not tonight, too > > > tired. And > > > > I hope it works for you. Let us know how you get on. > > > > No luck thus far. I added your code to my .emacs but left the #+begin_src > and #+end_src lines out since I figured they have no purpose in .emacs. The #+begin_src, #+end_src, is to clearly separate the lisp source in the email (many posters to this list use Org syntax in emails). > I the altered #+latex_class: article to #+latex_class: komaarticle in my > org-file. > Whe trying to export it I am told komaarticle is not a known Latex class. Did you restart Emacs after that? -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-06 21:28 ` Suvayu Ali @ 2014-05-07 5:48 ` Martin Schöön 2014-05-07 8:26 ` Ian Barton 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-07 5:48 UTC (permalink / raw) To: Suvayu Ali; +Cc: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 541 bytes --] On 6 May 2014 23:28, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote: > On Tue, May 06, 2014 at 09:41:27PM +0200, Martin Schöön wrote: > > > I the altered #+latex_class: article to #+latex_class: komaarticle in my > > org-file. > > Whe trying to export it I am told komaarticle is not a known Latex class. > > Did you restart Emacs after that? > Yes. No better. And I had restarted emacs after editing .emacs before I started working on my org-document. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 1227 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 5:48 ` Martin Schöön @ 2014-05-07 8:26 ` Ian Barton 2014-05-07 19:42 ` Martin Schöön 0 siblings, 1 reply; 24+ messages in thread From: Ian Barton @ 2014-05-07 8:26 UTC (permalink / raw) To: Martin Schöön, Suvayu Ali; +Cc: emacs-orgmode@gnu.org On 07/05/14 06:48, Martin Schöön wrote: > On 6 May 2014 23:28, Suvayu Ali <fatkasuvayu+linux@gmail.com > <mailto:fatkasuvayu+linux@gmail.com>> wrote: > > On Tue, May 06, 2014 at 09:41:27PM +0200, Martin Schöön wrote: > > > I the altered #+latex_class: article to #+latex_class: > komaarticle in my > > org-file. > > Whe trying to export it I am told komaarticle is not a known > Latex class. > > Did you restart Emacs after that? > > > Yes. No better. > And I had restarted emacs after editing .emacs before I started working > on my org-document. > > -- I am a very novice Latex user, so forgive me for asking but do you have the KOMA package installed? Ian. ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 8:26 ` Ian Barton @ 2014-05-07 19:42 ` Martin Schöön 0 siblings, 0 replies; 24+ messages in thread From: Martin Schöön @ 2014-05-07 19:42 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 397 bytes --] On 7 May 2014 10:26, Ian Barton <lists@wilkesley.net> wrote: > > I am a very novice Latex user, so forgive me for asking but do you have > the KOMA package installed? > > Ian. > > Good point, it should be, I have used it outside org-mode but things happen so I just tested and, yes it is there and works just fine. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 889 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-06 19:41 ` Martin Schöön 2014-05-06 21:28 ` Suvayu Ali @ 2014-05-07 7:38 ` Eric S Fraga 2014-05-07 20:09 ` Martin Schöön 1 sibling, 1 reply; 24+ messages in thread From: Eric S Fraga @ 2014-05-07 7:38 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Tuesday, 6 May 2014 at 21:41, Martin Schöön wrote: > No luck thus far. I added your code to my .emacs but left the #+begin_src > and #+end_src lines out since I figured they have no purpose in .emacs. correct. they are org src block delimiters. > I the altered #+latex_class: article to #+latex_class: komaarticle in my > org-file. > Whe trying to export it I am told komaarticle is not a known Latex class. I > then wrapped that line in #+begin_src org #+end_src which, of course, didn't > work. What is the value of org-latex-classes? check this with C-h v when in the org buffer. If komaarticle is not one of the entries, your emacs initialisation was incorrectly implemented. Note that you probably want to have that customisation after loading org and ox-latex in particular. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 7:38 ` Eric S Fraga @ 2014-05-07 20:09 ` Martin Schöön 2014-05-07 20:44 ` Nick Dokos 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-07 20:09 UTC (permalink / raw) To: Martin Schöön, emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 1098 bytes --] On 7 May 2014 09:38, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > > What is the value of org-latex-classes? check this with C-h v when in > the org buffer. If komaarticle is not one of the entries, your emacs > initialisation was incorrectly implemented. Note that you probably want > to have that customisation after loading org and ox-latex in particular. > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a > It looks like I don't have an org-latex-classes variable. C-h v org-latex-classes results in the message [No match]. Looking into the Warnings buffer of emacs I find: Warning (initialization): An error occurred while loading `/home/martin/.emacs': Symbol's value as variable is void: org-latex-classes Running emacs --debug-init does not yield any further information. Kind of puzzling I think since LaTeX works rather well as long as I stay away from KOMA. My emacs installation is what comes with Debian stable: 23.4.1 My org-mode version is 8.2.5h. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 1924 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 20:09 ` Martin Schöön @ 2014-05-07 20:44 ` Nick Dokos 2014-05-07 21:03 ` Martin Schöön 0 siblings, 1 reply; 24+ messages in thread From: Nick Dokos @ 2014-05-07 20:44 UTC (permalink / raw) To: emacs-orgmode Martin Schöön <martin.schoon@gmail.com> writes: > On 7 May 2014 09:38, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > > Note that you probably want > to have that customisation *after* loading org and ox-latex in particular. > ^^^^^^^ I've taken the liberty to add some emphasis to Eric's comment: I think you are trying to set the variable before loading the file where it is defined. > .... > > It looks like I don't have an org-latex-classes variable. C-h v org-latex-classes results > in the message [No match]. > > Looking into the Warnings buffer of emacs I find: > Warning (initialization): An error occurred while loading `/home/martin/.emacs': > Symbol's value as variable is void: org-latex-classes > > Running emacs --debug-init does not yield any further information. > > Kind of puzzling I think since LaTeX works rather well as long as I stay away from KOMA. > Nick ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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-08 7:39 ` Eric S Fraga 0 siblings, 2 replies; 24+ messages in thread From: Martin Schöön @ 2014-05-07 21:03 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 810 bytes --] On 7 May 2014 22:44, Nick Dokos <ndokos@gmail.com> wrote: > Martin Schöön <martin.schoon@gmail.com> writes: > > > On 7 May 2014 09:38, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > > > > Note that you probably want > > to have that customisation *after* loading org and ox-latex in > particular. > > > > ^^^^^^^ > > I've taken the liberty to add some emphasis to Eric's comment: I think > you are trying to set the variable before loading the file where it is > defined. > It is the second to last part of my .emacs file (not counting custom-set-variables). The LaTeX call sits just before the KOMA stuff. No ox-latex to be found, I haven't needed it so far. Is that maybe... -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 1581 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 7:39 ` Eric S Fraga 1 sibling, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-07 21:19 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 290 bytes --] Quick up-date before bed-time: I commented out the (add-to-list 'org-latex-classes stuff and restarted emacs: No rerror message and still no org-latex-classes variable found when trying out C-h v org-latex-classes. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 521 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 21:19 ` Martin Schöön @ 2014-05-07 22:29 ` Suvayu Ali 2014-05-08 6:08 ` Martin Schöön 0 siblings, 1 reply; 24+ messages in thread From: Suvayu Ali @ 2014-05-07 22:29 UTC (permalink / raw) To: emacs-orgmode On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote: > Quick up-date before bed-time: I commented out the (add-to-list > 'org-latex-classes stuff > and restarted emacs: No rerror message and still no org-latex-classes > variable found > when trying out C-h v org-latex-classes. I have a feeling you are a victim of the infamous mixed install issue. <http://orgmode.org/worg/org-faq.html#mixed-install> -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 22:29 ` Suvayu Ali @ 2014-05-08 6:08 ` Martin Schöön 2014-05-08 12:58 ` Suvayu Ali 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-08 6:08 UTC (permalink / raw) To: Suvayu Ali; +Cc: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 749 bytes --] On 8 May 2014 00:29, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote: > On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote: > > Quick up-date before bed-time: I commented out the (add-to-list > > 'org-latex-classes stuff > > and restarted emacs: No rerror message and still no org-latex-classes > > variable found > > when trying out C-h v org-latex-classes. > > I have a feeling you are a victim of the infamous mixed install issue. > > <http://orgmode.org/worg/org-faq.html#mixed-install> > > -- > Suvayu > The output of M-x org-version looks good and going back to the emacs-supplied version does not help. Further investigations tonight. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 1608 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-08 6:08 ` Martin Schöön @ 2014-05-08 12:58 ` Suvayu Ali 2014-05-08 20:17 ` Martin Schöön 0 siblings, 1 reply; 24+ messages in thread From: Suvayu Ali @ 2014-05-08 12:58 UTC (permalink / raw) To: Emacs Org mode On Thu, May 08, 2014 at 08:08:36AM +0200, Martin Schöön wrote: > On 8 May 2014 00:29, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote: > > > On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote: > > > Quick up-date before bed-time: I commented out the (add-to-list > > > 'org-latex-classes stuff > > > and restarted emacs: No rerror message and still no org-latex-classes > > > variable found > > > when trying out C-h v org-latex-classes. > > > > I have a feeling you are a victim of the infamous mixed install issue. > > > > <http://orgmode.org/worg/org-faq.html#mixed-install> > > The output of M-x org-version looks good Unfortunately that is not a complete test. You should compare the load-path shadows and match them library for library (excluding libraries that exist in only one of the distributions). Hope this helps, -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-08 12:58 ` Suvayu Ali @ 2014-05-08 20:17 ` Martin Schöön 2014-05-09 8:46 ` Eric S Fraga 0 siblings, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-08 20:17 UTC (permalink / raw) To: emacs-orgmode@gnu.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 --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-08 20:17 ` Martin Schöön @ 2014-05-09 8:46 ` Eric S Fraga 2014-05-09 10:58 ` Suvayu Ali 0 siblings, 1 reply; 24+ messages in thread From: Eric S Fraga @ 2014-05-09 8:46 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: [...] > 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): [...] > ;;;;;;;;;;;;;;;;;;;;;; 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) Fine up to here. Now what you need to do is (require 'ox-latex) *before* you try to: > ;(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}"))) which is what several of us have been trying to get across! At the very least, you need: ,---- | (add-to-list 'load-path ...org lisp directory...) | (require 'org) | (require 'ox-latex) | (add-to-list 'org-latex-classes ...) `---- to do what you want! You are missing the third line. A minimal initialisation with just those four lines should be enough to see if org with KOMA works. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 0 siblings, 2 replies; 24+ messages in thread From: Suvayu Ali @ 2014-05-09 10:58 UTC (permalink / raw) To: emacs-orgmode; +Cc: Martin Schöön On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: > On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: > > which is what several of us have been trying to get across! At the very > least, you need: > > ,---- > | (add-to-list 'load-path ...org lisp directory...) > | (require 'org) > | (require 'ox-latex) > | (add-to-list 'org-latex-classes ...) > `---- > > to do what you want! You are missing the third line. > > A minimal initialisation with just those four lines should be enough to > see if org with KOMA works. For your understanding, you can do a simple test. Start emacs without the add-to-list line. Then evaluate these: (featurep 'org) (featurep 'ox-latex) You will get t for the first, nil for the second. Now try to find the variable org-latex-classes with C-h v. You will not be able to find it. Now load ox-latex with either load-library or by evaluating (require 'ox-latex). Try the above evaluations again, you will see t for both, and when you try to find the variable with C-h v, you will succeed. AFAIU, the exporter loads enabled backends when you do the first export. So when you modify a variable that is defined in an unloaded module, of course this does not work! Hope this makes the problem and the resolution clearer. To get some hints about doing things right, I would point you to my setup: <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el> Hope this helps, -- Suvayu Open source is the future. It sets us free. ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-09 10:58 ` Suvayu Ali @ 2014-05-09 18:59 ` Martin Schöön 2014-05-09 19:33 ` Martin Schöön 1 sibling, 0 replies; 24+ messages in thread From: Martin Schöön @ 2014-05-09 18:59 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 1776 bytes --] On 9 May 2014 12:58, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote: > On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: > > On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: > > > > which is what several of us have been trying to get across! At the very > > least, you need: > > > > ,---- > > | (add-to-list 'load-path ...org lisp directory...) > > | (require 'org) > > | (require 'ox-latex) > > | (add-to-list 'org-latex-classes ...) > > `---- > > > > to do what you want! You are missing the third line. > > > > A minimal initialisation with just those four lines should be enough to > > see if org with KOMA works. > > For your understanding, you can do a simple test. Start emacs without > the add-to-list line. Then evaluate these: > > (featurep 'org) > (featurep 'ox-latex) > > You will get t for the first, nil for the second. > > Now try to find the variable org-latex-classes with C-h v. You will not > be able to find it. Now load ox-latex with either load-library or by > evaluating (require 'ox-latex). Try the above evaluations again, you > will see t for both, and when you try to find the variable with C-h v, > you will succeed. > > AFAIU, the exporter loads enabled backends when you do the first export. > So when you modify a variable that is defined in an unloaded module, of > course this does not work! Hope this makes the problem and the > resolution clearer. > > To get some hints about doing things right, I would point you to my > setup: <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el> > > Hope this helps, > > -- > Suvayu > > Open source is the future. It sets us free. > -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 2580 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 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 1 sibling, 1 reply; 24+ messages in thread From: Martin Schöön @ 2014-05-09 19:33 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 2138 bytes --] First of all: sorry for the previous, empty post. I misclicked. Further comments below. On 9 May 2014 12:58, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote: > On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: > > On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: > > > > which is what several of us have been trying to get across! At the very > > least, you need: > > > > ,---- > > | (add-to-list 'load-path ...org lisp directory...) > > | (require 'org) > > | (require 'ox-latex) > > | (add-to-list 'org-latex-classes ...) > > `---- > > > > to do what you want! You are missing the third line. > > > > A minimal initialisation with just those four lines should be enough to > > see if org with KOMA works. > > For your understanding, you can do a simple test. Start emacs without > the add-to-list line. Then evaluate these: > > (featurep 'org) > (featurep 'ox-latex) > > You will get t for the first, nil for the second. > > Now try to find the variable org-latex-classes with C-h v. You will not > be able to find it. Now load ox-latex with either load-library or by > evaluating (require 'ox-latex). Try the above evaluations again, you > will see t for both, and when you try to find the variable with C-h v, > you will succeed. > > AFAIU, the exporter loads enabled backends when you do the first export. > So when you modify a variable that is defined in an unloaded module, of > course this does not work! Hope this makes the problem and the > resolution clearer. > > To get some hints about doing things right, I would point you to my > setup: <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el> > Thanks for your patience guys. You have overestimated my elisp-knowledge. Telling me I need to call in ox-latex without telling me how was asking too much of me. I tried to look it up myself and failed. Now, finally, this works as adverticed and Suvayu's explanation of how the exporter loads backends clears some fog. I have even got Memoir to work. -- Martin Schöön http://hem.bredband.net/b262106/index.html [-- Attachment #2: Type: text/html, Size: 3053 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-09 19:33 ` Martin Schöön @ 2014-05-09 19:55 ` Eric S Fraga 0 siblings, 0 replies; 24+ messages in thread From: Eric S Fraga @ 2014-05-09 19:55 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Friday, 9 May 2014 at 21:33, Martin Schöön wrote: [...] > Thanks for your patience guys. > You have overestimated my elisp-knowledge. > Telling me I need to call in ox-latex without telling me how was asking too > much > of me. I tried to look it up myself and failed. Yes, it is easy to assume that people know what we mean. The trick is to ask for clarification! > Now, finally, this works as adverticed and Suvayu's explanation of how > the exporter loads backends clears some fog. Excellent. Glad we got there in the end. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Using KOMA and Memoir? 2014-05-07 21:03 ` Martin Schöön 2014-05-07 21:19 ` Martin Schöön @ 2014-05-08 7:39 ` Eric S Fraga 1 sibling, 0 replies; 24+ messages in thread From: Eric S Fraga @ 2014-05-08 7:39 UTC (permalink / raw) To: Martin Schöön; +Cc: emacs-orgmode@gnu.org On Wednesday, 7 May 2014 at 23:03, Martin Schöön wrote: [...] > The LaTeX call sits just before the KOMA stuff. No ox-latex to be found, I > haven't > needed it so far. Is that maybe... Could you post the initialisation you do have? It's difficult to debug your case with partial information. My gut feeling is that you are not loading org properly and are indeed falling victim to a mixed installation scenario, as mentioned by Suvayu. In m experience, you need to load org, then ox-latex and finally customise org-latex-classes. If you are not doing this, things won't work. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a ^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2014-05-09 19:55 UTC | newest] Thread overview: 24+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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.