Measure Theory/Edit Tutorial

From testwiki
Jump to navigation Jump to search

How to create Definitions

Definitions inserted with the following template Template:MT_book:util:get_definition, use it this way

{{
  Template:MT_book:util:get_definition  |
  definition_number = <definition number>
}}

The convention we use for the numeration is <chapter number>.<section number>.<definition number relative to this section> (example 1.1.1).

Supose you want to create the definition 1000.1.1 (this will never go into the book , its only an example) , you must first create the template for this definition Template:MT_book:definitions:1000.1.1 . Do it this way :

{{ 
   MT_book:look_feel:definition |
   definition_number = {{{definition_number}}} |
   definition = this is a definition , and here is some math: 
     *<math> \int{e^x} = f(u)^n = f(u^n) </math>
}}

This uses the look and feel template for definitions Template:MT_book:look_feel:definition

Calling then the get_definition template this way :

{{
  Template:MT_book:util:get_definition |
  definition_number = 1000.1.1
}}

results in: Template:MT book:util:get definition


if you call the get_definition template with a definition number that it's template does not exist (example 1000.1.2) then you get this

Template:MT book:util:get definition

so to create the definition template just click in the link.