emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Nobis <stefan-ml@snobis.de>
To: emacs-orgmode@gnu.org
Subject: Re: basic org questions
Date: Wed, 16 Sep 2020 09:37:25 +0200	[thread overview]
Message-ID: <m1lfhagoju.fsf@nobis-it.eu> (raw)
In-Reply-To: <878sdaiiti.fsf@ebih.ebihd> (Emanuel Berg via's message of "Wed,  16 Sep 2020 03:58:17 +0200")

Emanuel Berg via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:

> Tim Cross wrote:

>> #+latex_class: korma-article

> user-error: Unknown LaTeX class ‘korma-article’

>> #+latex_header:  \setlength{\parindent}{0pt}

> Yes, that's removed the indentation but didn't insert
> a blank line...

First of all: You don't want this. :)

Marking paragraphs by blank lines and without indentation is deemed
less readable (see for example section 3.10 "Marking Paragraphs" in
https://komascript.de/~mkohm/scrguien.pdf).

But if you really insist on using this style, still the variant of
setting the length parindent and parskip is considered bad practise.
These are very fundamental values for LaTeX and influence a lot more
that just the space between paragraphs. A much better solution would
be to use the package =parskip= (just add "\usepackage{parskip}" to
the preamble of the LaTeX document or add "#+LATEX_HEADER:
\usepackage{parskip}" to the preamble of the Org document).

If you want to customize the Org LaTeX export more globally, you can
put something like this in your Emacs init.el:

#+begin_src elisp
(add-to-list 'org-latex-classes
               '("koma-article"
                 "\\documentclass[a4paper, pagesize, headings=normal, version=last]{scrartcl}"
                 ("\\section{%s}" . "\\section*{%s}")
                 ("\\subsection{%s}" . "\\subsection*{%s}")
                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                 ("\\paragraph{%s}" . "\\paragraph*{%s}")
                 ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(setq org-latex-default-class "koma-article")

(setq org-latex-packages-alist
        '(("" "unicode-math" t ("lualatex" "xelatex"))
          ("" "caption" nil)
          ("" "booktabs" t)))
#+end_src

In the case of the document classes of the Koma world, you have quite
some options for paragraph formatting. If you still insist on your
style of paragraph markings, you may add "parskip=full" to the
global options of the documentclass.

With the above settings, you globally define your preferred LaTeX
documentclass and some global settings as well as add some additionals
packages that are used on every LaTeX export done via Org. So you do
not have to put anything special in the individual Org documents but
the pure content (at the cost that the same Org document may produce a
different output on other Emacs installations with different global
settings).

For more details on what can be configured see
https://orgmode.org/manual/Exporting.html#Exporting. The options there
are mostly presented as in-document settings but most if not all of
them may also be set in some way globally via Emacs init.

-- 
Until the next mail...,
Stefan.


  parent reply	other threads:[~2020-09-16  7:38 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-15 15:29 basic org questions Emanuel Berg via General discussions about Org-mode.
2020-09-15 15:44 ` Russell Adams
2020-09-15 19:38   ` Emanuel Berg via General discussions about Org-mode.
2020-09-17 14:27     ` Alexander Adolf
2020-09-17 14:47       ` Emanuel Berg via General discussions about Org-mode.
2020-09-15 15:49 ` tomas
2020-09-15 19:50   ` Emanuel Berg via General discussions about Org-mode.
2020-09-15 17:08 ` Matt Huszagh
2020-09-15 19:52   ` Emanuel Berg via General discussions about Org-mode.
2020-09-15 20:49     ` Matt Huszagh
2020-09-15 21:01       ` Emanuel Berg via General discussions about Org-mode.
2020-09-15 21:10         ` Samuel Wales
2020-09-15 21:44         ` Matt Huszagh
2020-09-15 22:32           ` Emanuel Berg
2020-09-15 22:37             ` Matt Huszagh
2020-09-16  1:56               ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  6:15                 ` Stefan Nobis
2020-09-17  0:51                   ` Emanuel Berg via General discussions about Org-mode.
2020-09-17  9:55                     ` Stefan Nobis
2020-09-17 13:42                       ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  7:44             ` Thomas S. Dye
2020-09-17  0:57               ` Emanuel Berg via General discussions about Org-mode.
2020-09-17  1:14                 ` Thomas S. Dye
2020-09-17  9:59               ` Stefan Nobis
2020-09-17 13:43                 ` Emanuel Berg via General discussions about Org-mode.
2020-09-17  4:39         ` Nick Dokos
2020-09-17  5:08           ` Emanuel Berg via General discussions about Org-mode.
2020-09-15 19:23 ` Aleksandar Dimitrov
2020-09-16  0:04 ` Tim Cross
2020-09-16  1:58   ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  3:46     ` TEC
2020-09-16  4:11       ` Emanuel Berg
2020-09-16  4:51         ` TEC
2020-09-17  0:46           ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  6:56         ` tomas
2020-09-16  4:13       ` Emanuel Berg
2020-09-16 13:48         ` Eric S Fraga
2020-09-16 16:32           ` Stefan Nobis
2020-09-16 22:51             ` Emanuel Berg via General discussions about Org-mode.
2020-09-16 22:53             ` Emanuel Berg via General discussions about Org-mode.
2020-09-17  9:48               ` Stefan Nobis
2020-09-17 13:37                 ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  4:31     ` Tim Cross
2020-09-16  6:21       ` TEC
2020-09-16 22:11       ` Emanuel Berg via General discussions about Org-mode.
2020-09-16 22:28         ` Tim Cross
2020-09-16 22:31           ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  6:54     ` tomas
2020-09-17  0:52       ` Emanuel Berg via General discussions about Org-mode.
2020-09-16  7:37     ` Stefan Nobis [this message]
2020-09-16 23:08       ` Samuel Wales
2020-09-17  0:16         ` Emanuel Berg via General discussions about Org-mode.
2020-09-17  9:25         ` Stefan Nobis

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=m1lfhagoju.fsf@nobis-it.eu \
    --to=stefan-ml@snobis.de \
    --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).