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 am using \begin{multicols*}{2} to split my text in two columns on the landscape format paper. Now if I have a tabular, it resizes the tabular to \linewidth. What I want is to ask if there is a tabular in a section and if it is the case, I want the whole section to be outside the \begin{multicols*}{2}. I know that I could do it manually by inserting \end{multicols*} before the section and \begin{multocols*}{2} after the section, but I need it to be done automatically, if it is even possible. Maybe someone could help me with my question. I would be very greatful for help.

This is what I see:

enter image description here

And this is what I want it to be:

enter image description here

share|improve this question
3  
TeX works in a streaming fashion it does not know (unless you tell it) that when it sees the start of a section there is a table in that section. You could define \section so it always ends multicol if it is in multicol, but you can not (practically, without some complicated multi-pass test) make that conditional on the content of the section –  David Carlisle Dec 7 '12 at 10:07
    
Thanks for the response –  dima Dec 7 '12 at 10:18
    
@DavidCarlisle Please make your comment here an answer. –  Joseph Wright Aug 4 '13 at 19:06
add comment

1 Answer

TeX works in a streaming fashion it does not know (unless you tell it) that when it sees the start of a section there is a table in that section. You could define \section so it always ends multicol if it is in multicol, but you can not (practically, without some complicated multi-pass test) make that conditional on the content of the section.

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.