New answers tagged

3

Here are two methods I had in mind when I made the earlier comment. \documentclass{article} \usepackage[T1]{fontenc} % An environment is good because it keeps these settings local \newenvironment{jokes} {\parindent 0pt \parfillskip 0pt \setlength{\emergencystretch}{.5\textwidth} } {} % The \secret macro \makeatletter \newcommand{\secret}{\@ifstar\@...


1

I don't know about a package for overlapping underline, but I once solved this by using regular underline and \vphantom{} for lowering parts of the line. With \vphantom{} you can make sure the lines don't overlap, but are spaced underneath each other. \documentclass[a5paper]{article} \usepackage{ulem} \begin{document} \underline{aba}\underline{ab\...


5

I know the OP wants Xelatex solutions, and here I give a pdf solution, so i don't expect any votes, but wanted to show it anyhow, because it is so less grainy than the other answer of mine. For this different answer, I steal from our most excellent LaTeX colleague Malipivo, extracting bits of \pdfliteral code from his answer at TikZ: halo around text? that ...


1

Here is a version using OPmac: \input opmac \def\grow{\futurelet\next\growA} \def\growA{\expandafter\ifx\space\next \space\fi \growB} \def\growB#1{\ifx.#1.\else#1\textfontscale[1100]\expandafter\grow\fi} \grow This is text. \bye


1

The decorations.text library for TikZ allows to decorate arbitrary paths with text or create paths from mutated text. The manual has an example describing your exact query. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[decoration={text effects along path, text={text effects along path!},...


2

For fun, here is a ConTeXt solution. As in other solutions, all you need is a colored box with appropriate background color and text color. In ConTeXt, \framed macro provides such boxes. So, we define a new frame with the right parameters: \usecolors[x11] % To use lightsteelblue and navy colors \defineframed [tagged] [ location=low, % align with ...



Top 50 recent answers are included