From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: LaTeX export: list with non-optional argument Date: Fri, 24 Jan 2014 08:35:16 +0100 Message-ID: <87bnz125or.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6bIe-000146-8g for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 02:35:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6bIW-0006YQ-Kt for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 02:35:36 -0500 Received: from plane.gmane.org ([80.91.229.3]:49202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6bIW-0006YI-Cf for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 02:35:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W6bIV-000474-9Z for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 08:35:27 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jan 2014 08:35:27 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jan 2014 08:35:27 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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