1

I am trying to make a book cover with the title a contour outline over an image, where you can see the image through the letters. Essentially, I would like the color of the fill (textcolor) to be "none."

The following is approaching what I want, but the words would have to be placed precisely over the same image so that it lines up, and would need an outline. Background clip to text Tikz

There's also this, but I can't figure out how to apply it. Tikz with contour and transparency

Here's a MWE, but obviously I can't see the image through the text.

\documentclass{article}
\usepackage[outline]{contour}
\usepackage{xcolor}
\usepackage{fix-cm}
\usepackage{tikz}
\usepackage{graphicx}

\begin{document}

\begin{center} \tikz[remember picture,overlay] \node[opacity=0.3,inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{example-image}}; \textsf{\textbf{\Huge\contour{black}{\textcolor{white}{TITLE}}}} \end{center}

\end{document}

SSL
  • 11
  • 1
    Welcome to TeX.SE! – Mensch Oct 24 '23 at 19:43
  • TikZ is not the best tool for this. You want something where you can turn the text into a path, basically. Metapost, possibly. Inkscape, definitely. That's not to say you can't do it with TikZ, but it doesn't lend itself to this kind of job. – cfr Oct 24 '23 at 21:15
  • 1
    Thanks @cfr for the idea. I created a PDF with the color fill, then deleted the fill in Photoshop and exported it to SVG, which I then included. – SSL Oct 25 '23 at 19:03

0 Answers0