all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [patch] Remove dependency on latexsym (was: [patch][org-entities] More symbols)
Date: Sat, 31 Aug 2013 18:19:29 +0200	[thread overview]
Message-ID: <87zjrxj0j2.fsf_-_@gmx.us> (raw)
In-Reply-To: 87bo4dkfwi.fsf@gmx.us

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]


Hi,

> Nicolas Goaziou <n.goaziou@gmail.com> 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-Remove-dependency-on-latexsym.patch --]
[-- Type: text/x-diff, Size: 1957 bytes --]

From 613f28f3bc5d2a6e35093b0a6f33d9b6ec393458 Mon Sep 17 00:00:00 2001
From: rasmus <rasmus@gmx.us>
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


[-- Attachment #3: Type: text/plain, Size: 72 bytes --]



-- 
If you can mix business and politics wonderful things can happen!

  reply	other threads:[~2013-08-31 16:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 15:56 [patch][org-entities] More symbols Rasmus
2013-08-19  8:55 ` Nicolas Goaziou
2013-08-28 11:38   ` Rasmus
2013-09-01 12:57     ` Jambunathan K
2013-09-02 11:30       ` Rasmus
2013-09-02 12:47         ` Jambunathan K
2013-09-02 13:48           ` Rasmus
2013-08-31 16:02   ` Rasmus
2013-08-31 16:19     ` Rasmus [this message]
2013-09-01 12:34       ` [patch] Remove dependency on latexsym Nicolas Goaziou
2013-09-01 12:33     ` [patch][org-entities] More symbols Nicolas Goaziou
2013-09-02 11:31       ` Rasmus

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=87zjrxj0j2.fsf_-_@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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.