emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: LaTeX export: list with non-optional argument
Date: Fri, 24 Jan 2014 08:35:16 +0100	[thread overview]
Message-ID: <87bnz125or.fsf@med.uni-goettingen.de> (raw)

Hi all,

How can a pass a non-optional argument to a special list in LaTeX
export?

The 'currvita' LaTeX package comes with the environment 'cvlist'.  This
cvlist is to be used like this:

--8<---------------cut here---------------start------------->8---
\begin{cvlist}{Personal Information}
  \item[Date of Birth] 01.01.2014
  \item[Place of Birth] Berlin
  \item[Nationality] German
\end{cvlist}
--8<---------------cut here---------------end--------------->8---

So, it has the title of the list as argument.  How would I create such
list from Org mode?

For that case it seems to be a little inconvenient that Org does
surround any given :options with '[ ... ]' automatically, because the
closest I get with a pure Org mode solution is

--8<---------------cut here---------------start------------->8---
\begin{cvlist}[{Personal Information}]
\item [Date of Birth]  01.01.2014
\item [Place of Birth] Berlin
\item [Nationality]    German
\end{cvlist}
--8<---------------cut here---------------end--------------->8---

produced by this Org snippet:

--8<---------------cut here---------------start------------->8---
#+ATTR_LATEX: :environment cvlist :options {Personal Information}
- [Date of Birth]  01.01.2014
- [Place of Birth] Berlin
- [Nationality]    German
--8<---------------cut here---------------end--------------->8---


Well, I am aware of two obvious solutions:
1. just include the LaTeX code (inside #+begin_latex ... #+end_latex)
2. define my own environment 'mycvlist' that translates between Org and
   'cvlist' and that takes the title as optional argument:
   \newenvironment{mycvlist}[1][]{\begin{cvlist}{#1}}{\end{cvlist}}



And I will happily go with the second solution.  Just wanted to ask,
whether that definition of mycvlist is necessary or whether I miss
something here.

Regards,
Andreas

             reply	other threads:[~2014-01-24  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24  7:35 Andreas Leha [this message]
2014-01-24  8:45 ` LaTeX export: list with non-optional argument Nicolas Goaziou
2014-01-24  9:00   ` Andreas Leha
2014-01-25 14:02     ` Nicolas Goaziou
2014-01-25 14:21       ` 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

  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=87bnz125or.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 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).