From mboxrd@z Thu Jan  1 00:00:00 1970
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Subject: Re: Avoid escaping braces in LaTeX export?
Date: Fri, 7 Jun 2013 20:45:48 +0200
Message-ID: <20130607204548.6fabee8f@aga-netbook>
References: <87bo7hkf20.fsf@berkeley.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57979)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1Ul1fi-0005Hl-8B
	for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 14:46:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1Ul1fe-0007aU-Pq
	for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 14:45:58 -0400
Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:44797)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1Ul1fe-0007Zx-3E
	for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 14:45:54 -0400
Received: from localhost (localhost [127.0.0.1])
	by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 5B8A5419A2
	for <emacs-orgmode@gnu.org>; Fri,  7 Jun 2013 20:45:51 +0200 (CEST)
Received: from msg.wmi.amu.edu.pl ([127.0.0.1])
	by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id dn6Vq+5msdyp for <emacs-orgmode@gnu.org>;
	Fri,  7 Jun 2013 20:45:51 +0200 (CEST)
Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl
	[213.156.105.98])
	by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 31F80419A1
	for <emacs-orgmode@gnu.org>; Fri,  7 Jun 2013 20:45:50 +0200 (CEST)
In-Reply-To: <87bo7hkf20.fsf@berkeley.edu>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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

Dnia 2013-06-07, o godz. 10:26:31
Richard Lawrence <richard.lawrence@berkeley.edu> napisa=C5=82(a):

> Here's my use case.  I often create new commands in LaTeX to abstract
> over some common pattern so I can easily type it and change it later
> if necessary.  For example, when taking notes on readings, I have a
> command that makes its argument into an `inline comment' (basically
> an aside to myself) defined as follows:
>=20
> #+LATEX_HEADER: \newcommand{\ic}[1]{{\footnotesize [~#1~]}}
>=20
> Then in my notes I have things like:
>=20
>  Marcus' point is more subtle, though, than that the substitutional
>  reading validates these inferences or theorems while the objectual
>  reading does not.  \ic{This would not persuade Quine, for example:
> the failure of existential generalization in modal contexts is for
> Quine a reason to reject quantified modal logic, rather than give the
>  existential quantifier a different reading.} =20

Quick and dirty workaround (untested):

#+LATEX_HEADER: \def\ic!#1!{{\footnotesize [~#1~]}}

Marcus' point is more subtle, though, than that the substitutional
reading validates these inferences or theorems while the objectual
reading does not.  \ic!This would not persuade Quine, for example:
the failure of existential generalization in modal contexts is for
Quine a reason to reject quantified modal logic, rather than give the
existential quantifier a different reading.!

Of course, you may do \def\ic(#1){...}, \def\ic~#1~{...} etc.  The
"delimiter" characters may not appear in the argument, though (nesting
is not supported!).

This is very un-LaTeX-y (it is much lower-level TeX syntax), but it is
occasionaly useful (and heavily used by LaTeX itself, btw - this is
used among others for delimiting optional arguments).

Hth,

--=20
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University