I'm working on a tool to export wiki content to LaTeX. In some cases the wiki syntax used generates sections inside table cells.

In HTML this translates to the following for example:

               <h1>Extend your wiki</h1>
               <h1>Create your application</span></h1>

I couldn't find anything about sections in table cells when googling and my conclusion so far is that it's not possible in LaTeX.

Could someone confirm this?

I'd need to find how I can transform this kind of structure in LaTeX. I guess the only solution that comes to mind would be to generate text in the same style as sections but without them being sections. They won't appear in TOC not be referenceable as sections but I don't see any other choice (unless it's possible in LaTeX ofc).

Thank you

  • 2
    Welcome to TeX.SX! A real section in a table cell is not possible. But how do you convert your documents?
    – TeXnician
    Mar 3, 2018 at 13:51

1 Answer 1


You can use \section{} or similar commands inside l,r and c columns but inside of a \parbox (that is the same that use a p column):

    \section{11} bla bla bla ... & 12 & 13 & 14\\
    21 & 22 & \section*{23}  & 24\\
    31 & 32 & 33 & \parbox{2cm}{\section{34}}\\
    41 & 42 & 43 & 44\\

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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