From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Valentin_W=C3=BCstholz?= Subject: Re: [PATCH] Checkboxes: LaTeX export Date: Mon, 9 Nov 2009 21:36:12 +0100 Message-ID: <69e68c6e0911091236j48a990fdua3a2535dd56f7aa@mail.gmail.com> References: <69e68c6e0911060420m1d16467awa06da32f0102b03@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7ayd-00077e-0Z for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 15:36:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7ayY-00076R-GB for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 15:36:38 -0500 Received: from [199.232.76.173] (port=48855 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7ayY-00076O-8o for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 15:36:34 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:48581) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7ayX-0008V5-O9 for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 15:36:34 -0500 Received: by ewy28 with SMTP id 28so4573278ewy.42 for ; Mon, 09 Nov 2009 12:36:32 -0800 (PST) In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Great! Thanks. Valentin On Fri, Nov 6, 2009 at 5:12 PM, Carsten Dominik wrote: > This is nice, thanks, I have applied your patch. > > - Carsten > > On Nov 6, 2009, at 1:20 PM, Valentin W=C3=BCstholz wrote: > >> Hi, >> >> I would like to suggest two smaller changes to the way checkboxes are >> exported in LaTeX. This is my patch: >> >> diff --git a/lisp/org-latex.el b/lisp/org-latex.el >> index 6fbb06c..fa340a4 100644 >> --- a/lisp/org-latex.el >> +++ b/lisp/org-latex.el >> @@ -97,6 +97,7 @@ >> \\usepackage{float} >> \\usepackage{wrapfig} >> \\usepackage{soul} >> +\\usepackage{amssymb} >> \\usepackage{hyperref}" >> =C2=A0 =C2=A0 ("\\section{%s}" . "\\section*{%s}") >> =C2=A0 =C2=A0 ("\\subsection{%s}" . "\\subsection*{%s}") >> @@ -112,6 +113,7 @@ >> \\usepackage{float} >> \\usepackage{wrapfig} >> \\usepackage{soul} >> +\\usepackage{amssymb} >> \\usepackage{hyperref}" >> =C2=A0 =C2=A0 ("\\part{%s}" . "\\part*{%s}") >> =C2=A0 =C2=A0 ("\\chapter{%s}" . "\\chapter*{%s}") >> @@ -127,6 +129,7 @@ >> \\usepackage{float} >> \\usepackage{wrapfig} >> \\usepackage{soul} >> +\\usepackage{amssymb} >> \\usepackage{hyperref}" >> =C2=A0 =C2=A0 ("\\part{%s}" . "\\part*{%s}") >> =C2=A0 =C2=A0 ("\\chapter{%s}" . "\\chapter*{%s}") >> @@ -290,7 +293,7 @@ string should be like \"\\end{itemize\"." >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (string :tag "Us= e a section string" :value >> "\\subparagraph{%s}"))) >> >> (defcustom org-export-latex-list-parameters >> - =C2=A0'(:cbon "\\texttt{[X]}" :cboff "\\texttt{[ ]}") >> + =C2=A0'(:cbon "$\\boxtimes$" :cboff "$\\Box$") >> =C2=A0"Parameters for the LaTeX list exporter. >> These parameters will be passed on to `org-list-to-latex', which in turn >> will pass them (combined with the LaTeX default list parameters) to >> diff --git a/lisp/org-list.el b/lisp/org-list.el >> index f17cde5..7a74964 100644 >> --- a/lisp/org-list.el >> +++ b/lisp/org-list.el >> @@ -1305,6 +1305,8 @@ Valid parameters PARAMS are >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq sub= list (replace-match cbon t t sublist))) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (string-match "\\[C= BOFF\\]" sublist) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq sub= list (replace-match cboff t t sublist))) >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (string-match "\\[= -\\]" sublist) >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq su= blist (replace-match "$\\boxminus$" t t >> sublist))) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq rtn (concat rtn i= start term ddstart >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sublist ddend iend isep))) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(t (setq rtn (concat rtn= =C2=A0 ;; previous list >> >> Cheers, >> >> Valentin >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > >