Re: [O] Org-mode and koma-script

2018-08-27 Thread gmx
Thanks a lot for your answer, Tim. I entered the emacs -q command, which 
started emacs. The only message from the Terminal (before launching 
emacs) is this:


(emacs:3687): GConf-WARNING **: Client failed to connect to the D-BUS 
daemon:
Did not receive a reply. Possible causes include: the remote application 
did not send a reply, the message bus security policy blocked the reply, 
the reply timeout expired, or the network connection was broken.


But no real problem.

I did't find the init file : where is it, please ?

Frédéric


Le 28/08/2018 à 00:00, Tim Cross a écrit :

If that is a copy of what is in your .emacs or init.el file, then I
think you have a number of errors. Try running emacs -q and see if emacs
reports errors in  your init file.

Tim

gmx  writes:


I forgot the

Le 27/08/2018 à 21:51, gmx a écrit:

Hello,

I'm trying to use the koma class. I found a configuration of the.emacs
file, in the manual and in a Stack Exchange post
(https://tex.stackexchange.com/questions/364914/using-koma-script-article-with-org-mode).


I open a new .org file, and I declare:
#+TITLE: MyTitle
#+DATE: date
#+LANGUAGE: fr
#+LaTeX_CLASS: koma-article

When I want to export my work in .pdf, I get the following answer:
Unknown LaTeX class 'koma-article'.

What to do?
Thank you for your advice

Frédéric (real newbie with org-mode, but I do my best)


contents of the file. Ready ?



;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(ansi-color-faces-vector
   [default default default italic underline success warning error])
  '(ansi-color-names-vector
   ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7"
"#8cc4ff" "#ec"])
  '(current-language-environment "UTF-8")
  '(custom-enabled-themes (quote (deeper-blue)))
  '(display-battery-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )
(put 'upcase-region 'disabled nil)


; CONFIGURATION POUR UTILISER LATEX ;;
;; Source : https://orgmode.org/worg/org-tutorials/org-latex-export.html

