From MacOSX-TeX@email.esm.psu.edu Mon Sep 30 20:01:52 2002
Received: from engrmail2.engr.psu.edu ([130.203.201.8]) by engrmail1.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.5329);
	 Mon, 30 Sep 2002 20:01:08 -0400
Received: from email.esm.psu.edu ([130.203.247.204]) by engrmail2.engr.psu.edu with Microsoft SMTPSVC(5.0.2195.5329);
	 Mon, 30 Sep 2002 20:01:07 -0400
Date: Mon, 30 Sep 2002 20:00:01 -0400
Subject: MacOSX-TeX Digest #442 - 09/30/02
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: Bulk
List-Software: LetterRip Pro 3.0.7 by Fog City Software, Inc.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 
Return-Path: MacOSX-TeX@email.esm.psu.edu
Message-ID: 
X-OriginalArrivalTime: 01 Oct 2002 00:01:08.0080 (UTC) FILETIME=[A4BE6F00:01C268DD]

MacOSX-TeX Digest #442 - Monday, September 30, 2002

  Text goes beyond column boundaries
          by "Bob Kerstetter" 
  Re: [OS X TeX] Text goes beyond column boundaries
          by "Cyril Niklaus" 
  Re: [OS X TeX] Text goes beyond column boundaries
          by "Ross Moore" 
  Re: [OS X TeX] Text goes beyond column boundaries
          by "Gerben Wierda" 
  Re: [OS X TeX] Line endings in TeXShop files
          by "James Owen" 
  Re: [OS X TeX] Line endings in TeXShop files
          by "Luis Sequeira" 
  Re: [OS X TeX] Line endings in TeXShop files
          by "James Owen" 
  Re: [OS X TeX] Text goes beyond column boundaries
          by "Bob Kerstetter" 
  [OS X TeX] eps images in pdflatex
          by "Peter Nillius" 
  Re: [OS X TeX] eps images in pdflatex
          by "Bruno Voisin" 
  File encoding
          by "Gustavo Kasprzak" 
  Re: [OS X TeX] File encoding
          by "Luis Sequeira" 
  Re: [OS X TeX] eps images in pdflatex
          by "Peter Nillius" 
  Re: [OS X TeX] eps images in pdflatex
          by "Bruno Voisin" 
  Re: [OS X TeX] eps images in pdflatex
          by "Peter Nillius" 
  Re: [OS X TeX] eps images in pdflatex
          by "Bruno Voisin" 
  Re: [OS X TeX] howto do smart (double) quotes with texshop
          by "Benji Fisher" 
  Re: [OS X TeX] Text goes beyond column boundaries
          by "Bob Kerstetter" 


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

Subject: Text goes beyond column boundaries
From: "Bob Kerstetter" 
Date: Sun, 29 Sep 2002 23:29:52 -0500

Being fairly newly to this, here is a puzzle beyond my knowledge. I am 
just messing around learning how to use TeX and LaTex using teTex and 
TeXShop. Using the Latex template, I added \twocolumns and a bunch of 
text copied from another document. The first three paragraphs all have 
lines than go beyond the column boundary. The paragraphs that don't 
overflow the boundary look very nice, but I thought TeX was supposed to 
control this stuff automatically. What am I missing here? I assume it's 
something I don't know and not a TeX problem.

Thanks for your help.

BK


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

Subject: Re: [OS X TeX] Text goes beyond column boundaries
From: "Cyril Niklaus" 
Date: Mon, 30 Sep 2002 14:36:13 +0900


On Lundi, sep 30, 2002, at 13:29 Asia/Tokyo, Bob Kerstetter wrote:

> Being fairly newly to this, here is a puzzle beyond my knowledge. I am 
> just messing around learning how to use TeX and LaTex using teTex and 
> TeXShop. Using the Latex template, I added \twocolumns and a bunch of 
> text copied from another document. The first three paragraphs all have 
> lines than go beyond the column boundary. The paragraphs that don't 
> overflow the boundary look very nice, but I thought TeX was supposed 
> to control this stuff automatically. What am I missing here? I assume 
> it's something I don't know and not a TeX problem.
Well I don't kow what went wrong with your attempt, but usually there's 
two ways to get the text in columns:
one is to use in the preamble the option twoculumn, the other is to use 
\twocolumn in the body of the text, which will start a new page and 
typeset in 2 columns. Notice there is no "s" in the tag.
Hope this gets you the desired results,
Cheers
Cyril


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

