From MacOSX-TeX@email.esm.psu.edu Tue Aug 16 20:06:14 2005
Return-path: 
Received: from mac.com (smtpin09-en2 [10.13.10.79])
 by ms83.mac.com (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005))
 with ESMTP id <0ILC00CCQAYE4R@ms83.mac.com>; Tue,
 16 Aug 2005 17:06:14 -0700 (PDT)
Received: from smtpout.mac.com (smtpout14-en1.mac.com [17.250.248.71])
	by mac.com (Xserve/smtpin09/MantshX 4.0) with ESMTP id j7H06C7C010675; Tue,
 16 Aug 2005 17:06:12 -0700 (PDT)
Received: from brightmail03-bge1 (brightmail03-bge1 [10.13.10.34])
	by smtpout.mac.com (Xserve/8.12.11/smtpout14/MantshX 4.0)
 with ESMTP id j7H06Ao7017672; Tue, 16 Aug 2005 17:06:12 -0700 (PDT)
Received: from [130.203.201.4] by brightmail03 (bmifilter); Tue,
 16 Aug 2005 16:57:14 -0700 (PDT)
Received: from email.esm.psu.edu ([130.203.247.204]) by engremail.engr.psu.edu
 with Microsoft SMTPSVC(5.0.2195.6713); Tue, 16 Aug 2005 19:59:55 -0400
Date: Tue, 16 Aug 2005 20:00:13 -0400
From: TeX on Mac OS X Mailing List 
Subject: MacOSX-TeX Digest #1466 - 08/16/05
Sender: MacOSX-TeX@email.esm.psu.edu
To: TeX on Mac OS X Mailing List 
Message-id: <67213.15125@email.esm.psu.edu>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Precedence: List
X-BLTSYMAVREINSERT: rrdBfkACj0MWEGwmr3Qa2uiNUrcA
X-LR-SENT-TO: mail.engr.psu.edu
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 
List-Software: LetterRip Pro 4.05 (0531) by LetterRip Software, LLC.
X-OriginalArrivalTime: 16 Aug 2005 23:59:55.0254 (UTC)
 FILETIME=[997D5160:01C5A2BE]

MacOSX-TeX Digest #1466 - Tuesday, August 16, 2005

  Re: [OS X TeX] OT: PDF display problems
          by "Keith M. Chugg" 

  Re: [OS X TeX] Rotated Figures Again.
          by "Claus Gerhardt" 

  Re: [OS X TeX] Rotated Figures Again.
          by "Claus Gerhardt" 

  Re: [OS X TeX] OT: PDF display problems
          by "Aaron Jackson" 

  hyperref and pageref
          by "Peter Pagin" 

  Re: [OS X TeX] Rotated Figures Again.
          by "Johan Almqvist" 

  Re: [OS X TeX] Rotated Figures Again.
          by "Herbert Schulz" 

  LaTeXiT 1.4.1 beta
          by "Pierre Chatelier" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Bruno Voisin" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Bruno Voisin" 

  Re: [OS X TeX] Rotated Figures Again.
          by "mark oilcan" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Pierre Chatelier" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Bruno Voisin" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Peter Dyballa" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Pierre Chatelier" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Bruno Voisin" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Gerben Wierda" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Ross Moore" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Pierre Chatelier" 

  Re: [OS X TeX] OT: PDF display problems
          by "Christian Heine" 

  Re: [OS X TeX] LaTeXiT 1.4.1 beta
          by "Peter Dyballa" 

  Re: [OS X TeX] OT: PDF display problems
          by "Herbert Schulz" 


----------------------------------------------------------------------

Subject: Re: [OS X TeX] OT: PDF display problems
From: "Keith M. Chugg" 
Date: Mon, 15 Aug 2005 17:21:35 -0700

>
> Not an answer to your question, have you tried LaTeXIt to do this  
> sort of thing?
> It's very handy, just drag and drop.
>
> http://ktd.club.fr/programmation/latexit_en.php

I have tried similar programs a few years ago, but I don't see any  
advantage to just using texshop.  I keep a latex document called  
eq_page.tex, which only has an equation on a blank page.  It is very  
easy to edit and then copy form the pdf viewer.  You can have all  
sorts of macros, etc, and have a bunch of tex source from previous  
equations after the \end{document}.  Most of the time that I need  
this service, I have already typed in the latex source, so it is just  
a matter of copy-n-paste between texshop windows...

