No Subject

2000-04-11 Thread Kewei Chen


Dear all:

Is there a way to include a TIFF picture file as part of a the latex
document?
(somethng similar to \includegraphics{a_ps_file.ps}


Thanks


Kewei




Re: Smart quotes

2000-04-11 Thread Reinhard Kotucha

> "Benji" == Benji Fisher <[EMAIL PROTECTED]> writes:

> [...]
>  One problem with your method is that it turns

>   He said "no"!

> into

>   He said ``no``!

No, it doesn't.  Punctuation marks usually have \catcode 12, not 11.
It should even work if they are active.  Problems arise, for instance,
when the quoted text begins with a number rather than with a letter.

>  I prefer to let my text editor do the work.

This is the better way, I think.

Regards,
   Reinhard

-- 

Reinhard Kotucha   Phone: +49-511-751355
Berggartenstr. 9
D-30419 Hannover  mailto:[EMAIL PROTECTED]

Microsoft isn't the answer. Microsoft is the question, and the answer is NO.






Re: Smart quotes

2000-04-11 Thread Benji Fisher

Peter Folk wrote:
> 
> Hey all,
> I got annoyed with having the wrong quotes in my documents when I wasn't
> thinking about it, and I thought others might benefit from the solution:
> 
>   % Smart quotes
>   \catcode`"=\active \def"{\futurelet\next\smartdqtest}
>   \def\smartdqtest{\ifcat\next A``\else''\fi}
> 
> makes quotes automatic---'' if there is a space afterwards, `` if not.
> 
> Pete

 One problem with your method is that it turns

He said "no"!

into

He said ``no``!

As I understand standard English punctuation, periods and commas
normally go inside the closing quotation mark (and so your method works
for them) but colons, semicolons, exclamation points, and question marks
go outside.  And then there is the morass of 'nested "quotations"'!

 I prefer to let my text editor do the work.  At least, if it
guesses wrong then I will notice and I can correct it.  See my TeX
macros (still under construction) for the vim text editor:

http://sites.netscape.net/benjif/vim/

--Benji Fisher



Smart quotes

2000-04-11 Thread Peter Folk


Hey all,
I got annoyed with having the wrong quotes in my documents when I wasn't
thinking about it, and I thought others might benefit from the solution:

  % Smart quotes
  \catcode`"=\active \def"{\futurelet\next\smartdqtest}
  \def\smartdqtest{\ifcat\next A``\else''\fi}

makes quotes automatic---'' if there is a space afterwards, `` if not.

Pete



Re: ttfont & tetex : help please

2000-04-11 Thread Sebastian Rahtz

Quy writes:
 > My font "jvnr8a.pfb" has already install in :
 > /usr/share/texmf.local/fonts/pfb/microsft/verdana/
 > I done "texhash" ...

yes, but did you add a line to psfonts.map?

sebastian




Re: ttfont & tetex : help please

2000-04-11 Thread Quy

On Tue, Apr 11, 2000 at 04:06:44PM +0100, Sebastian Rahtz wrote:
> Quy writes:
>  > My font "jvnr8a.pfb" has already install in :
>  > /usr/share/texmf.local/fonts/pfb/microsft/verdana/
>  > I done "texhash" ...
> 
> yes, but did you add a line to psfonts.map?
> 
> sebastian
It's solved thanks to Thomas's suggestion :-)
I changed from 'TEXMF/fonts/pfb/microsft/verdana" to 
"TEXMF/fonts/type1/microsft/verdana"

Thanks,
Cheers,
Quy'
-- 
   Ho` o+... (cho+') Chim kia tho? the? tre^n ca`nh
   Nghe em no'i va^.y
   Ho` o+... (cho+') Nghe em no'i va^.y, da. kho^ng dda`nh re~ pha^n



Re: ttfont & tetex : help please

2000-04-11 Thread Thomas Esser

> My font "jvnr8a.pfb" has already install in :
> /usr/share/texmf.local/fonts/pfb/microsft/verdana/

