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).
with⁡eBookTools:
book_name≔eBookSample:
book≔NewBook⁡book_name,eBook Sample Book,Maplesoft, a division of Waterloo Maple Inc.,2012:
AddChapter⁡book,preface,cat⁡kernelopts⁡datadir,/eBookTools/Preface.mw:
AddChapter⁡book,1,cat⁡kernelopts⁡datadir,/eBookTools/GettingStartedWithMaple.mw:
CreateMW⁡book
Store generated worksheets in a help database:
settings≔table⁡mpl.mw.hyperlink=help:
CreateMW⁡book,settings
mw_dir≔FileTools:-JoinPath⁡GetDefaultOutputDir⁡,mw,book_name:
hdb≔FileTools:-JoinPath⁡maple,toolbox,18,eBookTools,lib,maple.help,base=homedir:
ifnotFileTools:-Exists⁡hdbthenhdb≔HelpTools:-Database:-Create⁡hdbendif:
files≔HelpTools:-Worksheet:-Find⁡mw_dir,language=en,product=User Help,category=eBook:
HelpTools:-Worksheet:-Store⁡files,hdb:
formwinindices⁡files,nolistdotoc≔Record⁡entry=book_name,topic=NULL,priority=filesmwpriority,language=filesmwlanguage,product=filesmwproduct,category=filesmwcategory,children=Record⁡entry=StringTools:-Split⁡filesmwtopic,,2,topic=filesmwtopic,priority=filesmwpriority,language=filesmwlanguage,product=filesmwproduct,category=filesmwcategory,children=NULL;HelpTools:-TableOfContents:-Load⁡toc,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