Are there any advantages to using latexit or similar (other than not  
needing that eq_page.tex file)?



----------------------------------------------------------------------

Subject: Re: [OS X TeX] Rotated Figures Again.
From: "Claus Gerhardt" 
Date: Tue, 16 Aug 2005 03:14:38 +0200

Below is a  shell script that can be used as an engine. Tell one of  
my Applescripts for TS (or your own script) to use it.

Claus

%shell script


#!/bin/tcsh
# latexspecial
# Convert tex files to pdf files
# Command: latex filename (without .tex)
# Claus Gerhardt, Aug. 2005

set path=3D ($path /usr/local/teTeX/bin/powerpc-apple-darwin-current / 
usr/local/bin)
latex "$1.tex"
dvips -q -o "$2.ps" -Ppdf "$1.dvi"
ps2pdf14  -dAutoRotatePages=3D/None "$2.ps"  "$2.pdf"
rm -f "$2.ps"





On Aug 15, 2005, at 21:59, Herbert Schulz wrote:

> Howdy,
>
> Someone on the TeXShop discussion forum is having problems with eps  
> figures rotating (using tex+ghostscript). We ran into this before  
> with the experimental version of pdftricks which uses latex->dvips- 
> ps2pdf13->pdfcrop. By using the -dAutoRotatePages=3D/None option to  
> pdf2pdf13 I was able to stop the default behavior.
>
> Is there a way to have altpdftex (called when tex+ghostscript is  
> invoked) pass that option to ps2pdf13? I'd like to give this person  
> a solution to his problem.
>
> Good Luck,
>
> Herb Schulz
> (herbs@wideopenwest.com)
>
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: 
>
>
>


----------------------------------------------------------------------

Subject: Re: [OS X TeX] Rotated Figures Again.
From: "Claus Gerhardt" 
Date: Tue, 16 Aug 2005 03:20:29 +0200

Below is a  shell script that can be used as an engine. Tell one of  
my Applescripts for TS (or your own script) to use it.
There was an error in the comments in the previous version; it is  
invoked by the command
latexspecial filename    (no .tex)
Claus

%shell script


#!/bin/tcsh
# latexspecial
# Convert tex files to pdf files
# Command: latexspecial filename (without .tex)
# Claus Gerhardt, Aug. 2005

set path=3D ($path /usr/local/teTeX/bin/powerpc-apple-darwin-current / 
usr/local/bin)
latex "$1.tex"
dvips -q -o "$2.ps" -Ppdf "$1.dvi"
ps2pdf14  -dAutoRotatePages=3D/None "$2.ps"  "$2.pdf"
rm -f "$2.ps"





On Aug 15, 2005, at 21:59, Herbert Schulz wrote:


> Howdy,
>
> Someone on the TeXShop discussion forum is having problems with eps  
> figures rotating (using tex+ghostscript). We ran into this before  
> with the experimental version of pdftricks which uses latex->dvips- 
> ps2pdf13->pdfcrop. By using the -dAutoRotatePages=3D/None option to  
> pdf2pdf13 I was able to stop the default behavior.
>
> Is there a way to have altpdftex (called when tex+ghostscript is  
> invoked) pass that option to ps2pdf13? I'd like to give this person  
> a solution to his problem.
>
> Good Luck,
>
> Herb Schulz
> (herbs@wideopenwest.com)
>
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: 
>
>
>
>



----------------------------------------------------------------------

Subject: Re: [OS X TeX] OT: PDF display problems
From: "Aaron Jackson" 
Date: Mon, 15 Aug 2005 21:46:56 -0400

On Aug 15, 2005, at 8:21 PM, Keith M. Chugg wrote:

>>
>> Not an answer to your question, have you tried LaTeXIt to do this 
>> sort of thing?
>> It's very handy, just drag and drop.
>>
>> http://ktd.club.fr/programmation/latexit_en.php
>
> I have tried similar programs a few years ago, but I don't see any 
> advantage to just using texshop.  I keep a latex document called 
> eq_page.tex, which only has an equation on a blank page.  It is very 
> easy to edit and then copy form the pdf viewer.  You can have all 
> sorts of macros, etc, and have a bunch of tex source from previous 
> equations after the \end{document}.  Most of the time that I need this 
> service, I have already typed in the latex source, so it is just a 
> matter of copy-n-paste between texshop windows...
>
> Are there any advantages to using latexit or similar (other than not 
> needing that eq_page.tex file)?

