Date: Mon, 22 Aug 2005 20:00:13 -0400
Message-ID: <85613.23070@email.esm.psu.edu>
Subject: MacOSX-TeX Digest #1472 - 08/22/05
From: "TeX on Mac OS X Mailing List" 
To: "TeX on Mac OS X Mailing List" 
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Sender: 
Precedence: List
List-Software: LetterRip Pro 4.05 (0531) by LetterRip Software, LLC.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 

MacOSX-TeX Digest #1472 - Monday, August 22, 2005

  Re: [OS X TeX] using Latexit
          by "Jens N=F6ckel" 

  Re: [OS X TeX] blank page output with pdflatex
          by "Johann Philipp" 

  Re: [OS X TeX] using Latexit
          by "Pierre Chatelier" 

  Re: [OS X TeX] using Latexit
          by "Pierre Chatelier" 

  Re: [OS X TeX] using Latexit
          by "Jens N=F6ckel" 


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

Subject: Re: [OS X TeX] using Latexit
From: "Jens N=F6ckel" 
Date: Sun, 21 Aug 2005 19:32:13 -0700

Hi - just subscribed to the list recently, so excuse me if I'm=20
duplicating information given earlier (I know these issues have been=20
around for a long time). As Pierre Chatelier knows, I've been quite=20
interested in LaTeXiT for use with Illustrator...

On Aug 21, 2005, at 4:26 PM, Charles Chapman Pugh wrote:

> Hello.
>
> I'm trying to use Latexit 1.4.0 with Tiger, Adobe Illustrator 10.0.3,=20=

> and/or Canvas 8, to make figure labels in Latex format. Latexit looks=20=

> like just what I need.  One feature of the labels that I want is that=20=

> they have an opaque white background.  This makes them easier to read=20=

> because they don't interact with the figure they label.   There are a=20=

> few issues.
>
> 1.  Latexit is listed in the Services submenus of both the drawing=20
> programs, but when an expression such as \frac{df}{dx}  is typed onto=20=

> the art display area and highlighted, the Latexit service stays grayed=20=

> out and unusable.  Not crucial, but it would be nice to have this type=20=

> of interface.
This is really not possible as far as I know. I agree it would be nice=20=

because it conforms more to the ideal of a monolithic application where=20=

everything is accessible from within one main window.
>
> 2.  Direct drag and drop from Latexit to the drawing programs seems to=20=

> produce no result.  Nothing drops.
As for this problem, I observed two different behaviors with=20
Illustrator CS, depending on the OS X version: with Tiger, dragging=20
into Illustrator from LaTeXiT works without restrictions: I can drag=20
directly onto the artboard or also onto the Illustratot ICON. With=20
Panther, I can still drag into any open artboard in Illustrator, but=20
dragging onto the Illustrator icon has no effect.

Perhaps you're seeing something different, though: if you don't have=20
the proper fonts installed in Illustrator, then it might be that=20
something is dropped into the artboard but just not displayed properly.=20=

In Illustrator, if you go to the Type menu and choose "Find Fonts...",=20=

it might give you a clue whether there are objects whose fonts are not=20=

known by Illustrator (they'd be in , if I recall=20
correctly).
> 3.  When a label such as the above df/dx is typed and saved by Latexit=20=

> as a pdf file, Canvas gets stuck when asked to place it (no response=20=

> for indefinite time).  Canvas does agree to place the corresponding=20
> eps file, after converting it to Canvas format.  Illustrator, on the=20=

> other hand, will place the pdf file on its artboard.
  Can you open the output EPS file in Preview (assuming Tiger) or  maybe=20=

TeXShop? That would be a way to check if it's defective... another way=20=

would of course be ghostview. I only have an old version of Canvas, =20
never use it because it has no pdf import. So can't say anything else=20
about the EPS problem...
However, for Illustrator, it's important to keep in mind the=20
distinction between placing and importing. Placing means you can't edit=20=

the object. That matters for what you asked next. However, for=20
importing you have to make sure Illustrator has the fonts you need (see=20=

below).

> 4.  Both Canvas and Illustrator place the label object with a=20
> transparent background.  I've tried creating the label with a colored=20=

> background in Latexit, and although the background display in Latexit=20=

> is colored, the color is lost when pasted into the drawing programs. =20=

> Likewise I can't seem to make the drawing programs add an opaque fill=20=

> to the object, so it blocks out the part of the figure under it.
You can't do that directly. With a placed object, all you can do is to=20=

draw a box with the desired fill over the object, then put it behind=20
the object and perhaps group it with the original object.
With an _imported_ pdf or eps, Illustrator will let you select any=20
individual letter or the whole text, and you'll see that the fill color=20=

is the color of the letters themselves while the border is absent.=20
There is no background fill because there is no background object to=20
fill. If you want to have that created right in LaTeXiT, you may want=20
to try the following simple trick:
\mbox{$\displaystyle\frac{df}{dx}$}
This way LaTeXiT creates a pdf with a box around your equation (leave=20
out the \displaystyle if you want an inline style formula). When=20
imported (or dropped) into LaTeX, it should then be possible to select=20=

only the box element and give it a fill color of your choice. I figured=20=

that there's no point suggesting any fancy color box within LaTeXiT=20
because you obviously want to go on doing the rest of the job in=20
Illustrator anyway.

The remaining problem is how to get this kind of import to work in=20
Illustrator with LaTeX math fonts. I have some info about this on my=20
web page, so I won't repeat that here but just give the link:
http://darkwing.uoregon.edu/~noeckel/Illustrator.html#homeimprovement
You may want to try the easiest solution first, which involves the=20
TeX/Illustrator Fonts by Alberto Arabia. I've also tried the ones by=20
Selwyn Hollis but they conflict with another application I have (LyX).

