This question about Using an extension: Asked

\newcommand in preamble produces error

Both \def\foo{bar} and \newcommand\foo{bar} , used in
<verbatim>
  * Set LATEXMODE_PREAMBLE =
</verbatim>
on the page Main.SitePreferences result in the error
! LaTeX Error: Missing \begin{document}.

when %$\foo$% is used on a page. \renewcommand and \definecolor both work as expected. So, how can I introduce a new command?

-- ShaughanLavine - 15 Jan 2011

QuestionForm edit

Subject Using an extension
Extension LatexModePlugin
Version Foswiki 1.1.2
Status Asked
Topic revision: r1 - 15 Jan 2011, ShaughanLavine
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy