00001 # -*- coding: utf-8 -*- 00002 00003 # Mathmaker creates automatically maths exercises sheets 00004 # with their answers 00005 # Copyright 2006-2009 Nicolas Hainaux <nico_h@users.sourceforge.net> 00006 00007 # This file is part of Mathmaker. 00008 00009 # Mathmaker is free software; you can redistribute it and/or modify 00010 # it under the terms of the GNU General Public License as published by 00011 # the Free Software Foundation; either version 3 of the License, or 00012 # any later version. 00013 00014 # Mathmaker is distributed in the hope that it will be useful, 00015 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 # GNU General Public License for more details. 00018 00019 # You should have received a copy of the GNU General Public License 00020 # along with Mathmaker; if not, write to the Free Software 00021 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00022 00023 import Structure 00024 # ----------------------------------------------------------------------------- 00025 # ----------------------------------- CLASS: sheet.StructureEquation ---------- 00026 # ----------------------------------------------------------------------------- 00027 ## 00028 # @class StructureEquation 00029 # @brief Mother class of equation sheets. Differs slightly from Structure. 00030 class StructureEquation(Structure.Structure): 00031 00032 00033 00034 00035 ## -------------------------------------- OUTPUT WRITING : answers --------- 00036 ## 00037 # @brief Writes to the output all exercises' answers 00038 def write_answers(self): 00039 self.machine.write_counter_reset() 00040 self.machine.write_set_size_to('large') 00041 for e in self.exercises_list: 00042 self.machine.write_exercise_number() 00043 e.write_answer() 00044 #self.machine.write_new_line() 00045 self.machine.write_jump_to_next_page() 00046 00047 00048 00049