James Grimmelman (https://twitter.com/grimmelm/status/1406257482029322250?s=20) posted an idea for a thousands glyph (three vertically stacked sideways zeros). What would be the best way of creating one that would scale appropriately (observe \small \large, etc)?
Asked
Active
Viewed 681 times
2 Answers
10
Here's another solution that uses \rotatebox and \resizebox, along with \heightof, a macro provided by the calc package.
\documentclass{article}
\usepackage{calc,graphicx}
\newcommand{\vthou}{\resizebox{!}{\heightof{7}}{%
\rotatebox{90}{\kern-0.05em000\kern-0.045em}}\kern0.03em}
\begin{document}
\tiny
7\vthou{} \textsf{7\vthou}
\normalsize
7\vthou{} \textsf{7\vthou}
\Huge
7\vthou{} \textsf{7\vthou}
\end{document}
Mico
- 506,678
8
\documentclass{article}
\usepackage{graphicx}
\newcommand\thsnd{%
\resizebox{!}{1.7ex}{%
\shortstack{%
\rotatebox{90}{0}\\[-.2ex]\rotatebox{90}{0}\\[-.2ex]\rotatebox{90}{0}}}}
\begin{document}
1\thsnd \textbf{2\thsnd}
\large
1\thsnd \textbf{2\thsnd}
\Huge
1\thsnd \textbf{2\thsnd}
\small
1\thsnd \textbf{2\thsnd}
\end{document}
David Carlisle
- 757,742



\usepackage{cfr-lm}, taken from https://tex.stackexchange.com/questions/215260)? – Dr. Manuel Kuehner Jun 21 '21 at 02:18\newcommand{\newvthou}[1]{#1\resizebox{!}{\heightof{#1}}{\rotatebox{90}{\kern-0.05em000\kern-0.045em}}\kern0.03em}but the zeros are smaller tzan the number (\newvthou{3}). – Dr. Manuel Kuehner Jun 21 '21 at 02:20\heightof{#1}to\totalheightof{#1}and shifting down the stack of zeroes via a\raiseboxcommand. – Mico Jun 21 '21 at 04:27