Subject: Re: [OS X TeX] Text goes beyond column boundaries
From: "Ross Moore" 
Date: Mon, 30 Sep 2002 15:39:40 +1000 (EST)

> Being fairly newly to this, here is a puzzle beyond my knowledge. I am 
> just messing around learning how to use TeX and LaTex using teTex and 
> TeXShop. Using the Latex template, I added \twocolumns and a bunch of 
> text copied from another document. The first three paragraphs all have 
> lines than go beyond the column boundary. The paragraphs that don't 
> overflow the boundary look very nice, but I thought TeX was supposed to 
> control this stuff automatically. What am I missing here? I assume it's 
> something I don't know and not a TeX problem.

It's certainly a TeX problem, of sorts; but also a problem
that will require you to study the input source carefully.


TeX tries to find the *best* solution to an optimisation problem,
for the best place to break each line.
Some things attract large demerits, others smaller amounts.

E.g. words in ordinary text can be hyphenated, at a small penalty,
and breaking mathematics is pretty bad though possible.
Breaking verbatim text is virtually impossible.
Having too much white-space in a line is worse than having
a word protrude slightly into the right-margin.


It is necessarily harder to find good breaks with narrow columns
than with wider columns; but the main factor is the words and
boxes that make up a paragraph, which is clearly why you are
getting unacceptable results in the first instance.

If you look in the .log file, then there should be a message:
   Overfull \hbox (badness =3D ....) 
for each of those overflows.

These mean that TeX has tried really hard to find acceptable
breaks, but has been unable to do so. Those chosen have
been the *teast bad* from a bunch of terrible alternatives.

Your job then is to adjust the wording slightly, within those
paragraphs, so that these Overfull messages do not occur.
Then TeX is happy, and you will be also, with the resulting
appearance.


It may be that you are putting specialised information (such
as URLs, i.e. web-addresses) in a way which does not allow
hypnenation od breaking. There are extra packages to overcome
this kind of thing.

> 
> Thanks for your help.


Hope this helps,

	Ross Moore

> 
> BK
> 
> 
> -----------------------------------------------------
> Mac TeX info, resources, and news can be found at:
> 
> -----------------------------------------------------
> List archives can be found at:
> 
> Threaded list archives can be found at:
> 
> -----------------------------------------------------
> See message headers for list info.
> -----------------------------------------------------
> 


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

Subject: Re: [OS X TeX] Text goes beyond column boundaries
From: "Gerben Wierda" 
Date: Mon, 30 Sep 2002 10:52:51 +0200

On Monday, September 30, 2002, at 07:39 , Ross Moore wrote:

> Your job then is to adjust the wording slightly, within those
> paragraphs, so that these Overfull messages do not occur.

Given that TeX is supposed to support conceptual writing, this is of 
course also an alternative you do not really want.

One other thing might help too: sometimes, TeX cannot find a break in a 
word, but you can supply it yourselves. That way, your wording stays the 
same and you help TeX deciding on another (better) typesetting 
alternative.

You can put \- in the word that does not break, to mark a breaking.

TeX also doesn't hyphenate the first word in a paragraph, so if your 
long word is the first word, prepend \hspace{0pt} (a horizontal space of 
length 0) before it.

G


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

Subject: Re: [OS X TeX] Line endings in TeXShop files
From: "James Owen" 
Date: Mon, 30 Sep 2002 10:14:23 +0100

Is there any way to define what line endings TeXShop documents are 
saved in?
And to define a line width separate from the width of the window, 
during text editing?
I am collaborating with a colleague using Linux, and he needs files 
without line wrapping, and with Unix line endings, not Mac line 
endings. Currently, I have to resave in BBEdit in order to enforce Unix 
line endings.

Have I missed something in the Preferences?

James


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

Subject: Re: [OS X TeX] Line endings in TeXShop files
From: "Luis Sequeira" 
Date: Mon, 30 Sep 2002 10:38:04 +0100

>Is there any way to define what line endings TeXShop documents are saved =
in?
>And to define a line width separate from the width of the window, 
>during text editing?
>I am collaborating with a colleague using Linux, and he needs files 
>without line wrapping, and with Unix line endings, not Mac line 
>endings. Currently, I have to resave in BBEdit in order to enforce 
>Unix line endings.
>
>Have I missed something in the Preferences?
>
>James
>

