I have a long table which should have a verbatim enviroment on the left side. MWE:
\documentclass{article}
\usepackage{float}
\usepackage{tabularx}
\usepackage{array}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{fvextra}
\begin{document}
\begin{table}[H]
\centering
\resizebox{\textwidth}{!}{%
\begin{tabular}{@{}ll@{}}
\toprule
Command & Meaning \\ \midrule
\Verb|AND{S} <Rd>, <Rn>, <Rm>{, <shift> #<amount>}| & Performs a binary AND on \Verb|<Rn>| and \Verb|<Rm>| \\
\bottomrule
\end{tabular}
}
\end{table}
\end{document}
Somewhere I picked up that I can't use the \verb enviroment in a table, but the \Verb enviroment should be fine. But, somehow, the \Verb enviroment produces double hashtags:
How can I avoid this? Is there a possibility to get the \verb font without actually using it?
\verb
in atabular
, but not in\resizebox
but you should never\resizebox
tables, it forces inconsistent font sizesadjustbox
be a feasible solution instead of\resizebox
?p
-type column for the "Meaning" instead of twol
-columns.\resizebox
command, it is the idea of scaling tables that should be avoided. Choose a suitable font size such as\small
don't just scale