Change the search path for type1 fonts in texmf.cnf or rename
  /usr/share/texmf.local/fonts/pfb
to
  /usr/share/texmf.local/fonts/type1

Then texhash again.

Thomas



Re: ttfont & tetex : help please

2000-04-11 Thread Quy

On Tue, Apr 11, 2000 at 04:00:51PM +0200, Thomas Esser wrote:
> > My font "jvnr8a.pfb" has already install in :
> > /usr/share/texmf.local/fonts/pfb/microsft/verdana/
> 
> Change the search path for type1 fonts in texmf.cnf or rename
>   /usr/share/texmf.local/fonts/pfb
> to
>   /usr/share/texmf.local/fonts/type1
> 
> Then texhash again.

Ah ! Your are really "génial" :-)

Thank you very much for your help and for your great tetex !

Best regards,

Quy'
-- 
   Ro^`ng na(`m be^? ca.n pho+i ra^u
   Ma^'y lo+`i anh no'i gia^'u dda^`u ho+? dduo^i



ttfont & tetex : help please

2000-04-11 Thread Quy

Hi,
I follow the doc "Using TrueType fonts with teTEX and dvips" for installing 
"verdana.ttf" into my tetex-1.0.6 RH6.1.
I use the name "jvnr8a" for this font after Fontname of K. Berry.
With a simple example :
\documentclass[a4paper,12pt]{article}
\begin{document}
\renewcommand{\rmdefault}{jvn}\rmfamily
Test font VERDANA truetype with LaTeX !\\
\end{document}

I got dvi file, but when I try to view with xdvi; I have error :
[quy@iris] ~/tmp/ttf/test$ xdvi ttf-tetex.dvi
kpathsea: Running mktexpk --mfmode ljfive --bdpi 600 --mag 1+120/600 --dpi 720 jvnr8r
mktexpk: Running gsftopk jvnr8r 720
gsftopk(k) version 1.17
Cannot find font file jvnr8a.pfb
grep: jvnr8r.log: No such file or directory
mktexpk: `gsftopk jvnr8r 720' failed to make jvnr8r.720pk.
kpathsea: Appending font creation commands to missfont.log.
xdvi.bin: can't find font jvnr8r; using cmr10 instead at 720 dpi.
kpathsea: Running mktexpk --mfmode ljfive --bdpi 600 --mag 2+293/600 --dpi 1493 jvnr8r
mktexpk: Running gsftopk jvnr8r 1493
gsftopk(k) version 1.17
Cannot find font file jvnr8a.pfb
grep: jvnr8r.log: No such file or directory
mktexpk: `gsftopk jvnr8r 1493' failed to make jvnr8r.1493pk.
xdvi.bin: Can't find font jvnr8r.1493pk
Character(s) will be left blank

My font "jvnr8a.pfb" has already install in :
/usr/share/texmf.local/fonts/pfb/microsft/verdana/
I done "texhash" ...

I don't know why ...
Any help will be appreciated very much.

Thanks in advance,

Quy



Re: OT:Re: Powerpoint for tetex?

2000-04-11 Thread Thomas Esser

> Thomas: is there a particular reason for it not being included in
> tetex?  I did not find any offending copyright notice.  The

It did not plug in easily when I looked at it some time ago (problems
including it into the source tree and problems with map files).

I think that I'll add dvipdfm some time in the future.

Thomas



Re: tex API

2000-04-11 Thread Thomas Esser

> Ideally, I would like to have the (La)TeX interpreter available as a shared
> library, which could then be invoked with something like:

There is some code in web2c to make some functionality available via
the IPC mechanism. This might or might not help you. I suggest you to
ask your question on the [EMAIL PROTECTED] list, which is a more
appropriate place.

Thomas



Re: OT:Re: Powerpoint for tetex?

2000-04-11 Thread Roland Jesse

"Verwalter Dr.Betz" <[EMAIL PROTECTED]> writes:

