From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [PATCH] Distinguish = and ~ delimiters in LaTeX export Date: Sat, 29 Jan 2011 08:40:04 -1000 Message-ID: <7D426067-ED81-42E7-B517-29F06F35EB8F@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary=Apple-Mail-13-191625030 Return-path: Received: from [140.186.70.92] (port=53784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjFiW-0004G7-NX for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 13:40:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjFiV-0000XT-Hx for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 13:40:12 -0500 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:35254) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PjFiV-0000X8-8q for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 13:40:11 -0500 Received: from cpe-66-91-68-127.hawaii.res.rr.com ([66.91.68.127] helo=[192.168.1.3]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1PjFiR-0003yR-5F for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 11:40:08 -0700 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --Apple-Mail-13-191625030 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, The default value of org-export-latex-emphasis-alist treats the = and ~ delimiters as \\verb. Both settings are ignored because org-export- latex-use-verb is nil by default. The = and ~ delimiters produce \texttt{} instead of \verb. This patch distinguishes = and ~ by changing the default for = to \\texttt{%s}. The docstring has also been changed to refer to org-export-latex-use- verb. With this patch, users exporting to LaTeX will be able to use = for \texttt text in LaTeX moving environments and ~ for \verb text in places where it is safe to use this construct. Tom --Apple-Mail-13-191625030 Content-Disposition: attachment; filename=0001-Changed-org-export-latex-emphasis-alist-to-distingui.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Changed-org-export-latex-emphasis-alist-to-distingui.patch" Content-Transfer-Encoding: quoted-printable =46rom=20024b03e14f4b1348f2f07c25306ee8ab9ee33215=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Tom=20Dye=20=0ADate:=20Sat,=20= 29=20Jan=202011=2008:31:57=20-1000=0ASubject:=20[PATCH]=20Changed=20= org-export-latex-emphasis-alist=20to=20distinguish=20=3D=20from=20~=0A=20= delimiters.=20=20Added=20reference=20to=20org-export-latex-use-verb=20in=20= docstring.=0A=0A---=0A=20lisp/org-latex.el=20|=20=20=2016=20= ++++++++--------=0A=201=20files=20changed,=208=20insertions(+),=208=20= deletions(-)=0A=0Adiff=20--git=20a/lisp/org-latex.el=20= b/lisp/org-latex.el=0Aindex=20a45546a..3fd67b0=20100644=0A---=20= a/lisp/org-latex.el=0A+++=20b/lisp/org-latex.el=0A@@=20-230,16=20+230,16=20= @@=20are=20written=20as=20utf8=20files."=0A=20=20=20=20=20("/"=20= "\\emph{%s}"=20nil)=0A=20=20=20=20=20("_"=20"\\underline{%s}"=20nil)=0A=20= =20=20=20=20("+"=20"\\st{%s}"=20nil)=0A-=20=20=20=20("=3D"=20"\\verb"=20= t)=0A+=20=20=20=20("=3D"=20"\\texttt{%s}"=20t)=0A=20=20=20=20=20("~"=20= "\\verb"=20t))=0A=20=20=20"Alist=20of=20LaTeX=20expressions=20to=20= convert=20emphasis=20fontifiers.=0A-Each=20element=20of=20the=20list=20= is=20a=20list=20of=20three=20elements.=0A-The=20first=20element=20is=20= the=20character=20used=20as=20a=20marker=20for=20fontification.=0A-The=20= second=20element=20is=20a=20formatting=20string=20to=20wrap=20fontified=20= text=20with.=0A-If=20it=20is=20\"\\verb\",=20Org=20will=20automatically=20= select=20a=20delimiter=0A-character=20that=20is=20not=20in=20the=20= string.=0A-The=20third=20element=20decides=20whether=20to=20protect=20= converted=20text=20from=20other=0A-conversions."=0A+Each=20element=20of=20= the=20list=20is=20a=20list=20of=20three=20elements.=20=20The=20first=0A= +element=20is=20the=20character=20used=20as=20a=20marker=20for=20= fontification.=20=20The=0A+second=20element=20is=20a=20formatting=20= string=20to=20wrap=20fontified=20text=0A+with.=20=20If=20it=20is=20= \"\\verb\",=20and=20org-export-latex-use-verb=20is=20not=0A+nil,=20Org=20= will=20automatically=20select=20a=20delimiter=20character=20that=20is=0A= +not=20in=20the=20string.=20=20The=20third=20element=20decides=20whether=20= to=20protect=0A+converted=20text=20from=20other=20conversions."=0A=20=20=20= :group=20'org-export-latex=0A=20=20=20:type=20'alist)=0A=20=0A--=20=0A= 1.7.1=0A=0A= --Apple-Mail-13-191625030 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-13-191625030 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-13-191625030--