Dr. Manuel Kuehner
- This is a "fun" project.
- I want to create a `beamer` presentation with a fancy title frame.
- The goal is to have a black title frame with "bight colorful" text on it that looks like **neon** text (**glowing**).
- It's a bit inspired by the intro of the TV show "Stranger Things".
- Ideally, I want to stick to beamer's `beamercolorbox` approach to build the title frame template.
- I found some (partly older) related questions but I was hoping that by now there is a simple solution available. There seems to be solutions available to generate this effect for boxes but not for text.
- Question: Any idea how to generate a "neon glow" for normal text on the title frame with `tikz` and friends?
**Disclaimer:** Crosspost to https://tex.stackexchange.com/questions/587372.
----------
\documentclass{beamer}
\usepackage{tikz}
% Potentially Useful Libraries
\usetikzlibrary{
shadows.blur, % "pgf-blur" package
}
% Title of Presentation
\title{Presentation Title}
% Definition of Title Frame
\setbeamertemplate{title page}
{
\begin{beamercolorbox}[center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
}
% Definition of Font Color of Title (Used in "\setbeamertemplate{title page}")
\setbeamercolor{title}{fg=pink}
% Related
% https://tex.stackexchange.com/questions/315989
% https://tex.stackexchange.com/questions/401032
% https://tex.stackexchange.com/questions/493401
% https://tex.stackexchange.com/questions/315989
% https://tex.stackexchange.com/questions/446841
\begin{document}
% Title Frame
\setbeamercolor{background canvas}{bg=black}
\begin{frame}
\maketitle
\end{frame}
\setbeamercolor{background canvas}{bg=}
% Normal Frame
\begin{frame}{Frame Title}
Text
\end{frame}
\end{document}
[![enter image description here][1]][1]
[![enter image description here][2]][2]
Related
---------
- https://tex.stackexchange.com/questions/315989
- https://tex.stackexchange.com/questions/401032
- https://tex.stackexchange.com/questions/493401
- https://tex.stackexchange.com/questions/315989
- https://tex.stackexchange.com/questions/446841
[1]: https://i.stack.imgur.com/zgCZf.png
[2]: https://i.stack.imgur.com/Pe92r.jpg
Top Answer
user 3.14159
Maybe this goes in the right direction.
```
\documentclass{article}
\usepackage{environ}
\usepackage{contour}
\usepackage{tikz}
\usetikzlibrary{fadings}
\NewEnviron{NeonTikZ}[2][]{\begin{tikzfadingfrompicture}[name=temp]%
\begin{scope}[transparent!0,#1]
\BODY
\end{scope}
\end{tikzfadingfrompicture}%
\tikz[#1]{\begin{scope}[local bounding box=X,opacity=0]%
\BODY
\end{scope}
\shade[inner color=red,outer color=red!50!black,
path fading=temp,fit fading=false]
(X.south west) rectangle (X.north east);
}%
}
\newsavebox\WhatEver
\begin{document}
\savebox\WhatEver{\begin{NeonTikZ}[baseline={(txt.base)}]{GoldLeaf.jpg}
\node[align=center,font=\bfseries\Large] (txt)
{\contourlength{0.6pt}\contour{white}{\textcolor{black}{Some Text}}};
\end{NeonTikZ}}
\begin{tikzpicture}
\fill (0,0) rectangle (6,3) node[midway,scale=2]{\usebox\WhatEver};
\end{tikzpicture}
\end{document}
```
![Screen Shot 2021-03-15 at 9.18.56 PM.png](/image?hash=e271f825d577b58410fb7a513b0b28771cd60b76699bcb7aa57f7d2d002837c1)