> How (easy) do I get landscape oriented pdfslides 
> showing black letters in Acrobat Readers on all platforms
> from a (te)TeX file, that uses the seminar class ?

There is no such thing as a teTeX document file. 

Other than that, presentation files might look like this:

\documentclass[25pt,a4paper,landscape]{foils}
\begin{document}
\foilhead{Gliederung}
\ldots
\end{document}

Works for me but doesn't make use of seminar.

Roland



Re: OT:Re: Powerpoint for tetex?

2000-04-11 Thread Joerg Rambau

Hi,

Verwalter Dr.Betz writes:
 > - the configure of dvipdfm does not like my kpathsea under
 > SUSE Linux 6.3

keep trying to get it to work.  You need to give ./configure the
correct --prefix and --data-dir options.  It pays off.

We found that dvipdfm is the second-best tool after destiller
(i.e, the best free tool) to produce pdf from latex files without
changing the source: font embedding works, most ps-pictures work
out of the box (simply avoid patterns in xfig, e.g.), thumbnails
work, hyperref works.

Thomas: is there a particular reason for it not being included in
tetex?  I did not find any offending copyright notice.  The
occasional segfaults in earlier versions have apparently by now
been taken care of.

Best regards,
Jörg Rambau

-- 
Joerg Rambau  ___ Konrad Zuse Zentrum fuer Informationstechnik Berlin
//  // Takustrasse 7, D-14195 Berlin-Dahlem, GERMANY
  _/   *Phone: +49-30 841 85-249 *Fax: -269
  \\_ \\[EMAIL PROTECTED]



Re: OT:Re: Powerpoint for tetex?

2000-04-11 Thread Mats Bengtsson

> - pstopdf keeps rotating the slides 90°, even if I used 
>   dvips slide.dvi -o -t a4paper -t landscape
> before and got normal orientation of the .ps (i.e. normal landscape with
> ghostview, but upside-down with gv).

Based on a search of old news group articles at Deja.com, 
I implemented the following small script, dvi2pdf which 
with the flag -landscape achieves what you want.
You'll have to install the file landscape.ps somewhere
below $TEXMF/dvips/. This solution does not work for
files with a mixture of portrait and landscape pages, 
I don't know how/if that could be handled.
Note that we run teTeX 0.9, so for teTeX 1.x, you should 
probably replace -Ptype1 with -Ppdf in the script.

Unfortunately the Ghostscript 6.0 distribution includes 
a script dvipdf which will not give Type 1 fonts unless
dvips is configured to always use them. 

Hope this helps

/Mats



#! /usr/bin/sh
#
# Convert a DVI file to PDF, using dvips and ps2pdf
#
# Mats Bengtsson, February 28, 2000

if [ $# -lt 1 -o $# -gt 3 ]; then
echo "Usage: `basename $0` [-landscape] [.dvi] [.pdf]"
exit 127
fi

dvipsflag=''
ps2pdfflag=''

case $1 in
-l*)
dvipsflag="$dvipsflag -h landscape.ps"
ps2pdfflag="$ps2pdfflag -g8420x5950"
shift
;;
-*)
echo "Usage: `basename $0` [-landscape] [.dvi] [.pdf]"
exit 127
;;
*)
esac

infile=$1;
base=`basename ${infile} .dvi`;

if [ $# -eq 1 ]
then
outfile=${base}.pdf
else
outfile=$2
fi

tempfile=/tmp/dvipdf$$.ps

trap 'rm -f "$tempfile" >/dev/null 2>&1' 0
trap "exit 2" 1 2 3 15

dvips $dvipsflag -Ptype1 -o $tempfile $infile 
ps2pdfwr $ps2pdfflag -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 $tempfile $outfile

# Warn if the PDF file contains bitmapped fonts
if [ `grep -c Type3 $outfile` -gt 0 ]; then
echo "\n\nWarning, PDF file contains bitmapped fonts,"
echo "remove '\usepackage[T1]{fontenc}', in your LaTeX file!\n"
exit 127
fi

 landscape.ps