I am trying to create a package called lessonPlanner in which I declare some new environments via \newenvironment
So I have something like
... mwe.tex
\usepackage{lessonPlanner}
\begin{document}
.... In my file "lessonPlanner.sty" I have
\newenvironment{unitPlan}[1]{}Hello World{}
.....
But LaTeX complains that I am missing a \begin{document} when it tries to parse the \newenvironment{unitPlan} definition.
So it seems I have something wrong, I would have though that all \newenvironment commands would be defined in the new packages.
P.S. I am trying to build my own package for lesson planning, where the lessons formats are defined the \usepackage{lessonPlanner} and only the content is referred to in the LaTeX document.
\usepackage. NotPbyp. – Sep 14 '14 at 03:39unitPLanenvironment contains an error of some kind --- presumably one that makes LaTeX try to typeset something while still reading the.styfile.... You should try to provide us with a minimal example (or see here). – jon Sep 14 '14 at 03:52\newenvironment{unitPlan}[1]{Hello World}{}Your Hello World is floating free in the file so LaTeX tries to typeset it before\begin{document}. By the way, unless you are trying to create flat lessons, you probably meanLessonPlanner. – cfr Sep 14 '14 at 04:11