TeX - LaTeX Asked by MateAndres on January 20, 2021
I’m using TeX Live 2019 with LaTeX compiler (in Overleaf). I have the following code:
documentclass[border=2mm]{standalone}
usepackage[many]{tcolorbox}
begin{document}
tcbox[enhanced,drop fuzzy shadow ]
{This is a tcolorbox.}
end{document}
but I obtained
By using pdfLaTeX compilation with TeX Live 2019 or LaTeX compilation with Tex Live 2017, I obtain the right result:
What could be the problem? How can I fix it?
I copy here the answer from Overleaf Support:
You should be able to allow transparency by adding a new file
latexmkrc
(without any file extension) into your project's top folder and adding the following line there:
$dvipdf = "dvipdf -dNOSAFER -dALLOWPSTRANSPARENCY %O %S %D";
Note that you shouldn't include these options when you're running the code locally on your machine, as they are considered a security threat. In Overleaf, we run the compilations in isolated Docker containers, so there's no issue.
This is necessary in all TeX Live images in Overleaf up to 2019. For our TeX Live 2020, we're checking options how to allo transparency in PSTricks by default.
Correct answer by MateAndres on January 20, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP