Re: [O] ox-latex: default packages cleaning

2015-07-29 Thread Rasmus
Suvayu Ali writes: >> >> +(defun org-latex-guess-polyglossia-language (header info) >> >> + "Set the Polyglossia language according to the LANGUAGE keyword. >> > >> > I'm in two-minds about this. On the one had it is a nice thing, but on >> > the other hand, it prevents the more fine grained co

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Rasmus
Hi, Sebastien Vauban writes: >> (I'm hesitant to allow arbitrary scripts). > > I agree. Just stick to the basic need, which is to be able to easily > change of LaTeX engine. I'd however also like to allow some flags, e.g. -shell-escape/write18 for minted. I cannot think of other useful flags.

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Sebastien Vauban
Rasmus writes: > Sebastien Vauban writes: > >> FWIW, it seems that people who played with different LaTeX engines used >> the "LATEX_CMD" property, as adviced on Worg [1]. Doesn't matter if we >> change that, but just a reminder of some already common usage. > > I didn't know that worg page. Ju

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Rasmus
Sebastien Vauban writes: > FWIW, it seems that people who played with different LaTeX engines used > the "LATEX_CMD" property, as adviced on Worg [1]. Doesn't matter if we > change that, but just a reminder of some already common usage. I didn't know that worg page. Just to understand, you are

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Sebastien Vauban
Hello, Rasmus writes: >> I have a few other questions: >> - how does one change the variant when doing a subtree export? By >> setting EXPORT_LATEX_VARIANT? > > It seems to work at least to the point that the right engine is written to > the file: > > #+LATEX_VARIANT: xelatex > * pdflatex > :P

Re: [O] ox-latex: default packages cleaning

2015-07-16 Thread Rasmus
Suvayu Ali writes: > The polyglossia bits work well. > The file local variable prompt for every export is quite annoying > though. Same goes for the exported file, opening it brings up the same > prompt again. I guess it is a one time thing to mark that variable as > safe, then it should be go

Re: [O] ox-latex: default packages cleaning

2015-07-16 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 08:35:28PM +0200, Rasmus wrote: > Suvayu Ali writes: > > >> +(defun org-latex-guess-polyglossia-language (header info) > >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > > > I'm in two-minds about this. On the one had it is a nice thing, but on >

Re: [O] ox-latex: default packages cleaning

2015-07-15 Thread Rasmus
Marcin Borkowski writes: >> I would also suggest removing inputenc. At the moment, it is loaded >> with the AUTO option. AFAIK, this is redundant since most recent >> (meaning for quite a few years) TeX engines already use the encoding of >> the file if nothing is specified. > > Can you elabora

Re: [O] ox-latex: default packages cleaning

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 21:35, Suvayu Ali wrote: > I would like to second microtype. In fact as far as I know, now a days > it is recommended to load that for almost all documents with significant > text on TeX.SX. As I wrote a minute ago, I would rather not add microtype, though it's a minor thing,

Re: [O] ox-latex: default packages cleaning

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 16:53, Rasmus wrote: > Hi, Hi, and sorry for my delay – I have a huge email backlog... > We could do some cleaning of org-default-package-alist before Org 8.3. Yes, yes, yes! > * tolerance > > Why is "\\tolerance=1000" part of org-default-package-alist? Is this > value go

Re: [O] ox-latex: default packages cleaning

2015-07-13 Thread Rasmus
Hi, Rasmus writes: > * tolerance > * marvosym¹ > * Wasysym² Pushed. > * Fixltx2e Will push after 8.3 is released. Rasmus -- Dobbelt-A

Re: [O] ox-latex: default packages cleaning

2015-07-11 Thread Robert Klein
Hi Rasmus, On Sat, 11 Jul 2015 12:48:06 +0200 Rasmus wrote: > Hi Robert, > > Robert Klein writes: > > >> * 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 latexr

Re: [O] ox-latex: default packages cleaning

2015-07-11 Thread Rasmus
Hi Robert, Robert Klein writes: >> * 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. > > Leaving this out probably doe

Re: [O] ox-latex: default packages cleaning

2015-07-10 Thread Robert Klein
Hello > * 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. Leaving this out probably doesn't break texing with older texlive

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: >> +(defun org-latex-guess-polyglossia-language (header info) >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > I'm in two-minds about this. On the one had it is a nice thing, but on > the other hand, it prevents the more fine grained control offered b

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Hi, Suvayu Ali writes: >> +(defun org-latex-guess-polyglossia-language (header info) >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > I'm in two-minds about this. On the one had it is a nice thing, but on > the other hand, it prevents the more fine grained control offe

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
Hi Rasmus, On Wed, Jul 08, 2015 at 02:53:46PM +0200, Rasmus wrote: > > +(defun org-latex-guess-polyglossia-language (header info) > + "Set the Polyglossia language according to the LANGUAGE keyword. I'm in two-minds about this. On the one had it is a nice thing, but on the other hand, it preven

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 04:26:56PM +0200, Rasmus wrote: > > I'm trying to think of an elegant way to map from a tex-variant to a > command. Perhaps change the variant names to the latex variants and input > that. I think that would be a good way to go. -- Suvayu Open source is the future. It

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > Indeed, and it works very nicely! Let me know when you find bugs. I'm trying to think of an elegant way to map from a tex-variant to a command. Perhaps change the variant names to the latex variants and input that. E.g. if using plain commands, "pdflatex" is changed to re

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 03:53:32PM +0200, Rasmus wrote: > Suvayu Ali writes: > > >> From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 > >> From: Rasmus > >> Date: Wed, 8 Jul 2015 14:44:56 +0200 > >> Subject: [PATCH 9/9] ox-latex: Support TeX variants > > > > This one fails t

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: >> From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 >> From: Rasmus >> Date: Wed, 8 Jul 2015 14:44:56 +0200 >> Subject: [PATCH 9/9] ox-latex: Support TeX variants > > This one fails to apply for me. I'm on You probably need the other patches posted in

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 02:54:41PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > I would also suggest removing inputenc. At the moment, it is loaded > > with the AUTO option. AFAIK, this is redundant since most recent > > (meaning for quite a few years) TeX engines already use the encoding of

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 02:53:46PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > We could also take this opportunity to provide users an easy way to > > switch between TeX engines. > > These two patches goes some of the way towards what you want. > org-latex-pdf-process would also have to patc

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > I would also suggest removing inputenc. At the moment, it is loaded > with the AUTO option. AFAIK, this is redundant since most recent > (meaning for quite a few years) TeX engines already use the encoding of > the file if nothing is specified. A colleague of mine were mis

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > We could also take this opportunity to provide users an easy way to > switch between TeX engines. These two patches goes some of the way towards what you want. org-latex-pdf-process would also have to patched as well, though. Test document: #+title: test xetex #+

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
Suvayu Ali writes: > Yes, but polyglossia is recommended. In the interest of minimal work on > the part of Org, this could just be ignored. I don't think we add babel > anyway, or do we? I thought we did, but we don't. Anyway, babel works across different tex backends which is nice feature.

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Suvayu Ali
On Tue, Jul 07, 2015 at 10:05:06PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > \usepackage{polyglossia} % instead of babel > > You can use babel with xelatex. Yes, but polyglossia is recommended. In the interest of minimal work on the part of Org, this could just be ignored. I don't th

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
Suvayu Ali writes: > I would like to second microtype. In fact as far as I know, now a days > it is recommended to load that for almost all documents with significant > text on TeX.SX. It's easy enough to add and we should keep the default minimal. Though microtype is certainly a package I wou

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Suvayu Ali
Hi Rasmus, On Tue, Jul 07, 2015 at 04:53:35PM +0200, Rasmus wrote: > > If it's a means to archive "high-quality" paragraphs, maybe microtype is > probably the 'proper' fix... I would like to second microtype. In fact as far as I know, now a days it is recommended to load that for almost all doc

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Eric S Fraga
On Tuesday, 7 Jul 2015 at 16:53, Rasmus wrote: > Hi, > > We could do some cleaning of org-default-package-alist before Org 8.3. Rasmus, I'm happy with all of your suggested removals. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gcedef7

[O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
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