From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Valentin Wüstholz" <wuestholz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Checkboxes: LaTeX export
Date: Fri, 6 Nov 2009 17:12:11 +0100 [thread overview]
Message-ID: <FB0E8E29-3631-4C90-B4A7-E72EC6D3DB11@gmail.com> (raw)
In-Reply-To: <69e68c6e0911060420m1d16467awa06da32f0102b03@mail.gmail.com>
This is nice, thanks, I have applied your patch.
- Carsten
On Nov 6, 2009, at 1:20 PM, Valentin Wüstholz 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}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> @@ -112,6 +113,7 @@
> \\usepackage{float}
> \\usepackage{wrapfig}
> \\usepackage{soul}
> +\\usepackage{amssymb}
> \\usepackage{hyperref}"
> ("\\part{%s}" . "\\part*{%s}")
> ("\\chapter{%s}" . "\\chapter*{%s}")
> @@ -127,6 +129,7 @@
> \\usepackage{float}
> \\usepackage{wrapfig}
> \\usepackage{soul}
> +\\usepackage{amssymb}
> \\usepackage{hyperref}"
> ("\\part{%s}" . "\\part*{%s}")
> ("\\chapter{%s}" . "\\chapter*{%s}")
> @@ -290,7 +293,7 @@ string should be like \"\\end{itemize\"."
> (string :tag "Use a section string" :value "\\subparagraph{%s}")))
>
> (defcustom org-export-latex-list-parameters
> - '(:cbon "\\texttt{[X]}" :cboff "\\texttt{[ ]}")
> + '(:cbon "$\\boxtimes$" :cboff "$\\Box$")
> "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
> (setq sublist (replace-match cbon t t sublist)))
> (if (string-match "\\[CBOFF\\]" sublist)
> (setq sublist (replace-match cboff t t sublist)))
> + (if (string-match "\\[-\\]" sublist)
> + (setq sublist (replace-match "$\\boxminus$" t t sublist)))
> (setq rtn (concat rtn istart term ddstart
> sublist ddend iend isep)))
> (t (setq rtn (concat rtn ;; 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
next prev parent reply other threads:[~2009-11-06 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 12:20 [PATCH] Checkboxes: LaTeX export Valentin Wüstholz
2009-11-06 16:12 ` Carsten Dominik [this message]
2009-11-09 20:36 ` Valentin Wüstholz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FB0E8E29-3631-4C90-B4A7-E72EC6D3DB11@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wuestholz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.