Yes, there are a few advantages that come to mind.  First if you use 
LaTeXIt, the pdf equations that it produces are already closely cropped 
so it is a simple matter of drag and drop into any app that accepts 
pdfs.  Second, if there is linkback support,  you can edit the pdf 
equation and keep everything in sync (I've never used this so I cannot 
comment how well it works, but theoretically it should be very handy).

However, the best feature to me is that I can type all of my equations 
into LaTeXIt and then drag properly formatted LaTeX labels, references, 
equation environments, ... into my TeXShop documents from the LaTeXIt 
equation library as needed.   Which means that I can quickly scroll 
through my equation library while seeing the resulting equation, which 
makes putting large documents together much easier.  Of course this is 
all a matter of preference.

Aaron


----------------------------------------------------------------------

Subject: hyperref and pageref
From: "Peter Pagin" 
Date: Tue, 16 Aug 2005 08:35:34 +0200

Hi,
I recently encountered a problem with using hyperref with TeXShop and 
pdflatex (gwTeX). When typesetting a pageref command an extra string is 
inserted just after the pagenumber. It starts with the title of the 
paper, and goes on with 'ExDepth.1' (or something very similar). It 
seems to be a hyperlink to page 1 (even though the page reference is to 
another page). Also, a following section number reference is sometimes 
erroneous.

I could devise workarounds by means of new counters, but that was rather 
cumbersome.

These problems disappear when turning hyperref of. I have not been able 
to reproduce it in a simple example document.

Has anyone encountered anything similar, and does anyone understand the 
problem?

Otherwise, I think the support for hyperref in TeXShop is a great 
addition to a great application. It is a pleasure to navigate with the 
preview window drawer.

Best,
Peter

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Rotated Figures Again.
From: "Johan Almqvist" 
Date: Tue, 16 Aug 2005 10:40:16 +0200


On Aug 16, 2005, at 00:04, Bruno Voisin wrote:
> Le 15 ao=FBt 05 =E0 23:10, Peter Dyballa a =E9crit :
>> Am 15.08.2005 um 21:59 schrieb Herbert Schulz:
>>> Is there a way to have altpdftex (called when tex+ghostscript is =20
>>> invoked) pass that option to ps2pdf13? I'd like to give this =20
>>> person a solution to his problem.
>> Yes, there is! At least in the version I am using. For me altpdf=20
>> (la)tex is a symlink to simpdftex, version 2.18.
>>
>> The argument would be: ``--distiller "pdf2pdf13 -dAutoRotatePages=3D/=20=

>> None"=B4=B4 -- but: the script then uses the string 'pdf2pdf13 -=20
>> dAutoRotatePages=3D/None' as programme name, and so it fails.
>
> I had been trying to use in Terminal, in bash:
>
>     GS_OPTIONS=3D"-dAutoRotatePages=3D/None"
>     export GS_OPTIONS
>
> but that seems to only affect the current Terminal window, not all =20
> processes. I was considering modifying /usr/local/bin/ps2pdfwr =20
> permanently, but your solution is much cleverer and much cleaner.

That's correct, it's only for the current terminal/session and all =20
its children.

If you want to avoid the script or the global environment setting =20
below, remember that you can set environment variables from the =20
command line by just prepending the first part on the same line, =20
skipping the export/setenv part.

     GS_OPTIONS=3D"-dAutoRotatePages=3D/None" altpdftex --distiller =20
pdf2pdf13

will set the GS_OPTIONS for _this_ invocation of altpdftex and all =20
its children (pdf2pdf13).

> I'm wondering now: if the above lines
>
>     GS_OPTIONS=3D"-dAutoRotatePages=3D/None"
>     export GS_OPTIONS
>
> were added in ~/.profile, would they affect (after starting a new =20
> session) all gs processes, including those launched from TeXShop =20
> via the altpdftex script? I guess not, TexShop defines its own =20
> environment variables for the subprocesses it launches, as in /=20
> Applications/TeXShop.app/Contents/Resources/altpdflatexc.bxx, isn't =20=

> it?

Not sure about profile, but I assume TeXShop does use a shell to =20
execute it commands, so if that's (for example) bash, putting it =20
in .bashrc should to the trick (I am not sure if .profile is for all =20
shells or just for login shells, .bashrc is for all shells in any case).

-Johan
--=20
Johan Almqvist
johan@almqvist.net



----------------------------------------------------------------------

