# -*- coding: utf-8 -*- """ Created on Sat Aug 8 13:14:49 2015 @author: koehler """ from worknote import Worknote try: from worknote.QNoteOrganizer import edit_note except ImportError: print "This testbench needs to be executed from outside this module" print "Copy this file to a higher level and execute" import sys sys.exit() wn = Worknote("./test") wn("First slide ", cat='slide') wn(" A lot of Text") wn("* bbb") wn("* Some text") wn("* bbb") wn("Second slide ", cat='slide') wn("# enumerated") wn("bla") wn("Third slide", cat='slide') wn([['First column','Second Column', 'Third Column'],[1.,2.,3.],[4,5,6]], cat='table') edit_note(wn) wn.build()
# -*- 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")
# -*- coding: utf-8 -*- """ Created on Sat Aug 8 13:14:49 2015 @author: koehler """ from worknote import Worknote try: from worknote.QNoteOrganizer import edit_note except ImportError: print "This testbench needs to be executed from outside this module" print "Copy this file to a higher level and execute" import sys sys.exit() wn = Worknote("./test") wn("First slide ", cat='slide') wn(" A lot of Text") wn("* bbb") wn("* Some text") wn("* bbb") wn("Second slide ", cat='slide') wn("# enumerated") wn("bla") wn("Third slide", cat='slide') wn([['First column', 'Second Column', 'Third Column'], [1., 2., 3.], [4, 5, 6] ], cat='table') edit_note(wn) wn.build()
# -*- 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]])