e\substack{\colorbox{lavender}{\hspace{8em}}\\[-1em] \large\text{\color{grey}offset highlight}}
| 2021-5-2
0  |  阅读时长 0 分钟
Tags
title lettering
LaTeX used
substack
colorbox
difficulty/replicability
easy
I use this for section titles inside my pages and some database titles, for instance:
notion image
 
Here is code you can copy paste for small and normal text size. You should put your text where it says ``small font'' on the first one and ``normal font'' on the second one, and if you need to make the lavender line bigger, increase the number of em inside \hspace{ }. To change the color of the line, change the word "lavender" inside \colorbox{ } to your desired color or hex code.
You can also make some pretty quotes with this:
I used https://igfonts.io/ to get the font.
Loading...
目录