From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: ox-latex: default packages cleaning Date: Tue, 07 Jul 2015 16:53:35 +0200 Message-ID: <87r3ok589c.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUFr-00066b-6J for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 10:53:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCUFm-0005Nb-T6 for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 10:53:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:56857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUFm-0005NT-HJ for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 10:53:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZCUFl-0006TQ-3z for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 16:53:45 +0200 Received: from tsn109-201-154-189.dyn.nltelcom.net ([109.201.154.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jul 2015 16:53:45 +0200 Received: from rasmus by tsn109-201-154-189.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jul 2015 16:53:45 +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: quoted-printable Hi, We could do some cleaning of org-default-package-alist before Org 8.3. * tolerance Why is "\\tolerance=3D1000" 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=EF=BB=BF=C2=B9=20 This is used for ("EUR" "\\EUR{}" nil "€" "EUR" "EUR" "=E2=82=AC") ("EURdig" "\\EURdig{}" nil "€" "EUR" "EUR" "=E2=82=AC") ("EURhv" "\\EURhv{}" nil "€" "EUR" "EUR" "=E2=82=AC") ("EURcr" "\\EURcr{}" nil "€" "EUR" "EUR" "=E2=82=AC") ("EURtm" "\\EURtm{}" nil "€" "EUR" "EUR" "=E2=82=AC") 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=EF=BB=BF=C2=B2=20 Wasysym is used for a couple of smileys. ("smiley" "\\smiley{}" nil "☺" ":-)" ":-)" "=E2=98=BA") ("blacksmile" "\\blacksmiley{}" nil "☻" ":-)" ":-)" "=E2=98=BB") ("sad" "\\frownie{}" nil "☹" ":-(" ":-(" "=E2=98=B9") I don't know why these smileys are blessed when '=F0=9F=98=B1' and '=F0=9F= =98=BA' 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:=20 =EF=BB=BF=C2=B9 (defun rasmus-next-marvosym () "find marvosym symbols" (interactive) (let (case-fold-search) (search-forward-regexp=20 (format "\\\\%s\\>" (regexp-opt (mapcar 'symbol-name '(Pickup Letter M= obilefone Telefon fax FAX Faxmachine Email Lightning EmailCT Beam Bearing L= ooseBearing FixedBearing LeftTorque RightTorque Lineload MVArrowDown OktoSt= eel HexaSteel SquareSteel RectSteel CircSteel SquarePipe RectPipe CircPipe = LSteel RoundedLSteel TSteel RoundedTSteel TTsteel RoundedTTSteel FlatSteel = Valve Industry Coffeecup LeftScissors CuttingLine RightScissors Football Bi= cycle Info ClockLogo CutRight CutLineine CutLeft Wheelchair Gentsroom Ladie= sroom Checkedbox CrossedBox HollowBox PointingHand WritingHand MineSign Rec= ycling PackingWaste WashCotton WashSynthetics WashWool HandWash NoWash Tumb= ler NoTumbler NoChemicalCleaning Bleech NoBleech CleaningA CleaningP Cleani= ngPP CleaningF CleaningFF IroningI IroningII IroningIII NoIroning AtNinetyF= ive ShortNinetyFive AtSixty ShortSixty ShortFifty AtForty ShortForty Specia= lForty ShortThirty EUR EURdig EURhv EURcr EURtm Ecommerce Shilling Denarius= Pfund EyesDollar Florin EurDig EurHv EurCr EurTm EstimatedSign Deleatur Ec= ommerce Denarius EUR EURdig Stopsign CESign Estatically Explosionsafe Laser= beam Biohazard Radioactivity BSEFree RewindToIndex RewindToStart Rewind For= ward ForwardToEnd ForwardToIndex MoveUp MoveDown ToTop ToBottom ComputerMou= se SerialInterface Keyboard SerialPort ParallelPort Printer MVZero MVOne MV= Two MVThree MVFour MVFive MVSix MVSeven MVEight MVNine MVLeftBracket MVRigh= tBracket MVComma MVPeriod MVMinus MVPlus MVDivision MVMultiplication Conclu= sion Equivalence barOver BarOver arrowOver ArrowOver StrikingThrough Multip= licationDot LessOrEqual LargerOrEqual AngleSign Corresponds Congruent NotCo= ngruent Divides DividesNot Female Male Hermaphrodite Neutral FEMALE MALE HE= RMAPHRODITE FemaleFemale MaleMale FemaleMale Sun Moon Mercury Venus Mars Ju= piter Saturn Uranus Neptune Pluto Earth Aries Taurus Gemini Cancer Leo Virg= o Libra Scorpio Sagittarius Capricorn Aquarius Pisces YinYang MVRightArrow = MVAt BOLogo BOLogoL BALogoP Mundus Cross CeltCross Ankh Heart CircledA Bouq= uet Frowny Smiley PeaceDove Bat WomanFace ManFace)))) nil t))) =EF=BB=BF=C2=B2 (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 varang= le wasylozenge kreuz smiley frownie blacksmiley sun checked bell ataribox c= ent permil brokenvert wasytherefore Bowtie agemO AC HF VHF photon gluon Squ= are XBox CheckedBox hexagon varhexagon pentagon octagon hexstar varhexstar = davidsstar eighthnote quarternote u2669 halfnote fullnote twonotes CIRCLE L= eftcircle LEFTCIRCLE Rightcircle RIGHTCIRCLE LEFTcircle RIGHTcircle lefttur= n rightturn dh DH thorn Thorn openo inve vernal ascnode descnode fullmoon n= ewmoon leftmoon rightmoon astrosun mercury venus earth mars jupiter saturn = uranus neptune pluto aries taurus gemini cancer leo virgo libra scorpio sag= ittarius capricornus aquarius pisces conjunction opposition APLstar APLlog = APLbox APLup)))) nil t))) --=20 Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken p=C3=A5 kn=C3= =A4! --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org.el-Remove-default-LaTeX-tolerance.patch >From da2a2b3fc5b182eb791f86abdd6ada3b62b0c9fe Mon Sep 17 00:00:00 2001 From: Rasmus 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-org.el-Remove-fixltx2e-LaTeX-dependency.patch >From c29c6a7357a737f5165d577e6cc609ed7eb0f7a1 Mon Sep 17 00:00:00 2001 From: Rasmus 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 --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0003-org.el-Remove-marvosym-LaTeX-dependency.patch Content-Transfer-Encoding: 8bit >From e4f9dac2c2b117abf152e91d0498a8d61536d6d2 Mon Sep 17 00:00:00 2001 From: Rasmus 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" "£" "£") ("yen" "\\textyen{}" nil "¥" "yen" "¥" "¥") ("euro" "\\texteuro{}" nil "€" "EUR" "EUR" "€") - ("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" "€") + ("EUR" "\\texteuro{}" nil "€" "EUR" "EUR" "€") "** Property Marks" ("copy" "\\textcopyright{}" nil "©" "(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 --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0004-org.el-Remove-wasysym-LaTeX-dependency.patch Content-Transfer-Encoding: 8bit >From 2459224bbe5912082e382f4f015a42eca15c3e12 Mon Sep 17 00:00:00 2001 From: Rasmus 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 "⌣" ":-)" ":-)" "⌣") ("frown" "\\frown" t "⌢" ":-(" ":-(" "⌢") - ("smiley" "\\smiley{}" nil "☺" ":-)" ":-)" "☺") - ("blacksmile" "\\blacksmiley{}" nil "☻" ":-)" ":-)" "☻") - ("sad" "\\frownie{}" nil "☹" ":-(" ":-(" "☹") + ("smiley" "\\ddot\\smile" t "☺" ":-)" ":-)" "☺") + ("blacksmile" "\\ddot\\smile" t "☻" ":-)" ":-)" "☻") + ("sad" "\\ddot\\frown" t "☹" ":-(" ":-(" "☹") "** Suits" ("clubs" "\\clubsuit" t "♣" "[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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0005-Update-ORG-NEWS-with-resepect-to-package-removals.patch >From 88f85d8230f9c6ce01dd23777e0588ced610bfe6 Mon Sep 17 00:00:00 2001 From: Rasmus 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 --=-=-=--