Re: [Orgmode] Org and XeTeX?

2011-01-21 Thread Carsten Dominik


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



___
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


Re: [Orgmode] Org and XeTeX?

2011-01-21 Thread Kieran Healy
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








___
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


Re: [Orgmode] Org and XeTeX?

2010-04-23 Thread Carsten Dominik


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





___
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


[Orgmode] Org and XeTeX?

2010-04-22 Thread Ross A. Laird

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



___
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


[Orgmode] Org and XeTeX?

2010-04-22 Thread Ross A. Laird

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



___
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


[Orgmode] Org and XeTeX?

2010-04-22 Thread Ross Laird
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





___
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


Re: [Orgmode] Org and XeTeX?

2010-04-22 Thread Thomas S. Dye


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 ___
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