What about using Alpha as your text editor (only drawback is it still 
only available in classic). TeXShop supports external editors and 
Alpha not only is much more capable than the builtin editor in 
TeXShop for productive TeXing, but can save files with Unix or Mac 
(or, er, windows, for that matter) line endings, plus set the line 
width you wish.

And, of course,  you can set Alpha to typeset using TeXShop.

L.

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

Subject: Re: [OS X TeX] Line endings in TeXShop files
From: "James Owen" 
Date: Mon, 30 Sep 2002 10:40:30 +0100


On Monday, September 30, 2002, at 10:38 AM, Luis Sequeira wrote:

>> Is there any way to define what line endings TeXShop documents are 
>> saved in?
>> And to define a line width separate from the width of the window, 
>> during text editing?
>> ..........


> What about using Alpha as your text editor (only drawback is it still 
> only available in classic). TeXShop supports external editors and 
> Alpha not only is much more capable than the builtin editor in TeXShop 
> for productive TeXing, but can save files with Unix or Mac (or, er, 
> windows, for that matter) line endings, plus set the line width you 
> wish.
>
> And, of course,  you can set Alpha to typeset using TeXShop.

I can do all this with BBEdit, which I am used to, rather than Alpha, 
which I am not, but I wondered what the internal TeXShop editor could 
do?

James


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

Subject: Re: [OS X TeX] Text goes beyond column boundaries
From: "Bob Kerstetter" 
Date: Mon, 30 Sep 2002 06:24:08 -0500


On Monday, Sep 30, 2002, at 00:36 US/Central, Cyril Niklaus wrote:

>> Being fairly newly to this, here is a puzzle beyond my knowledge. I 
>> am just messing around learning how to use TeX and LaTex using teTex 
>> and TeXShop. Using the Latex template, I added \twocolumns and a 
>> bunch of text copied from another document. The first three 
>> paragraphs all have lines than go beyond the column boundary. The 
>> paragraphs that don't overflow the boundary look very nice, but I 
>> thought TeX was supposed to control this stuff automatically. What am 
>> I missing here? I assume it's something I don't know and not a TeX 
>> problem.
> Well I don't kow what went wrong with your attempt, but usually 
> there's two ways to get the text in columns:
> one is to use in the preamble the option twoculumn, the other is to 
> use \twocolumn in the body of the text, which will start a new page 
> and typeset in 2 columns. Notice there is no "s" in the tag.
> Hope this gets you the desired results,

I did the second way (\twocolumn -- no "s" --  in the body of the text) 
and text on some lines in several paragraphs goes beyond the column 
boundary.


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

Subject: [OS X TeX] eps images in pdflatex
From: "Peter Nillius" 
Date: Mon, 30 Sep 2002 14:18:51 +0200 (MEST)

You can use eps image files directly in pdflatex. All
you have to do is to include the packages

\usepackage{graphicx}
\usepackage{epstopdf}

Also jpg (and I think png and tiff) images can be include directly in
the TeX files. Pdflatex will do the conversion to pdf.

Is this well known? I resently found this out and it seems to work
fine.

Peter


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

Subject: Re: [OS X TeX] eps images in pdflatex
From: "Bruno Voisin" 
Date: Mon, 30 Sep 2002 14:50:14 +0200

Le lundi, 30 sep 2002, =E0 14:18 Europe/Paris, Peter Nillius a =E9crit :

> You can use eps image files directly in pdflatex. All
> you have to do is to include the packages
>
> \usepackage{graphicx}
> \usepackage{epstopdf}
>
> Also jpg (and I think png and tiff) images can be include directly in
> the TeX files. Pdflatex will do the conversion to pdf.
>
> Is this well known? I resently found this out and it seems to work
> fine.

