eBookTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : eBookTools Package : eBookTools/CreateMW

eBookTools

  

CreateMW

  

convert Maple worksheets to MW book

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

CreateMW(book, settings)

Parameters

book

-

book object created using NewBook

settings

-

(optional) settings table; see Settings

Description

• 

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).

Examples

witheBookTools:

book_nameeBookSample:

bookNewBookbook_name,eBook Sample Book,Maplesoft, a division of Waterloo Maple Inc.,2012:

AddChapterbook,preface,catkernelopts'datadir',/eBookTools/Preface.mw:

AddChapterbook,1,catkernelopts'datadir',/eBookTools/GettingStartedWithMaple.mw:

CreateMWbook

Store generated worksheets in a help database:

settingstablempl.mw.hyperlink=help:

CreateMWbook,settings

mw_dirFileTools:-JoinPathGetDefaultOutputDir,mw,book_name:

hdbFileTools:-JoinPathkernelopts'homedir',maple,toolbox,18,eBookTools,lib,maple.help:

ifnotFileTools:-ExistshdbthenhdbHelpTools:-Database:-Createhdbend if:

filesHelpTools:-Worksheet:-Findmw_dir,language=en,product=User Help,category=eBook:

HelpTools:-Worksheet:-Storefiles,hdb:

formwinindicesfiles,'nolist'dotocRecord'entry'=book_name,'topic'=NULL,'priority'=filesmwpriority,'language'=filesmwlanguage,'product'=filesmwproduct,'category'=filesmwcategory,'children'=Record'entry'=StringTools:-Splitfilesmwtopic,,2,'topic'=filesmwtopic,'priority'=filesmwpriority,'language'=filesmwlanguage,'product'=filesmwproduct,'category'=filesmwcategory,'children'=NULL;HelpTools:-TableOfContents:-Loadtoc,hdbend do:

Compatibility

• 

The eBookTools[CreateMW] command was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

eBookTools

eBookTools/Settings

eBookTools[CreateHTML]

eBookTools[GetDefaultOutputDir]

eBookTools[NewBook]

eBookTools[SetOutputDir]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam