New function: muse-blosxom-project-alist-entry.
[muse-el.git] / muse.texi
blob21ebc2ae273526605347432431086a829941fff9
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename muse.info
4 @settitle Muse
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * Muse: (muse). Authoring and publishing environment for Emacs.
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for the Emacs Muse version 3.01.
17 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
19 @quotation
20 Permission is granted to copy, distribute and/or modify this document
21 under the terms of the GNU General Public License.
22 @end quotation
23 @end copying
25 @titlepage
26 @title Muse manual
27 @subtitle an authoring and publishing environment
28 @subtitle for GNU Emacs and XEmacs
30 @c The following two commands
31 @c start the copyright page.
32 @page
33 @vskip 0pt plus 1filll
34 @insertcopying
35 @end titlepage
37 @c So the toc is printed at the start
38 @contents
40 @ifnottex
41 @node Top, Preface, (dir), (dir)
42 @comment  node-name,  next,  previous,  up
43 @top Muse
45 @insertcopying
46 @end ifnottex
48 @menu
49 * Preface::                     About the documentation.
50 * Introduction::                What is Muse?
51 * Obtaining Muse::              How to get Muse releases and development
52                                   changes.
53 * Installation::                Compiling and installing Muse.
54 * Getting Started::             Settings for Muse.
55 * Projects::                    Creating and managing Muse projects.
56 * Keystroke Summary::           Keys used in Muse mode.
57 * Markup Rules::                Rules for using markup.
58 * Publishing Styles::           Publishing various types of documents.
59 * Getting Help and Reporting Bugs::  
60 * History::                     History of this document.
61 * Contributors::                Contributors to this documentation.
62 * GNU General Public License::  The license for this manual and Muse.
63 * Concept Index::               Search for terms.
65 @detailmenu
66  --- The Detailed Node Listing ---
68 How to Get Muse Releases and Development Changes
70 * Releases::                    Released versions of Muse.
71 * Development::                 Latest unreleased development changes.
73 Rules for Using Markup
75 * Paragraphs::                  Paragraphs: centering and quoting.
76 * Headings::                    Levels of headings.
77 * Emphasizing Text::            Bold, italicized, and underlined text.
78 * Footnotes::                   Making notes to be shown at the end.
79 * Verse::                       Indicating poetic stanzas.
80 * Lists::                       Lists of items.
81 * Tables::                      Generation of data tables.
82 * Links::                       Hyperlinks and email addresses.
83 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
84 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
85                                   for extensibility.
87 Publishing Various Types of Documents
89 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
90 * Book::                        Publishing entries into a compilation.
91 * DocBook::                     Publishing in DocBook XML form.
92 * HTML::                        Publishing in HTML or XHTML form.
93 * Journal::                     Keeping a journal or blog.
94 * LaTeX::                       Publishing LaTeX documents.
95 * Poem::                        Publish a poem to LaTex or PDF.
96 * Texinfo::                     Publish entries to Texinfo format or PDF.
97 * Common Elements::             Common functionality shared by styles.
98 * Deriving Styles::             Deriving a new style from an existing
99                                   one.
101 Integrating Muse and pyblosxom.cgi
103 * Blosxom Requirements::        Other tools needed to the Blosxom style.
104 * Blosxom Entries::             Format of a Blosxom entry and automation.
105 * Blosxom Options::             Blosxom styles and options provided.
107 @end detailmenu
108 @end menu
110 @node Preface, Introduction, Top, Top
111 @comment  node-name,  next,  previous,  up
112 @chapter About the documentation
114 This document describes Muse, which was written by John Wiegley
115 and is now maintained by Michael Olson.  Several versions of it are
116 available on-line.
118 @itemize @bullet
119 @item PDF: http://www.mwolson.org/static/doc/muse.pdf
120 @item HTML (single file): http://www.mwolson.org/static/doc/muse.html
121 @item HTML (multiple files): http://www.mwolson.org/static/doc/muse/
122 @end itemize
124 @node Introduction, Obtaining Muse, Preface, Top
125 @comment  node-name,  next,  previous,  up
126 @chapter What is Muse?
128 Emacs Muse is an authoring and publishing environment for Emacs.  It
129 simplifies the process of writing documents and publishing them to
130 various output formats.
132 Muse consists of two main parts: an enhanced text-mode for authoring
133 documents and navigating within Muse projects, and a set of publishing
134 styles for generating different kinds of output.
136 This idea is not in any way new. Numerous systems exist -- even one
137 other for Emacs itself (Bhl Mode). What Muse adds to the picture is a
138 more modular environment, with a rather simple core, in which "styles"
139 are derived from to create new styles. Much of Muse's overall
140 functionality is optional. For example, you can use the publisher
141 without the major-mode, or the mode without doing any publishing; or if
142 you don't load the Texinfo or LaTeX modules, those styles won't be
143 available.
145 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
146 code has been restructured and rewritten, especially its publishing
147 functions. The focus in this revision is on the authoring and publishing
148 aspects, and the "wikiness" has been removed as a default behavior (to
149 be offered again as an optional module). CamelCase words are no longer
150 special by default.
152 @node Obtaining Muse, Installation, Introduction, Top
153 @comment  node-name,  next,  previous,  up
154 @chapter How to Get Muse Releases and Development Changes
156 @menu
157 * Releases::                    Released versions of Muse.
158 * Development::                 Latest unreleased development changes.
159 @end menu
161 @node Releases, Development, Obtaining Muse, Obtaining Muse
162 @comment  node-name,  next,  previous,  up
163 @section Released versions of Muse
165 Choose to install a release if you want to minimize risk.
167 Errors are corrected in development first.  User-visible changes will be
168 announced on the @email{emacs-wiki-discuss@@nongnu.org} mailing list.
169 This mailing list also provides support for @command{Planner} and
170 @command{emacs-wiki}, which is the predecessor of Muse.
171 @pxref{Getting Help and Reporting Bugs}.
173 @cindex releases, Debian package
174 @cindex Debian package for Muse
175 Debian users can get Muse via apt-get.  The @file{muse} package will be
176 made available at Michael Olson's Debian repository.  To make use of it,
177 add the following line to your @file{/etc/apt/sources.list} file and run
178 @code{apt-get install muse}.
180 @example
181 deb http://www.mwolson.org/debian/ ./
182 @end example
184 @cindex releases, from source
185 Alternatively, you can download the latest release from
186 @uref{http://www.mwolson.org/static/dist/muse/} .
188 @node Development,  , Releases, Obtaining Muse
189 @comment  node-name,  next,  previous,  up
190 @section Latest unreleased development changes
191 @cindex development
193 Choose the development version if you want to live on the bleeding edge
194 of Muse development or try out new features before release.
196 @cindex arch revision control system, using
197 The Arch revision control system allows you to retrieve previous
198 versions and select specific features and bug fixes.  If you would like
199 to contribute to Muse development, it is highly recommended that you use
200 Arch, but this is not a requirement.
202 If you are new to Arch, you might find this tutorial helpful:
203 @uref{http://www.mwolson.org/projects/ArchTutorial.html}.
205 Downloading the Muse module with Arch and staying up-to-date involves
206 the following steps.
208 @enumerate
209 @item Install arch
211 @itemize @bullet
212 @item Debian: @kbd{apt-get install tla}.
213 @item Other distributions: see @uref{http://regexps.srparish.net/www/}.
214 @end itemize
216 @item Register the archive.
217 @example
218 tla register-archive -f http://www.mwolson.org/archives/2005
219 @end example
221 @item Download the Muse package.
222 @example
223 # Download Muse into the @file{muse} directory.
224 tla get mwolson@@gnu.org--2005/muse--main--1.0 muse
225 @end example
227 @item List upstream changes that are missing from your local copy.
228 Do this whenever you want to see whether new changes have been committed
229 to Muse.
231 @example
232 # Change to the source directory you are interested in.
233 cd muse/
235 # Display the summary of changes
236 tla missing --summary
237 @end example
239 @cindex updating Muse with Arch
240 @item Update to the latest version by replaying missing changes.
241 @example
242 cd muse
243 tla replay
244 @end example
246 @end enumerate
248 There are other ways to interact with the Muse archive.
250 @itemize
251 @item Browse arch repository: @uref{http://www.mwolson.org/archives/}
252 @item Latest development snapshot: @uref{http://www.mwolson.org/static/dist/muse-latest.tar.gz}
253 @end itemize
255 The latest development snapshot will be kept up-to-date since it is
256 updated at the same time as the Arch repository.
258 @node Installation, Getting Started, Obtaining Muse, Top
259 @comment  node-name,  next,  previous,  up
260 @chapter Compiling and Installing Muse
262 Muse may be compiled and installed on your machine.
264 @emph{Compilation}
266 This is an optional step, since Emacs Lisp source code does not
267 necessarily have to be byte-compiled.  It will yield a speed increase,
268 though.
270 A working copy of Emacs or XEmacs is needed in order to compile the
271 Emacs Muse.  By default, the program that is installed with the name
272 @command{emacs} will be used.
274 If you want to use the @command{xemacs} binary to perform the
275 compilation, you would need to edit @file{Makefile.defs} in the
276 top-level directory as follows.  You can put either a full path to an
277 Emacs or XEmacs binary or just the command name, as long as it is in the
278 @env{PATH}.
280 @example
281 EMACS    = xemacs
282 SITEFLAG = -no-site-file
283 @end example
285 Running @code{make} should compile the Muse source files in the
286 @file{lisp} directory.
288 @emph{Installation}
290 Muse may be installed into your file hierarchy by doing the following.
292 Edit the @file{Makefile.defs} file so that @env{ELISPDIR} points to
293 where you want the source and compiled Muse files to be installed and
294 @env{INFODIR} indicates where to put the Muse manual.  Of course, you
295 will want to edit @env{EMACS} and @env{SITEFLAG} as shown in the
296 Compilation section if you are using XEmacs.
298 If you are installing Muse on a Debian system, you might want to change
299 the value of @env{INSTALLINFO} as specified in @file{Makefile.defs}.
301 If you wish to install Muse to different locations than the defaults
302 specify, edit @file{Makefile.defs} accordingly.
304 Run @code{make} as a normal user.
306 Run @code{make install} as the root user if you have chosen installation
307 locations that require this.
310 @node Getting Started, Projects, Installation, Top
311 @comment  node-name,  next,  previous,  up
312 @chapter Getting Started
313 @cindex settings
315 To use Muse, add the directory containing its files to your
316 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
317 the authoring mode, and the styles you wish to publish to.  An example
318 follows.
320 @lisp
321 (add-to-list 'load-path "<path to Muse>")
323 (require 'muse-mode)     ; load authoring mode
325 (require 'muse-html)     ; load publishing styles I use
326 (require 'muse-latex)
327 (require 'muse-texinfo)
328 (require 'muse-docbook)
329 @end lisp
331 Once loaded, the command @kbd{M-x muse-publish-this-file} will publish
332 an input document to any available style.  If you enable
333 @file{muse-mode} within a buffer, by typing @kbd{M-x muse-mode}, this
334 command will be bound to @kbd{C-c C-t}.
336 If the currently opened file is part of a defined project in
337 @code{muse-project-alist}, it may be published using @kbd{C-c C-p}.
339 You should also type @kbd{M-x customize-group}, and give the name
340 @samp{muse}.  Change it to suit your preferences.  Each of the
341 options has its own documentation.
344 @node Projects, Keystroke Summary, Getting Started, Top
345 @comment  node-name,  next,  previous,  up
346 @chapter Creating and Managing Muse Projects
347 @cindex projects
349 Often you will want to publish all the files within a directory to a
350 particular set of output styles automatically.  To support, Muse
351 allows for the creations of "projects".  Here is a sample project, to
352 be defined in your @file{.emacs} file.
354 @lisp
355 (require 'muse-project)
357 (setq muse-project-alist
358       '(("website"                      ; my various writings
359          ("~/Pages" :default "index")
360          (:base "html" :path "~/public_html")
361          (:base "pdf" :path "~/public_html/pdf"))))
362 @end lisp
364 The above defines a project named "website", whose files are located
365 in the directory @file{~/Pages}.  The default page to visit is
366 @file{index}.  When this project is published, each page will be
367 output as HTML to the directory @file{~/public_html}, and as PDF to
368 the directory @file{~/public_html/pdf}.  Within any project page, you
369 may create a link to other pages using the syntax @samp{[[pagename]]}.
372 @node Keystroke Summary, Markup Rules, Projects, Top
373 @comment  node-name,  next,  previous,  up
374 @chapter Keys Used in Muse Mode
375 @cindex keystrokes
377 This is a summary of keystrokes available in every Muse buffer.
379 @table @kbd
381 @item C-c C-a (`muse-index')
382 Display an index of all known Muse pages.
384 @item C-c C-b (`muse-browse-result')
385 Show the published result of this page.
387 @item C-c C-e (`muse-edit-link-at-point')
388 Edit link at point.
390 @item C-c C-f (`muse-project-find-file'), also C-c C-v
391 Open another Muse page.  Prompt for the name.
393 @item C-c C-l (`font-lock-mode')
394 Highlight/refresh the current buffer.
396 @item C-c C-p (`muse-project-publish')
397 Publish any Muse pages that have changed.
399 @item C-c C-v (`muse-project-find-file'), also C-c C-f
400 Open another Muse page.  Prompt for the name.
402 @item C-c = (`muse-what-changed')
403 Diff this page against the last backup version.
405 @item C-c TAB (`muse-insert-tag')
406 Insert a tag interactively.
408 @item TAB
409 Move to the next Wiki reference.
411 @item S-TAB
412 Move to the previous Wiki reference.
414 @end table
417 @node Markup Rules, Publishing Styles, Keystroke Summary, Top
418 @comment  node-name,  next,  previous,  up
419 @chapter Rules for Using Markup
420 @cindex markup
422 A Muse document uses special, contextual markup rules to determine how
423 to format the output result.  For example, if a paragraph is indented,
424 Muse assumes it should be quoted.
426 There are not too many markup rules, and all of them strive to be as
427 simple as possible so that you can focus on document creation, rather
428 than formatting.
430 @menu
431 * Paragraphs::                  Paragraphs: centering and quoting.
432 * Headings::                    Levels of headings.
433 * Emphasizing Text::            Bold, italicized, and underlined text.
434 * Footnotes::                   Making notes to be shown at the end.
435 * Verse::                       Indicating poetic stanzas.
436 * Lists::                       Lists of items.
437 * Tables::                      Generation of data tables.
438 * Links::                       Hyperlinks and email addresses.
439 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
440 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
441                                   for extensibility.
442 @end menu
444 @node Paragraphs, Headings, Markup Rules, Markup Rules
445 @comment  node-name,  next,  previous,  up
446 @section Paragraphs: centering and quoting
447 @cindex paragraphs
449 Paragraphs in Muse must be separated by a blank line.
451 @cindex paragraphs, centered
452 @strong{Centered paragraphs and quotations}
454 A line that begins with six or more columns of whitespace (either tabs
455 or spaces) indicates a centered paragraph.
457 @cindex paragraphs, quoted
458 @cindex quotations
459 But if a line begins with whitespace, though less than six columns, it
460 indicates a quoted paragraph.
462 @cindex examples
463 @cindex monospace, rendering blocks
464 @cindex HTML, rendering blocks in monospace
465 @strong{Literal paragraphs}
467 The @verb{|<example>|} tag is used for examples, where whitespace should
468 be preserved, the text rendered in monospace, and any characters special
469 to the output style escaped.
471 @cindex literal text
472 @cindex HTML, inserting a raw block
473 There is also the @verb{|<literal>|} tag, which causes a marked block to
474 be entirely left alone.  This can be used for inserting a hand-coded
475 HTML blocks into HTML output, for example.
477 @node Headings, Emphasizing Text, Paragraphs, Markup Rules
478 @comment  node-name,  next,  previous,  up
479 @section Levels of headings
480 @cindex headings
482 A heading becomes a chapter or section in printed output -- depending on
483 the style.  To indicate a heading, start a new paragraph with one to
484 three asterices, followed by a space and the heading title.  Then begin
485 another paragraph to enter the text for that section.
487 Only 3 levels of headings will be published as headings.  A fourth level
488 of headings will be marked up, but displayed as plain text.
490 @example
491 * First level
493 ** Second level
495 *** Third level
496 @end example
498 @node Emphasizing Text, Footnotes, Headings, Markup Rules
499 @comment  node-name,  next,  previous,  up
500 @section Bold, italicized, and underlined text
501 @cindex emphasizing text
502 @cindex underlining text
503 @cindex italicizing text
504 @cindex verbatim text
505 @cindex monospace, rendering words
507 To emphasize text, surround it with certain specially recognized
508 characters.
510 @example
511 *emphasis*
512 **strong emphasis**
513 ***very strong emphasis***
514 _underlined_
515 =verbatim and monospace=
516 @end example
518 @cindex WYSIWYG
519 While editing a Muse document in Muse mode, these forms of emphasis will
520 be highlighted in a WYSIWYG manner.  Each of these forms may span
521 multiple lines, with the exception of the verbatim and monospace form.
523 @node Footnotes, Verse, Emphasizing Text, Markup Rules
524 @comment  node-name,  next,  previous,  up
525 @section Making notes to be shown at the end
526 @cindex footnotes
528 A footnote reference is simply a number in square brackets.  To define
529 the footnote, place this definition at the bottom of your file.
530 @samp{footnote-mode} can be used to greatly facilitate the creation of
531 these kinds of footnotes.
533 Footnotes are defined by the same number in brackets occurring at the
534 beginning of a line.  Use footnote-mode's @kbd{C-c ! a} command, to very
535 easily insert footnotes while typing.  Use @kbd{C-x C-x} to return to
536 the point of insertion.
538 @node Verse, Lists, Footnotes, Markup Rules
539 @comment  node-name,  next,  previous,  up
540 @section Indicating poetic stanzas
541 @cindex verses
542 @cindex poetry
544 Poetry requires that whitespace be preserved, but without resorting to
545 monospace.  To indicate this, use the following markup, reminiscent of
546 email quotations.
548 @example
549 > A line of Emacs verse;
550 >   forgive its being so terse.
551 @end example
553 You can also use the @verb{|<verse>|} tag, if you prefer.
555 @example
556 <verse>
557 A line of Emacs verse;
558   forgive its being so terse.
559 </verse>
560 @end example
562 Multiple stanzas may be included in one set of @verb{|<verse>|} tags, as
563 follows.
565 @cindex verses, multiple stanzas
566 @example
567 <verse>
568 A line of Emacs verse;
569   forgive its being so terse.
571 This a second stanza:
572 Something longer should go here,
573 But the author is out of ideas.
574 </verse>
575 @end example
577 @node Lists, Tables, Verse, Markup Rules
578 @comment  node-name,  next,  previous,  up
579 @section Lists of items
580 @cindex lists
582 Lists are given using special characters at the beginning of a line.
583 Whitespace must occur before bullets or numbered items, to distinguish
584 from the possibility of those characters occurring in a real sentence.
586 @cindex lists, bullets
587 These are rendered as a bullet list.
589 @example
590   - bullet item one
591   - bullet item two
592 @end example
594 @cindex lists, enumerated
595 An enumerated list follows.
597 @example
598   1. Enum item one
599   2. Enum item two
600 @end example
602 @cindex lists, definitions
603 Here is a definition list.
605 @example
606 Term1 ::
607   This is a first definition
608   And it has two lines;
609   no, make that three.
611 Term2 ::
612   This is a second definition
613 @end example
615 @node Tables, Links, Lists, Markup Rules
616 @comment  node-name,  next,  previous,  up
617 @section Generation of data tables
618 @cindex tables
620 @cindex tables, simple
621 Only very simple tables are supported.  The syntax is as follows.
623 @example
624   Double bars  || Separate header fields
626   Single bars   | Separate body fields
627   Here are more | body fields
629   Triple bars ||| Separate footer fields
630 @end example
632 @node Links, Horizontal Rules and Anchors, Tables, Markup Rules
633 @comment  node-name,  next,  previous,  up
634 @section Hyperlinks and email addresses
635 @cindex links
637 @cindex links, explicit
639 A hyperlink can reference a URL, or another page within a Muse
640 project.  In addition, descriptive text can be specified, which should
641 be displayed rather than the link text in output styles that supports
642 link descriptions.  The syntax is as follows.
644 @example
645 [[link target][link description]]
646 [[link target without description]]
647 @end example
649 Thus, the current maintainer's homepage for Muse can be found
650 @samp{[[http://www.mwolson.org/projects/MuseMode.html][here]]},
651 or at @samp{[[http://www.mwolson.org/projects/MuseMode.html]]}.
653 @cindex images
654 @cindex links, with images
655 @strong{Image links}
657 Links to images may be used in either the target or the description, or
658 both.  Thus, the following code will publish as a clickable image that
659 points to @url{http://www.mwolson.org/}.
661 @example
662 [[http://www.mwolson.org/][http://www.mwolson.org/static/logos/site-logo.png]]
663 @end example
665 @cindex images, local
666 @cindex images, displaying
667 If a link to a locally-available image is encountered in the link
668 description, Muse mode will attempt to display it if your version of
669 Emacs permits this.  The following example will display correctly and
670 publish correctly if a @acronym{PNG} file called @file{TestLogo.png}
671 exists in the @file{../pics/} directory.
673 @example
674 [[TestPage][../pics/TestLogo.png]]
675 @end example
677 @cindex images, without a description
678 An image link is not required to have a description.  The link
679 @samp{[[../myimage.png]]} will display and publish as expected.
681 @cindex links, raw
682 @cindex URLs
683 @cindex Email addresses
684 @cindex images, inlined
685 @strong{Bare URLs and Email addresses}
687 A URL or email address encountered in the input text is published as
688 a hyperlink if the output style supports it.  If it is an image URL,
689 it will be inlined if possible.
691 @node Horizontal Rules and Anchors, Embedded Lisp, Links, Markup Rules
692 @comment  node-name,  next,  previous,  up
693 @section Inserting a horizontal line or anchor
695 @cindex horizontal rules
696 @cindex dashes
697 @strong{Horizontal Rules}
699 Four or more dashes indicate a horizontal rule.  Be sure to put blank
700 lines around it, or it will be considered part of the proceeding or
701 following paragraph!
703 @cindex anchors
704 @cindex links, with target on same page
705 @strong{Anchors}
707 If you begin a line with "#anchor" -- where "anchor" can be any word
708 that doesn't contain whitespace -- it defines an anchor at that point
709 into the document.  This point can be referenced using "page#anchor" as
710 the target in a Muse link.
712 @node Embedded Lisp, , Horizontal Rules and Anchors, Markup Rules
713 @comment  node-name,  next,  previous,  up
714 @section Evaluating Emacs Lisp code in documents for extensibility
715 @cindex lisp, embedded
717 Arbitrary kinds of markup can be achieved using the @verb{|<lisp>|} tag,
718 which is the only Muse tag supported in a style's header and footer
719 text.  With the @verb{|<lisp>|} tag, you may generated whatever output
720 text you wish.  The inserted output will get marked up, if the
721 @verb{|<lisp>|} tag appears within the main text of the document.
723 @example
724 <lisp>(concat "This form gets " "inserted")</lisp>
725 @end example
727 @cindex lisp, and insert command
728 Note that you should not use the @code{insert} command within a set of
729 @verb{|<lisp>|} tags, since the return value from the @verb{|<lisp>|}
730 tags will be automatically inserted into the document.
732 @node Publishing Styles, Getting Help and Reporting Bugs, Markup Rules, Top
733 @comment  node-name,  next,  previous,  up
734 @chapter Publishing Various Types of Documents
735 @cindex publishing styles
737 One of the principle features of Muse is the ability to publish a simple
738 input text to a variety of different output styles.  Muse also makes it
739 easy to create new styles, or derive from an existing style.
741 @menu
742 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
743 * Book::                        Publishing entries into a compilation.
744 * DocBook::                     Publishing in DocBook XML form.
745 * HTML::                        Publishing in HTML or XHTML form.
746 * Journal::                     Keeping a journal or blog.
747 * LaTeX::                       Publishing LaTeX documents.
748 * Poem::                        Publish a poem to LaTex or PDF.
749 * Texinfo::                     Publish entries to Texinfo format or PDF.
750 * Common Elements::             Common functionality shared by styles.
751 * Deriving Styles::             Deriving a new style from an existing
752                                   one.
753 @end menu
755 @node Blosxom, Book, Publishing Styles, Publishing Styles
756 @comment  node-name,  next,  previous,  up
757 @section Integrating Muse and pyblosxom.cgi
758 @cindex blog, one-file-per-entry style
760 The Blosxom publishing style publishes a tree of categorised files to a
761 mirrored tree of stories to be served by blosxom.cgi or pyblosxom.cgi.
762 In other words, each blog entry corresponds with one file.
764 @menu
765 * Blosxom Requirements::        Other tools needed to the Blosxom style.
766 * Blosxom Entries::             Format of a Blosxom entry and automation.
767 * Blosxom Options::             Blosxom styles and options provided.
768 @end menu
770 @node Blosxom Requirements, Blosxom Entries, Blosxom, Blosxom
771 @comment  node-name,  next,  previous,  up
772 @subsection Other tools needed to the Blosxom style
774 You will need to have @command{pyblosxom.cgi} or @command{blosxom.cgi}
775 installed on a machine that you have upload access to.
777 The following additional components are required in order to make the
778 date of blog entries display as something sensible.
780 @enumerate
781 @item
782 A script to gather date directives from the entire blog tree into a
783 single file.  The file must associate a blog entry with a date.
785 @item
786 A plugin for (py)blosxom that reads this file.
787 @end enumerate
789 These 2 things are provided for @command{pyblosxom.cgi} in the
790 @file{contrib/pyblosxom} subdirectory.  @file{getstamps.py} provides the
791 former service, while @file{hardcodedates.py} provides the latter
792 service.  Eventually it is hoped that a @command{blosxom.cgi} plugin and
793 script will be found/written.
795 Here is a sample listing from my @file{timestamps} file, which maps
796 each file to a date.  This can really be in any format, as long as your
797 date-gathering script and your plugin can both understand it.
799 @example
800 2005-04-01-14-16 personal/paper_cranes
801 2005-03-21 personal/spring_break_over
802 2004-10-24 personal/finished_free_culture
803 @end example
805 @node Blosxom Entries, Blosxom Options, Blosxom Requirements, Blosxom
806 @comment  node-name,  next,  previous,  up
807 @subsection Format of a Blosxom entry and automation
809 Each Blosxom file must include `#date yyyy-mm-dd', or optionally the
810 longer `#date yyyy-mm-dd-hh-mm', a title (using the #title directive),
811 plus whatever normal content is desired.
813 The date directive is not used directly by @command{pyblosxom.cgi} or
814 this program.  You need to have the two additional items from the former
815 section to make use of this feature.
817 There is a function called @code{muse-blosxom-new-entry} that will
818 automate the process of making a new blog entry.  To make use of it, do
819 the following.
821 @itemize @bullet
822 @item
823 Customize @code{muse-blosxom-base-directory} to the location that your
824 blog entries are stored.
826 @item
827 Assign the @code{muse-blosxom-new-entry} function to a key sequence.  I
828 use the following code to assign this function to @kbd{C-c p l'}.
830 @example
831 (global-set-key "\C-cpl" 'muse-blosxom-new-entry)
832 @end example
834 @item
835 You should create your directory structure ahead of time under your base
836 directory.  These directories, which correspond with category names, may
837 be nested.
839 @item
840 When you enter this key sequence, you will be prompted for the category
841 of your entry and its title.  Upon entering this information, a new file
842 will be created that corresponds with the title, but in lowercase
843 letters and having special characters converted to underscores.  The
844 title and date directives will be inserted automatically.
845 @end itemize
847 @node Blosxom Options, , Blosxom Entries, Blosxom
848 @comment  node-name,  next,  previous,  up
849 @subsection Blosxom styles and options provided
851 The following styles and options are available in the Blosxom publishing
852 style.
854 @emph{Styles provided}
856 @table @code
858 @cindex publishing styles, blosxom-html
859 @item blosxom-html
860 Publish Blosxom entries in HTML form.
862 @cindex publishing styles, blosxom-xhtml
863 @item blosxom-xhtml
864 Publish Blosxom entries in XHTML form.
866 @end table
868 @emph{Options provided}
870 @table @code
872 @item muse-blosxom-extension
873 Default file extension for publishing Blosxom files.
875 @item muse-blosxom-header
876 Header used for publishing Blosxom files.
878 @item muse-blosxom-footer
879 Footer used for publishing Blosxom files.
881 @item muse-blosxom-base-directory
882 Base directory of blog entries, used by @code{muse-blosxom-new-entry}.
884 This is the top-level directory where your blog entries may be found
885 locally.
887 @end table
889 @node Book, DocBook, Blosxom, Publishing Styles
890 @comment  node-name,  next,  previous,  up
891 @section Publishing entries into a compilation
893 This publishing style is used to output ``books'' in LaTeX or PDF
894 format.
896 Each page will become a separate chapter in the book, unless the style
897 keyword @option{:nochapters} is used, in which case they are all run
898 together as if one giant chapter.
900 You will need to call the @code{muse-book-publish-project} function in
901 order to publish this style.  An example of this may be found in John
902 Wiegley's configuration file at @file{examples/johnw/muse-johnw.el}.
904 @emph{Styles provided}
906 @table @code
908 @cindex publishing styles, book-latex
909 @item book-latex
910 Publish a book in LaTeX form.  The header and footer are different than
911 the normal LaTeX publishing mode.
913 @cindex publishing styles, book-pdf
914 @item book-pdf
915 Publish a book in PDF form.  The header and footer are different than
916 the normal PDF publishing mode.
918 @end table
920 @emph{Options provided}
922 @table @code
924 @item muse-book-before-publish-hook
925 A hook run in the book buffer before it is marked up.
927 @item muse-book-after-publish-hook
928 A hook run in the book buffer after it is marked up.
930 @item muse-book-latex-header
931 Header used for publishing books to LaTeX.
933 @item muse-book-latex-footer
934 Footer used for publishing books to LaTeX.
936 @end table
938 @node DocBook, HTML, Book, Publishing Styles
939 @comment  node-name,  next,  previous,  up
940 @section Publishing in DocBook XML form
942 This publishing style is used to generate DocBook XML files.
944 @emph{Styles provided}
946 @table @code
948 @cindex publishing styles, docbook
949 @item docbook
951 @end table
953 @emph{Options provided}
955 @table @code
957 @item muse-docbook-extension
958 Default file extension for publishing DocBook XML files.
960 @item muse-docbook-header
961 Header used for publishing DocBook XML files.
963 @item muse-docbook-footer
964 Footer used for publishing DocBook XML files.
966 @item muse-docbook-publishing-regexps
967 List of markup rules for publishing a Muse page to DocBook XML.
969 @item muse-docbook-markup-function
970 An alist of style types to custom functions for that kind of text.
972 @item muse-docbook-publishing-strings
973 Strings used for marking up text.
975 These cover the most basic kinds of markup, the handling of which
976 differs little between the various styles.
978 @item muse-docbook-markup-specials
979 A table of characters which must be represented specially.
981 @end table
983 @node HTML, Journal, DocBook, Publishing Styles
984 @comment  node-name,  next,  previous,  up
985 @section Publishing in HTML or XHTML form
987 This publishing style is capable of producing HTML or XHTML documents.
989 @emph{Styles provided}
991 @table @code
993 @cindex publishing styles, html
994 @item html
995 Supports publishing to HTML 4.0 and HTML 4.01, Strict or Transitional.
997 @item xhtml
998 Supports publishing to XHTML 1.0 and XHTML 1.1, Strict or Transitional.
1000 @end table
1002 @emph{Options provided}
1004 If an HTML option does not have a corresponding XHTML option, it will
1005 be used for both of these publishing styles.
1007 @table @code
1009 @item muse-html-extension
1010 Default file extension for publishing HTML files.
1012 @item muse-html-style-sheet
1013 Store your stylesheet definitions here.
1015 This is used in @code{muse-html-header}.  You can put raw CSS in here or
1016 a @verb{|<link>|} tag to an external stylesheet.  This text may contain
1017 @verb{|<lisp>|} markup tags.
1019 If you are using XHTML, make sure to close the @verb{|<link>|} tag
1020 properly.
1022 @item muse-html-header
1023 Header used for publishing HTML files.
1025 @item muse-html-footer
1026 Footer used for publishing HTML files.
1028 @item muse-xhtml-header
1029 Header used for publishing XHTML files.
1031 @item muse-xhtml-footer
1032 Footer used for publishing XHTML files.
1034 @item muse-html-anchor-on-word
1035 When true, anchors surround the closest word.
1037 This allows you to select them in a browser (i.e. for pasting), but has
1038 the side-effect of marking up headers in multiple colors if your header
1039 style is different from your link style.
1041 @item muse-html-table-attributes
1042 The attribute to be used with HTML @verb{|<table>|} tags.
1044 Note that since Muse supports direct insertion of HTML tags, you can
1045 easily create any kind of table you want, as long as each line begins at
1046 column 0 (to prevent it from being blockquoted).
1048 @item muse-html-markup-regexps
1049 List of markup rules for publishing a Muse page to HTML.
1051 @item muse-html-markup-functions
1052 An alist of style types to custom functions for that kind of text.
1054 @item muse-html-markup-strings
1055 Strings used for marking up text as HTML.
1057 These cover the most basic kinds of markup, the handling of which
1058 differs little between the various styles.
1060 @item muse-xhtml-markup-strings
1061 Strings used for marking up text as XHTML.
1063 These cover the most basic kinds of markup, the handling of which
1064 differs little between the various styles.
1066 @item muse-html-markup-tags
1067 A list of tag specifications, for specially marking up HTML.
1068 @xref{muse-publish-markup-tags}, for more information.
1070 @item muse-html-markup-specials
1071 A table of characters which must be represented specially.  By default,
1072 this includes @samp{"}, @samp{<}, @samp{>}, and @samp{&}.
1074 @item muse-html-meta-http-equiv
1075 The http-equiv attribute used for the HTML @verb{|<meta>|} tag.
1077 @item muse-html-meta-content-type
1078 The content type used for the HTML @verb{|<meta>|} tag.
1080 If you are striving for XHTML 1.1 compliance, you may want to change
1081 this to ``application/xhtml+xml''.
1083 @item muse-html-meta-content-encoding
1084 The charset to append to the HTML @verb{|<meta>|} tag.
1086 If set to the symbol 'detect, use @code{muse-html-encoding-map} to try
1087 and determine the HTML charset from emacs's coding.  If set to a string,
1088 this string will be used to force a particular charset.
1090 @item muse-html-charset-default
1091 The default HTML meta charset to use if no translation is found in
1092 @code{muse-html-encoding-map}.
1094 @item muse-html-encoding-default
1095 The default Emacs buffer encoding to use in published files.
1096 This will be used if no special characters are found.
1098 @item muse-html-encoding-map
1099 An alist mapping emacs coding systems to appropriate HTML charsets.
1100 Use the base name of the coding system (i.e. without the -unix).
1102 @end table
1104 @node Journal, LaTeX, HTML, Publishing Styles
1105 @comment  node-name,  next,  previous,  up
1106 @section Keeping a journal or blog
1107 @cindex journal
1108 @cindex blog, journal style
1110 The module facilitates the keeping and publication of a journal.  When
1111 publishing to HTML, it assumes the form of a web log, or blog.
1113 The input format for each entry is as follows.
1115 @example
1116   * 20040317: Title of entry
1118   Text for the entry.
1120   <qotd>
1121   "You know who you are. It comes down to a simple gut check: You
1122   either love what you do or you don't. Period." -- P. Bronson
1123   </qotd>
1124 @end example
1126 The "qotd", or Quote of the Day, is entirely optional.  When generated
1127 to HTML, this entry is rendered as the following.
1129 @example
1130   <div id="entry">
1131     <div id="entry-qotd">
1132       <h3>Quote of the Day:</h3>
1133       <p>"You know who you are. It comes down to a simple gut
1134         check: You either love what you do or you don't. Period."
1135         -- P. Bronson</p>
1136     </div>
1137     <div id="entry-body">
1138       <div id="entry-head">
1139         <div id="entry-date">
1140           <span class="date">March 17, 2004</span>
1141         </div>
1142         <div id="entry-title">
1143           <h2>Title of entry</h2>
1144         </div>
1145       </div>
1146       <div id="entry-text">
1147         <p>Text for the entry.</p>
1148       </div>
1149     </div>
1150   </div>
1151 @end example
1153 The plurality of "div" tags makes it possible to display the entries in
1154 any form you wish, using a CSS style.
1156 Also, an .RDF file can be generated from your journal by publishing it
1157 with the "rdf" style.  It uses the first two sentences of the first
1158 paragraph of each entry as its "description", and auto-generates tags
1159 for linking to the various entries.
1161 @emph{Styles provided}
1163 @table @code
1165 @cindex publishing styles, journal-html
1166 @item journal-html
1167 Publish journal entries as an HTML document.
1169 @cindex publishing styles, journal-xhtml
1170 @item journal-xhtml
1171 Publish journal entries as an XHTML document.
1173 @cindex publishing styles, journal-latex
1174 @item journal-latex
1175 Publish journal entries as a LaTeX document.
1177 @cindex publishing styles, journal-pdf
1178 @item journal-pdf
1179 Publish journal entries as a PDF document.
1181 @cindex publishing styles, journal-book-latex
1182 @item journal-book-latex
1183 Publish journal entries as a LaTeX book.
1185 @cindex publishing styles, journal-book-pdf
1186 @item journal-book-pdf
1187 Publish journal entries as a PDF book.
1189 @cindex publishing styles, journal-rdf
1190 @cindex publishing styles, RSS 1.0
1191 @item journal-rdf
1192 Publish journal entries as an RDF file (RSS 1.0).
1194 @cindex publishing styles, journal-rss
1195 @cindex publishing styles, RSS 2.0
1196 @item journal-rss
1197 Publish journal entries as an RSS file (RSS 2.0).
1199 @end table
1201 @emph{Options provided}
1203 @table @code
1205 @item muse-journal-heading-regexp
1206 A regexp that matches a journal heading.
1208 Paren group 1 is the ISO date, group 2 is the optional category, and
1209 group 3 is the optional heading for the entry.
1211 @item muse-journal-date-format
1212 Date format to use for journal entries.
1214 @item muse-journal-html-heading-regexp
1215 A regexp that matches a journal heading from an HTML document.
1217 Paren group 1 is the ISO date, group 2 is the optional category, and
1218 group 3 is the optional heading for the entry.
1220 @item muse-journal-html-entry-template
1221 Template used to publish individual journal entries as HTML.
1223 @item muse-journal-latex-section
1224 Template used to publish a LaTeX section.
1226 @item muse-journal-latex-subsection
1227 Template used to publish a LaTeX subsection.
1229 @item muse-journal-latex-markup-tags
1230 A list of tag specifications, for specially marking up LaTeX.
1232 @xref{muse-publish-markup-tags}, for more information.
1234 @item muse-journal-rdf-extension
1235 Default file extension for publishing RDF (RSS 1.0) files.
1237 @item muse-journal-rdf-base-url
1238 The base URL of the website referenced by the RDF file.
1240 @item muse-journal-rdf-header
1241 Header used for publishing RDF (RSS 1.0) files.
1243 @item muse-journal-rdf-footer
1244 Footer used for publishing RDF (RSS 1.0) files.
1246 @item muse-journal-rdf-date-format
1247 Date format to use for RDF entries.
1249 @item muse-journal-rdf-entry-template
1250 Template used to publish individual journal entries as RDF.
1252 @item muse-journal-rdf-summarize-entries
1253 If non-nil, include only summaries in the RDF file, not the full data.
1255 @item muse-journal-rss-extension
1256 Default file extension for publishing RSS 2.0 files.
1258 @item muse-journal-rss-base-url
1259 The base URL of the website referenced by the RSS file.
1261 @item muse-journal-rss-header
1262 Header used for publishing RSS 2.0 files.
1264 @item muse-journal-rss-footer
1265 Footer used for publishing RSS 2.0 files.
1267 @item muse-journal-rss-date-format
1268 Date format to use for RSS 2.0 entries.
1270 @item muse-journal-rss-entry-template
1271 Template used to publish individual journal entries as RSS 2.0.
1273 @item muse-journal-rss-enclosure-types-alist
1274 File types that are accepted as RSS enclosures.
1276 This is an alist that maps file extension to content type.
1278 Useful for podcasting.
1280 @item muse-journal-rss-summarize-entries
1281 If non-nil, include only summaries in the RSS file, not the full data.
1283 Many RSS subscribers find this annoying.
1285 @item muse-journal-rss-markup-regexps
1286 List of markup rules for publishing a Muse journal page to RSS.
1288 For more information on the structure of this list,
1289 @xref{muse-publish-markup-regexps}.
1291 @item muse-journal-rss-markup-functions
1292 An alist of style types to custom functions for that kind of text.
1294 For more on the structure of this list,
1295 @xref{muse-publish-markup-functions}.
1297 @end table
1299 @node LaTeX, Poem, Journal, Publishing Styles
1300 @comment  node-name,  next,  previous,  up
1301 @section Publishing LaTeX documents
1303 This publishing style is capable of producing LaTeX or PDF documents.
1305 If you wish to publish PDF documents, you will need to have a good TeX
1306 installation.  For Debian, this can be accomplished by installing the
1307 ``tetex-bin'' and ``tetex-extra'' packages.  TeX fonts are also a must.
1309 @emph{Styles provided}
1311 @table @code
1313 @cindex publishing styles, latex
1314 @item latex
1315 Publish a LaTeX document.
1317 @cindex publishing styles, pdf
1318 @item pdf
1319 Publish a PDF document, using an external LaTeX document conversion
1320 tool.
1322 @cindex publishing styles, latexcjk
1323 @item latexcjk
1324 Publish a LaTeX document with CJK (Chinese) encodings.
1326 @cindex publishing styles, pdfcjk
1327 @item pdfcjk
1328 Publish a PDF document with CJK (Chinese) encodings, using an external
1329 LaTeX document conversion tool.
1331 @end table
1333 @emph{Options provided}
1335 @table @code
1337 @item muse-latex-extension
1338 Default file extension for publishing LaTeX files.
1340 @item muse-latex-pdf-extension
1341 Default file extension for publishing LaTeX files to PDF.
1343 @item muse-latex-header
1344 Header used for publishing LaTeX files.
1346 @item muse-latex-footer
1347 Footer used for publishing LaTeX files.
1349 @item muse-latexcjk-header
1350 Header used for publishing LaTeX files (CJK).
1352 @item muse-latexcjk-footer
1353 Footer used for publishing LaTeX files (CJK).
1355 @item muse-latex-markup-regexps
1356 List of markup regexps for identifying regions in a Muse page.
1358 For more on the structure of this list,
1359 @xref{muse-publish-markup-regexps}.
1361 @item muse-latex-markup-functions
1362 An alist of style types to custom functions for that kind of text.
1364 For more on the structure of this list,
1365 @xref{muse-publish-markup-functions}.
1367 @item muse-latex-markup-strings
1368 Strings used for marking up text.
1370 These cover the most basic kinds of markup, the handling of which
1371 differs little between the various styles.
1373 @item muse-latexcjk-encoding-map
1374 An alist mapping emacs coding systems to appropriate CJK codings.
1375 Use the base name of the coding system (ie, without the -unix).
1377 @item muse-latexcjk-encoding-default
1378 The default Emacs buffer encoding to use in published files.
1380 This will be used if no special characters are found.
1382 @item muse-latex-markup-specials
1383 A table of characters which must be represented specially.
1385 @end table
1387 @node Poem, Texinfo, LaTeX, Publishing Styles
1388 @comment  node-name,  next,  previous,  up
1389 @section Publish a poem to LaTex or PDF
1391 The @code{muse-poem} module makes it easy to attractively publish and
1392 reference poems in the following format, using the "memoir" module for
1393 LaTeX publishing.  It will also markup poems for every other output
1394 style, though none are nearly as pretty.
1396 @example
1397 Title
1400 Body of poem
1403 Annotations, history, notes, etc.
1404 @end example
1406 Once a poem is written in this format, just publish it to PDF using the
1407 @code{poem-pdf} style.  To make an inlined reference to a poem that
1408 you've written -- for example, from a blog page -- there is a "poem" tag
1409 defined by this module.
1411 @example
1412 <poem title="name.of.poem.page">
1413 @end example
1415 Let's assume the template above was called @file{name.of.poem.page};
1416 then the above tag would result in this inclusion.
1418 @example
1419 ** Title
1421 > Body of poem
1422 @end example
1424 John Wiegley uses this module for publishing all of the poems on his
1425 website, which are at
1426 @uref{http://www.newartisans.com/johnw/poems.html}.
1428 @emph{Styles provided}
1430 @table @code
1432 @cindex publishing styles, poem-latex
1433 @item poem-latex
1434 Publish a poem in LaTeX form.
1436 @cindex publishing styles, poem-pdf
1437 @item poem-pdf
1438 Publish a poem to a PDF document.
1440 @cindex publishing styles, chapbook-latex
1441 @item chapbook-latex
1442 Publish a book of poems in LaTeX form.
1444 @cindex publishing styles, chapbook-pdf
1445 @item chapbook-pdf
1446 Publish a book of poems to a PDF document.
1448 @end table
1450 @emph{Options provided}
1452 @table @code
1454 @item muse-poem-latex-header
1455 Header used for publishing LaTeX poems.
1457 @item muse-poem-latex-footer
1458 Footer used for publishing LaTeX files.
1460 @item muse-poem-markup-strings
1461 Strings used for marking up poems.
1463 These cover the most basic kinds of markup, the handling of which
1464 differs little between the various styles.
1466 @item muse-chapbook-latex-header
1467 Header used for publishing a book of poems in LaTeX form.
1469 @item muse-chapbook-latex-footer
1470 Footer used for publishing a book of poems in LaTeX form.
1472 @item muse-poem-chapbook-strings
1473 Strings used for marking up books of poems.
1475 These cover the most basic kinds of markup, the handling of which
1476 differs little between the various styles.
1478 @end table
1480 @node Texinfo, Common Elements, Poem, Publishing Styles
1481 @comment  node-name,  next,  previous,  up
1482 @section Publish entries to Texinfo format or PDF
1484 Rules for publishing a Muse file as a Texinfo article.
1486 @emph{Styles provided}
1488 @table @code
1490 @cindex publishing styles, texi
1491 @item texi
1492 Publish a file in Texinfo form.
1494 @cindex publishing styles, texi
1495 @item info
1496 Generate an Info file from a Muse file.
1498 @cindex publishing styles, info-pdf
1499 @item info-pdf
1500 Publish a file in PDF form.
1502 @end table
1504 @emph{Options provided}
1506 @table @code
1508 @item muse-texinfo-process-natively
1509 If non-nil, use the Emacs `texinfmt' module to make Info files.
1511 @item muse-texinfo-extension
1512 Default file extension for publishing Texinfo files.
1514 @item muse-texinfo-info-extension
1515 Default file extension for publishing Info files.
1517 @item muse-texinfo-pdf-extension
1518 Default file extension for publishing PDF files.
1520 @item muse-texinfo-header
1521 Text to prepend to a Muse page being published as Texinfo.
1523 This text may contain @verb{|<lisp>|} markup tags.
1525 @item muse-texinfo-footer
1526 Text to append to a Muse page being published as Texinfo.
1528 This text may contain @verb{|<lisp>|} markup tags.
1530 @item muse-texinfo-markup-regexps
1531 List of markup rules for publishing a Muse page to Texinfo.
1533 For more on the structure of this list,
1534 @xref{muse-publish-markup-regexps}.
1536 @item muse-texinfo-markup-functions
1537 An alist of style types to custom functions for that kind of text.
1539 For more on the structure of this list, see
1540 @xref{muse-publish-markup-functions}.
1542 @item muse-texinfo-markup-strings
1543 Strings used for marking up text.
1545 These cover the most basic kinds of markup, the handling of which
1546 differs little between the various styles.
1548 @item muse-texinfo-markup-specials
1549 A table of characters which must be represented specially.
1551 @end table
1553 @node Common Elements, Deriving Styles, Texinfo, Publishing Styles
1554 @comment  node-name,  next,  previous,  up
1555 @section Common functionality shared by styles
1556 @cindex publishing styles, common
1558 @table @code
1560 @cindex publishing, markup functions
1561 @anchor{muse-publish-markup-functions}
1562 @item muse-publish-markup-functions
1563 An alist of style types to custom functions for that kind of text.
1565 This is used by publishing styles to attempt to minimize the amount of
1566 custom regexps that each has to define.  @file{muse-publish} provides
1567 rules for the most common types of markup.
1569 Each member of the list is of the following form.
1571 @example
1572   (SYMBOL FUNCTION)
1573 @end example
1575 @itemize @bullet
1576 @item SYMBOL
1577 Describes the type of text to associate with this rule.
1578 @code{muse-publish-markup-regexps} maps regexps to these symbols.
1580 @item FUNCTION
1581 Function to use to mark up this kind of rule if no suitable function is
1582 found through the @option{:functions} tag of the current style.
1583 @end itemize
1585 @cindex publishing, markup regexps
1586 @anchor{muse-publish-markup-regexps}
1587 @item muse-publish-markup-regexps
1588 List of markup rules for publishing a page with Muse.
1590 The rules given in this variable are invoked first, followed by whatever
1591 rules are specified by the current style.
1593 Each member of the list is either a function, or a list of the following
1594 form.
1596 @example
1597   (REGEXP/SYMBOL TEXT-BEGIN-GROUP REPLACEMENT-TEXT/FUNCTION/SYMBOL)
1598 @end example
1600 @itemize @bullet
1601 @item REGEXP
1602 A regular expression, or symbol whose value is a regular expression,
1603 which is searched for using `re-search-forward'.
1605 @item TEXT-BEGIN-GROUP
1606 The matching group within that regexp which denotes the beginning of the
1607 actual text to be marked up.
1609 @item REPLACEMENT-TEXT
1610 A string that will be passed to `replace-match'.
1612 If it is not a string, but a function, it will be called to determine
1613 what the replacement text should be (it must return a string).  If it is
1614 a symbol, the value of that symbol should be a string.
1615 @end itemize
1617 The replacements are done in order, one rule at a time.  Writing
1618 the regular expressions can be a tricky business.  Note that case
1619 is never ignored.  `case-fold-search' is always bound to nil
1620 while processing the markup rules.
1622 @cindex publishing, markup tags
1623 @anchor{muse-publish-markup-tags}
1624 @item muse-publish-markup-tags
1625 A list of tag specifications, for specially marking up text.
1627 XML-style tags are the best way to add custom markup to Muse.  This is
1628 easily accomplished by customizing this list of markup tags.
1630 For each entry, the name of the tag is given, whether it expects a
1631 closing tag and/or an optional set of attributes, and a function that
1632 performs whatever action is desired within the delimited region.
1634 The tags themselves are deleted during publishing, before the function
1635 is called.  The function is called with three arguments, the beginning
1636 and end of the region surrounded by the tags.  If properties are
1637 allowed, they are passed as a third argument in the form of an alist.
1638 The `end' argument to the function is always a marker.
1640 Point is always at the beginning of the region within the tags, when the
1641 function is called.  Wherever point is when the function finishes is
1642 where tag markup will resume.
1644 These tag rules are processed once at the beginning of markup, and once
1645 at the end, to catch any tags which may have been inserted in-between.
1647 @end table
1649 @node Deriving Styles, , Common Elements, Publishing Styles
1650 @comment  node-name,  next,  previous,  up
1651 @section Deriving a new style from an existing one
1652 @cindex publishing styles, deriving
1654 To create a new style from an existing one, use @code{muse-derive-style}
1655 as follows.  This is a good way to fix something you don't like about a
1656 particular publishing style, or to personalize it.
1658 @example
1659 (muse-derive-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
1660 @end example
1662 The derived name is a string defining the new style, such as "my-html".
1663 The base name must identify an existing style, such as "html" -- if you
1664 have loaded @file{muse-html}.  The style parameters are the same as
1665 those used to create a style, except that they override whatever
1666 definitions exist in the base style.  However, some definitions only
1667 partially override.  The following parameters support partial
1668 overriding.
1670 @table @option
1672 @item :functions
1673 If a markup function is not found in the derived style's function list,
1674 the base style's function list will be queried.
1676 @item :strings
1677 If a markup string is not found in the derived style's string list, the
1678 base style's string list will be queried.
1680 @item :before
1681 If this option is specified, it will be consulted rather than the
1682 corresponding value in the derived style.  This applies to the following
1683 options as well.
1685 @item :before-end
1687 @item :after
1689 @end table
1692 @node Getting Help and Reporting Bugs, History, Publishing Styles, Top
1693 @comment  node-name,  next,  previous,  up
1694 @chapter Getting Help and Reporting Bugs
1695 @cindex help, getting
1696 @cindex bugs, reporting
1698 After you have read this guide, if you still have questions about
1699 Muse, or if you have bugs to report, there are several places you can
1702 @itemize @bullet
1704 @item
1705 @uref{http://www.emacswiki.org/cgi-bin/wiki/MuseMode} is the
1706 emacswiki.org page, and anyone may add tips, hints, or bug descriptions
1707 to it.
1709 @item
1710 @uref{http://www.mwolson.org/projects/MuseMode.html} is the web page
1711 that Michael Olson (the current maintainer) made for Muse.
1713 @item
1714 You can join the mailing list at @email{emacs-wiki-discuss@@nongnu.org}
1715 using the subscription form at
1716 @uref{http://mail.nongnu.org/mailman/listinfo/ emacs-wiki-discuss}.
1717 This mailing list provides support for Muse, @command{Planner} and
1718 @command{emacs-wiki}, which is the predecessor of Muse.
1720 There are additional methods for accessing the mailing list, adding
1721 content to it, and searching it.  Consult
1722 @uref{http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMailingList} for
1723 more information.
1725 @item
1726 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
1727 contributors are frequently around and willing to answer your
1728 questions.  The @samp{#muse} channel is also available for
1729 Muse-specific help, and its current maintainer hangs out there.
1731 @item
1732 The maintainer of MuseMode, Michael Olson, may be contacted at
1733 @email{mwolson@@gnu.org}.
1735 @end itemize
1737 @node History, Contributors, Getting Help and Reporting Bugs, Top
1738 @comment  node-name,  next,  previous,  up
1739 @chapter History of This Document
1740 @cindex history, of Muse
1742 @itemize
1743 @item 2004
1744 John Wiegley started Muse upon realizing that EmacsWiki had some serious
1745 limitations. Around February 2004, he started making "emacs-wiki version
1746 3.00 APLHA", which eventually became known as Muse.
1748 Most of those who frequent the emacs-wiki mailing list continued to use
1749 emacs-wiki, mainly because Planner hasn't been ported over to it.
1751 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
1752 John Wiegley's request.
1754 @item 2005
1755 Michael Olson overhauled this document and added many new sections in
1756 preparation for the first release of Muse (3.01).
1758 @end itemize
1760 @node Contributors, GNU General Public License, History, Top
1761 @comment  node-name,  next,  previous,  up
1762 @chapter Contributors to This Documentation
1763 @cindex contributors
1765 The first draft of this document was taken from the emacs-wiki texinfo
1766 manual.  Michael Olson adapted it for Muse and added most of its
1767 content.
1769 John Sullivan did a majority of the work on the emacs-wiki texinfo
1770 manual.
1772 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
1773 emacs-wiki texinfo manual.
1775 @node GNU General Public License, Concept Index, Contributors, Top
1776 @comment  node-name,  next,  previous,  up
1777 @appendix GNU GENERAL PUBLIC LICENSE
1778 @center Version 2, June 1991
1779 @cindex GPL
1780 @cindex GNU General Public License
1782 @c This file is intended to be included in another file.
1784 @display
1785 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
1786 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1788 Everyone is permitted to copy and distribute verbatim copies
1789 of this license document, but changing it is not allowed.
1790 @end display
1792 @appendixsec Preamble
1794   The licenses for most software are designed to take away your
1795 freedom to share and change it.  By contrast, the GNU General Public
1796 License is intended to guarantee your freedom to share and change free
1797 software---to make sure the software is free for all its users.  This
1798 General Public License applies to most of the Free Software
1799 Foundation's software and to any other program whose authors commit to
1800 using it.  (Some other Free Software Foundation software is covered by
1801 the GNU Library General Public License instead.)  You can apply it to
1802 your programs, too.
1804   When we speak of free software, we are referring to freedom, not
1805 price.  Our General Public Licenses are designed to make sure that you
1806 have the freedom to distribute copies of free software (and charge for
1807 this service if you wish), that you receive source code or can get it
1808 if you want it, that you can change the software or use pieces of it
1809 in new free programs; and that you know you can do these things.
1811   To protect your rights, we need to make restrictions that forbid
1812 anyone to deny you these rights or to ask you to surrender the rights.
1813 These restrictions translate to certain responsibilities for you if you
1814 distribute copies of the software, or if you modify it.
1816   For example, if you distribute copies of such a program, whether
1817 gratis or for a fee, you must give the recipients all the rights that
1818 you have.  You must make sure that they, too, receive or can get the
1819 source code.  And you must show them these terms so they know their
1820 rights.
1822   We protect your rights with two steps: (1) copyright the software, and
1823 (2) offer you this license which gives you legal permission to copy,
1824 distribute and/or modify the software.
1826   Also, for each author's protection and ours, we want to make certain
1827 that everyone understands that there is no warranty for this free
1828 software.  If the software is modified by someone else and passed on, we
1829 want its recipients to know that what they have is not the original, so
1830 that any problems introduced by others will not reflect on the original
1831 authors' reputations.
1833   Finally, any free program is threatened constantly by software
1834 patents.  We wish to avoid the danger that redistributors of a free
1835 program will individually obtain patent licenses, in effect making the
1836 program proprietary.  To prevent this, we have made it clear that any
1837 patent must be licensed for everyone's free use or not licensed at all.
1839   The precise terms and conditions for copying, distribution and
1840 modification follow.
1842 @iftex
1843 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1844 @end iftex
1845 @ifinfo
1846 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1847 @end ifinfo
1849 @enumerate 0
1850 @item
1851 This License applies to any program or other work which contains
1852 a notice placed by the copyright holder saying it may be distributed
1853 under the terms of this General Public License.  The ``Program'', below,
1854 refers to any such program or work, and a ``work based on the Program''
1855 means either the Program or any derivative work under copyright law:
1856 that is to say, a work containing the Program or a portion of it,
1857 either verbatim or with modifications and/or translated into another
1858 language.  (Hereinafter, translation is included without limitation in
1859 the term ``modification''.)  Each licensee is addressed as ``you''.
1861 Activities other than copying, distribution and modification are not
1862 covered by this License; they are outside its scope.  The act of
1863 running the Program is not restricted, and the output from the Program
1864 is covered only if its contents constitute a work based on the
1865 Program (independent of having been made by running the Program).
1866 Whether that is true depends on what the Program does.
1868 @item
1869 You may copy and distribute verbatim copies of the Program's
1870 source code as you receive it, in any medium, provided that you
1871 conspicuously and appropriately publish on each copy an appropriate
1872 copyright notice and disclaimer of warranty; keep intact all the
1873 notices that refer to this License and to the absence of any warranty;
1874 and give any other recipients of the Program a copy of this License
1875 along with the Program.
1877 You may charge a fee for the physical act of transferring a copy, and
1878 you may at your option offer warranty protection in exchange for a fee.
1880 @item
1881 You may modify your copy or copies of the Program or any portion
1882 of it, thus forming a work based on the Program, and copy and
1883 distribute such modifications or work under the terms of Section 1
1884 above, provided that you also meet all of these conditions:
1886 @enumerate a
1887 @item
1888 You must cause the modified files to carry prominent notices
1889 stating that you changed the files and the date of any change.
1891 @item
1892 You must cause any work that you distribute or publish, that in
1893 whole or in part contains or is derived from the Program or any
1894 part thereof, to be licensed as a whole at no charge to all third
1895 parties under the terms of this License.
1897 @item
1898 If the modified program normally reads commands interactively
1899 when run, you must cause it, when started running for such
1900 interactive use in the most ordinary way, to print or display an
1901 announcement including an appropriate copyright notice and a
1902 notice that there is no warranty (or else, saying that you provide
1903 a warranty) and that users may redistribute the program under
1904 these conditions, and telling the user how to view a copy of this
1905 License.  (Exception: if the Program itself is interactive but
1906 does not normally print such an announcement, your work based on
1907 the Program is not required to print an announcement.)
1908 @end enumerate
1910 These requirements apply to the modified work as a whole.  If
1911 identifiable sections of that work are not derived from the Program,
1912 and can be reasonably considered independent and separate works in
1913 themselves, then this License, and its terms, do not apply to those
1914 sections when you distribute them as separate works.  But when you
1915 distribute the same sections as part of a whole which is a work based
1916 on the Program, the distribution of the whole must be on the terms of
1917 this License, whose permissions for other licensees extend to the
1918 entire whole, and thus to each and every part regardless of who wrote it.
1920 Thus, it is not the intent of this section to claim rights or contest
1921 your rights to work written entirely by you; rather, the intent is to
1922 exercise the right to control the distribution of derivative or
1923 collective works based on the Program.
1925 In addition, mere aggregation of another work not based on the Program
1926 with the Program (or with a work based on the Program) on a volume of
1927 a storage or distribution medium does not bring the other work under
1928 the scope of this License.
1930 @item
1931 You may copy and distribute the Program (or a work based on it,
1932 under Section 2) in object code or executable form under the terms of
1933 Sections 1 and 2 above provided that you also do one of the following:
1935 @enumerate a
1936 @item
1937 Accompany it with the complete corresponding machine-readable
1938 source code, which must be distributed under the terms of Sections
1939 1 and 2 above on a medium customarily used for software interchange; or,
1941 @item
1942 Accompany it with a written offer, valid for at least three
1943 years, to give any third party, for a charge no more than your
1944 cost of physically performing source distribution, a complete
1945 machine-readable copy of the corresponding source code, to be
1946 distributed under the terms of Sections 1 and 2 above on a medium
1947 customarily used for software interchange; or,
1949 @item
1950 Accompany it with the information you received as to the offer
1951 to distribute corresponding source code.  (This alternative is
1952 allowed only for noncommercial distribution and only if you
1953 received the program in object code or executable form with such
1954 an offer, in accord with Subsection b above.)
1955 @end enumerate
1957 The source code for a work means the preferred form of the work for
1958 making modifications to it.  For an executable work, complete source
1959 code means all the source code for all modules it contains, plus any
1960 associated interface definition files, plus the scripts used to
1961 control compilation and installation of the executable.  However, as a
1962 special exception, the source code distributed need not include
1963 anything that is normally distributed (in either source or binary
1964 form) with the major components (compiler, kernel, and so on) of the
1965 operating system on which the executable runs, unless that component
1966 itself accompanies the executable.
1968 If distribution of executable or object code is made by offering
1969 access to copy from a designated place, then offering equivalent
1970 access to copy the source code from the same place counts as
1971 distribution of the source code, even though third parties are not
1972 compelled to copy the source along with the object code.
1974 @item
1975 You may not copy, modify, sublicense, or distribute the Program
1976 except as expressly provided under this License.  Any attempt
1977 otherwise to copy, modify, sublicense or distribute the Program is
1978 void, and will automatically terminate your rights under this License.
1979 However, parties who have received copies, or rights, from you under
1980 this License will not have their licenses terminated so long as such
1981 parties remain in full compliance.
1983 @item
1984 You are not required to accept this License, since you have not
1985 signed it.  However, nothing else grants you permission to modify or
1986 distribute the Program or its derivative works.  These actions are
1987 prohibited by law if you do not accept this License.  Therefore, by
1988 modifying or distributing the Program (or any work based on the
1989 Program), you indicate your acceptance of this License to do so, and
1990 all its terms and conditions for copying, distributing or modifying
1991 the Program or works based on it.
1993 @item
1994 Each time you redistribute the Program (or any work based on the
1995 Program), the recipient automatically receives a license from the
1996 original licensor to copy, distribute or modify the Program subject to
1997 these terms and conditions.  You may not impose any further
1998 restrictions on the recipients' exercise of the rights granted herein.
1999 You are not responsible for enforcing compliance by third parties to
2000 this License.
2002 @item
2003 If, as a consequence of a court judgment or allegation of patent
2004 infringement or for any other reason (not limited to patent issues),
2005 conditions are imposed on you (whether by court order, agreement or
2006 otherwise) that contradict the conditions of this License, they do not
2007 excuse you from the conditions of this License.  If you cannot
2008 distribute so as to satisfy simultaneously your obligations under this
2009 License and any other pertinent obligations, then as a consequence you
2010 may not distribute the Program at all.  For example, if a patent
2011 license would not permit royalty-free redistribution of the Program by
2012 all those who receive copies directly or indirectly through you, then
2013 the only way you could satisfy both it and this License would be to
2014 refrain entirely from distribution of the Program.
2016 If any portion of this section is held invalid or unenforceable under
2017 any particular circumstance, the balance of the section is intended to
2018 apply and the section as a whole is intended to apply in other
2019 circumstances.
2021 It is not the purpose of this section to induce you to infringe any
2022 patents or other property right claims or to contest validity of any
2023 such claims; this section has the sole purpose of protecting the
2024 integrity of the free software distribution system, which is
2025 implemented by public license practices.  Many people have made
2026 generous contributions to the wide range of software distributed
2027 through that system in reliance on consistent application of that
2028 system; it is up to the author/donor to decide if he or she is willing
2029 to distribute software through any other system and a licensee cannot
2030 impose that choice.
2032 This section is intended to make thoroughly clear what is believed to
2033 be a consequence of the rest of this License.
2035 @item
2036 If the distribution and/or use of the Program is restricted in
2037 certain countries either by patents or by copyrighted interfaces, the
2038 original copyright holder who places the Program under this License
2039 may add an explicit geographical distribution limitation excluding
2040 those countries, so that distribution is permitted only in or among
2041 countries not thus excluded.  In such case, this License incorporates
2042 the limitation as if written in the body of this License.
2044 @item
2045 The Free Software Foundation may publish revised and/or new versions
2046 of the General Public License from time to time.  Such new versions will
2047 be similar in spirit to the present version, but may differ in detail to
2048 address new problems or concerns.
2050 Each version is given a distinguishing version number.  If the Program
2051 specifies a version number of this License which applies to it and ``any
2052 later version'', you have the option of following the terms and conditions
2053 either of that version or of any later version published by the Free
2054 Software Foundation.  If the Program does not specify a version number of
2055 this License, you may choose any version ever published by the Free Software
2056 Foundation.
2058 @item
2059 If you wish to incorporate parts of the Program into other free
2060 programs whose distribution conditions are different, write to the author
2061 to ask for permission.  For software which is copyrighted by the Free
2062 Software Foundation, write to the Free Software Foundation; we sometimes
2063 make exceptions for this.  Our decision will be guided by the two goals
2064 of preserving the free status of all derivatives of our free software and
2065 of promoting the sharing and reuse of software generally.
2067 @iftex
2068 @heading NO WARRANTY
2069 @end iftex
2070 @ifinfo
2071 @center NO WARRANTY
2072 @end ifinfo
2074 @item
2075 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
2076 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
2077 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
2078 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
2079 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
2080 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
2081 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
2082 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
2083 REPAIR OR CORRECTION.
2085 @item
2086 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
2087 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
2088 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
2089 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
2090 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
2091 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
2092 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
2093 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
2094 POSSIBILITY OF SUCH DAMAGES.
2095 @end enumerate
2097 @iftex
2098 @heading END OF TERMS AND CONDITIONS
2099 @end iftex
2100 @ifinfo
2101 @center END OF TERMS AND CONDITIONS
2102 @end ifinfo
2104 @page
2105 @appendixsec Appendix: How to Apply These Terms to Your New Programs
2107   If you develop a new program, and you want it to be of the greatest
2108 possible use to the public, the best way to achieve this is to make it
2109 free software which everyone can redistribute and change under these terms.
2111   To do so, attach the following notices to the program.  It is safest
2112 to attach them to the start of each source file to most effectively
2113 convey the exclusion of warranty; and each file should have at least
2114 the ``copyright'' line and a pointer to where the full notice is found.
2116 @smallexample
2117 @var{one line to give the program's name and a brief idea of what it does.}
2118 Copyright (C) @var{yyyy}  @var{name of author}
2120 This program is free software; you can redistribute it and/or modify
2121 it under the terms of the GNU General Public License as published by
2122 the Free Software Foundation; either version 2 of the License, or
2123 (at your option) any later version.
2125 This program is distributed in the hope that it will be useful,
2126 but WITHOUT ANY WARRANTY; without even the implied warranty of
2127 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2128 GNU General Public License for more details.
2130 You should have received a copy of the GNU General Public License along
2131 with this program; if not, write to the Free Software Foundation, Inc.,
2132 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2133 @end smallexample
2135 Also add information on how to contact you by electronic and paper mail.
2137 If the program is interactive, make it output a short notice like this
2138 when it starts in an interactive mode:
2140 @smallexample
2141 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
2142 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
2143 This is free software, and you are welcome to redistribute it
2144 under certain conditions; type `show c' for details.
2145 @end smallexample
2147 The hypothetical commands @samp{show w} and @samp{show c} should show
2148 the appropriate parts of the General Public License.  Of course, the
2149 commands you use may be called something other than @samp{show w} and
2150 @samp{show c}; they could even be mouse-clicks or menu items---whatever
2151 suits your program.
2153 You should also get your employer (if you work as a programmer) or your
2154 school, if any, to sign a ``copyright disclaimer'' for the program, if
2155 necessary.  Here is a sample; alter the names:
2157 @example
2158 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
2159 `Gnomovision' (which makes passes at compilers) written by James Hacker.
2161 @var{signature of Ty Coon}, 1 April 1989
2162 Ty Coon, President of Vice
2163 @end example
2165 This General Public License does not permit incorporating your program into
2166 proprietary programs.  If your program is a subroutine library, you may
2167 consider it more useful to permit linking proprietary applications with the
2168 library.  If this is what you want to do, use the GNU Library General
2169 Public License instead of this License.
2172 @node Concept Index,  , GNU General Public License, Top
2173 @comment  node-name,  next,  previous,  up
2174 @unnumbered Index
2176 @printindex cp
2178 @bye
2180 @c Local Variables:
2181 @c ispell-local-pdict: "ispell-dict"
2182 @c End: