Given the following MWE:
\documentclass[draft]{scrbook}
\usepackage{xifthen}
\usepackage{fixme}
\newcommand\needscitation[1][]{%
\fxwarning{citation needed%
\ifthenelse{\isempty{#1}}%
{}% if #1 is empty
{: #1}% if #1 is not empty
}
}
\begin{document}
Lorum Ipsum \needscitation
Lorum Ipsum \needscitation{me}
\end{document}
I get the following error when compiling with pdflatex, unless I comment out either line 7 & 11 or 8 - 10. Is there a way to resolve this apparent conflict?
compiling mwe.tex...
mwe.tex:17: Undefined control sequence \isempty.
mwe.tex:17: leading text: L
mwe.tex:17: Argument of \@tempc has an extra }.
mwe.tex:17: leading text: L
mwe.tex:17: Paragraph ended before \@tempc was complete.
mwe.tex:17: leading text: L
mwe.tex:17: Argument of \@tempc has an extra }.
mwe.tex:17: leading text: L
mwe.tex:17: Paragraph ended before \@tempc was complete.
mwe.tex:17: leading text: L
mwe.tex:17: Argument of \@tempc has an extra }.
mwe.tex:17: leading text: Lorum Ipsum \needscitation{
mwe.tex:17: Paragraph ended before \@tempc was complete.
mwe.tex:17: leading text: Lorum Ipsum \needscitation{
mwe.tex:17: Argument of \@tempc has an extra }.
mwe.tex:17: leading text: Lorum Ipsum \needscitation{
mwe.tex:17: Paragraph ended before \@tempc was complete.
mwe.tex:17: leading text: Lorum Ipsum \needscitation{
article
. Makes it easier for us. Make sure, your MWE produces just the errors your describe. – LaRiFaRi Mar 16 '15 at 10:31