I'm currently making a macro. Its aim is to simplify teacher's task when writing ``text-holes'' (it's called ``texte à trous'' in French).
Here is a MWE:
Code: Select all
\documentclass[10pt]{article}
\usepackage{ifthen}
\newboolean{Teachernotes}
\setboolean{Teachernotes}{true} % true if the output is the teacher's document, false if the output is the pupil's document
\newcommand{\Hole}[1]{
\ifthenelse{\boolean{Teachernotes}\equal true} % if the output is the teacher's document,
{\textbf{#1}} % pupil-hidden words are in bold
{\underline{\phantom{#1}}} % (else) at the place of the word (the pupil has to write down on his sheet), is a bar, to let him write. This bar has she size of the word.
}
\begin{document}
Here is a \Hole{test}.
\end{document}
Code: Select all
\setboolean{Teachernotes}{true}
Code: Select all
\setboolean{Teachernotes}{false}
It seems to work, but when I choose to have teacher's output, the output document contains the greek delta letter, and words are not displayed.
What can I do? It is easy, but I can't find the solution.
I've looked at the ifthen package's manual.
Thanks!