eBookTools
CreateMW
convert Maple worksheets to MW book
Calling Sequence
Parameters
Description
Examples
Compatibility
CreateMW(book, settings)
book
-
book object created using NewBook
settings
(optional) settings table; see Settings
The CreateMW command performs transformation of Maple worksheets, where the output worksheets are formatted similar to the HTML output from DocBook.
The output worksheets are stored in a default location (see eBookTools[GetDefaultOutputDir]) or in a location that you can specify (see eBookTools[SetOutputDir).
witheBookTools:
book_name≔eBookSample:
book≔NewBookbook_name,eBook Sample Book,Maplesoft, a division of Waterloo Maple Inc.,2012:
AddChapterbook,preface,catkerneloptsdatadir,/eBookTools/Preface.mw:
AddChapterbook,1,catkerneloptsdatadir,/eBookTools/GettingStartedWithMaple.mw:
CreateMWbook
Store generated worksheets in a help database:
settings≔tablempl.mw.hyperlink=help:
CreateMWbook,settings
mw_dir≔FileTools:-JoinPathGetDefaultOutputDir,mw,book_name:
hdb≔FileTools:-JoinPathmaple,toolbox,18,eBookTools,lib,maple.help,base=homedir:
ifnotFileTools:-Existshdbthenhdb≔HelpTools:-Database:-Createhdbendif:
files≔HelpTools:-Worksheet:-Findmw_dir,language=en,product=User Help,category=eBook:
HelpTools:-Worksheet:-Storefiles,hdb:
formwinindicesfiles,nolistdotoc≔Recordentry=book_name,topic=NULL,priority=filesmwpriority,language=filesmwlanguage,product=filesmwproduct,category=filesmwcategory,children=Recordentry=StringTools:-Splitfilesmwtopic,,2,topic=filesmwtopic,priority=filesmwpriority,language=filesmwlanguage,product=filesmwproduct,category=filesmwcategory,children=NULL;HelpTools:-TableOfContents:-Loadtoc,hdbenddo:
The eBookTools[CreateMW] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
eBookTools/Settings
eBookTools[CreateHTML]
eBookTools[GetDefaultOutputDir]
eBookTools[NewBook]
eBookTools[SetOutputDir]
Download Help Document