Subject: Re: [OS X TeX] Rotated Figures Again.
From: "Herbert Schulz" 
Date: Tue, 16 Aug 2005 08:35:48 -0500


On Aug 15, 2005, at 5:26 PM, Peter Dyballa wrote:

>
> I don't think that the latter is the reason, it's merely that the  
> Bourne shell, /bin/sh, reads /etc/profile and ~/.profile only then  
> when it's invoked as a login shell. (You can make it behave like  
> that by adding '-l' to the #! header line.) So it normally re-uses  
> the environment it finds -- and that's where ~/.MacOSX/ 
> environment.plist jumps in! Once GS_OPTIONS integrated there,  
> they're part of every process launched after this change. The above  
> cited addition to /etc/profile or ~/.profile will only work in  
> Terminal or xterm ...
>
> I'm sure you're having already a test user, Guinea Pig, that has to  
> test all this ...
>
> --
> Greetings
>
>   Pete
>

Howdy,

Does ~/.bashrc get read in by non-login bash shells?

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------

Subject: LaTeXiT 1.4.1 beta
From: "Pierre Chatelier" 
Date: Tue, 16 Aug 2005 16:58:26 +0200

Thanks to a very recent idea, I made a first step for supporting  
xelatex under LaTeXiT
So here is a new beta of LaTeXiT, that can use xelatex (but requires  
pdflatex anyway).
Actually, only the composition process has been changed; for  
instance, I do not use a different default preamble.
Peter, can you check if it is enough for your needs ?

http://ktd.club.fr/programmation/fichiers/LaTeXiT-1_4_1.dmg
http://ktd.club.fr/programmation/fichiers/LaTeXiT-panther-1_4_1.dmg
http://ktd.club.fr/programmation/fichiers/LaTeXiT-source-1_4_1.dmg

Regards,

Pierre

----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Bruno Voisin" 
Date: Tue, 16 Aug 2005 17:38:56 +0200

Le 16 ao=FBt 05 =E0 16:58, Pierre Chatelier a =E9crit :

> Thanks to a very recent idea, I made a first step for supporting =20
> xelatex under LaTeXiT
> So here is a new beta of LaTeXiT, that can use xelatex (but =20
> requires pdflatex anyway).
> Actually, only the composition process has been changed; for =20
> instance, I do not use a different default preamble.
> Peter, can you check if it is enough for your needs ?
>
> http://ktd.club.fr/programmation/fichiers/LaTeXiT-1_4_1.dmg
> http://ktd.club.fr/programmation/fichiers/LaTeXiT-panther-1_4_1.dmg
> http://ktd.club.fr/programmation/fichiers/LaTeXiT-source-1_4_1.dmg

I did a very quick test, selecting the XeLaTeX engine, removing the =20
last line of the preamble:

     \usepackage[utf8]{inputenc}

and replacing it with

     \usepackage{xunicode,fontspec}
     \setromanfont[Mapping=3Dtex-text]{Trebuchet MS}

then typesetting

     \mathrm{Test}\qquad ax^2+bx+c

I get the proper output but with an incorrect bounding box of width =20
212 pt and height 300 pt (says Pages, when dragging-and-dropping the =20
formula from LaTeXiT). This is the same aspect ratio as an A4 page, =20
which seems to indicate the XeLaTeX output has been resized from A4 =20
but not actually tailored to its content.

Bruno Voisin=

----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Bruno Voisin" 
Date: Tue, 16 Aug 2005 17:58:49 +0200

Le 16 ao=FBt 05 =E0 16:58, Pierre Chatelier a =E9crit :

> http://ktd.club.fr/programmation/fichiers/LaTeXiT-source-1_4_1.dmg

Actually  (with.zip extension).

I had a look at AppController.m, but had to give up: it's not =20
something that somebody like me, with no programming knowledge (last =20
programming I did, apart from Mathematica, was Fortran 77 and that =20
was in 1989!), can understand.

BTW: what's easterEggs for ;-)

Bruno Voisin=

----------------------------------------------------------------------

Subject: Re: [OS X TeX] Rotated Figures Again.
From: "mark oilcan" 
Date: Tue, 16 Aug 2005 09:00:04 -0700 (PDT)



--- Herbert Schulz  wrote:

>=20
> Howdy,
>=20
> Does ~/.bashrc get read in by non-login bash shells?
>=20

Yes. In particular ~/.bashrc is *only* read in by non-login (bash)
shells. A login shell *only* reads is ~/.bash_profile (or ~/.profile if
.bash_profile is missing).=20

