[XeTeX] is this a bug?

Herbert Schulz herbs at wideopenwest.com
Mon Jul 6 01:53:26 CEST 2009

On Jul 5, 2009, at 6:08 PM, Mike Maxwell wrote:

> The following minimalist document:
> -------------
> \documentclass{report}
> \begin{document}
> \paragraph \begin{table}[H]
> \end{table}
> \end{document}
> -------------
> results in the error msg:
> -------------
> ! Argument of \begin has an extra }.
> <inserted text>
>                \par
> l.5 \paragraph \begin{t
>                       able}[H]
> -------------
> Avoiding the error msg requires either some text in the \paragraph,  
> or else \paragraph {}.
> Is this correct behavior?  Why is the above considered wrong?
> The above doc is of course not good for much except illustrating the  
> problem.  The original had text in the paragraph, but the text  
> followed the table.  Perhaps not the usual way to start a paragraph,  
> but no more *wrong* than using a preposition to end a sentence with.
> (And how do these error msgs get generated, anyway?  Why the  
> carriage return(?) between the 't' and the 'able' of 'table'?)
> -- 
>   Mike Maxwell
>   What good is a universe without somebody around to look at it?
>   --Robert Dicke, Princeton physicist


The \paragraph command is NOT meant to start a new paragraph (use a  
blank line or \par) but is a forth level sectioning command (\section,  
\subsection, \subsubsection, \paragraph, \subparagraph) which takes an  
argument so things are getting messed up.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the XeTeX mailing list