示例#1
0
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 31 13:55:18 2015

@author: koehler
"""

from pylab import *

fig = figure(figsize=(8, 6))
plot(arange(10))

from worknote import Worknote
wn = Worknote("./test", load_if_used=False)
wn.set_metadata(title='Worknotes',
                author='John Doe',
                date='\\today',
                subtitle="The story of an awesome toolkit")
wn("First slide title with unicode", cat='slide')
wn("The Problem we want to solve:", cat='text')
wn("f=\sqrt{x}", cat='equation')
# do some python work ...
plot(sqrt(arange(10)))
xlabel("fluor/MeV")
ylabel("Intensity g s/Liter")
wn("Slide implicite generation\n------------------")
wn(gcf(), cat='figure', size=.8)
wn("Slide with a list on it", cat='slide')
wn('some list item', cat='list')
wn('  * implicit list declaration via "* "')
wn("implicit declaration of text")
#implicit declaration of a table
示例#2
0
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 31 13:55:18 2015

@author: koehler
"""

from pylab import *

fig = figure(figsize=(8,6))
plot(arange(10))

from worknote import Worknote
wn = Worknote("./test", load_if_used = False)
wn.set_metadata(title = 'Worknotes', author = 'John Doe', 
                date = '\\today', subtitle="The story of an awesome toolkit")
wn("First slide title with unicode", cat='slide')
wn("The Problem we want to solve:", cat='text')
wn("f=\sqrt{x}", cat='equation')
# do some python work ...
plot(sqrt(arange(10)))
xlabel("fluor/MeV")
ylabel("Intensity g s/Liter")
wn("Slide implicite generation\n------------------")
wn(gcf(), cat='figure', size=.8)
wn("Slide with a list on it", cat='slide')
wn('some list item', cat='list')
wn('  * implicit list declaration via "* "')
wn("implicit declaration of text")
#implicit declaration of a table
wn([['First column','Second Column', 'Third Column'],[1.,2.,3.],[4,5,6]])