Hope this helps,

Jens


Jens Uwe N=F6ckel
Assistant Professor
Department of Physics
University of Oregon
Eugene
http://darkwing.uoregon.edu/~noeckel


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

Subject: Re: [OS X TeX] blank page output with pdflatex
From: "Johann Philipp" 
Date: Mon, 22 Aug 2005 14:00:15 +0200

Peter,

Thanks for the reply, but unfortunately it didn't fix the problem. And 
then, I probably misled you:

>> - The generated pdfs look fine in Preview, but actually printing them 
>> (Epson AL-C 1100) gives white paper.
>>
>
> This is a 300x300 DPI laser printer with an HP LJ-III emulation. An 
> optional card allows to print in PostScript Level and Level 2. How 
> much RAM is installed? Could you print any documents from Mac OS X? 
> Have you installed the right PPD?

I got the AcuLaser, not the ActionLaser. It's fairly new, and an 
otherwise well working GDI printer.
But then, can it be, that there is a problem with the font encoding? 
For me the most remarkable difference between the working postscript 
version and the pdf version is, that the embedded font is encoded as a 
7bit stream and a 8bit stream respectively.

Regards
Johann


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

Subject: Re: [OS X TeX] using Latexit
From: "Pierre Chatelier" 
Date: Mon, 22 Aug 2005 15:09:13 +0200

Hello,

>> 1.  Latexit is listed in the Services submenus of both the drawing  
>> programs, but when an expression such as \frac{df}{dx}  is typed  
>> onto the art display area and highlighted, the Latexit service  
>> stays grayed out and unusable.  Not crucial, but it would be nice  
>> to have this type of interface.
The LaTeXiT service can only receive a string as input, that can be  
processed by pdflatex. But if you find a way to get a string out of  
art display from Illustrator, that would be a good thing !

>> 2.  Direct drag and drop from Latexit to the drawing programs  
>> seems to produce no result.  Nothing drops.
Seems to be related to some versions of Illustrator. Most of the  
time, it is when the export is PDF, while it works in EPS.

>> 3.  When a label such as the above df/dx is typed and saved by  
>> Latexit as a pdf file, Canvas gets stuck when asked to place it  
>> (no response for indefinite time).  Canvas does agree to place the  
>> corresponding eps file, after converting it to Canvas format.   
>> Illustrator, on the other hand, will place the pdf file on its  
>> artboard.
Same thing, I would say...

>> 4.  Both Canvas and Illustrator place the label object with a  
>> transparent background.  I've tried creating the label with a  
>> colored background in Latexit, and although the background display  
>> in Latexit is colored, the color is lost when pasted into the  
>> drawing programs.  Likewise I can't seem to make the drawing  
>> programs add an opaque fill to the object, so it blocks out the  
>> part of the figure under it.
In LaTeXiT, you can change the background just for the visibility,  
for instance if your font color is white; but it does not alter the  
image. I prefer to systematically let the transparent background. If  
you really need it, you can export the image in JPEG format and  
choose a background color. But yes, it is not very handy since you  
loose the vectorial format.

Regards,

Pierre

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

Subject: Re: [OS X TeX] using Latexit
From: "Pierre Chatelier" 
Date: Mon, 22 Aug 2005 16:13:19 +0200

Hello

>>> 1.  Latexit is listed in the Services submenus of both the  
>>> drawing programs, but when an expression such as \frac{df}{dx}   
>>> is typed onto the art display area and highlighted, the Latexit  
>>> service stays grayed out and unusable.  Not crucial, but it would  
>>> be nice to have this type of interface.
> The LaTeXiT service can only receive a string as input, that can be  
> processed by pdflatex. But if you find a way to get a string out of  
> art display from Illustrator, that would be a good thing !
In fact, I did found a way to do that, but I could not test it since  
my Illustrator Tryout expired, and won't let it resinstall. Damn Adobe.

>>> 4.  Both Canvas and Illustrator place the label object with a  
>>> transparent background.  I've tried creating the label with a  
>>> colored background in Latexit, and although the background  
>>> display in Latexit is colored, the color is lost when pasted into  
>>> the drawing programs.  Likewise I can't seem to make the drawing  
>>> programs add an opaque fill to the object, so it blocks out the  
>>> part of the figure under it.
> In LaTeXiT, you can change the background just for the visibility,  
> for instance if your font color is white; but it does not alter the  
> image. I prefer to systematically let the transparent background.  
> If you really need it, you can export the image in JPEG format and  
> choose a background color. But yes, it is not very handy since you  
> loose the vectorial format.
Just to remind : better than that, you can yourself define the  
background color in your latex source code ! For instance :
\pagecolor[rgb]{1,0,0}


Regards,

Pierre Chatelier


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

Subject: Re: [OS X TeX] using Latexit
From: "Jens N=F6ckel" 
Date: Mon, 22 Aug 2005 12:41:15 -0700


On Aug 21, 2005, at 7:32 PM, Jens N=F6ckel wrote:
> \mbox{$\displaystyle\frac{df}{dx}$}
>

Forgot to mention: you of course have to select "Text" mode in LaTeXiT=20=

for this to work. Thinking about this, there is actually a nice=20
opportunity to add a user option to LaTeXiT: instead of having just one=20=

color picker, one could split this into foreground and background color=20=

selection buttons. Then, since the color package is already loaded=20
anyway, one could implement the background color by simply adding the=20
command \pagecolor{bgcolor} right after the display (or inline) math=20
environment is opened (i.e., completely hidden from the LaTeXiT user).=20=

Here bgcolor is the user-specified background color.

Jens

Assistant Professor
Department of Physics
University of Oregon
Eugene
http://darkwing.uoregon.edu/~noeckel


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