From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [export] Should sidewaystable option automatically add rotating package? Date: Thu, 19 Sep 2013 11:11:01 +0200 Message-ID: <87pps5rxay.fsf@gmx.us> References: <87ob7z4nzl.fsf@pinto.chemeng.ucl.ac.uk> <877gentvmv.fsf@gmx.us> <87wqmmos25.fsf@gmail.com> <20130913100125.257db23d@vknecht-intel.unibw-hamburg.de> <87ioy1vya1.fsf@gmx.us> <874n9kwott.fsf@gmx.us> <87zjrcmdai.fsf@ericabrahamsen.net> <170A71C4-F232-4E00-BB52-3EB667D570BC@gmail.com> <87ioxztwbw.fsf@pank.eu> <87txhhsrcy.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMaGd-0000mT-SK for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 05:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMaGX-0003bF-NC for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 05:11:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:47459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMaGX-0003b8-G1 for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 05:11:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VMaGW-0001YU-Nj for emacs-orgmode@gnu.org; Thu, 19 Sep 2013 11:11:12 +0200 Received: from ip-pool-139.iue.it ([192.167.90.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Sep 2013 11:11:12 +0200 Received: from rasmus by ip-pool-139.iue.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Sep 2013 11:11:12 +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 Hi Carsten, Carsten Dominik writes: > On 19.9.2013, at 00:21, Rasmus wrote: > >> Carsten Dominik writes: >> >>>> [...] >>>> The output tex file looks something like this: >>>> >>>> \ifPDFTeX\usepackage[utf8]{inputenc}\else\fi >>>> \ifPDFTeX\usepackage[T1]{fontenc}\else\fi >>> >>> this looks excellent. I think we will implement this as the default >>> behavior, but only after 8.2. >>> Does this capture all the possible cases, or are there more cases to consider? >> >> I'm not sure what you mean by all cases. It depends on the the iftex >> package, so everything will break down if it ain't loaded or if it >> ain't loaded before it's used. >> >> So what would the goal be? To make it compatible with XeLaTeX and >> LuaLaTeX out of the box? > > Yes, this is what I mean. I would be happy to have some clever line > in there that would do the right thing for variants of LaTeX. THis is > also what I mean by "all cases". OK now I appreciate the idea. It should be doable at the expend of depending on some magic such as iftex. A clever scheme would have to be made up so that you wouldn't end up in cases where \ifPDFTeX is used, but iftex isn't loaded. It could be a fourth *optional* argument to Org LaTeX package alists. E.g. '("T1" "fontenc" t 'pdf) could produce \ifPDFTeX\usepackage[T1]{fontenc}\else\fi. Depending on the level of support of iftex one would have to recognize the keywords (lua -lua xe -xe pdf -pdf) where '-' is the negation (e.g. not pdf). Anyway, after 8.2 is still a bit away. –Rasmus -- El Rey ha muerto. ¡Larga vida al Rey!