I am working on it:
\documentclass{article}
\newcommand\htext[1]{\texttt{0x\MakeLowercase{#1}}}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
\htext{FFFFFFFFFFFFFFFFF} & \htext{FFFFFFFFFFFFFFFFF} & \htext{FFFFFFFFFFFFFFFFF} & & & & \\
\hline
\end{tabular}
\end{table}
\end{document}
The empty 4 columns will have something very similar. Now, notice that, an Overfull \hbox
error occurs.
How can I adjust width of each column so that each \htext{...}
entry is split in to more than one lines (I don't want to reduce font size)? Something like setting p{2in}
did not help (as it just created one cell entry overlapping with other).
FFFFFFFFFFFFFFFFF
might be split across two lines? Maybe unsurprisingly, TeX does not appear to have a hyphenation rule for this string, so you need to provide such information explicitly. Separately, are you really looking to typeset tables containing strings ofFFFFFFFFFFFFFFFFF
(orffffffffffffff
? Must make for really fascinating reading... :-)FFFFFFFFFFFFFFFFF
, of course). I have usedFFFFFFFFFFFFFFFFF
just to illustrate the scenario.tabular{|p{40cm}|...
ortabularx{|X|...}
with the tabularx package.