Extra info:
If one wants a login shell to read .bashrc then one should put the line
"source .bashrc" in .bash_profile (or link them to the same file).

Mark A


	=09
__________________________________=20
Yahoo! Mail=20
Stay connected, organized, and protected. Take the tour:=20
http://tour.mail.yahoo.com/mailtour.html=20


----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Pierre Chatelier" 
Date: Tue, 16 Aug 2005 18:09:04 +0200

> I did a very quick test, selecting the XeLaTeX engine, removing the  
> last line of the preamble:
>     \usepackage[utf8]{inputenc}
> and replacing it with
>     \usepackage{xunicode,fontspec}
>     \setromanfont[Mapping=3Dtex-text]{Trebuchet MS}
I cannot do that, since I do not have xunicode installed, and not  
doing that, my bounding box *is* ok for your exemple:
>     \mathrm{Test}\qquad ax^2+bx+c

Even in Pages... So I do not understand. What happens if you just let  
the default preamble ?

Pierre

----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Bruno Voisin" 
Date: Tue, 16 Aug 2005 19:48:48 +0200


Le 16 ao=FBt 05 =E0 18:09, Pierre Chatelier a =E9crit :

>> I did a very quick test, selecting the XeLaTeX engine, removing =20
>> the last line of the preamble:
>>     \usepackage[utf8]{inputenc}
>> and replacing it with
>>     \usepackage{xunicode,fontspec}
>>     \setromanfont[Mapping=3Dtex-text]{Trebuchet MS}
>
> I cannot do that, since I do not have xunicode installed, and not =20
> doing that, my bounding box *is* ok for your exemple:
>
>>     \mathrm{Test}\qquad ax^2+bx+c
>
> Even in Pages... So I do not understand. What happens if you just =20
> let the default preamble ?

I have just done that (using the default preamble), but I still get, =20
in Pages, a bounding box which is a reduced a4 page (that, by =20
dragging the formula from the LaTeXiT window onto the margins of a =20
Pages document).

However, if the default LaTeXiT preamble is used, then there is not =20
much point using XeLaTeX: what XeLaTeX allows is the direct use of =20
AAT and OT fonts in LaTeX, in Unicode encoding, with all the =20
additional functionalities included in these fonts (bidirectional =20
typesetting, additional features like initial and final swashes, =20
etc., depending of the functionalities built-in in the font).

The fontspec package provides an easy interface to this, so that, for =20=

example,

     \setromanfont{Trebuchet MS}

replaces the default TeX roman font (CMR) by Trebuchet MS, instead of =20=

your having to write stuff like

     \DeclareFontFamily{U}{trebuchet}{}
     \DeclareFontShape{U}{trebuchet}{m}{n}
       {<-> "Trebuchet\space MS"}{}
     \DeclareFontShape{U}{trebuchet}{m}{it}
       {<-> "Trebuchet\space MS\space Italic"}{}
     \DeclareFontShape{U}{trebuchet}{b}{n}
       {<-> "Trebuchet\space MS\space Bold"}{}
     \DeclareFontShape{U}{trebuchet}{b}{it}
       {<-> "Trebuchet\space MS\space Bold\space Italic"}{}
     \DeclareFontShape{U}{trebuchet}{bx}{n}
       {<-> ssub * trebuchet/b/n}{}
     \DeclareFontShape{U}{trebuchet}{bx}{it}
       {<-> ssub * trebuchet/b/it}{}
     \renewcommand{\encodingdefault}{U}
     \renewcommand{\rmdefault}{trebuchet}

The xunicode package, and the option [Mapping=3Dtex-text], add useful =20=

goodies to this:

- xunicode.sty takes accents and diacritics from the corresponding =20
Unicode slots in the font, instead of using the TeX construction of =20
these glyphs.

- The option [Mapping=3Dtex-text] deals similarly with ligatures like =20=

--, to convert them into the corresponding Unicode glyphs.

