From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: latex exporter: different itemize environment
Date: Wed, 13 Feb 2013 08:31:18 +0100 [thread overview]
Message-ID: <87lias3c1l.fsf@med.uni-goettingen.de> (raw)
Hi all (and Nicolas),
from =org-e-latex.el= (I have to upgrade - I know):
,----
| ;; Plain lists accept two optional attributes: `:environment' and
| ;; `:options'. The first one allows to use a non-standard environment
| ;; (i.e. "inparaenum"). The second one allows to specify optional
| ;; arguments for that environment (square brackets are not mandatory).
`----
I can not make the :enviroment switch work.
Following is a small presentation with a non-indented version of
itemize. But when I export it, I still get an \begin{itemize} when
instead I'd like \begin{nonindentlist}.
What am I missing?
Regards,
Andreas
PS: The example:
#+LATEX_HEADER: % from http://stackoverflow.com/questions/2611276/latex-beamer-way-to-change-the-bullet-indentation
#+LATEX_HEADER: \makeatletter
#+LATEX_HEADER: \newenvironment{nonindentlist}{
#+LATEX_HEADER: \ifnum\@itemdepth >2\relax\@toodeep\else
#+LATEX_HEADER: \advance\@itemdepth\@ne%
#+LATEX_HEADER: \beamer@computepref\@itemdepth%
#+LATEX_HEADER: \usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%
#+LATEX_HEADER: \usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%
#+LATEX_HEADER: \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%
#+LATEX_HEADER: \begin{list}
#+LATEX_HEADER: {
#+LATEX_HEADER: \usebeamertemplate{itemize \beameritemnestingprefix item}
#+LATEX_HEADER: }
#+LATEX_HEADER: { \leftmargin=1em \itemindent=0pt
#+LATEX_HEADER: \def\makelabel##1{%
#+LATEX_HEADER: {%
#+LATEX_HEADER: \hss\llap{{%
#+LATEX_HEADER: \usebeamerfont*{itemize \beameritemnestingprefix item}%
#+LATEX_HEADER: \usebeamercolor[fg]{itemize \beameritemnestingprefix item}##1}}%
#+LATEX_HEADER: }%
#+LATEX_HEADER: }%
#+LATEX_HEADER: }
#+LATEX_HEADER: \fi
#+LATEX_HEADER: }
#+LATEX_HEADER: {
#+LATEX_HEADER: \end{list}
#+LATEX_HEADER: \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body end}%
#+LATEX_HEADER: }
#+LATEX_HEADER: \makeatother
* EXPORT THIS SUBTREE (given you have beamer in org-e-latex-classes)
:PROPERTIES:
:EXPORT_TITLE: My title
:EXPORT_LaTeX_CLASS: beamer
:EXPORT_LaTeX_CLASS_OPTIONS: [presentation]
:END:
** My slide :B_frame:
:PROPERTIES:
:BEAMER_env: frame
:END:
#+ATTR_LATEX: :environment nonindentlist
- some
- bullet
- points
next reply other threads:[~2013-02-13 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-13 7:31 Andreas Leha [this message]
2013-02-13 13:35 ` latex exporter: different itemize environment Nicolas Goaziou
2013-02-25 21:20 ` Andreas Leha
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lias3c1l.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.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 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.