ho-tex / transparent

transparent package for LaTeX
LaTeX Project Public License v1.3c
2 stars 0 forks source link

Incompatible with XeTeX #6

Open vitaminace33 opened 3 years ago

vitaminace33 commented 3 years ago

Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode.

Shouldn't it be compatible with XeTeX?

u-fischer commented 3 years ago

Well it isn't. At the time transparent was written xetex didn't support colorstacks.

With a current tex system and LaTeX you can use the new pdfmanagement. It replaces the transparent package by a version which makes use of the new code and activates opacity:

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}

\documentclass{book}
\usepackage{transparent,lipsum}
\begin{document}
\lipsum[1-3]
\transparent{0.5}
\lipsum[1-3]
\end{document}

Be aware that the pdfmanagement is in the testphase. Read the documentation about possible incompabilities.

vitaminace33 commented 3 years ago

Thx for the answer. I will stick with TikZ for the moment being.

\tikz\node[opacity=0.5]{content};
u-fischer commented 3 years ago

For material that can be boxed that is fine, the main purpose of transparent is to allow line and page breaks in the text.

vitaminace33 commented 3 years ago

OK, good to know. Thx again.

raffaem commented 1 year ago

Well it isn't. At the time transparent was written xetex didn't support colorstacks.

With a current tex system and LaTeX you can use the new pdfmanagement. It replaces the transparent package by a version which makes use of the new code and activates opacity:

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}

\documentclass{book}
\usepackage{transparent,lipsum}
\begin{document}
\lipsum[1-3]
\transparent{0.5}
\lipsum[1-3]
\end{document}

Be aware that the pdfmanagement is in the testphase. Read the documentation about possible incompabilities.

I can compile it with this, but the image is not transparent.

I use XeLaTeX and the beamer class.

\logo{{\transparent{0.3}\includesvg[width=0.1\textwidth]{../img/Seal_of_the_University_of_Bologna.svg}}}
u-fischer commented 1 year ago

@raffaem

This bug report here is not about svg files. Please use a support site like tex.sx for general questions (and add there a small but complete example and a link to the svg so that people can actually test if they can reproduce your problem).