In particular, these two additions allows legacy TeX input files =20
(using \'e instead of =E9, and -- instead of =96), to be processed by =20=

XeLaTeX transparently.

If you run the input

     \mathrm{Test}\qquad ax^2+bx+c

in LaTeXiT in pdfLaTeX mode, you'll get everything in Computer Modern =20=

fonts; in XeLaTeX mode, still with the default preamble, only the =20
word Test will be changed (it seems to be in the default OS X font, =20
Lucida Grande); it is only by replacing the line

     \usepackage[utf8]{inputenc}

in the preamble by

     \usepackage{fontspec}
     \setromanfont{Trebuchet MS}

that you'll get what you expect, namely output using a font specified =20=

at will (here Trebuchet MS).

Bruno=

----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Peter Dyballa" 
Date: Tue, 16 Aug 2005 20:28:54 +0200


Am 16.08.2005 um 18:09 schrieb Pierre Chatelier:

> since I do not have xunicode installed

It's here: http://www.mecheng.adelaide.edu.au/~will/tex/ resp. 
http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/.

Put xunicode.sty best into ~/Library/texmf/tex/xetex/. Other places are 
dangerous: installing or re-installing a XeTeX i-Package will remove 
it!

--
Greetings

   Pete

The mathematician who pursues his studies without clear views of this 
matter, must often have the uncomfortable feeling that his paper and 
pencil surpass him in intelligence. (Ernst Mach)


----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Pierre Chatelier" 
Date: Tue, 16 Aug 2005 20:32:56 +0200

>> since I do not have xunicode installed
> It's here: http://www.mecheng.adelaide.edu.au/~will/tex/ resp.  
> http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/.
> Put xunicode.sty best into ~/Library/texmf/tex/xetex/. Other places  
> are dangerous: installing or re-installing a XeTeX i-Package will  
> remove it!
Thanks!

----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Bruno Voisin" 
Date: Tue, 16 Aug 2005 23:13:47 +0200

Le 16 ao=FBt 05 =E0 20:28, Peter Dyballa a =E9crit :

> Am 16.08.2005 um 18:09 schrieb Pierre Chatelier:
>
>> since I do not have xunicode installed
>
> It's here: http://www.mecheng.adelaide.edu.au/~will/tex/ resp. =20
> http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/.

These are the repositories for the fontspec package. For xunicode, =20
you must go at .

> Put xunicode.sty best into ~/Library/texmf/tex/xetex/. Other places =20=

> are dangerous: installing or re-installing a XeTeX i-Package will =20
> remove it!

I'm not sure this will work: with the most recent gwTeX setup, /usr/=20
local/teTeX/texmf.cnf contains

     % XeTeX
     TEXINPUTS.xelatex =3D =
.;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}//
     TEXINPUTS.xetex   =3D .;$TEXMF/{xetex,tex}/{xetex,plain,generic,}//

telling that, with xelatex,

     ~/Library/texmf/tex/xelatex/
     ~/Library/texmf/tex/latex/
     ~/Library/texmf/xetex/xelatex/
     ~/Library/texmf/xetex/latex/

will be searched, but not

     ~/Library/texmf/tex/xetex/

This is a change compared with older versions of gwTeX, which contained

     % XeTeX
     TEXINPUTS.xelatex =3D .;$TEXMF/{xetex,tex}/{xetex,latex,generic,}//
     TEXINPUTS.xetex   =3D .;$TEXMF/{xetex,tex}/{xetex,plain,generic,}//

a setting that is still present in /usr/local/teTeX/share/texmf/web2c/=20=

texmf.cnf. Or am I wrong in believing that only /usr/local/teTeX/=20
texmf.cnf is read while /usr/local/teTeX/share/texmf/web2c/texmf.cnf =20
is ignored? Are the two used, and if so which is the one that has =20
precedence?

Bruno Voisin


----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Gerben Wierda" 
Date: Wed, 17 Aug 2005 00:05:30 +0200

On Aug 16, 2005, at 23:13, Bruno Voisin wrote:

>
> a setting that is still present in 
> /usr/local/teTeX/share/texmf/web2c/texmf.cnf. Or am I wrong in 
> believing that only /usr/local/teTeX/texmf.cnf is read while 
> /usr/local/teTeX/share/texmf/web2c/texmf.cnf is ignored? Are the two 
> used, and if so which is the one that has precedence?

The first one (/usr/local/teTeX/texmf.cnf) read has precedence over 
later ones. These kind of env entries behave differently from the size 
enties, which I naver have been able to get picked up from 
/usr/local/teTeX.

G


----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Ross Moore" 
Date: Wed, 17 Aug 2005 08:39:19 +1000

Hi Pierre,

On 17/08/2005, at 12:58 AM, Pierre Chatelier wrote:

> Thanks to a very recent idea, I made a first step for supporting  
> xelatex under LaTeXiT
> So here is a new beta of LaTeXiT, that can use xelatex (but  
> requires pdflatex anyway).

