emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-latex: default packages cleaning
@ 2015-07-07 14:53 Rasmus
  2015-07-07 15:48 ` Eric S Fraga
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Rasmus @ 2015-07-07 14:53 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

We could do some cleaning of org-default-package-alist before Org 8.3.

* tolerance

Why is "\\tolerance=1000" part of org-default-package-alist?  Is this
value good for all languages?  If we keep it, it should be configurable.
But people who explicitly wants this behavior can probably add it
themselves.

If it's a means to archive "high-quality" paragraphs, maybe microtype is
probably the 'proper' fix...

* Fixltx2e

This packages is depreciated with TL2015 cf. LaTeX News 22.  We can use
\RequirePackage[current]{latexrelease} but there's no point in that....
AFAIK latexrelease only useful for backwards compatibility.

* marvosym¹ 

This is used for

     ("EUR" "\\EUR{}" nil "€" "EUR" "EUR" "€")
     ("EURdig" "\\EURdig{}" nil "€" "EUR" "EUR" "€")
     ("EURhv" "\\EURhv{}" nil "€" "EUR" "EUR" "€")
     ("EURcr" "\\EURcr{}" nil "€" "EUR" "EUR" "€")
     ("EURtm" "\\EURtm{}" nil "€" "EUR" "EUR" "€")

We could either call \\texteuro{} or use eurosym.  IMO, if people wants
something more sophisticated than \texteuro (which depends on the current
font) can load marvosym or eurosym.

* Wasysym² 

Wasysym is used for a couple of smileys.

     ("smiley" "\\smiley{}" nil "☺" ":-)" ":-)" "☺")
     ("blacksmile" "\\blacksmiley{}" nil "☻" ":-)" ":-)" "☻")
     ("sad" "\\frownie{}" nil "☹" ":-(" ":-(" "☹")

I don't know why these smileys are blessed when '😱' and '😺' are not.
Ideally, you'd just use unicode smileys, but this requires {xe,lua}tex.
So for now we can could use \(\ddot\smile\) and \(\ddot\frown\) and shave
off the extra dependency.  Put perhaps it's better to just let people
choose themselves which smiley command they will want to use in which case
we could also just remove wasysym.

Rasmus

Footnotes: 
¹ (defun rasmus-next-marvosym ()
  "find marvosym symbols"
  (interactive)
  (let (case-fold-search)
    (search-forward-regexp 
     (format "\\\\%s\\>" (regexp-opt (mapcar 'symbol-name '(Pickup Letter Mobilefone Telefon fax FAX Faxmachine Email Lightning EmailCT Beam Bearing LooseBearing FixedBearing LeftTorque RightTorque Lineload MVArrowDown OktoSteel HexaSteel SquareSteel RectSteel CircSteel SquarePipe RectPipe CircPipe LSteel RoundedLSteel TSteel RoundedTSteel TTsteel RoundedTTSteel FlatSteel Valve Industry Coffeecup LeftScissors CuttingLine RightScissors Football Bicycle Info ClockLogo CutRight CutLineine CutLeft Wheelchair Gentsroom Ladiesroom Checkedbox CrossedBox HollowBox PointingHand WritingHand MineSign Recycling PackingWaste WashCotton WashSynthetics WashWool HandWash NoWash Tumbler NoTumbler NoChemicalCleaning Bleech NoBleech CleaningA CleaningP CleaningPP CleaningF CleaningFF IroningI IroningII IroningIII NoIroning AtNinetyFive ShortNinetyFive AtSixty ShortSixty ShortFifty AtForty ShortForty SpecialForty ShortThirty EUR EURdig EURhv EURcr EURtm Ecommerce Shilling Denarius Pfund EyesDollar Florin EurDig EurHv EurCr EurTm EstimatedSign Deleatur Ecommerce Denarius EUR EURdig Stopsign CESign Estatically Explosionsafe Laserbeam Biohazard Radioactivity BSEFree RewindToIndex RewindToStart Rewind Forward ForwardToEnd ForwardToIndex MoveUp MoveDown ToTop ToBottom ComputerMouse SerialInterface Keyboard SerialPort ParallelPort Printer MVZero MVOne MVTwo MVThree MVFour MVFive MVSix MVSeven MVEight MVNine MVLeftBracket MVRightBracket MVComma MVPeriod MVMinus MVPlus MVDivision MVMultiplication Conclusion Equivalence barOver BarOver arrowOver ArrowOver StrikingThrough MultiplicationDot LessOrEqual LargerOrEqual AngleSign Corresponds Congruent NotCongruent Divides DividesNot Female Male Hermaphrodite Neutral FEMALE MALE HERMAPHRODITE FemaleFemale MaleMale FemaleMale Sun Moon Mercury Venus Mars Jupiter Saturn Uranus Neptune Pluto Earth Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn Aquarius Pisces YinYang MVRightArrow MVAt BOLogo BOLogoL BALogoP Mundus Cross CeltCross Ankh Heart CircledA Bouquet Frowny Smiley PeaceDove Bat WomanFace ManFace))))
     nil t)))



²   (defun rasmus-next-wasy ()
  "next wasysym symbol"
  (interactive)
  (let (case-fold-search)
    (search-forward-regexp
     (format "\\\\%s\\>"
             (regexp-opt
              (mapcar 'symbol-name
                      '(male female currency phone recorder clock lightning pointer RIGHTarrow LEFTarrow UParrow DOWNarrow diameter invdiameter varangle wasylozenge kreuz smiley frownie blacksmiley sun checked bell ataribox cent permil brokenvert wasytherefore Bowtie agemO AC HF VHF photon gluon Square XBox CheckedBox hexagon varhexagon pentagon octagon hexstar varhexstar davidsstar eighthnote quarternote u2669 halfnote fullnote twonotes CIRCLE Leftcircle LEFTCIRCLE Rightcircle RIGHTCIRCLE LEFTcircle RIGHTcircle leftturn rightturn dh DH thorn Thorn openo inve vernal ascnode descnode fullmoon newmoon leftmoon rightmoon astrosun mercury venus earth mars jupiter saturn uranus neptune pluto aries taurus gemini cancer leo virgo libra scorpio sagittarius capricornus aquarius pisces conjunction opposition APLstar APLlog APLbox APLup))))
     nil t)))


-- 
Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-Remove-default-LaTeX-tolerance.patch --]
[-- Type: text/x-diff, Size: 804 bytes --]

From da2a2b3fc5b182eb791f86abdd6ada3b62b0c9fe Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Tue, 7 Jul 2015 16:08:13 +0200
Subject: [PATCH 1/7] org.el: Remove default LaTeX tolerance

* org.el (org-latex-default-packages-alist): Remove fixed tolerance.
---
 lisp/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 085b763..d6e8ada 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4084,8 +4084,7 @@ header, or they will be appended."
     (""     "wasysym"   t)
     (""     "amssymb"   t)
     (""     "capt-of"   nil)
-    (""     "hyperref"  nil)
-    "\\tolerance=1000")
+    (""     "hyperref"  nil))
   "Alist of default packages to be inserted in the header.
 
 Change this only if one of the packages here causes an
-- 
2.4.5


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-org.el-Remove-fixltx2e-LaTeX-dependency.patch --]
[-- Type: text/x-diff, Size: 1066 bytes --]

From c29c6a7357a737f5165d577e6cc609ed7eb0f7a1 Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Tue, 7 Jul 2015 16:09:08 +0200
Subject: [PATCH 2/7] org.el: Remove fixltx2e LaTeX dependency

* org.el (org-latex-default-packages-alist): Remove fixltx2e.
---
 lisp/org.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index d6e8ada..db29e8d 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4071,7 +4071,6 @@ header, or they will be appended."
 (defcustom org-latex-default-packages-alist
   '(("AUTO" "inputenc"  t)
     ("T1"   "fontenc"   t)
-    (""     "fixltx2e"  nil)
     (""     "graphicx"  t)
     (""     "grffile"   t)
     (""     "longtable" nil)
@@ -4094,7 +4093,6 @@ The packages in this list are needed by one part or another of
 Org mode to function properly:
 
 - inputenc, fontenc:  for basic font and character selection
-- fixltx2e: Important patches of LaTeX itself
 - graphicx: for including images
 - grffile: allow periods and spaces in graphics file names
 - longtable: For multipage tables
-- 
2.4.5


[-- Attachment #4: 0003-org.el-Remove-marvosym-LaTeX-dependency.patch --]
[-- Type: text/x-diff, Size: 2221 bytes --]

From e4f9dac2c2b117abf152e91d0498a8d61536d6d2 Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Tue, 7 Jul 2015 16:14:39 +0200
Subject: [PATCH 3/7] org.el: Remove marvosym LaTeX dependency

* org.el (org-latex-default-packages-alist): Remove marvosym.
* org-entities.el (org-entities): \EUR is now replaced with
  \texteuro.  Remove EURdig, EURhv, EURcr, EURtm.
---
 lisp/org-entities.el | 6 +-----
 lisp/org.el          | 3 +--
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/lisp/org-entities.el b/lisp/org-entities.el
index 732b989..4e94fa4 100644
--- a/lisp/org-entities.el
+++ b/lisp/org-entities.el
@@ -296,11 +296,7 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
      ("pound" "\\pounds{}" nil "&pound;" "pound" "£" "£")
      ("yen" "\\textyen{}" nil "&yen;" "yen" "¥" "¥")
      ("euro" "\\texteuro{}" nil "&euro;" "EUR" "EUR" "€")
-     ("EUR" "\\EUR{}" nil "&euro;" "EUR" "EUR" "€")
-     ("EURdig" "\\EURdig{}" nil "&euro;" "EUR" "EUR" "€")
-     ("EURhv" "\\EURhv{}" nil "&euro;" "EUR" "EUR" "€")
-     ("EURcr" "\\EURcr{}" nil "&euro;" "EUR" "EUR" "€")
-     ("EURtm" "\\EURtm{}" nil "&euro;" "EUR" "EUR" "€")
+     ("EUR" "\\texteuro{}" nil "&euro;" "EUR" "EUR" "€")
 
      "** Property Marks"
      ("copy" "\\textcopyright{}" nil "&copy;" "(c)" "©" "©")
diff --git a/lisp/org.el b/lisp/org.el
index db29e8d..508ace7 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4079,7 +4079,6 @@ header, or they will be appended."
     ("normalem" "ulem"  t)
     (""     "amsmath"   t)
     (""     "textcomp"  t)
-    (""     "marvosym"  t)
     (""     "wasysym"   t)
     (""     "amssymb"   t)
     (""     "capt-of"   nil)
@@ -4100,7 +4099,7 @@ Org mode to function properly:
 - rotating: for sideways figures and tables
 - ulem: for underline and strike-through
 - amsmath: for subscript and superscript and math environments
-- textcomp, marvosymb, wasysym, amssymb: for various symbols used
+- textcomp, 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 their symbols.
 - capt-of: for captions outside of floats
-- 
2.4.5


[-- Attachment #5: 0004-org.el-Remove-wasysym-LaTeX-dependency.patch --]
[-- Type: text/x-diff, Size: 2007 bytes --]

From 2459224bbe5912082e382f4f015a42eca15c3e12 Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Tue, 7 Jul 2015 16:19:54 +0200
Subject: [PATCH 4/7] org.el: Remove wasysym LaTeX dependency

---
 lisp/org-entities.el | 6 +++---
 lisp/org.el          | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lisp/org-entities.el b/lisp/org-entities.el
index 4e94fa4..8813ac3 100644
--- a/lisp/org-entities.el
+++ b/lisp/org-entities.el
@@ -495,9 +495,9 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
      "** Smilies"
      ("smile" "\\smile" t "&smile;" ":-)" ":-)" "⌣")
      ("frown" "\\frown" t "&frown;" ":-(" ":-(" "⌢")
-     ("smiley" "\\smiley{}" nil "&#9786;" ":-)" ":-)" "☺")
-     ("blacksmile" "\\blacksmiley{}" nil "&#9787;" ":-)" ":-)" "☻")
-     ("sad" "\\frownie{}" nil "&#9785;" ":-(" ":-(" "☹")
+     ("smiley" "\\ddot\\smile" t "&#9786;" ":-)" ":-)" "☺")
+     ("blacksmile" "\\ddot\\smile" t "&#9787;" ":-)" ":-)" "☻")
+     ("sad" "\\ddot\\frown" t "&#9785;" ":-(" ":-(" "☹")
 
      "** Suits"
      ("clubs" "\\clubsuit" t "&clubs;" "[clubs]" "[clubs]" "♣")
diff --git a/lisp/org.el b/lisp/org.el
index 508ace7..f10ccf9 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4079,7 +4079,6 @@ header, or they will be appended."
     ("normalem" "ulem"  t)
     (""     "amsmath"   t)
     (""     "textcomp"  t)
-    (""     "wasysym"   t)
     (""     "amssymb"   t)
     (""     "capt-of"   nil)
     (""     "hyperref"  nil))
@@ -4099,7 +4098,7 @@ Org mode to function properly:
 - rotating: for sideways figures and tables
 - ulem: for underline and strike-through
 - amsmath: for subscript and superscript and math environments
-- textcomp, wasysym, amssymb: for various symbols used
+- textcomp, 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 their symbols.
 - capt-of: for captions outside of floats
-- 
2.4.5


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: 0005-Update-ORG-NEWS-with-resepect-to-package-removals.patch --]
[-- Type: text/x-diff, Size: 1113 bytes --]

From 88f85d8230f9c6ce01dd23777e0588ced610bfe6 Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Tue, 7 Jul 2015 16:26:02 +0200
Subject: [PATCH 5/7] Update ORG-NEWS with resepect to package removals

---
 etc/ORG-NEWS | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 4a4a9d8..c605670 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -429,8 +429,10 @@ when ~org-link-search-must-match-exact-headline~ is not nil.
 *** ~org-latex-hyperref-template~, ~org-latex-title-command~ formatting
 New formatting keys are supported.  See the respective docstrings.
 Note, ~org-latex-hyperref-template~ has a new default value.
-*** ~float.sty~ has been removed from ~org-latex-default-packages-alist~
-If you require this package add it to ~org-latex-packages-alist~.
+*** ~float, wasysym, marvosym, fixltx2e~ are removed from ~org-latex-default-packages-alist~
+If you require any of these package add them to your preamble via
+~org-latex-packages-alist~. Org also uses default LaTeX ~\tolerance~
+now.
 * Version 8.2
 
 ** Incompatible changes
-- 
2.4.5


^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-07-29 16:25 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 14:53 ox-latex: default packages cleaning Rasmus
2015-07-07 15:48 ` Eric S Fraga
2015-07-07 19:35 ` Suvayu Ali
2015-07-07 20:05   ` Rasmus
2015-07-07 20:52     ` Suvayu Ali
2015-07-07 21:07       ` Rasmus
2015-07-08 12:53   ` Rasmus
2015-07-08 13:43     ` Suvayu Ali
2015-07-08 13:53       ` Rasmus
2015-07-08 14:09         ` Suvayu Ali
2015-07-08 14:26           ` Rasmus
2015-07-08 14:55             ` Suvayu Ali
2015-07-08 15:41     ` Suvayu Ali
2015-07-08 16:06       ` Rasmus
2015-07-08 18:35       ` Rasmus
2015-07-16  8:29         ` Suvayu Ali
2015-07-16  8:49           ` Rasmus
2015-07-27  8:22             ` Sebastien Vauban
2015-07-27  8:30               ` Rasmus
2015-07-27  9:22                 ` Sebastien Vauban
2015-07-27  9:31                   ` Rasmus
2015-07-29 16:21           ` Rasmus
2015-07-08 12:54   ` Rasmus
2015-07-08 13:44     ` Suvayu Ali
2015-07-14 22:31   ` Marcin Borkowski
2015-07-15  8:33     ` Rasmus
2015-07-10 11:25 ` Robert Klein
2015-07-11 10:48   ` Rasmus
2015-07-11 18:53     ` Robert Klein
2015-07-13 10:08 ` Rasmus
2015-07-14 22:16 ` Marcin Borkowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).