;; Pour pouvoir utiliser LaTeX dans un doc. org-mode
(require 'ox-latex)
(unless (boundp 'org-latex-classes)
   (setq org-latex-classes nil))
+
(add-to-list 'org-latex-classes
   '("article"
   "\\documentclass{article}"
   ("\\section{%s}" . "\\section*{%s}")))

;; Pour configurer les subdivisions des articles
(add-to-list 'org-latex-classes
   '("article"
   "\\documentclass{article}"
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
   ("\\paragraph{%s}" . "\\paragraph*{%s}")
   ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

;; Pour configurer les subdivisions de la classe book (indiquer :
#+LaTeX_CLASS: book)
(with-eval-after-load "ox-latex"
(add-to-list 'org-latex-classes
   '("book"
   "\\documentclass{book}"
   ("\\part{%s}" . "\\part*{%s}")
   ("\\chapter{%s}" . "\\chapter*{%s}")
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}"

;; Pour utiliser la classe koma-script. Indiquer : #+LaTeX_CLASS:
koma-article
(with-eval-after-load "ox-latex"
   (add-to-list 'org-latex-classes
   '("koma-article" "\\documentclass{scrartcl}"
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
   ("\\paragraph{%s}" . "\\paragraph*{%s}")
   ("\\subparagraph{%s}" . "\\subparagraph*{%s}"






Re: [O] Org-mode and koma-script

2018-08-27 Thread Tim Cross


If that is a copy of what is in your .emacs or init.el file, then I
think you have a number of errors. Try running emacs -q and see if emacs
reports errors in  your init file.

Tim

gmx  writes:

> I forgot the
>
> Le 27/08/2018 à 21:51, gmx a écrit:
>> Hello,
>>
>> I'm trying to use the koma class. I found a configuration of the.emacs 
>> file, in the manual and in a Stack Exchange post 
>> (https://tex.stackexchange.com/questions/364914/using-koma-script-article-with-org-mode).
>>  
>>
>>
>> I open a new .org file, and I declare:
>> #+TITLE: MyTitle
>> #+DATE: date
>> #+LANGUAGE: fr
>> #+LaTeX_CLASS: koma-article
>>
>> When I want to export my work in .pdf, I get the following answer: 
>> Unknown LaTeX class 'koma-article'.
>>
>> What to do?
>> Thank you for your advice
>>
>> Frédéric (real newbie with org-mode, but I do my best)
>>
> contents of the file. Ready ?
>
>
>
> ;; Added by Package.el. This must come before configurations of
> ;; installed packages. Don't delete this line. If you don't want it,
> ;; just comment it out by adding a semicolon to the start of the line.
> ;; You may delete these explanatory comments.
> (package-initialize)
>
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(ansi-color-faces-vector
>   [default default default italic underline success warning error])
>  '(ansi-color-names-vector
>   ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" 
> "#8cc4ff" "#ec"])
>  '(current-language-environment "UTF-8")
>  '(custom-enabled-themes (quote (deeper-blue)))
>  '(display-battery-mode t))
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
> (put 'upcase-region 'disabled nil)
>
>
> ; CONFIGURATION POUR UTILISER LATEX ;;
> ;; Source : https://orgmode.org/worg/org-tutorials/org-latex-export.html
>
> ;; Pour pouvoir utiliser LaTeX dans un doc. org-mode
> (require 'ox-latex)
> (unless (boundp 'org-latex-classes)
>   (setq org-latex-classes nil))
> +
> (add-to-list 'org-latex-classes
>   '("article"
>   "\\documentclass{article}"
>   ("\\section{%s}" . "\\section*{%s}")))
>
> ;; Pour configurer les subdivisions des articles
> (add-to-list 'org-latex-classes
>   '("article"
>   "\\documentclass{article}"
>   ("\\section{%s}" . "\\section*{%s}")
>   ("\\subsection{%s}" . "\\subsection*{%s}")
>   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>   ("\\paragraph{%s}" . "\\paragraph*{%s}")
>   ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> ;; Pour configurer les subdivisions de la classe book (indiquer : 
> #+LaTeX_CLASS: book)
> (with-eval-after-load "ox-latex"
> (add-to-list 'org-latex-classes
>   '("book"
>   "\\documentclass{book}"
>   ("\\part{%s}" . "\\part*{%s}")
>   ("\\chapter{%s}" . "\\chapter*{%s}")
>   ("\\section{%s}" . "\\section*{%s}")
>   ("\\subsection{%s}" . "\\subsection*{%s}")
>   ("\\subsubsection{%s}" . "\\subsubsection*{%s}"
>
> ;; Pour utiliser la classe koma-script. Indiquer : #+LaTeX_CLASS: 
> koma-article
> (with-eval-after-load "ox-latex"
>   (add-to-list 'org-latex-classes
>   '("koma-article" "\\documentclass{scrartcl}"
>   ("\\section{%s}" . "\\section*{%s}")
>   ("\\subsection{%s}" . "\\subsection*{%s}")
>   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>   ("\\paragraph{%s}" . "\\paragraph*{%s}")
>   ("\\subparagraph{%s}" . "\\subparagraph*{%s}"


-- 
Tim Cross



Re: [O] Org-mode and koma-script

2018-08-27 Thread gmx



I forgot the

Le 27/08/2018 à 21:51, gmx a écrit :

Hello,

I'm trying to use the koma class. I found a configuration of the.emacs 
file, in the manual and in a Stack Exchange post 
(https://tex.stackexchange.com/questions/364914/using-koma-script-article-with-org-mode). 



I open a new .org file, and I declare:
#+TITLE: MyTitle
#+DATE: date
#+LANGUAGE: fr
#+LaTeX_CLASS: koma-article

When I want to export my work in .pdf, I get the following answer: 
Unknown LaTeX class 'koma-article'.


What to do?
Thank you for your advice

Frédéric (real newbie with org-mode, but I do my best)


contents of the file. Ready ?



;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-faces-vector
   [default default default italic underline success warning error])
 '(ansi-color-names-vector
   ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" 
"#8cc4ff" "#ec"])

 '(current-language-environment "UTF-8")
 '(custom-enabled-themes (quote (deeper-blue)))
 '(display-battery-mode t))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(put 'upcase-region 'disabled nil)


; CONFIGURATION POUR UTILISER LATEX ;;
;; Source : https://orgmode.org/worg/org-tutorials/org-latex-export.html

;; Pour pouvoir utiliser LaTeX dans un doc. org-mode
(require 'ox-latex)
(unless (boundp 'org-latex-classes)
  (setq org-latex-classes nil))
+
(add-to-list 'org-latex-classes
 '("article"
   "\\documentclass{article}"
   ("\\section{%s}" . "\\section*{%s}")))

;; Pour configurer les subdivisions des articles
(add-to-list 'org-latex-classes
 '("article"
   "\\documentclass{article}"
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
   ("\\paragraph{%s}" . "\\paragraph*{%s}")
   ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

;; Pour configurer les subdivisions de la classe book (indiquer : 
#+LaTeX_CLASS: book)

(with-eval-after-load "ox-latex"
(add-to-list 'org-latex-classes
 '("book"
   "\\documentclass{book}"
   ("\\part{%s}" . "\\part*{%s}")
   ("\\chapter{%s}" . "\\chapter*{%s}")
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}"

;; Pour utiliser la classe koma-script. Indiquer : #+LaTeX_CLASS: 
koma-article

(with-eval-after-load "ox-latex"
  (add-to-list 'org-latex-classes
   '("koma-article" "\\documentclass{scrartcl}"
 ("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}")
 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"






[O] Org-mode and koma-script

2018-08-27 Thread gmx

Hello,

I'm trying to use the koma class. I found a configuration of the.emacs 
file, in the manual and in a Stack Exchange post 
(https://tex.stackexchange.com/questions/364914/using-koma-script-article-with-org-mode). 



I open a new .org file, and I declare:
#+TITLE: MyTitle
#+DATE: date
#+LANGUAGE: fr
#+LaTeX_CLASS: koma-article

When I want to export my work in .pdf, I get the following answer: 
Unknown LaTeX class 'koma-article'.


What to do?
Thank you for your advice

Frédéric (real newbie with org-mode, but I do my best)




[O] Emacs meetup in Madrid

2018-08-27 Thread David Arroyo Menendez


Hello emacsers,

If you are in Madrid in September, 15th you can assist to Slimbook
event to enjoy a Emacs & Orgmode presentation.

https://www.meetup.com/EmacsMadrid/events/254138446/

Regards.



Re: [O] clocktable - Wrong type argument: plistp - after upgrade

2018-08-27 Thread Roland Everaert
I seems that with version Org mode version 9.1.13 (9.1.13-elpa @
/cygdrive/c/Users/re/.emacs.d/elpa/org-20180730/), the  problem has
disappeared.

Regards,

Roland.

On Mon, Aug 20, 2018 at 12:38 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Everaert  writes:
>
> > After some search, I have found this option causing the error. It is
> > :fileskip0. If I remove it from the #+BEGIN line, the clocktable is
> > computed and displayed.
>
> Could you provide an ECM? The example you send is neither complete (very
> important) nor minimal (less important).
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] [PATCH] make revisions in export section

2018-08-27 Thread Nicolas Goaziou
Hello,

Will Pierce  writes:

> Made some revisions in the manual section on exports.

Applied. I added two spaces after each sentence.

Have you signed FSF papers? If you haven't so, please consider signing
them so that I can apply further changes.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-manual: revise markup section intro

2018-08-27 Thread Nicolas Goaziou
Hello,

Will Pierce  writes:

> This patch revises the markup section's introductory paragraph to read more
> smoothly.

Applied. I added two space after each sentence.
>
> I'll be slowly working the manual!

Great. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Multi-step ledger org-capture template

2018-08-27 Thread ST
Thank you for sharing!

It would be nice to be able to generate a .pdf invoice based on a
predefined template (in .org/.tex/etc formats; maybe utilizing org-mode
exporter) for certain ledger transaction (by default the current one,
highlighted by cursor in ledger-mode).

Did anybody wrote something similar in the past?

On Sun, 2018-08-26 at 23:53 +0200, Stefan Huchler wrote:
> In case somebody wants something similar, I post my solution I came up
> with here:
> 
> %(progn
>(defun get-table-content (&optional start end)
>  (let* ((start (or start (buffer-end -1)))
>   (end (or end (buffer-end 1)))
>   (lines
>(s-split "\n" (buffer-substring-no-properties
>   start end
>(remove nil
>  (mapcar
>   (lambda (line)
> (mapcar
>  (lambda (elem)
>(string-trim elem))
>  (remove "" (split-string
>  line "|"
>   lines
>(with-current-buffer (org-capture-get :original-buffer)
>  (call-interactively 'copy-region-as-kill))
>(let* (mapping)
>  (with-temp-buffer
>"*shop-name-mapping*"
>(erase-buffer)
>(insert-file-contents "capture-templates/products-mapping.org")
>(let* ((start (progn (goto-char (point-min))
>   (forward-line 1) (point
>(setq mapping (mapcar (lambda (x) (cons (nth 1 x) (car x)))
>
>  (get-table-content start)
>  (with-temp-buffer
>"*shop-import-temp*"
>(erase-buffer)
>(yank)
>(org-table-convert-region (buffer-end -1) (buffer-end 1) 2)
>(let* ((data (get-table-content)))
>(erase-buffer)
>(insert
> (concat "  " (org-read-date nil nil) " * Shop-name\n"
> (mapconcat
>  (lambda (line) (format "  %s \t\t%s St {=€%s}"
>(assoc-default (nth 1 line) mapping)
>(nth 0 line) (nth 4 line)))
>  data "\n")
> "\n  assets:bank:chequing"))
>(ledger-mode)
>(let ((start (progn
>   (goto-char (point-min))
>   (forward-line 1) (point)))
>  (end (progn
> (goto-char (point-max))
> (forward-line -1) (point
>  (ledger-post-align-postings start end))   
>(buffer-string)
> 
> products-mapping would like like that:
> 
> #+NAME: food
> | expenses:food:spice:Basilikum | Basilikum bio Sonnentor, 15g |
> | expenses:food:spice:Oregano   | Oregano bio Sonnentor, 20g   |
> 
> Of course it asumes that you have some html or email bill with a table
> selected and you would have to change the (nth x line) depending where
> in the bill the name, amount and price is listed, and maybe change the
> currency.
> 
> 
> 
> 
> 
>