I need to use a tabular
with a @ inter-column specification within a \makeatletter
and \makeatother
environment. I. e. I something like
\makeatletter
%code that uses @ as letter
\begin{tabular}{c@{}c}
%code that uses @ as letter
\end{tabular}
%more code that uses @ as letter
\makeatother
Is there any alternative to the @-character in the tabular definition. For example the \\
sequence can be substituted by \tabularnewline
if necessary. Is there something similar for the @. And as I am already asking, does an alternative for &
(in tabulars) exists, too?
Amendment from 21.06.2014:
I found a working solution myself. This is my code now:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myarticle}[2014/06/18 My article]
\ProcessOptions\relax
\LoadClass[paper=a4,fontsize=10pt,ngerman,hyperref,draft]{scrartcl}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{textcomp} % required to get special symbols
\RequirePackage[utf8]{inputenc}
\RequirePackage[final]{microtype}
\RequirePackage{babel}
\RequirePackage[final]{graphicx}
\RequirePackage{booktabs}
\makeatletter
\def\@maketitle{%
\newpage\null\noindent%
\setlength{\tabcolsep}{0pt}%
\begin{tabular}[t]{lr}%
\begin{minipage}[t]{.75\textwidth}%
\sffamily
\Huge\@title\par%
\vskip.5ex%
\Large\@date\par%
\end{minipage}%
&%
\begin{minipage}[t]{.25\textwidth}%
\raggedleft\footnotesize
\includegraphics[width=\textwidth]{logo.pdf}\par%
\vskip.5\baselineskip%
Company Name\par%
\vskip.5\baselineskip%
Street and Number\par%
Postal code and Town\par%
\end{minipage}%
\end{tabular}%
\par
}
\makeatother
Originally, I did not have the line
\setlength{\tabcolsep}{0pt}
but tried
\begin{tabular}[t]{l@{}r}%
instead to supress the inter-column spacing. The latter results into non-compiling code. So my guess was that the @
notation interferes with the \makeatletter
command.
@{}
to suppress the inter-column spacing. That did not work. Hence, I use\setlength{\tabcolsep}{0pt}
now instead. In this particular situtation this is fine. But if one wanted to use@{foo}
for anything else, e.g. to insert a vertical line between the columns, the@
-notation still fails. Hence, the original question is still open.