I'd like to put some lines in the preamble to change the font of all tabulars in the document. I know that I can easily define my own environment »mytabular«. But for different reasons I need to change tabular. I thought about simply adding (see MWE below) code to the macro, unfortunately without success.
\documentclass{article}
\makeatletter
\g@addto@macro\tabular\fontfamily{phv}\selectfont
\makeatother
\begin{document}
This is some text.
\bigskip
\begin{tabular}{lr}
Hello! & 1234 \\
\end{tabular}
\end{document}
Those tabulars will be used outside floats, so it does not help to change something in the table environment.
etoolbox
?