On 5/7/24 21:45, Dima Pasechnik wrote:
> On Tue, May 7, 2024 at 12:51 PM Qian Yun <
oldk...@gmail.com> wrote:
>>
>> Some decisions need to be made in order to build book with pdflatex.
>>
>> 1. src/doc/ps/ images.
>>
>> These are hyperdoc images. They are in ps format, but actually are
>> bitmap images. pdflatex can't handle ps format directly, so I
>> suggest to convert them into png format.
>
> pdflatex/xelatex/lualatex can handle eps images just fine.
> You can first run ps2eps on the ps files.
>
> E.g. I can take
knot3.ps - one of the files, (which is not bitmap, but
> a proper postscript) run
>
> ps2pdf
knot3.ps
>
> producing knot3.eps, move
knot3.ps out of the way, and then
You used both eps and pdf. I think you meant pdf here?
knot3.ps (and a few other vector images) will be removed very soon,
because we'll be able to generate them during build. And yes,
to build with pdflatex, those ps images will be converted to pdf
format by epstopdf.
The rest ps images are all bitmaps.
> \documentclass{article}
> \usepackage{graphics}
> \begin{document}
> \includegraphics{knot3}
> \end{document}
>
> works just fine.
> Or, perhaps, you prefer xelatex, then you'd need
> \usepackage[xetex]{graphics}
>
> Dutto for lualatex, you'd use
> \usepackage[luatex]{graphics}
>
> IMHO one should not use pdflatex, which is obsolete, but switch to
> lualatex or xelatex.
>
> Dima
>
I think it'll be easy to support pdflatex/lualatex/xelatex all
at current stage, because there's no breaking features that
are used in tex source files, for example unicode support.
- Qian