It took me some time to find where this file epstopdf.sty lives (I had=20=

not rebuilt Locator's database for 78 days!), here it is:

/usr/local/teTeX/share/texmf/tex/latex/oberdiek/epstopdf.sty

Looking at the file, it seems to rely on shell-escape:

> % Required:  * The program `epstopdf'.
> %            * The feature `\write18' has to be enabled to get
> %              the conversion via the program epstopdf work:
> %              * command line option: -shell-escape
> %                example: pdflatex -shell-escape test.tex
> %              * configuraton file `texmf.cnf': shell_escape =3D 1

 =46rom previous emails on this list, isn't there a problem with shell=20=

escapes under OS X 10.2?

In any case I just tried this esptopdf.sty package, it doesn't work for=20=

me, the .log file says:

> epstopdf Figures/surfgen.eps
> system()...disabled.
>
>
> Error: pdftex (file Figures/surfgen.pdf): cannot find image file

Could it be that you have Fink installed, or that you have customized=20
your shell initialisation file?

Bruno Voisin=


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

Subject: File encoding
From: "Gustavo Kasprzak" 
Date: Mon, 30 Sep 2002 09:50:31 -0300

Hi,

  I`m new on this list, I would like to receive some useful information =
from
you.
  I'm writing an article using iTexMac an pdfLatex. I`m using MacOS =
10.1.5.
  iTexMac shows me that file was enconded as ISO Latin 1. This is the =
encode
that I really want, so that I can compile the file in an  Unix enviroment
using GNU Emacs (I`m doing this fine).
  The problem is that my machine is not ok and must be repared. I have =
other
Performa running MacOS 9.1 too and want to open my file there, but I'm
having some troubles: the file isn`t showed correct in the display. I =
tried
GNU Emacs for Mac and BBEdit Lite and none of them opened my file correct
(the accents doesn`t appears, intead some thing like [] or other chars
appears).
  What Should I do to open the file correct there?


  Thank you very much.


PS: sorry about my english mistakes!!

_______________________________________________________________________
Yahoo! GeoCities
Tudo para criar o seu site: ferramentas f=E1ceis de usar, espa=E7o de =
sobra e acess=F3rios.
http://br.geocities.yahoo.com/

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

Subject: Re: [OS X TeX] File encoding
From: "Luis Sequeira" 
Date: Mon, 30 Sep 2002 14:12:05 +0100

>Hi,
>
>   I`m new on this list, I would like to receive some useful information fr=
om
>you.
>   I'm writing an article using iTexMac an pdfLatex. I`m using MacOS 10.1.5=
=2E
>   iTexMac shows me that file was enconded as ISO Latin 1. This is the enco=
de
>that I really want, so that I can compile the file in an  Unix enviroment
>using GNU Emacs (I`m doing this fine).
>   The problem is that my machine is not ok and must be repared. I have oth=
er
>Performa running MacOS 9.1 too and want to open my file there, but I'm
>having some troubles: the file isn`t showed correct in the display. I tried
>GNU Emacs for Mac and BBEdit Lite and none of them opened my file correct
>(the accents doesn`t appears, intead some thing like [] or other chars
>appears).
>   What Should I do to open the file correct there?
>
>
>   Thank you very much.
>
>PS: sorry about my english mistakes!!



You might want to try a conversion program like Cyclone. It can 
convert from several different encodings and runs on Mac OS 9.x (and 
also on X, under Classic). I often run into similar problems, and 
Cyclone works fine. There are also other programs like this.

Lu=EDs Sequeira

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

Subject: Re: [OS X TeX] eps images in pdflatex
From: "Peter Nillius" 
Date: Mon, 30 Sep 2002 16:11:18 +0200 (MEST)


On Mon, 30 Sep 2002, Bruno Voisin wrote:

> Le lundi, 30 sep 2002, =E0 14:18 Europe/Paris, Peter Nillius a =E9crit =
:
>
> It took me some time to find where this file epstopdf.sty lives (I had
> not rebuilt Locator's database for 78 days!), here it is:
>
> /usr/local/teTeX/share/texmf/tex/latex/oberdiek/epstopdf.sty
>
> Looking at the file, it seems to rely on shell-escape:
>
> > % Required:  * The program `epstopdf'.
> > %            * The feature `\write18' has to be enabled to get
> > %              the conversion via the program epstopdf work:
> > %              * command line option: -shell-escape
> > %                example: pdflatex -shell-escape test.tex
> > %              * configuraton file `texmf.cnf': shell_escape =3D 1
>
>  From previous emails on this list, isn't there a problem with shell
> escapes under OS X 10.2?
>
> In any case I just tried this esptopdf.sty package, it doesn't work for
> me, the .log file says:
>
> > epstopdf Figures/surfgen.eps
> > system()...disabled.
> >
> >
> > Error: pdftex (file Figures/surfgen.pdf): cannot find image file
>
> Could it be that you have Fink installed, or that you have customized
> your shell initialisation file?
>


You're right it does require the (pdflatex) option --shell-escape.
With that option though it seems to work fine.

I do have fink installed but I don't really use it and I tried to run
pdflatex whithout 'source /sw/fink/bin.init.sh' in my
'rc.mine' file. It still worked.

Peter



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

Subject: Re: [OS X TeX] eps images in pdflatex
From: "Bruno Voisin" 
Date: Mon, 30 Sep 2002 16:32:36 +0200

Le lundi, 30 sep 2002, =E0 16:11 Europe/Paris, Peter Nillius a =E9crit :

> You're right it does require the (pdflatex) option --shell-escape.
> With that option though it seems to work fine.

Does this mean that you have to run pdflatex through the command line=20
interface (Terminal.app), or that you have to change a script from=20
Gerben's teTeX setup -- or even recompile pdfTeX? (Sorry if this has=20
already been said before on this list, I remember there were several=20
messages about similar topics but at the time I didn't pay attention as=20=

shell operation and customization is really beyond my technical=20
knowledge and ability.)

Bruno Voisin=


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

Subject: Re: [OS X TeX] eps images in pdflatex
From: "Peter Nillius" 
Date: Mon, 30 Sep 2002 17:13:08 +0200 (MEST)

On Mon, 30 Sep 2002, Bruno Voisin wrote:

> Le lundi, 30 sep 2002, =E0 16:11 Europe/Paris, Peter Nillius a =E9crit =
:
>
> > You're right it does require the (pdflatex) option --shell-escape.
> > With that option though it seems to work fine.
>
> Does this mean that you have to run pdflatex through the command line
> interface (Terminal.app), or that you have to change a script from
> Gerben's teTeX setup -- or even recompile pdfTeX? (Sorry if this has
> already been said before on this list, I remember there were several
> messages about similar topics but at the time I didn't pay attention as
> shell operation and customization is really beyond my technical
> knowledge and ability.)

I tried both to run it in the Terminal:
pdflatex --shell-escape test.tex

and in TeXShop by entering 'pdflatex --shell-escape' in the field
'pdfTeX/Latex program' in Preferences under the tab Engine.

Both ways worked fine.

Peter


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

Subject: Re: [OS X TeX] eps images in pdflatex
From: "Bruno Voisin" 
Date: Mon, 30 Sep 2002 17:25:46 +0200

Le lundi, 30 sep 2002, =E0 17:13 Europe/Paris, Peter Nillius a =E9crit :

> and in TeXShop by entering 'pdflatex --shell-escape' in the field
> 'pdfTeX/Latex program' in Preferences under the tab Engine.

Much thanks. It works quite nicely. In my case, the first time the .tex=20=

file is typeset in TeXShop, the EPS files are converted to PDF and=20
after the typesetting is completed a blank PDF document is shown. After=20=

closing and re-opening TeXShop everything's fine, the PDF window shows=20=

the typeset document; and the epstopdf.sty package is clever enough not=20=

to regenerate the PDF figures when the .tex file is typeset another=20
time.

Bruno Voisin


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

Subject: Re: [OS X TeX] howto do smart (double) quotes with texshop
From: "Benji Fisher" 
Date: Mon, 30 Sep 2002 11:59:11 -0400

ccr-mactex@creutzig.de wrote:
> 
> Ross Moore  writes:
> 
> > My point is that you want `` and '' to go into the TeX file,
> > otherwise you are risking incompatibilities across platforms.
> 
>  No, you don't.  Well, yes you want for English text, but not for
> German text.  (Let alone Swiss and French, where you want guillemots
> instead of the quotes.)  Point in question: Which editors can be
> taught to change their "smart quotes" in accordance with the current
> language?  (You want that set anyway, for spell checking.)  For
> EMacs, you can set TeX-open-quote and TeX-close-quote to the strings
> you want, but I'm not sure if you can make this depend on the current
> language.  Then, whether you want "`..."' or \glqq{}...\grqq{} is a
> matter of taste.

     I wrote a script to enable ``smart quotes'' using Vim.  If anyone is
interested, and can tell me how to decide what the current language is, I =
will
be happy to update it to change the inserted text automatically.

					--Benji Fisher

http://macvim.swdev.org/OSX

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

Subject: Re: [OS X TeX] Text goes beyond column boundaries
From: "Bob Kerstetter" 
Date: Mon, 30 Sep 2002 15:22:36 -0500


Thanks to all of you who responded. That helped tons. I am reading "TeX 
by Topic" and "Making TeX Work," but did not really quite understand 
"badness" until now. My solution was to widen the print area, just a 
little, being lazy by nature.


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

-----------------------------------------------------
Mac TeX info, resources, and news can be found at:

-----------------------------------------------------
List archives can be found at:

Threaded list archives can be found at:

-----------------------------------------------------
See message headers for list info.
-----------------------------------------------------