By choosing a TABstack instead of a tabular
, I can make column widths uniform across a word. I'm not sure if this is what you need, but I choose to perform the \resizebox
across the complete row and not each \letters
macro.
The macro \setstacktabulargap{<length>}
may be used to set the gap between letters within thetabstack, and I have selected a 1em gap between adjacent letter groups. In the first two rows, the only change is the size of the \setstacktabulargap
.
Note that while the OP's syntax, \letters{V}{I}{T}{R}{I}{O}{L}{I}{C}
, will still work with this implementation, the invocation can be significantly simplified with no changes to the code: \letters VITRIOLIC
.
I wrap it all in a macro \setrow[<width>]{}
into which the various letter invocations are made.
At the request of the OP to make it compatible with tabular
, I EDITED the answer to do several things:
I added an optional argument to \setrow
to specify the desired group width;
I change the stack end-of-line delimiting character from \\
to \cr
, so that tabular
did not get confused (thus, the \letters
definition needed revision to reflect this).
I changed the vertical stacking gap [baselineskip] from the default \baselinekip
to \normalbaselineskip
, since the latter is not reset within a tabular
environment; and
I changed the \tabularLongstack
to a \tabularCenterstack
, so that the stack would be centered around the baseline, rather than sitting upon it.
Here is the MWE (note: I got rid of \Huge
at the opening of the document):
\documentclass{article}
\usepackage{graphicx,lipsum}
\usepackage{tabstackengine}
\fixTABwidth{T}
\setstackEOL{\cr}
\setstackgap{L}{\normalbaselineskip}
\setstacktabulargap{.5em}
\newcommand{\letters}[9]{\tabularCenterstack{ccc}{#1\cr#4\cr#7	}\hspace{1em}}
\newcommand\setrow[2][\textwidth]{\noindent\resizebox{#1}{!}{#2\hspace{-1em}}}
\begin{document}
\setrow{%
\letters VITRIOLIC
\letters PERISCOPE
\letters NUMERATOR
\letters ACTIVATED
\letters GLASSWARE
\letters ITERATION
\letters WHOOSHING}
\bigskip
\setstacktabulargap{.1em}
\setrow{%
\letters VITRIOLIC
\letters PERISCOPE
\letters NUMERATOR
\letters ACTIVATED
\letters GLASSWARE
\letters ITERATION
\letters WHOOSHING}
\bigskip
\setrow{%
\letters VITRIOLIC
\letters PERISCOPE
\letters NUMERATOR
\letters ACTIVATED
\letters GLASSWARE}
\lipsum[1]
{\centering
\begin{tabular}{|c|c|}
\hline
Game Number & Game\\
\hline
1 & \setrow[.5\textwidth]{%
\letters VITRIOLIC
\letters PERISCOPE
\letters NUMERATOR
\letters ACTIVATED
\letters GLASSWARE
}\\
\hline
2 & \setrow[.5\textwidth]{%
\letters NUMERATOR
\letters ACTIVATED
\letters GLASSWARE
\letters ITERATION
\letters WHOOSHING}\\
\hline
\end{tabular}
\end{document}