<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Sheet</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Sheet/</link><description>Recent changes to Sheet</description><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Sheet/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 26 Feb 2014 15:44:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Sheet/feed" rel="self" type="application/rss+xml"/><item><title>Sheet modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Sheet/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The abstract class sheet.S_Structure contains all methods to write the texts and the answers of its Exercises to the output. The main method is __str__() which turns the entire sheet into a string.&lt;/p&gt;
&lt;p&gt;The instanciable Sheets should all be a copy of sheet.Model. They reimplement only the __init__() method (which makes a call to sheet.S_Structure.__init__()), which defines which exercises must be created and added to the field exercises_list of the sheet.&lt;/p&gt;
&lt;p&gt;Finally, each Sheet has some global variables which should be defined. More details about them: &lt;em&gt;(this should be checked again...)&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;FONT_SIZE_OFFSET: will fix the reference size of the font (0 is the default value, it you put more, all fonts will be relatively larger, if you put a negative value, then all fonts will be relatively tinier).&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SHEET_LAYOUT_TYPE: can be 'std'|'short_test'|'mini_test'|'mini_training'|'equations'&lt;br /&gt;
-'std' will just reproduce the layout as defined in SHEET_LAYOUT&lt;br /&gt;
-'short_test' will follow the layout as defined in SHEET_LAYOUT and reproduce it twice. On the sheet there will be first exercises' texts of the first subject, then the ones of the second subject; then the answers of first subject's exercises and then answers of the second subject.&lt;br /&gt;
-'mini_test' is like 'short_test' but there are three subjects&lt;br /&gt;
-'mini_training' is like 'short_test' but there are six subjects&lt;br /&gt;
-'equations' will define a special layout to use the space more properly for the answers.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SHEET_LAYOUT_UNIT: defines the unit in which the numbers in SHEET_LAYOUT are given&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;SHEET_LAYOUT: defines precisely the layout of the exercises' texts and answers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example from the code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="c"&gt;# ------------------------  lines_nb    col_widths   exercises&lt;/span&gt;
    &lt;span class="c"&gt;#SHEET_LAYOUT = { 'exc' : [ [1,         6, 15],      (1, 1),&lt;/span&gt;
    &lt;span class="c"&gt;#                            None,                    1&lt;/span&gt;
    &lt;span class="c"&gt;#                         ],&lt;/span&gt;
    &lt;span class="c"&gt;#                 'ans' : [ [1,         6.5, 12],    (1, 1),&lt;/span&gt;
    &lt;span class="c"&gt;#                            'jump',                 'next_page',&lt;/span&gt;
    &lt;span class="c"&gt;#                            None,                    1&lt;/span&gt;
    &lt;span class="c"&gt;#                         ]&lt;/span&gt;
    &lt;span class="c"&gt;#               }&lt;/span&gt;
    &lt;span class="c"&gt;# NOTE THAT FOR SHORT_TEST SHEETS, THE LAYOUT HAS TO BE GIVEN ONLY ONCE&lt;/span&gt;
    &lt;span class="c"&gt;# AND IT WILL BE DUPLICATED FOR THE SECOND SET OF EXERCISES&lt;/span&gt;

    &lt;span class="c"&gt;# EXPLANATION ABOUT THE EXAMPLE OF SHEET_LAYOUT :&lt;/span&gt;
    &lt;span class="c"&gt;# [1, 6, 15] means a table of 1 line with columns widths 6 and 15.&lt;/span&gt;
    &lt;span class="c"&gt;# (1, 1) means one exercise in each of these two cells.&lt;/span&gt;
    &lt;span class="c"&gt;# This tuple should contains as many numbers as nb of lines × nb of cols.&lt;/span&gt;
    &lt;span class="c"&gt;# To leave one cell empty, just write 0.&lt;/span&gt;
    &lt;span class="c"&gt;# None means no tabular and the following 1 means for the 1 next exercise.&lt;/span&gt;
    &lt;span class="c"&gt;# 'all' and 'all_left' are synonym&lt;/span&gt;
    &lt;span class="c"&gt;# 'jump' and 'next_page' will include a jump to next page before the next ones&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The instructions for use are all written in S_Model.py&lt;br /&gt;
&lt;a class="" href="http://mathmaker.sourceforge.net/participate/doc/classsheet_1_1S__Structure_1_1S__Structure.html"&gt;S_Structure in the doc&lt;/a&gt;&lt;br /&gt;
&lt;a class="" href="http://mathmaker.sourceforge.net/participate/doc/classsheet_1_1S__Model_1_1S__Model.html"&gt;S_Model in the doc&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Wed, 26 Feb 2014 15:44:42 -0000</pubDate><guid>https://sourceforge.netd9fdfe447de36277ced0fac6cfabf8b5eeef483e</guid></item></channel></rss>