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

2015-07-29 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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

2015-07-27 Thread Rasmus
Sebastien Vauban sva-n...@mygooglest.com 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

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

2015-07-27 Thread Sebastien Vauban
Hello, Rasmus ras...@gmx.us 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

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

2015-07-27 Thread Rasmus
Hi, Sebastien Vauban sva-n...@mygooglest.com 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

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

2015-07-27 Thread Sebastien Vauban
Rasmus ras...@gmx.us writes: Sebastien Vauban sva-n...@mygooglest.com 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

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

2015-07-16 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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 fatkasuvayu+li...@gmail.com 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

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

2015-07-15 Thread Rasmus
Marcin Borkowski mb...@mbork.pl 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

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

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 16:53, Rasmus ras...@gmx.us 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

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

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 21:35, Suvayu Ali fatkasuvayu+li...@gmail.com 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,

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

2015-07-13 Thread Rasmus
Hi, Rasmus ras...@gmx.us 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 Rasmus
Hi Robert, Robert Klein rokl...@roklein.de 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

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 ras...@gmx.us wrote: Hi Robert, Robert Klein rokl...@roklein.de 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

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 Suvayu Ali
On Wed, Jul 08, 2015 at 03:53:32PM +0200, Rasmus wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 From: Rasmus ras...@gmx.us Date: Wed, 8 Jul 2015 14:44:56 +0200 Subject: [PATCH 9/9] ox-latex: Support TeX

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

2015-07-08 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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:

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

2015-07-08 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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 fatkasuvayu+li...@gmail.com 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

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 fatkasuvayu+li...@gmail.com 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

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

2015-07-08 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com writes: From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 From: Rasmus ras...@gmx.us 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

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

2015-07-08 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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,

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
Hi, Suvayu Ali fatkasuvayu+li...@gmail.com 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

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 prevents

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

2015-07-08 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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

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

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

2015-07-07 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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

2015-07-07 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com 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

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 fatkasuvayu+li...@gmail.com 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