emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org and XeTeX?
@ 2010-04-22 15:58 Ross A. Laird
  0 siblings, 0 replies; 8+ messages in thread
From: Ross A. Laird @ 2010-04-22 15:58 UTC (permalink / raw)
  To: emacs-orgmode


I use XeTeX, mostly (rather than LaTeX), and I'm wondering if it might
be possible to use XeTeX with org. XeTeX requires a few special lines in
the header of the document, but after these lines it operates the same
as LaTeX. For my setup, the extra lines typically look like this:

\TeXXeTstate=1
\usepackage{fontspec,xunicode}
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Sabon LT Std}
\setromanfont[Mapping=tex-text]{Sabon LT Std}
\setsansfont[Scale=MatchUppercase]{Myriad Pro}

Can org be set up to use the XeTeX engine with the above variables? I've
looked at org-export-latex-classes, and it seems like I can insert the
above code into that variable -- but can org use the setup?

Ross

-- 
Ross A. Laird, PhD
www.rosslaird.com

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

* Org and XeTeX?
@ 2010-04-22 16:00 Ross A. Laird
  0 siblings, 0 replies; 8+ messages in thread
From: Ross A. Laird @ 2010-04-22 16:00 UTC (permalink / raw)
  To: emacs-orgmode


I use XeTeX, mostly (rather than LaTeX), and I'm wondering if it might
be possible to use XeTeX with org. XeTeX requires a few special lines in
the header of the document, but after these lines it operates the same
as LaTeX. For my setup, the extra lines typically look like this:

\TeXXeTstate=1
\usepackage{fontspec,xunicode}
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Sabon LT Std}
\setromanfont[Mapping=tex-text]{Sabon LT Std}
\setsansfont[Scale=MatchUppercase]{Myriad Pro}

Can org be set up to use the XeTeX engine with the above variables? I've
looked at org-export-latex-classes, and it seems like I can insert the
above code into that variable -- but can org use the setup?

Ross

-- 
Ross A. Laird, PhD
www.rosslaird.com

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

* Org and XeTeX?
@ 2010-04-22 16:10 Ross Laird
  2010-04-22 16:48 ` Ross Laird
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ross Laird @ 2010-04-22 16:10 UTC (permalink / raw)
  To: emacs-orgmode

I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the XeTeX
engine? I've looked at the variable org-export-latex-classes (as well as
org-export-latex-package-alist), and it looks like I can insert the
XeTeX-specific code:

   \TeXXeTstate=1
   \usepackage{fontspec,xunicode}
   \defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
   \setmainfont{Sabon LT Std}
   \setromanfont[Mapping=tex-text]{Sabon LT Std}
   \setsansfont[Scale=MatchUppercase]{Myriad Pro}
   \usepackage{xltxtra}

But can Org use XeTeX? The command is "xelatex" rather than "latex".

Ross

--
Ross A. Laird, PhD
www.rosslaird.com

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

* Re: Org and XeTeX?
  2010-04-22 16:10 Org and XeTeX? Ross Laird
@ 2010-04-22 16:48 ` Ross Laird
  2010-04-22 17:02 ` Thomas S. Dye
  2011-01-21 23:32 ` Carsten Dominik
  2 siblings, 0 replies; 8+ messages in thread
From: Ross Laird @ 2010-04-22 16:48 UTC (permalink / raw)
  To: emacs-orgmode


Sorry for the triple posting! (It was gnus' fault.)

Ross Laird <ross <at> rosslaird.com> writes:

> 
> I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the XeTeX
...

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

* Re: Org and XeTeX?
  2010-04-22 16:10 Org and XeTeX? Ross Laird
  2010-04-22 16:48 ` Ross Laird
@ 2010-04-22 17:02 ` Thomas S. Dye
  2010-04-23 11:56   ` Carsten Dominik
  2011-01-21 23:32 ` Carsten Dominik
  2 siblings, 1 reply; 8+ messages in thread
From: Thomas S. Dye @ 2010-04-22 17:02 UTC (permalink / raw)
  To: Ross Laird; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]


On Apr 22, 2010, at 6:10 AM, Ross Laird wrote:

> I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the  
> XeTeX
> engine? I've looked at the variable org-export-latex-classes (as  
> well as
> org-export-latex-package-alist), and it looks like I can insert the
> XeTeX-specific code:
>
>   \TeXXeTstate=1
>   \usepackage{fontspec,xunicode}
>    
> \defaultfontfeatures 
> {Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
>   \setmainfont{Sabon LT Std}
>   \setromanfont[Mapping=tex-text]{Sabon LT Std}
>   \setsansfont[Scale=MatchUppercase]{Myriad Pro}
>   \usepackage{xltxtra}
>
> But can Org use XeTeX? The command is "xelatex" rather than "latex".
>
> Ross
>
> --
> Ross A. Laird, PhD
> www.rosslaird.com

Aloha Ross,

Earlier this month when changes were made to the LaTeX export  
configuration, xetex compatibility was left to the user.  There is a  
footnote to this effect in the manual:

[103] The default LaTeX output is designed for processing with pdftex  
or latex. It includes packages that are not compatible with xetex and  
possibly luatex. See the variables org-export-latex-default-packages- 
alist and org-export-latex-packages-alist.

If you get export to xetex working, I think it would be useful to  
document the solution either here on the mailing list or, better,  
somewhere on Worg.

HTH,
Tom 

[-- Attachment #1.2: Type: text/html, Size: 1929 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Org and XeTeX?
  2010-04-22 17:02 ` Thomas S. Dye
@ 2010-04-23 11:56   ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-04-23 11:56 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Ross Laird


On Apr 22, 2010, at 7:02 PM, Thomas S. Dye wrote:

>
> On Apr 22, 2010, at 6:10 AM, Ross Laird wrote:
>
>> I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the  
>> XeTeX
>> engine? I've looked at the variable org-export-latex-classes (as  
>> well as
>> org-export-latex-package-alist), and it looks like I can insert the
>> XeTeX-specific code:
>>
>>   \TeXXeTstate=1
>>   \usepackage{fontspec,xunicode}
>>    
>> \defaultfontfeatures 
>> {Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
>>   \setmainfont{Sabon LT Std}
>>   \setromanfont[Mapping=tex-text]{Sabon LT Std}
>>   \setsansfont[Scale=MatchUppercase]{Myriad Pro}
>>   \usepackage{xltxtra}
>>
>> But can Org use XeTeX? The command is "xelatex" rather than "latex".
>>
>> Ross
>>
>> --
>> Ross A. Laird, PhD
>> www.rosslaird.com
>
> Aloha Ross,
>
> Earlier this month when changes were made to the LaTeX export  
> configuration, xetex compatibility was left to the user.  There is a  
> footnote to this effect in the manual:
>
> [103] The default LaTeX output is designed for processing with  
> pdftex or latex. It includes packages that are not compatible with  
> xetex and possibly luatex. See the variables org-export-latex- 
> default-packages-alist and org-export-latex-packages-alist.


You can use the variable `org-latex-to-pdf-process' to change the  
commands that are used to process the tex file.

And you can customize org-export-latex-classes to make the class  
headers look like this:

   \TeXXeTstate=1
   \usepackage{fontspec,xunicode}
    
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- 
text}
   \setmainfont{Sabon LT Std}
   \setromanfont[Mapping=tex-text]{Sabon LT Std}
   \setsansfont[Scale=MatchUppercase]{Myriad Pro}
   \usepackage{xltxtra}
   [DEFAULT-PACKAGES]
   [PACKAGES]
   [EXTRA]

And you can change things around any way you like.

HTH

- Carsten






>
> If you get export to xetex working, I think it would be useful to  
> document the solution either here on the mailing list or, better,  
> somewhere on Worg.
>
> HTH,
> Tom
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

* Re: Org and XeTeX?
  2010-04-22 16:10 Org and XeTeX? Ross Laird
  2010-04-22 16:48 ` Ross Laird
  2010-04-22 17:02 ` Thomas S. Dye
@ 2011-01-21 23:32 ` Carsten Dominik
  2011-01-22  2:42   ` Kieran Healy
  2 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2011-01-21 23:32 UTC (permalink / raw)
  To: Ross Laird; +Cc: kjhealy, emacs-org list


On Apr 22, 2010, at 6:10 PM, Ross Laird wrote:

> I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the  
> XeTeX
> engine? I've looked at the variable org-export-latex-classes (as  
> well as
> org-export-latex-package-alist), and it looks like I can insert the
> XeTeX-specific code:
>
>   \TeXXeTstate=1
>   \usepackage{fontspec,xunicode}
>    
> \defaultfontfeatures 
> {Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}
>   \setmainfont{Sabon LT Std}
>   \setromanfont[Mapping=tex-text]{Sabon LT Std}
>   \setsansfont[Scale=MatchUppercase]{Myriad Pro}
>   \usepackage{xltxtra}
>
> But can Org use XeTeX? The command is "xelatex" rather than "latex".


Hi Ross,

I found a blog post by Kieran Healy today - it addresses this
problem in an elegant way.  Maybe this should somehow be integrated
into the FAQ or a XeTeX-Org-mode tutorial?

http://www.kieranhealy.org/blog/archives/2011/01/21/exporting-org-mode-to-pdf-via-xelatex/

- Carsten

>
> Ross
>
> --
> Ross A. Laird, PhD
> www.rosslaird.com
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Org and XeTeX?
  2011-01-21 23:32 ` Carsten Dominik
@ 2011-01-22  2:42   ` Kieran Healy
  0 siblings, 0 replies; 8+ messages in thread
From: Kieran Healy @ 2011-01-22  2:42 UTC (permalink / raw)
  To: emacs-org list; +Cc: Ross Laird

On Jan 21, 2011, at 6:32 PM, Carsten Dominik wrote:

> problem in an elegant way.  Maybe this should somehow be integrated
> into the FAQ or a XeTeX-Org-mode tutorial?
> 
> http://www.kieranhealy.org/blog/archives/2011/01/21/exporting-org-mode-to-pdf-via-xelatex/
> 
> - Carsten

I've written up a more generic version of that post that should be suitable for the FAQ. I've registered at repo.or.cz and am just waiting to get write permission to the repo from Matt Lundin, then I'll push it out. (Assuming something like this is the standard procedure—I haven't contributed before.) 

--
Kieran Healy :: http://www.kieranhealy.org

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

end of thread, other threads:[~2011-01-22  2:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 16:10 Org and XeTeX? Ross Laird
2010-04-22 16:48 ` Ross Laird
2010-04-22 17:02 ` Thomas S. Dye
2010-04-23 11:56   ` Carsten Dominik
2011-01-21 23:32 ` Carsten Dominik
2011-01-22  2:42   ` Kieran Healy
  -- strict thread matches above, loose matches on Subject: below --
2010-04-22 16:00 Ross A. Laird
2010-04-22 15:58 Ross A. Laird

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).