emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: emacs-orgmode@gnu.org
Subject: remove directory structure in latex export
Date: Sat, 12 Jul 2014 15:34:21 +0200	[thread overview]
Message-ID: <87mwcevgyq.fsf@free.fr> (raw)

When exporting an Org file to LaTeX, I'd like to be able to remove all
headings with levels inferior to the ones explicitly selected with a
select-tag. In the following example, I'd like the LaTeX file to include
only the "Puissance des force de Laplace sur un moment magnétique"
heading, not the "Cas d'un moment magnétique", "Puissance et énergie

I've tried playing with :headline-levels so that all headings get
translated as section, subsection, subsubsection and redefining the
\section,\subsection,\subsubsection commands in the LaTeX class to
\relax but for some reason, the third level still gets translated as an
enumerate list.


--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :tangle yes :exports none
  (setq org-publish-project-alist
           :base-directory "./"
           :publishing-directory "./"
           :publishing-function org-beamer-publish-to-pdf
           :exclude ".*"
           :latex-class "mpsi_beamer"
           :include ("reglages.org")
           :completion-function jc-org-publish-rename-beamer-pdf)
           :base-directory "./"
           :publishing-directory "./"
           :publishing-function org-latex-publish-to-pdf
           :exclude ".*"
           :latex-class "mpsi"
           :include ("reglages.org")
           :select-tags ("eleves")
           :headline-levels "10"
           :completion-function jc-org-publish-rename-eleves-pdf

| beamer | :base-directory | ./ | :publishing-directory | ./ | :publishing-function | org-beamer-publish-to-pdf | :exclude | .* | :latex-class | mpsi_beamer | :include | (reglages.org) | :completion-function | jc-org-publish-rename-beamer-pdf |                  |    |                      |                                  |
| eleves | :base-directory | ./ | :publishing-directory | ./ | :publishing-function | org-latex-publish-to-pdf  | :exclude | .* | :latex-class | mpsi        | :include | (reglages.org) | :select-tags         | (eleves)                         | :headline-levels | 10 | :completion-function | jc-org-publish-rename-eleves-pdf |

#+TAGS: eleves

* Cas d'un moment magnétique
** Puissance et énergie potentielle
*** Puissance des forces de Laplace
**** Puissance des force de Laplace sur un moment magnétique      :eleves:
La puissance des forces de Laplace subies par un moment magnétique
plongé dans un champ magnétique et en rotation autour d'un axe
\(\Delta\) est:
- m_\perp B_\perp \sin(\theta) \dot{\theta}.
--8<---------------cut here---------------end--------------->8---

             reply	other threads:[~2014-07-12 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 13:34 Julien Cubizolles [this message]
2014-07-12 14:09 ` remove directory structure in latex export Nick Dokos
2014-07-14  9:08   ` remove sectionning " Julien Cubizolles

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:

  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=87mwcevgyq.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=emacs-orgmode@gnu.org \


* 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


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