From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: LaTeX export: list with non-optional argument Date: Fri, 24 Jan 2014 10:00:36 +0100 Message-ID: <877g9p21qj.fsf@med.uni-goettingen.de> References: <87bnz125or.fsf@med.uni-goettingen.de> <87sisdvkdg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6cdE-0000CH-Hp for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 04:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6cd6-0007cF-DC for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 04:00:56 -0500 Received: from plane.gmane.org ([80.91.229.3]:49324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6cd6-0007aa-6M for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 04:00:48 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W6cd4-0000FB-Vb for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 10:00:46 +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 10:00:46 +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 10:00:46 +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 Nicolas Goaziou writes: > 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? I would (obviously?) vote in favour of such a change. - It does not hurt too much for the other use cases to include the square brackets manually. - It provides more flexibility in general. - It solves my special use case. > >> \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. Thanks for pointing that out. I remember having seen the thread, but I did not follow it. (For the same reason, that I have not been updating Org lately: time constraints) > This should be: > > #+ATTR_LATEX: :environment cvlist :options {Personal Information} > - @@latex:[Date of Birth]@@ ... > - @@latex:[Place of Birth]@@ ... > - @@latex:[Nationality]@@ ... > That seems to be a regression... > or, in this particular case, simply: > > #+ATTR_LATEX: :environment cvlist :options {Personal Information} > - Date of Birth :: ... > - Place of Birth :: ... > - Nationality :: ... ... or not. That is even better than my original syntax. Regards, Andreas