From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [patch] Remove dependency on latexsym (was: [patch][org-entities] More symbols) Date: Sat, 31 Aug 2013 18:19:29 +0200 Message-ID: <87zjrxj0j2.fsf_-_@gmx.us> References: <87y57zouv5.fsf@gmx.us> <87pptat5zf.fsf@gmail.com> <87bo4dkfwi.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFntv-0000u2-Os for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFntp-0004eu-I0 for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:19:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:52113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFntp-0004eo-Ae for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:19:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VFntk-0000Pt-24 for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 18:19:40 +0200 Received: from dynamic-adsl-94-34-251-221.clienti.tiscali.it ([94.34.251.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Aug 2013 18:19:40 +0200 Received: from rasmus by dynamic-adsl-94-34-251-221.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Aug 2013 18:19:40 +0200 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, > Nicolas Goaziou writes: > > As a rule of thumb, I think we should avoid requiring new packages for > org-entities. It's easy to remove the decency of latexsym as it only defines a very limited number of symbols (see texdoc latexsym). Using amssymb symbols will even look better IMO, but check this document: #+BEGIN_SRC Org #+latex:\Huge - [ ] x - [-] x - [X] x #+begin_latex \begin{itemize} \item $\square$ x \item $\boxminus$ x \item $\boxtimes$ x \end{itemize} #+end_latex #+END_SRC Obviously, it requires the removal of Diamond (my entity patch) and Box (this patch) –Rasmus --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-Remove-dependency-on-latexsym.patch >From 613f28f3bc5d2a6e35093b0a6f33d9b6ec393458 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sat, 31 Aug 2013 18:15:12 +0200 Subject: [PATCH 2/2] Remove dependency on latexsym. * ox-latex.el (org-latex-item): Use square as unchecked symbol. * org.el (org-latex-default-packages-alist): Remove latexsym. Use amssymb symbols to reduce required packages. --- lisp/org.el | 5 ++--- lisp/ox-latex.el | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 572b797..90fdfee 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3832,7 +3832,6 @@ header, or they will be appended." ("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) - ("" "latexsym" t) ("" "amssymb" t) ("" "amstext" nil) ("" "hyperref" nil) @@ -3847,7 +3846,7 @@ Org mode to function properly: - inputenc, fontenc: for basic font and character selection - amstext: for subscript and superscript -- textcomp, marvosymb, wasysym, latexsym, amssym: for various +- textcomp, marvosymb, wasysym, amssymb: for various symbols used for interpreting the entities in `org-entities'. You can skip some of these packages if you don't use any of the symbols in it. @@ -7653,7 +7652,7 @@ This is important for non-interactive uses of the command." (t (goto-char (point-at-eol)) (insert "\n"))) - + ;; Insert the new heading (insert stars) (just-one-space) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 1fe918a..e1173ef 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1561,7 +1561,7 @@ contextual information." (1- count))))) (checkbox (case (org-element-property :checkbox item) (on "$\\boxtimes$ ") - (off "$\\Box$ ") + (off "$\\square$ ") (trans "$\\boxminus$ "))) (tag (let ((tag (org-element-property :tag item))) ;; Check-boxes must belong to the tag. -- 1.8.4 --=-=-= Content-Type: text/plain -- If you can mix business and politics wonderful things can happen! --=-=-=--