Re: [l2h] How do I use an EPS in PDF and HTML?

2001-04-02 Thread Werner Arnhold

Dave Cole wrote:
 
  "Herman" == Herman Bruyninckx [EMAIL PROTECTED] writes:
 
 Herman On Fri, 30 Mar 2001, Fred L. Drake, Jr. wrote:
 \usepackage[pdftex]{graphicx}
 \usepackage[dvips]{graphicx}
 
  Is there a way to get things to work with both pdftex and dvips
  without changing the document?  I want to be able to use both
  without changing the document.
 
 Herman Just don't use these options :-) And if you say
 
 Herman \includegraphics{myfile}
 
 Cool - that does work.
 
 Herman Then DocBook is a good option! It is less complex than LaTeX,
 Herman and copes with the problem you mention: all Linux
 Herman documentation (on linuxdoc.org) is now standardized on
 Herman DocBook!
 
 I did fiddle a bit with DocBook some time ago - I wrote some online
 help for a Gnome program (which I also wrote).  DocBook is no picnic
 either.

I tried it too. I used the sgmltools package. I gave it up because of
several reasons:

  - the package was no longer maintained because Kees de Groot got a
good job and had no
more time for it.
  - the paper output (postscript) was, even though produced via TeX much
worse than it 
could be,
  - the way of handling special objects like math formulas is not
compareable with TeX
  - for 10 lines of information you have to write 3-5 lines of tags. I'm
hacking very 
quickly but this is nothing for someone who is slow in typing and
really impossible
for wysiwig fans,
  - l2h does the same thing and the result is better. At the moment I
would reconcider 
using DocBook when 1) the markup is more flexible and more easy to
extend and 2) if
I have a free DocBook/SGML-Editor. On behalf of markup TeX is simply
better!

Werner
-- 
Werner Arnhold
FU Berlin, FB 12, GEDIB
Arbeitsbereich Lehrerfortbildung und Informatische Bildung
Tel.: 030 / 838-56328, priv: 030 / 74 22 555
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-30 Thread Fred L. Drake, Jr.


Dave Cole writes:
  The final piece in the puzzle was the line:
  
  \usepackage[pdftex]{graphicx}
  
  I had originally used the following line:
  
  \usepackage[dvips]{graphicx}

  Is there a way to get things to work with both pdftex and dvips
without changing the document?  I want to be able to use both without
changing the document.

  Being a new user in the LaTeX / TeX community, can someone suggest
  some places on the web where I can start learning how to solve my own
  problems.
  
  For the Python programmers out there I am wondering if package
  documentation something like the following exists:
  
  http://www.python.org/doc/current/modindex.html

  I too would love to see something like this for LaTeX packages!  It
might be out there, but I don't know where to look.

  BTW, all of that Python documentation was produced using latex2html.

  Most of it but, oddly enough, not the specific file you pointed to.
;-)  That was generated by post-processing two files of similar names
in the subdirs and re-writing the URLs with a Python script.  The
"body" of the indexes (both General and Module) were constructed using
a Python script that scarfs up a bunch of data that the LaTeX2HTML
integration code for my document classes spits out.
  On the whole, I've been reasonably impressed by LaTeX2HTML -- it
does a pretty good job of chunking things up, and is sufficiently
configurable via Perl code that I can make it do what I want most of
the time.  Ross  others in this forum have definately been a great
help -- I would not have been able to twist l2h to my needs without
their assistance.
  That said, I still plan on moving away from LaTeX as a source format
in the medium term.  There are increasing numbers of documentation
contributors who don't have LaTeX installed on their systems or don't
have the time to learn the markup that something else is called for.
I suspect  many people here have seen this: as documentation projects
grow from something small (a few HTML pages) to something of
reasonable size, LaTeX starts to look quite attractive -- you can get
nice output for print  HTML with less work.  But as the resulting set
of documentation grows further and the number of contributors goes up,
it gets difficult for the editor to keep up with all the ways they can
break the markup.


  -Fred

-- 
Fred L. Drake, Jr.  fdrake at acm.org
PythonLabs at Digital Creations

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-30 Thread Bruce R Miller

