Aligning Filled Text Nodes in TikZ (Unlocking LaTeX Graphics, Ep 69)
In this episode of Unlocking LaTeX Graphics, applied mathematician Tammy Kolda demonstrates how to draw a row of color-coded, filled text nodes in TikZ. The motivating example is LLM tokenization: she recreates the output of the Tokenizer Playground for the sentence "TikZ is a powerful tool for LaTeX graphics," including explicit space tokens. She builds a foreach loop with the TikZ positioning library to place each token node to the right of the previous one, cycling through five fill colors and zeroing out inner sep for tight boxes. The key challenge is that different letters have different ascenders and descenders, causing inconsistent node heights; she shows why minimum height alone fails and explains how the text height and text depth options, set in ex units so they scale with font size, produce uniform heights and aligned baselines. She also demonstrates eliminating inter-node gaps by setting line width to zero and adding a small inner xsep with a compensating xshift. 00:00 Welcome & Introduction 01:25 Document Preamble 01:56 Main Loop 04:38 Misalignment Problem 05:13 Minimum Height Doesn't Fix It 05:37 Text Height & Text Depth 07:41 Fixing the White Space Between Nodes 08:44 Thanks for Watching Key terms: texlatex, tikz, text nodes, node alignment, text height, text depth, foreach loops, positioning library, tokenization Other Episodes TikZ positioning library: • Advanced Node and Coordinate Positioning w... Node sizing: • Node Sizing in TikZ (Unlocking LaTeX Graph... Foreach loops: • Mastering Loops in TikZ: A LaTeX Tutorial ... Aligning text in TikZ nodes: • Aligning Text in TikZ Nodes (Mini 6 from E... Today's Document on Overleaf: https://www.overleaf.com/read/cwbnfnj... Unlocking LaTeX Graphics Book: https://latex-graphics.com Purchase Book on Amazon: https://amzn.to/3z76nwb

Using Radians in TikZ: Seamless Degree Conversion (Unlocking LaTeX Graphics, Ep 66)

Mastering TikZ Layers to Recreate the Multi-Head Attention Figure (Unlocking LaTeX Graphics, Ep. 65)

Six Hidden TikZ Tricks (Unlocking LaTeX Graphics, Ep. 64)

the true reason C++ always wins

Plotting a Slope Field with TikZ (Unlocking LaTeX Graphics, Ep. 60)

Gemma4 12B Coder - Composer 2.5 × Fable 5 v2 vs base - 16GB Local LLM setup

Godfather of AI WARNS: We Cannot Stop What's Coming

How To Think SO CLEARLY People Assume You're A Genius

432Hz - Fall Into Deep Sleep in 3 Minutes, Heal All Damage In The Body and Spirit, Relieve Stress #2

Drawing a Neural Network with TikZ (Unlocking LaTeX Graphics Ep 72)

This Johnny Depp Impression of Donald Trump Had Everyone Laughing
![Yann LeCun's $1B Bet Against LLMs [Part 1]](https://i.ytimg.com/vi/kYkIdXwW2AE/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDbV4izF3i-wxevCVIn7FJjoy1vlA)
Yann LeCun's $1B Bet Against LLMs [Part 1]

The FULL VIDEO of Trump they didn’t want released

Using Subcaptions with TikZ (Unlocking LaTeX Graphics, Ep 71)

PGFPLOTS Tables: Read, Typeset, Compute Columns, and Plot Data (Unlocking LaTeX Graphics, Ep. 61)

How I make beautiful GRAPHS and PLOTS using LaTeX

MIT Just Revealed the AI Bubble's Fatal Flaw

I Spent 20 Days Building the Cheapest Forest House Alone to Live: Solo Bushcraft (Full)

