I am compiling my dissertation chapters. When I wrote a chapter in a standalone Latex file, the file did compile without any error. However, when I copied the text body from the standalone to an "input" file, I get the following error message:
! Undefined control sequence.
\clear@ppage ->\if@openright
\cleardoublepage \else \clearpage \fi
l.103 \begin{appendices}
The control sequence at the end of the top line
of your error message was never \def'ed.
Here is a minimal example which reproduces this error:
%Codes in the main latex file
\documentclass[oneside,final, letterpaper]{ucr}
\usepackage{lipsum}
\usepackage[toc, page]{appendix} %Package used to create appendix
\begin{document}
\input{chapter1}
\end{document}
%Codes in the inputted file "chapter1"
\section{Intro}
\lipsum
\begin{appendices}
1. It shows error.
\end{appendices}
I will appreciate if someone could guide me here.
\if@openright
but never defines it. This occurs around line 103, when you use\begin{appendices}
. So either make sure it is defined or don't use anything which uses it. If you want help with diagnosis, we need code for a MNWE which produces that error when compiled. Otherwise, all anybody can do is tell you what the error message says, which you hopefully already read.ucr
tobook
, say? If not, where can we getucr.cls
?