"Fred L. Drake, Jr." wrote:
 
 Dave Cole writes:
   The final piece in the puzzle was the line:
  
   \usepackage[pdftex]{graphicx}
  
   I had originally used the following line:
  
   \usepackage[dvips]{graphicx}
 
   Is there a way to get things to work with both pdftex and dvips
 without changing the document?  I want to be able to use both without
 changing the document.

I've found that the graphicx package is usually smart enough w/o
the driver option: ie. just use 
  \usepackage{graphicx}
but leave off the graphics files extensions.
If you're running regular latex, it'll look for .eps, if you run
pdflatex it'll look for .pdf

[and if you run latex2html, it'll look for .gif, or .jpeg, but
 it'll ignore all your carefully crafted transformations! : ...


--
[EMAIL PROTECTED]
http://math.nist.gov/~BMiller/
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-30 Thread Fred L. Drake, Jr.


Herman Bruyninckx writes:
  Just don't use these options :-) And if you say
  
  \includegraphics{myfile}

  Dang... that was too easy!  Is documentation on the graphicx package
available on the Web?

  (i.e., without specifying the .eps or .pdf suffix) your pdflatex or
  dvips will automatically insert the appropriate format (provided you
  have both myfile.eps and myfile.pdf in your TeX search path!)

  This is coolness.  I'll need to play with it a bit to get format
conversions to happen nicely, but I can handle that.

  Then DocBook is a good option! It is less complex than LaTeX, and
  copes with the problem you mention: all Linux documentation (on
  linuxdoc.org) is now standardized on DocBook!

  DocBook is one option, but it is definately a little on the heavy
side, and I'm not convinced the available extension to support
documentation of OO constructs is quite right.  I think I want
something a bit lighter for authoring.


  -Fred

-- 
Fred L. Drake, Jr.  fdrake at acm.org
PythonLabs at Digital Creations

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-30 Thread Fred L. Drake, Jr.


Bruce R Miller writes:
  I've found that the graphicx package is usually smart enough w/o
  the driver option: ie. just use 
\usepackage{graphicx}
  but leave off the graphics files extensions.
  If you're running regular latex, it'll look for .eps, if you run
  pdflatex it'll look for .pdf

  pdfLaTeX jut found a PNG as well, which makes me happy.  Now I just
need a good, portable way to convert from PNG to EPS...

  [and if you run latex2html, it'll look for .gif, or .jpeg, but
   it'll ignore all your carefully crafted transformations! : ...

  I'm sure I can force it to look for .png, so that's ok.  I don't
need transforms for screen snapshots!  (Or so I hope! ;)


  -Fred

-- 
Fred L. Drake, Jr.  fdrake at acm.org
PythonLabs at Digital Creations

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-30 Thread Herman Bruyninckx

On Fri, 30 Mar 2001, John A. Turner wrote:

  "FLD" == Fred L Drake, [EMAIL PROTECTED]:

 FLD   DocBook is one option, but it is definately a little on the heavy
 FLD side, and I'm not convinced the available extension to support
 FLD documentation of OO constructs is quite right.  I think I want
 FLD something a bit lighter for authoring.

 how nicely does it handle math?

Not at all :-( It's meant mainly for software related documentation.

-- 
[EMAIL PROTECTED]
 http://www.mech.kuleuven.ac.be/~bruyninc/

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-26 Thread Martin Wolf

Hi Dave!

I use eps-graphics with latex and latex2html. for pdflatex I use the
epstopdf-tool availible at ctan. (Don't use a suffix in your
\includegraphics{}! That's the trick.

For an automatic conversion eps-pdf the following package was published at
de.comp.text.tex some month ago. As it was not uploaded to ctan the last
time I looked, I include it.

Martin

%%% cut %%% epstopdf.sty %%% cut %%%
% File:  epstopdf.sty
% Version:   2001/01/06 v1.0
% Author:Heiko Oberdiek
% Email: [EMAIL PROTECTED]
%
% Copyright: Copyright (C) 2001 Heiko Oberdiek.
%
%This program may be distributed and/or modified under
%the conditions of the LaTeX Project Public License,
%either version 1.2 of this license or (at your option)
%any later version. The latest version of this license
%is in
%  http://www.latex-project.org/lppl.txt
%and version 1.2 or later is part of all distributions
%of LaTeX version 1999/12/01 or later.
%
% Function:  This packages adds support of handling eps images
%to package graphic{s,x} with option `pdftex'.
%If an eps image is detected, epstopdf is called
%to convert it to pdf format.
%
% 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
%  * configuraton file `texmf.cnf': shell_escape = 1
%
% Use:   The package is loaded after graphic{s,x}, eg:
%  \usepackage[pdftex]{graphicx}
%  \usepackage{epstopdf}
%Images with extension `.eps' are now detected
%and supported:
%* Implicitly: \includegraphics{bild}
%  If `bild.eps' can only be found,
%  then it is converted to the file `bild.pdf',
%  that will be used by pdfTeX.
%  On the next ocurrences or on the next pdfTeX run,
%  the pdf file is already available, so the
%  conversion step is skipped.
%* Explicitly: \includegraphics{bild.eps}
%  Each time the conversion program is called.
%
% History:   2001/01/06 v1.0:
%  first public version, published in the pdftex
%  mailing list.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{epstopdf}[2001/01/06 v1.0 epstopdf on the fly (HO)]

% Check, whether package graphics is loaded
% (also graphicx loads graphics)
\@ifpackageloaded{graphics}{}{%
  \PackageWarningNoLine{epstopdf}{%
No graphics package \string`graphic{s,x}\string' loaded%
  }%
  \endinput
}
% Check, whether pdftex.def is loaded
\@ifundefined{[EMAIL PROTECTED]}{%
  \PackageWarningNoLine{epstopdf}{%
Graphics driver file \string`pdftex.def\string' not loaded%
  }
  \endinput
}

% Patch \Gin@setfile to execute #3, if it contains
% a command
\let\orgGin@setfile\Gin@setfile
\def\Gin@setfile#1#2#3{%
  \if`\@car #3\relax\@nil
\immediate\write18{\@cdr #3\@empty\@nil}%
\orgGin@setfile{#1}{#2}{\Gin@base #2}%
  \else
\orgGin@setfile{#1}{#2}{#3}%
  \fi
}

% Adding .eps at the end of the list of extensions,
% defined by \DeclareGraphicsExtensions
\g@addto@macro\Gin@extensions{,.eps}

% \DeclareGraphicsRule for .eps
\@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`epstopdf #1}}

\endinput
%%% cut %%% epsotpdf.sty %%% cut %%%



  ## ## Martin Wolf
    ### Mnchen, Germany
##  ## ###  ##  [EMAIL PROTECTED]
##   ###  http://www.familiewolf.de


___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] How do I use an EPS in PDF and HTML?

2001-03-25 Thread Murat Yildizoglu

As far as I knom, pdflatex can not handle EPS grphics. Latex2Html handles them 
without any problem if you use the graphicx package.

Best regards,

Murat

On 26 Mar 2001, at 18:40, Dave Cole wrote:

 I am trying to work out (with zero success) how to build a document
 which includes an EPS which can then be processed by pdflatex and
 latex2html.
 
 Is this even possible?
 
 Can someone please send me some tex fragments which would allow me to
 build a minimal document which includes an EPS?
 
 In case it matters, I am using the following Debian packages:
 
 ii  latex2html 2000-beta1-2   LaTeX to HTML translator.
 ii  netpbm 9.10-3 Graphics conversion tools.
 ii  netpbm-nonfree 9.10-3 Graphics conversion tools (nonfree).
 ii  tetex-base 1.0.2+2804 basic teTeX library files
 ii  tetex-bin  1.0.7+2807 teTeX binary files
 ii  tetex-extra1.0.2+2804 extra teTeX library files
 
 - Dave
 
 -- 
 http://www.object-craft.com.au
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html



-- 
*** NEW ADDRESS - ADRESSE NOUVELLE - YENI ADRES ***
__

Prof. Murat Yildizoglu  

  Institut Federatif de Recherche sur
   les Dynamiques Economiques
  IFREDE - E3i ( http://www.ifrede.org/ )
  Universite Montesquieu-Bordeaux IV
  Avenue Leon Duguit, 33608 Pessac Cedex, France
  Tel. +33 5 56 84 54 53
  Fax: +33 5 56 84 86 47

  e-mail: [EMAIL PROTECTED]
  www : http://yildizoglu.montesquieu.u-bordeaux.fr/

Managing editor of e-JEMED: http://www.e-jemed.org/

__
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html