When just writing "een" or "1" the lines still work. They give error's as soon as I replace them with "é" because I want to put an emphasis on the "one".
I googled online and read wikibooks on special characters. I replaced the twho é's with \'{e} but it still gives an error as soon as i put this in.
Code Sample
{\documentclass[a7paper,print,10pt,grid=rear]{kartei}
%Voor info googelen op 'LaTeX kartei'
%a7paper: bepaalt hoe groot de fiches worden. a6-a7-a8-a9 zijn de opties
%grid: geeft aan of er snijlijnen moeten geprint worden.
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{icomma}
\usepackage{graphicx}
\newcommand{\antwoord}[1] {%
\vspace*{\fill}%
\begin{center}
#1
\end{center}
\vspace*{\fill}%
}
\newcommand{\vraag}[1]{#1}
\newsavebox\myimage
\sbox\myimage{%
\includegraphics[scale=0.08]{zrm.png} %
}
\newcommand{\kaart}[2]{%
\begin{karte}[Vraag]
{\vraag{#1}}
[\usebox\myimage]
\answer{Antwoord}
\antwoord{#2}
\end{karte}%
}
\author{M.Brouwers}
\begin{document}
\kaart{%
$Onderstaande kubus heeft een inhoud van 512cm^{3}. Wat is de lengte van \'{e}\'{e}n ribbe?$
\includegraphics[scale=1]{kubuszrm.png} } {$ V = z^{3}$
$ 512cm^{3} = z^{3} $
$ We zoeken een getal dat tot de 3^{de} macht 512 $
$ -> 8 $
$ 512 cm^{3} = ( 8 cm )^{3}$
De kubus heeft zijden van 8cm }
\end{document}}
karteiclass file available? – egreg May 25 '16 at 12:54\'is not allowed in math mode. Math mode should not be used for text, as it messes with spacing and puts everything in unkerned italics (so unless\kaartdoes something odd your example won't look any good if you remove\'anyway), so reserve it for the equations. If you want italics, use\itshapeor\textit{your text}. The superscripts can be created with\textsuperscript. – Jonas Granholm May 25 '16 at 12:58utf8format. || Then, it's better not to write regular text in math-mode (that is between$s): your error occurs because you tries to type accent in math-mode... || You should thus tryOnderstaande kubus heeft een inhoud van $512cm^{3}$. Wat is de lengte van één ribbe?andWe zoeken een getal dat tot de $3^{de}$ macht 512|| To emphasis text, use rather\emph{<your-text>}– ebosi May 25 '16 at 12:593\textsuperscript{de}to avoiddebeing in math mode. Also, you can use\mathrm{cm}to get the units in upright text. – Jonas Granholm May 25 '16 at 13:04fontencif you plan to use accents, see http://tex.stackexchange.com/q/664/47692. – Jonas Granholm May 25 '16 at 13:15