def add_door(type, properties) $texcontent += "\\begin{#{type}}\n" $texcontent += "{" + properties["navn"].to_s + "}" $texcontent += "{" + properties["beskrivelse"].to_s + "}" $texcontent += "{" + properties["billede"].to_s + "}" $texcontent += "\\end{#{type}}\n\n" end --------------------------------------------- returns stuff like this: \begin{fælde} }Billige point {} { } \end{fælde} \begin{fælde} }Billige point {} { } \end{fælde} \begin{fælde} }Svaret {} { } \end{fælde} \begin{fælde} {} {} {} \end{fælde}