The best way to implement  XeTeX (or XeLaTeX) as the engine is to do  
1 pass
of
    xelatex  -no-pdf  

then one of

    xdv2pdf  -papersize=3D,  .xdv

Then remove any extraneous output files that are no longer needed.

This is less work than 2 calls to  xelatex
  (which makes the .xdv file anyway, then runs  xdv2pdf  and removes
   the .xdv file once the .pdf has been made)
or 1 call to  pdflatex  then 1 of  xelatex .



> Actually, only the composition process has been changed; for  
> instance, I do not use a different default preamble.

There are ways to test which engine is running the job:
   pdfTeX , XeTeX  or  TeX+dvips+Ghostscript .

One way is to have your preamble check for the engine and
load appropriate packages, or package-options, accordingly.

Alternatively, you could have different preambles for the
different engines, then program the LaTeXiT shell to select
the correct one according to which engine is requested.


There is another optimisation that can be made too.

In the example code that was posted here a few days ago,
the  LaTeXiT  job ended with:

\geometry{paperwidth=3D\latexitwidth,paperheight=3D 
\latexitheight,margin=3D0pt,left=3D0.000000 pt,top=3D0.000000 pt}
\begin{document}
\scalebox{\latexitscalefactor}{\usebox{\latexitbox}}%
\end{document}

This forces a call to LaTeX's  \output  routine,
which tries to build a full page including headers
and footers --- totally redundant for LaTeXiT .


Alternatively, you can ditch the  geometry package altogether,
and use instead the \shipout primitive directly:

\begin{document}
{\voffset=3D-1truein \hoffset=3D-1truein
\ifpdf
   \pdfpageheight=3D\latexitheight
   \pdfpagewidth=3D\latexitwidth
\else
   \special{papersize=3D\latexitheight,\latexitwidth}%
\fi
\shipout\vbox{\scalebox{\latexitscalefactor}{\usebox{\latexitbox}}}%
}%
\end{document}

Here we include support for 2 different engines,
assuming that \usepackage{ifpdf} is in the preamble.


Since there is nothing on the page, the \output routine
will exit quickly, leaving you with just the single page
produced by \shipout , sized correctly for its contents.

>
>
> Regards,
>
> Pierre

I hope these ideas help you to make a neat little program
even more efficient and effective.


Cheers,

     Ross


------------------------------------------------------------------------
Ross Moore                                         ross@maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------



----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Pierre Chatelier" 
Date: Wed, 17 Aug 2005 00:52:16 +0200

Hello,

> The best way to implement  XeTeX (or XeLaTeX) as the engine is to  
> do 1 pass
> of
>    xelatex  -no-pdf  
> then one of
>    xdv2pdf  -papersize=3D,  .xdv
>

> Alternatively, you can ditch the  geometry package altogether,
> and use instead the \shipout primitive directly:

Very interesting... I will have a deeper look as soon as possible.
Thanks !

Pierre CHatelier

----------------------------------------------------------------------

Subject: Re: [OS X TeX] OT: PDF display problems
From: "Christian Heine" 
Date: Wed, 17 Aug 2005 09:27:22 +1000

Hi Bruno, all,
thanks for the comments.

On 15/08/2005, at 8:08 PM, Bruno Voisin wrote:
[...]
> BTW, the URL seems to be  christian/PDFproblems/>. It doesn't open in the Finder (using =20
> Connect to Server Cmd-K), only in Fetch; moreover, the presence of =20
> the OS X file .DS_Store in the directory confuses Fetch, so that =20
> the files inside the directory have to be downloaded one by one.
Sorry about the wrong ftp URL, guys! Mixed it up with our web address.

[...]

> The problem I experience is all spaces replaced by another =20
> character: sometimes "&", sometimes "(", etc. This is still =20
> happening now, and apparently randomly. Vanishes when you refresh =20
> the preview (or close the previewing window, then re-open it).
I experienced that at some stage too.

> I can't see what can be done, really. Maybe reporting to Apple, and =20=

> hoping they consider it significant enough to finally fix it. But =20
> given the bug seems random, I'm feeling pessimistic.
Agreed... And indeed it is quite random. This morning I had problems =20
opening a PDF from the web, viewing it after downloading with Preview =20=

and BibDesk was perfectly fine.

> My only clue would be that it seems the bug shows up when I'm doing =20=

