From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX export: list with non-optional argument Date: Fri, 24 Jan 2014 09:45:15 +0100 Message-ID: <87sisdvkdg.fsf@gmail.com> References: <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]:45500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6cNo-0004C4-9q for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 03:45:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6cNi-0002RF-NU for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 03:45:00 -0500 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:55333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6cNi-0002Qy-Ge for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 03:44:54 -0500 Received: by mail-wg0-f51.google.com with SMTP id z12so2600514wgg.6 for ; Fri, 24 Jan 2014 00:44:52 -0800 (PST) In-Reply-To: <87bnz125or.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Fri, 24 Jan 2014 08:35:16 +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: Andreas Leha Cc: emacs-orgmode@gnu.org Hello, Andreas Leha writes: > How can a pass a non-optional argument to a special list in LaTeX > export? You can't. See below. > The 'currvita' LaTeX package comes with the environment 'cvlist'. This > cvlist is to be used like this: > > \begin{cvlist}{Personal Information} > \item[Date of Birth] 01.01.2014 > \item[Place of Birth] Berlin > \item[Nationality] German > \end{cvlist} > > 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 I introduced :environment property thinking about "paralist" package, which uses only optional arguments. Therefore :options tries to be smart and enclose its value within square brackets when necessary. The problem is that this differs from :options property in special blocks, which will append its value verbatim after the environment name. I guess the best move would be to avoid being too smart and do the same for :options in plain lists. The manual would need to be updated accordingly. Opinions? > \begin{cvlist}[{Personal Information}] > \item [Date of Birth] 01.01.2014 > \item [Place of Birth] Berlin > \item [Nationality] German > \end{cvlist} > > produced by this Org snippet: > > #+ATTR_LATEX: :environment cvlist :options {Personal Information} > - [Date of Birth] 01.01.2014 > - [Place of Birth] Berlin > - [Nationality] German This syntax is not possible anymore in latest Org release. You cannot start an item with a square bracket and expect it will become an option to \item anymore. This should be: #+ATTR_LATEX: :environment cvlist :options {Personal Information} - @@latex:[Date of Birth]@@ ... - @@latex:[Place of Birth]@@ ... - @@latex:[Nationality]@@ ... or, in this particular case, simply: #+ATTR_LATEX: :environment cvlist :options {Personal Information} - Date of Birth :: ... - Place of Birth :: ... - Nationality :: ... But it won't solve the problem discussed above. Regards, -- Nicolas Goaziou