Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to do something like

\begin{tabular}{>{$}c<{$} c}

but I'm not able to use the array package (which defines >{...} and <{...}) due to technical restrictions.

Is there any simple way I can achieve this?

share|improve this question
3  
What technical restrictions? –  egreg Jan 29 '12 at 21:05
    
Have to upload a file to a remote server in order to submit it and I'm not allowed to change the preamble. :\ –  Ben Alpert Jan 29 '12 at 21:26
    
This may sound like real skulduggery, but could you just cut and paste all (or at least the relevant portions) of the code of array.sty into the first part of the body of your document, sandwiching it between \makeatletter and \makeatother? You would have to comment out the \CheckCommand* instruction, though, as such an instruction is only allowed in the preamble... –  Mico Jan 29 '12 at 21:40
    
I guess that the only way is to add $ to the entries of the table. If you're not allowed to change the preamble, probably they won't be fond of some strange code in the document. –  egreg Jan 29 '12 at 22:11
    
@egreg: the only other option I see is to use \newenvironment{mytablecc}{\halign\bgroup\hfil$#$\hfil&\hfil#\hfil\cr}{\crcr\eg‌​roup}, which hard-codes the preamble (or use the \halign directly in the text). –  Bruno Le Floch Feb 4 '12 at 23:38
show 1 more comment

1 Answer

(Making an answer from my comment)

I guess that the only way is to add $ to the entries of the table. If you're not allowed to change the preamble, probably they won't be fond of some strange code in the document.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.