> things very fast: switching windows, entering a command, opening a =20
> file, etc. Maybe a bad interaction with Spotlight (running in the =20
> background every time output is produced), which would take over =20
> and interrupt the PDF previewing flow.
Yes, you might be right there. We're using my machine for numerical =20
modelling for our workgroup, so when a couple of models are run by =20
other users heavy processor load might also influence the PDF =20
previewing. Although with 8GB RAM this shouldn't worry too much. Will =20=

have a look into that.

Cheers,
Christian

--
Christian Heine
ph.d. student

         USIMS       |    University of Sydney
                     |    Institute of Marine Science
                     |    Sydney, Australia

P +61 2 9351 4257   =95   F +61 2 9351 0184
http://www.geosci.usyd.edu.au/users/christian/
http://www.geosci.usyd.edu.au/about/people/pgrads/heine.html


----------------------------------------------------------------------

Subject: Re: [OS X TeX] LaTeXiT 1.4.1 beta
From: "Peter Dyballa" 
Date: Wed, 17 Aug 2005 01:43:20 +0200


Am 16.08.2005 um 23:13 schrieb Bruno Voisin:

> These are the repositories for the fontspec package. For xunicode, you  
> must go at  
>  site_id=3Dnrsi&item_id=3Dxetex_related>.

Soory I gave the wrong URLs! It's so easy to retrieve the origin of a  
downloaded file in Finders file inspector ..

>
>> Put xunicode.sty best into ~/Library/texmf/tex/xetex/. Other places  
>> are dangerous: installing or re-installing a XeTeX i-Package will  
>> remove it!
>
> I'm not sure this will work: with the most recent gwTeX setup,  
> /usr/local/teTeX/texmf.cnf contains
>

It works here! Where do you put xunicode.sty that it survives a new  
installation of XeTeX?


Here is some code for XeLaTeXiT.sh that works in some simple cases  
pretty well:

	#!/bin/sh
	jobname=3Dlatexit-1
	xelatex -no-pdf -file-line-error -interaction nonstopmode  
${jobname}.tex
	x=3D`grep Width       ${jobname}.sizes | awk -F\( '{print $1}'`
	y=3D`grep TotalHeight ${jobname}.sizes | awk -F\( '{print $1}'`
	echo "$x x $y"
	xdv2pdf -p $x,$y -o ${jobname}.pdf ${jobname}.xdv

The TeX source I used is the one Pierre gave here to test the  
BoundingBoxes problem. The problems I've seen tonight appear when you  
set formulae like

	x =3D r^2 + \sum_{0}^{100} y^2

or

	\frac{\partial}{\partial x} f(x,y) =3D \frac{\partial}{\partial y}  
f(x,y) =3D 0

In these cases the height calculated and written to the sizes file are  
only 70 or 60 % of the amount actually needed. There too is a little  
problem with clipping that needs to be corrected in LaTeX. In the above  
cases or in a simple a^2 + b^2 =3D c^2 the upper regions are cut off, for  =

example some pixels in the upper arc of the 2 exponents (this can be  
corrected with \addtolength{\latexitheight}{4.250000 pt} or some other  
value). When I artificially enlarge $y for xdv2pdf it only happens that  
the output window reaches deeper, not changing the clipping, as  
observed in TeXShop. It looks as if LaTeX is missing some (negative)  
offset for this 'window' ...

--
Greetings

   Pete

"Don't just do something, sit there."


----------------------------------------------------------------------

Subject: Re: [OS X TeX] OT: PDF display problems
From: "Herbert Schulz" 
Date: Tue, 16 Aug 2005 18:48:05 -0500


On Aug 16, 2005, at 6:27 PM, Christian Heine wrote:

> ...
> Yes, you might be right there. We're using my machine for numerical  
> modelling for our workgroup, so when a couple of models are run by  
> other users heavy processor load might also influence the PDF  
> previewing. Although with 8GB RAM this shouldn't worry too much.  
> Will have a look into that.
>
> Cheers,
> Christian
>


Howdy,

Unfortunately I think it's related to disk i/o which is where  
Spotlight does its thing so lots of RAM may not solve it. Sigh... I  
think Apple will have to update the kernel+ to fix this one. Hope  
it's in 10.4.3!!! whenever that is coming out. Of course, what do I  
know!?

Good Luck,

Herb Schulz
(herbs@wideopenwest.com)



----------------------------------------------------------------------
End of MacOSX-TeX Digest

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: