Include metadate plugin for PyBlosxom with Muse
[muse-el.git] / texi / muse.texi
blob8459d48b46c374b404032e94a6284887714c0db9
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 Emacs Muse version 3.10.
17 Copyright @copyright{} 2004, 2005, 2006,
18 2007 Free Software Foundation, Inc.
20 @quotation
21 Permission is granted to copy, distribute and/or modify this document
22 under the terms of the GNU Free Documentation License, Version 1.2 or
23 any later version published by the Free Software Foundation; with no
24 Invariant Sections, with the Front-Cover texts being ``A GNU
25 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
26 license is included in the section entitled ``GNU Free Documentation
27 License'' in this manual.
29 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
30 this GNU Manual, like GNU software.  Copies published by the Free
31 Software Foundation raise funds for GNU development.''
33 This document is part of a collection distributed under the GNU Free
34 Documentation License.  If you want to distribute this document
35 separately from the collection, you can do so by adding a copy of the
36 license to the document, as described in section 6 of the license.
38 All Emacs Lisp code contained in this document may be used, distributed,
39 and modified without restriction.
40 @end quotation
41 @end copying
43 @titlepage
44 @title Muse manual
45 @subtitle an authoring and publishing environment
46 @subtitle for GNU Emacs and XEmacs
48 @c The following two commands
49 @c start the copyright page.
50 @page
51 @vskip 0pt plus 1filll
52 @insertcopying
53 @end titlepage
55 @c So the toc is printed at the start
56 @contents
58 @ifnottex
59 @node Top, Preface, (dir), (dir)
60 @comment  node-name,  next,  previous,  up
61 @top Muse
63 @insertcopying
64 @end ifnottex
66 @menu
67 * Preface::                     About the documentation.
68 * Introduction::                What is Muse?
69 * Obtaining Muse::              How to get Muse releases and development
70                                   changes.
71 * Installation::                Compiling and installing Muse.
72 * Getting Started::             Setting up Muse and editing files.
73 * Projects::                    Creating and managing Muse projects.
74 * Keystroke Summary::           Keys used in Muse mode.
75 * Markup Rules::                Rules for using markup.
76 * Publishing Styles::           Publishing various types of documents.
77 * Extending Muse::              Making your own publishing styles.
78 * Miscellaneous::               Miscellaneous add-ons, like a minor mode.
79 * Getting Help and Reporting Bugs::  
80 * History::                     History of this document.
81 * Contributors::                Contributors to this documentation.
82 * GNU Free Documentation License::  The license for this documentation.
83 * Concept Index::               Search for terms.
85 @detailmenu
86  --- The Detailed Node Listing ---
88 How to Get Muse Releases and Development Changes
90 * Releases::                    Released versions of Muse.
91 * Development::                 Latest unreleased development changes.
93 Getting Started
95 * Loading Muse::                How to load Muse.
96 * Using Muse Mode::             How to edit files in Muse.
97 * Publishing Files Overview::   Publishing a single file or project.
98 * File Extensions::             Using a different file extension.
100 Creating and Managing Muse Projects
102 * Single Project::              A single-project example.
103 * Multiple Projects::           A multiple-project example.
104 * Projects and Subdirectories::  Publishing subdirectories in projects.
105 * Options for Projects::        Listing of available options for projects.
107 Rules for Using Markup
109 * Paragraphs::                  Paragraphs: centering and quoting.
110 * Headings::                    Levels of headings.
111 * Directives::                  Directives at the beginning of a
112                                   document.
113 * Emphasizing Text::            Bold, italicized, and underlined text.
114 * Footnotes::                   Making notes to be shown at the end.
115 * Verse::                       Indicating poetic stanzas.
116 * Lists::                       Lists of items.
117 * Tables::                      Generation of data tables.
118 * Explicit Links::              Hyperlinks and email addresses with
119                                   descriptions.
120 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
121                                   links.
122 * Images::                      Publishing and displaying images.
123 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
124 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
125                                   for extensibility.
126 * Citations::                   Support for citing other resources.
127 * Comments::                    Lines to omit from published output.
128 * Tag Summary::                 Tags that Muse recognizes.
130 Publishing Various Types of Documents
132 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
133 * Book::                        Publishing entries into a compilation.
134 * ConTeXt::                     Publishing ConTeXt documents.
135 * DocBook::                     Publishing in DocBook XML form.
136 * HTML::                        Publishing in HTML or XHTML form.
137 * Journal::                     Keeping a journal or blog.
138 * LaTeX::                       Publishing LaTeX documents.
139 * Poem::                        Publish a poem to LaTex or PDF.
140 * Texinfo::                     Publish entries to Texinfo format or PDF.
141 * XML::                         Publish entries to XML.
143 Integrating Muse and pyblosxom.cgi
145 * Blosxom Requirements::        Other tools needed for the Blosxom style.
146 * Blosxom Entries::             Format of a Blosxom entry and automation.
147 * Blosxom Options::             Blosxom styles and options provided.
149 Making your own publishing styles
151 * Common Elements::             Common functionality shared by styles.
152 * Deriving Styles::             Deriving a new style from an existing
153                                   one.
155 Common functionality shared by styles
157 * Markup Functions::            Specifying functions to mark up text.
158 * Markup Regexps::              Markup rules for publishing.
159 * Markup Strings::              Strings specific to a publishing style.
160 * Markup Tags::                 Tag specifications for special markup.
161 * Style Elements::              Parameters used for defining styles.
163 Miscellaneous add-ons, like a minor mode
165 * Muse List Edit Minor Mode::   Edit lists easily in other major modes.
167 @end detailmenu
168 @end menu
170 @node Preface, Introduction, Top, Top
171 @comment  node-name,  next,  previous,  up
172 @chapter About the documentation
174 This document describes Muse, which was written by John Wiegley and is
175 now maintained by Michael Olson.  Several versions of this manual are
176 available on-line.
178 @itemize @bullet
179 @item PDF: http://mwolson.org/static/doc/muse.pdf
180 @item HTML (single file): http://mwolson.org/static/doc/muse.html
181 @item HTML (multiple files): http://mwolson.org/static/doc/muse/
182 @end itemize
184 @node Introduction, Obtaining Muse, Preface, Top
185 @comment  node-name,  next,  previous,  up
186 @chapter What is Muse?
188 Emacs Muse (also known as ``Muse'' or ``Emacs-Muse'') is an authoring
189 and publishing environment for Emacs.  It simplifies the process of
190 writing documents and publishing them to various output formats.
192 Muse consists of two main parts: an enhanced text-mode for authoring
193 documents and navigating within Muse projects, and a set of publishing
194 styles for generating different kinds of output.
196 What makes Muse distinct from other text-publishing systems is a modular
197 environment, with a rather simple core, in which "styles" are derived
198 from to create new styles.  Much of Muse's overall functionality is
199 optional.  For example, you can use the publisher without the
200 major-mode, or the mode without doing any publishing; or if you don't
201 load the Texinfo or LaTeX modules, those styles won't be available.
203 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
204 code has been restructured and rewritten, especially its publishing
205 functions.  The focus in this revision is on the authoring and
206 publishing aspects, and the "wikiness" has been removed as a default
207 behavior (available in the optional @file{muse-wiki} module).  CamelCase
208 words are no longer special by default.
210 One of the principal aims in the development of Muse is to make it very
211 easy to produce good-looking, standards-compliant documents.
213 @node Obtaining Muse, Installation, Introduction, Top
214 @comment  node-name,  next,  previous,  up
215 @chapter How to Get Muse Releases and Development Changes
217 @menu
218 * Releases::                    Released versions of Muse.
219 * Development::                 Latest unreleased development changes.
220 @end menu
222 @node Releases, Development, Obtaining Muse, Obtaining Muse
223 @comment  node-name,  next,  previous,  up
224 @section Released versions of Muse
226 Choose to install a release if you want to minimize risk.
228 Errors are corrected in development first.  User-visible changes will be
229 announced on the @email{muse-el-discuss@@gna.org} mailing list.
230 @xref{Getting Help and Reporting Bugs}.
232 @cindex releases, Debian package
233 @cindex Debian package for Muse
234 Debian users can get Muse via apt-get.  The @file{muse-el} package is
235 available both at Michael Olson's APT repository and the official Debian
236 repository.  To make use of the former, add the following line to your
237 @file{/etc/apt/sources.list} file and run @code{apt-get install muse}.
239 @example
240 deb http://mwolson.org/debian/ ./
241 @end example
243 @cindex releases, Ubuntu package
244 @cindex Ubuntu package for Muse
245 Ubuntu users can also get Muse via apt-get.  The @file{muse-el} package
246 is available both at Michael Olson's APT repository and the official
247 Ubuntu repository.  To make use of the former, add the following line to
248 your @file{/etc/apt/sources.list} file and run @code{apt-get install
249 muse}.
251 @example
252 deb http://mwolson.org/ubuntu/ ./
253 @end example
255 The reason for making separate Debian and Ubuntu packages is that this
256 manual is under the GFDL, and Debian will not allow it to be distributed
257 in its main repository.  Ubuntu, on the other hand, permits this manual
258 to be included with the @file{muse-el} package.
260 @cindex releases, from source
261 Alternatively, you can download the latest release from
262 @uref{http://download.gna.org/muse-el/} .
264 @node Development,  , Releases, Obtaining Muse
265 @comment  node-name,  next,  previous,  up
266 @section Latest unreleased development changes
267 @cindex development
269 Choose the development version if you want to live on the bleeding edge
270 of Muse development or try out new features before release.
272 @cindex git version control system, using
273 The git version control system allows you to keep up-to-date with the
274 latest changes to the development version of Muse.  It also allows you
275 to contribute changes (via commits, if you are have developer access to
276 the repository, or via patches, otherwise).  If you would like to
277 contribute to Muse development, it is highly recommended that you use
278 git.
280 If you are new to git, you might find this tutorial helpful:
281 @uref{http://www.kernel.org/pub/software/scm/git/docs/tutorial.html}.
283 Downloading the Muse module with git and staying up-to-date involves
284 the following steps.
286 @enumerate
287 @item Install git.
289 @itemize @bullet
290 @item Debian and Ubuntu: @kbd{apt-get install git-core}.
291 @item Windows: @uref{http://git.or.cz/gitwiki/WindowsInstall}.
292 @item Other operating systems: download, compile, and install the source
293 from @uref{http://www.kernel.org/pub/software/scm/git/}, or find a git
294 package for your operating system.
295 @end itemize
297 @item Download the Muse development branch.
299 If you have developer access to Muse, do:
301 @example
302 git clone ssh://repo.or.cz/srv/git/muse-el.git muse
303 @end example
305 otherwise, do:
307 @example
308 git clone git://repo.or.cz/muse-el.git muse
309 @end example
311 If you are behind a restrictive firewall, and do not have developer
312 access, then do the following instead:
314 @example
315 git clone http://repo.or.cz/r/muse-el.git muse
316 @end example
318 @item List upstream changes that are missing from your local copy.
319 Do this whenever you want to see whether new changes have been committed
320 to Muse.  If you wish, you may skip this step and proceed directly to
321 the ``update'' step.
323 @example
324 # Change to the source directory you are interested in.
325 cd muse
327 # Fetch new changes from the repository, but don't apply them yet
328 git fetch origin
330 # Display log messages for the new changes
331 git log HEAD..origin
332 @end example
334 ``origin'' is git's name for the location where you originally got Muse
335 from.  You can change this location at any time by editing the
336 @file{.git/config} file in the directory where the Muse source was
337 placed.
339 @cindex updating Muse with git
340 @item Update to the latest version by pulling in any missing changes.
342 @example
343 cd muse
344 git pull origin
345 @end example
347 git will show how many files changed, and will provide a visual display
348 for how many lines were changed in each file.
350 @end enumerate
352 There are other ways to interact with the Muse repository.
354 @itemize
355 @item Browse git repo: @uref{http://repo.or.cz/w/muse-el.git}
356 @item Latest development snapshot: @uref{http://mwolson.org/static/dist/muse-latest.tar.gz}
357 @item Latest development snapshot (zip file): @uref{http://mwolson.org/static/dist/muse-latest.zip}
358 @end itemize
360 The latest development snapshot can lag behind the git repo by as much
361 as 20 minutes, but never more than that.
363 @subheading Becoming a Muse developer
364 @cindex developer, becoming
366 If you want commit access to the shared Muse repository, then register
367 an account at @uref{http://repo.or.cz} (be sure to add an SSH key), and
368 contact the current maintainer at @email{mwolson@@gnu.org}.  It would be
369 best to send some patches to the @email{muse-el-discuss@@gna.org}
370 mailing list first, so that he knows that you know what you are doing.
371 @xref{Getting Help and Reporting Bugs}, for instructions on subscribing
372 to the mailing list.
374 You must also be willing to sign a copyright assignment for your changes
375 to Muse, since Muse is a GNU project.  The current maintainer will
376 assist you in this process if you contact him.
378 For information on committing changes to Muse and performing
379 development, please consult
380 @uref{http://emacswiki.org/cgi-bin/wiki/MuseDevelopment}.
382 @node Installation, Getting Started, Obtaining Muse, Top
383 @comment  node-name,  next,  previous,  up
384 @chapter Compiling and Installing Muse
386 Muse may be compiled and installed on your machine.
388 @subheading Compilation
389 @cindex compiling Muse
391 This is an optional step, since Emacs Lisp source code does not
392 necessarily have to be byte-compiled.  Byte-compilation may yield a very
393 slight speed increase.
395 A working copy of Emacs or XEmacs is needed in order to compile Emacs
396 Muse.  By default, the program that is installed with the name
397 @command{emacs} will be used.
399 If you want to use the @command{xemacs} binary to perform the
400 compilation, you must copy @file{Makefile.defs.default} to
401 @file{Makefile.defs} in the top-level directory, and then edit
402 @file{Makefile.defs} as follows.  You can put either a full path to an
403 Emacs or XEmacs binary or just the command name, as long as it is in the
404 @env{PATH}.  Depending on your setup, changes to the @option{PREFIX},
405 @option{ELISPDIR}, and/or @option{INFODIR} variables may also need to be
406 made.
408 @example
409 EMACS    = xemacs
410 SITEFLAG = -no-site-file
411 # Edit the section as necessary
412 install_info = install-info --section "XEmacs 21.4" $(1).info \
413         $(INFODIR)/dir || :
414 @end example
416 Running @code{make} in the top-level directory should compile the Muse
417 source files in the @file{lisp} directory, and generate an autoloads
418 file in @file{lisp/muse-autoloads.el}.
420 @subheading Installation
421 @cindex installing Muse
423 Muse may be installed into your file hierarchy by doing the following.
425 Copy @file{Makefile.defs.default} to @file{Makefile.defs} in the
426 top-level directory, if you haven't done so already.  Then edit the
427 @file{Makefile.defs} file so that @env{ELISPDIR} points to where you
428 want the source and compiled Muse files to be installed and
429 @env{INFODIR} indicates where to put the Muse manual.  As mentioned
430 earlier, you will want to edit @env{EMACS} and @env{SITEFLAG} as shown
431 in the Compilation section if you are using XEmacs.
433 If you are installing Muse on a Debian or Ubuntu system, you might want
434 to change the value of @env{INSTALLINFO} as specified in
435 @file{Makefile.defs}.
437 If you wish to install Muse to different locations than the defaults
438 specify, edit @file{Makefile.defs} accordingly.
440 Run @code{make} as a normal user, if you haven't done so already.
442 Run @code{make install} as the root user if you have chosen installation
443 locations that require root permissions.
445 @subheading ELPA
446 @cindex ELPA package for Muse
448 For those used to installing software packages, there will be a
449 @code{muse} package available in the Emacs Lisp Package Archive
450 (abbreviated ``ELPA'') as of the 3.10 release of Muse.  This package
451 will be compiled and installed automatically in a user-specific
452 location.  For more information on ELPA, see
453 @uref{http://tromey.com/elpa/}.
455 @node Getting Started, Projects, Installation, Top
456 @comment  node-name,  next,  previous,  up
457 @chapter Getting Started
458 @cindex settings
460 @menu
461 * Loading Muse::                How to load Muse.
462 * Using Muse Mode::             How to edit files in Muse.
463 * Publishing Files Overview::   Publishing a single file or project.
464 * File Extensions::             Using a different file extension.
465 @end menu
467 @node Loading Muse, Using Muse Mode, Getting Started, Getting Started
468 @comment  node-name,  next,  previous,  up
469 @section How to Load Muse
470 @cindex settings, init file
472 To use Muse, add the directory containing its files to your
473 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
474 the authoring mode, and the styles you wish to publish to.  An example
475 follows.
477 @lisp
478 (add-to-list 'load-path "<path to Muse>")
480 (require 'muse-mode)     ; load authoring mode
482 (require 'muse-html)     ; load publishing styles I use
483 (require 'muse-latex)
484 (require 'muse-texinfo)
485 (require 'muse-docbook)
487 (require 'muse-project)  ; publish files in projects
488 @end lisp
490 An easy way of seeing which settings are available and changing settings
491 is to use the Muse customization interface.  To do this, type
492 @kbd{M-x customize-group muse RET}.  Each of the options has its own
493 documentation.  Options are grouped logically according to what effect
494 they have.
496 @node Using Muse Mode, Publishing Files Overview, Loading Muse, Getting Started
497 @comment  node-name,  next,  previous,  up
498 @section How to Edit Files in Muse
499 @cindex editing Muse files
501 Muse Mode should automatically be activated when you visit a file with a
502 ``.muse'' extension.  One such file is @file{QuickStart.muse}, which is
503 available in the @file{examples} directory of the Muse distribution.
504 You can tell that Muse Mose has been activated by checking for the text
505 ``Muse'' in your mode line.  If Muse Mode has not been activated, you
506 may activate it by type @kbd{M-x muse-mode RET}.
508 You will notice that Muse files are highlighted very simply.  Links are
509 colored blue, headings are large and bold text, and @verb{|<example>|}
510 tags are colored in grey.
512 There are several different ways to edit things like links, which hide
513 the underlying Muse markup.  One way is to toggle font-locking off by
514 hitting @kbd{C-c C-l}, which is also @kbd{M-x font-lock-mode}, make
515 changes, and then hit @kbd{C-c C-l} again to toggle font-locking back
516 on.  Another way is just to move into the text and edit it.  Markup can
517 also be removed by normal deletion methods, though some side effects
518 might require a second deletion.
520 For the particular case of editing links, it is easiest to move to the
521 link and do @kbd{C-c C-e}, which is also @kbd{M-x
522 muse-edit-link-at-point}.  This prompts you for the link and its
523 description, using the previous contents of the link as initial values.
524 A link to another Muse file may be created by hitting @kbd{C-c TAB l}.
525 A link to a URL may be created by hitting @kbd{C-c TAB u}.  Links may be
526 followed by hitting @kbd{RET} on them.
528 If you want to add a new list item, this may by accomplished by hitting
529 @kbd{M-RET}.  This will put a dash and some spaces on the screen.  The
530 dash is the Muse markup that indicates a list item.  It is also possible
531 to created ``nested'' lists with this command, by adjusting the number
532 of spaces in front of the dashes.  If you have lists with long lines,
533 you can move to a list item and hit @kbd{M-q} to wrap it onto multiple
534 lines.
536 @node Publishing Files Overview, File Extensions, Using Muse Mode, Getting Started
537 @comment  node-name,  next,  previous,  up
538 @section Publishing a Single File or Project
539 @cindex editing Muse files
541 The command @kbd{M-x muse-project-publish-this-file} will publish the
542 current document to any available publishing style (a publishing style
543 is an output format, like HTML or Docbook), placing the output in the
544 current directory.  If you are in Muse Mode, this command will be bound
545 to @kbd{C-c C-t}.  If the file has been published recently, and its
546 contents have not changed, running @kbd{C-c C-t} again will not publish
547 the file.  To force publishing in this case, do @kbd{C-u C-c C-t}.
549 If you have set up projects and are visiting a file that is part of a
550 project, then @kbd{C-c C-t} will restrict the output formats to those
551 which are used by the project, and will automatically publish to the
552 output directory defined by the project.  If you want to publish to a
553 different directory or use a different format, then use @kbd{C-c M-C-t},
554 which is also @kbd{M-x muse-publish-this-file}.
556 If the currently opened file is part of a defined project in
557 @code{muse-project-alist}, it (and the rest of the changed files in a
558 project) may be published using @kbd{C-c C-p}.
560 @node File Extensions, , Publishing Files Overview, Getting Started
561 @comment  node-name,  next,  previous,  up
562 @section Using a Different File Extension
563 @cindex file extension, specifying
565 By default, Muse expects all project files to have the file extension
566 @file{.muse}. Files without this extension will not be associated with
567 Muse mode and will not be considered part of any project, even if they
568 are within a project directory.
570 If you don't want to use @file{.muse}, you can customize the extension
571 by setting the value of @code{muse-file-extension}.
573 If you don't want to use any extension at all, and want Muse to
574 autodetect project files based on their location, then add the following
575 to your Muse settings file.
577 @lisp
578 (setq muse-file-extension nil
579       muse-mode-auto-p t)
580 @end lisp
582 Note that if you chose to have @code{muse-file-extension} set to
583 @code{nil}, you may have trouble if your @file{.emacs} file or other
584 init scripts attempt to visit a Muse file.  (A very common example of
585 this is if you use Planner with Muse and run @code{(plan)} from your
586 @file{.emacs}.)  If you wish to visit Muse files from your
587 @file{.emacs}, be sure to also add the following additional code before
588 any such visits happen:
590 @lisp
591 (add-hook 'find-file-hooks 'muse-mode-maybe)
592 @end lisp
595 @node Projects, Keystroke Summary, Getting Started, Top
596 @comment  node-name,  next,  previous,  up
597 @chapter Creating and Managing Muse Projects
598 @cindex projects
600 Often you will want to publish all the files within a directory to a
601 particular set of output styles automatically.  To support, Muse
602 allows for the creation of "projects".
604 @menu
605 * Single Project::              A single-project example.
606 * Multiple Projects::           A multiple-project example.
607 * Projects and Subdirectories::  Publishing subdirectories in projects.
608 * Options for Projects::        Listing of available options for projects.
609 @end menu
611 @node Single Project, Multiple Projects, Projects, Projects
612 @comment  node-name,  next,  previous,  up
613 @section A Single-Project Example
614 @cindex projects, single
616 Here is a sample project, which may be defined in your @file{.emacs}
617 file.
619 @lisp
620 (setq muse-project-alist
621       '(("Website" ("~/Pages" :default "index")
622          (:base "html" :path "~/public_html")
623          (:base "pdf" :path "~/public_html/pdf"))))
624 @end lisp
626 The above defines a project named "website", whose files are located
627 in the directory @file{~/Pages}.  The default page to visit is
628 @file{index}.  When this project is published, each page will be
629 output as HTML to the directory @file{~/public_html}, and as PDF to
630 the directory @file{~/public_html/pdf}.  Within any project page, you
631 may create a link to other pages using the syntax @samp{[[pagename]]}.
633 If you would like to include only some files from a directory in a Muse
634 project, you may use a regexp in place of @file{~/Pages} in the example.
636 @node Multiple Projects, Projects and Subdirectories, Single Project, Projects
637 @comment  node-name,  next,  previous,  up
638 @section A Multiple-Project Example
639 @cindex projects, multiple
641 It is possible to specify multiple projects.  Here is an example of
642 three projects: a generic website, a projects area, and a day-planner
643 (the day-planner part requires Planner Mode---see
644 @uref{http://wjsullivan.net/PlannerMode.html} to get it).
646 @lisp
647 (setq muse-project-alist
648       '(("Website" ("~/Pages" :default "index")
649          (:base "html" :path "~/public_html"))
650         (("Projects" ("~/Projects" :default "index")
651          (:base "xhtml"
652                 :path "~/public_html/projects"
653                 :exclude "/TopSecret")
654          (:base "pdf"
655                 :path "~/public_html/projects/pdf"
656                 :exclude "/TopSecret")))
657         ("Plans" ("~/Plans"
658                   :default "TaskPool"
659                   :major-mode planner-mode
660                   :visit-link planner-visit-link)
661          (:base "planner-xhtml"
662                 :path "~/public_html/plans"))))
663 @end lisp
665 The @option{:major-mode} attribute specifies which major to use when
666 visiting files in this directory.
668 The @option{:visit-link} attribute specifies the function to call when
669 visiting links.
671 The @option{:exclude} attribute has a regexp that matches files to never
672 publish.
674 @node Projects and Subdirectories, Options for Projects, Multiple Projects, Projects
675 @comment  node-name,  next,  previous,  up
676 @section Publishing Subdirectories in Projects
677 @cindex projects, subdirectories
679 If you want to publish a directory and all of its subdirectories, Muse
680 provides two convenience functions that together generate the proper
681 rules for you.  Note that we use the backtick to begin this
682 muse-project-alist definition, rather than a single quote.
684 @lisp
685 (setq muse-project-alist
686       `(("Website" ("~/Pages" :default "index")
687          (:base "html" :path "~/public_html"))
688         ("Blog" (,@@(muse-project-alist-dirs "~/Blog")
689                  :default "index")
690          ;; Publish this directory and its subdirectories.  Arguments
691          ;; are as follows.  The above `muse-project-alist-dirs' part
692          ;; is also needed.
693          ;;   1. Source directory
694          ;;   2. Output directory
695          ;;   3. Publishing style
696          ;;   remainder: Other things to put in every generated style
697          ,@@(muse-project-alist-styles "~/Blog"
698                                       "~/public_html/blog"
699                                       "blosxom"))))
700 @end lisp
702 The @code{muse-project-alist-dirs} function takes a directory and
703 returns it and all of its subdirectories in a list.
705 The @code{muse-project-alist-styles} function is explained by the
706 comments above.
708 The ``blosxom'' text is the name of another publishing style, much like
709 ``html''.  @xref{Blosxom}, for further information about it.  You can
710 use any publishing style you like for the third argument to
711 @code{muse-project-alist-styles}.
713 @node Options for Projects, , Projects and Subdirectories, Projects
714 @comment  node-name,  next,  previous,  up
715 @section Listing of Available Options for Projects
716 @cindex projects, options
717 @cindex muse-project-alist, reference
719 This is a listing of all of the various options (or, more accurately:
720 attributes) that may be specified in @code{muse-project-alist}.
722 Each muse-project-alist entry looks like this:
724 @example
725   (PROJECT-NAME (SOURCES)
726     OUTPUTS)
727 @end example
729 We refer to these names below.
731 ``Attributes'', which compose SOURCES and OUTPUTS, are a pair of values.
732 The first value is a keyword, like @option{:default}.  The second part
733 is the value associated with that keyword, such as the text ``index''.
734 If you are familiar with Emacs Lisp property lists, the concept is
735 similar to that, except that in the SOURCES section, single directories
736 can be interspersed with two-value attributes.
738 @subheading Project Name
740 This is a string that indicates the name of the project.  It is
741 primarily used for publishing interwiki links with the
742 @file{muse-wiki.el} module.
744 @subheading Sources
746 This part of a muse-project-alist entry consists of two-value
747 attributes, and also directory names.  If you are publishing a book, the
748 order of directories and attributes is significant.
750 The minimal content for the sources section is a list of directories.
752 @table @option
754 @item :book-chapter
755 Indicates a new chapter of a book.  The text of the title of the chapter
756 comes immediately after this keyword.
758 @item :book-end
759 Indicates the end of a book.  Directories listed after this one are
760 ignored when publishing a book.  The value ``t'' (without quotes) should
761 come immediately after this keyword.
763 @item :book-funcall
764 A function to call while publishing a book.  This is useful for doing
765 something just after a particular chapter.
767 @item :book-part
768 Indicates the beginning of a new part of the book.  The text of the
769 title should come immediately after this keyword.
771 @item :book-style
772 Indicate a particular publishing style to use for this part of the book.
773 If this is specified, it should come just after a @option{:part}
774 attribute.
776 @item :default
777 The default page to visit when browsing a project.  Also, if you are
778 using the @file{muse-wiki.el} module, publishing a link to just a
779 project's name will cause it to link to this default file.
781 @item :force-publish
782 This specifies a list of pages which should be published every time a
783 project is published (by using @kbd{C-c C-p}, for example), regardless
784 of whether their contents have changed.  This is useful for updating
785 Index pages, pages that use the @verb{|<include>|} tag, and other pages
786 that have dynamically-generated content.
788 @item :major-mode
789 This specifies the major mode to use when visiting files in this
790 project.  The default is @code{muse-mode}.
792 @item :nochapters
793 This indicates that while publishing a book, do not automatically create
794 chapters.  Values which may follow this are nil (the default, which
795 means that we automatically create chapters), or non-nil, which means
796 that we manually specify chapters with the @option{:book-chapter}
797 attribute,
799 @item :publish-project
800 Indicates which function we should call when publishing a project.
802 @item :set
803 This specifies a list of variables and values to set when publishing a
804 project.  The list should be a property list, which is in the form:
806 @example
807 (VAR1 VALUE1 VAR2 VALUE2 ...)
808 @end example
810 @item :visit-link
811 Specifies the function to call when visiting a link.  The default is
812 @code{muse-visit-link-default}.  The arguments for that function should
813 be (1) the link and (2) whether to visit the link in a new window.
815 @end table
817 @subheading Outputs
819 This part of a muse-project-alist entry is composed of lists of
820 attributes.  Each list is called an ``output style''.
822 The minimal content for an output style is a @option{:base} attribute
823 and a @option{:path} attribute.
825 @table @option
827 @item :base
828 Publishing style to use, such as ``html'', ``docbook'', or ``pdf''.
830 @item :base-url
831 An external URL which can be used to access published files.  This is
832 mainly used by the @file{muse-wiki} module when publishing links between
833 two separate projects, if the projects are served on different domains.
835 It is also used by the @file{muse-journal} module to create the RSS or
836 RDF output.
838 @item :exclude
839 Exclude items matching a regexp from being published.  The regexp should
840 usually begin with "/".
842 @item :include
843 Only include items matching a regexp when publishing.  The regexp should
844 usually begin with "/".
846 @item :path
847 The directory in which to store published files.
849 @item :timestamps
850 A file containing the timestamps (that is, time of creation) for files
851 in this project.  It might eventually used by the @file{muse-blosxom}
852 module, but this option is not currently in use by any Muse code.
854 @end table
857 @node Keystroke Summary, Markup Rules, Projects, Top
858 @comment  node-name,  next,  previous,  up
859 @chapter Keys Used in Muse Mode
860 @cindex keystrokes
862 This is a summary of keystrokes available in every Muse buffer.
864 @table @kbd
866 @item C-c C-a (`muse-index')
867 Display an index of all known Muse pages.
869 @item C-c C-b (`muse-find-backlinks')
870 Find all pages that link to this page.
872 @item C-c C-e (`muse-edit-link-at-point')
873 Edit link at point.
875 @item C-c C-f (`muse-project-find-file')
876 Open another Muse page.  Prompt for the name.
878 @item C-c C-i l, C-c TAB l (`muse-insert-relative-link-to-file')
879 Insert a link to a file interactively.
881 @item C-c C-i t, C-c TAB t (`muse-insert-tag')
882 Insert a tag interactively.
884 @item C-c C-i u, C-c TAB u (`muse-insert-url')
885 Insert a URL interactively.
887 @item C-c C-l (`font-lock-mode')
888 Toggle font lock / highlighting for the current buffer.
890 @item C-c C-p (`muse-project-publish')
891 Publish any Muse pages that have changed.
893 @item C-c C-s (`muse-search')
894 Find text in all files of the current project.
896 @item C-c C-t (`muse-project-publish-this-file')
897 Publish the currently-visited file.  Prompt for the style if the current
898 file can be published using more than one style.
900 @item C-c C-S-t, or C-c C-M-t (`muse-publish-this-file')
901 Publish the currently-visited file.  Prompt for both the style and
902 output directory.
904 @item C-c C-v (`muse-browse-result')
905 Show the published result of this page.
907 @item C-c = (`muse-what-changed')
908 Diff this page against the last backup version.
910 @item TAB
911 Move to the next Wiki reference.
913 @item S-TAB
914 Move to the previous Wiki reference.
916 @item M-TAB
917 Complete the name of a page from the current project at point.
919 @item M-RET
920 Insert a new list item at point, indenting properly.
922 @item C-<
923 Decrease the indentation of the list item at point.
925 @item C->
926 Increase the indentation of the list item at point.
928 @item M-x muse-colors-toggle-inline-images RET
929 Toggle display of inlined images on/off.
931 @end table
934 @node Markup Rules, Publishing Styles, Keystroke Summary, Top
935 @comment  node-name,  next,  previous,  up
936 @chapter Rules for Using Markup
937 @cindex markup
939 A Muse document uses special, contextual markup rules to determine how
940 to format the output result.  For example, if a paragraph is indented,
941 Muse assumes it should be quoted.
943 There are not too many markup rules, and all of them strive to be as
944 simple as possible so that you can focus on document creation, rather
945 than formatting.
947 @menu
948 * Paragraphs::                  Paragraphs: centering and quoting.
949 * Headings::                    Levels of headings.
950 * Directives::                  Directives at the beginning of a
951                                   document.
952 * Emphasizing Text::            Bold, italicized, and underlined text.
953 * Footnotes::                   Making notes to be shown at the end.
954 * Verse::                       Indicating poetic stanzas.
955 * Lists::                       Lists of items.
956 * Tables::                      Generation of data tables.
957 * Explicit Links::              Hyperlinks and email addresses with
958                                   descriptions.
959 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
960                                   links.
961 * Images::                      Publishing and displaying images.
962 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
963 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
964                                   for extensibility.
965 * Citations::                   Support for citing other resources.
966 * Comments::                    Lines to omit from published output.
967 * Tag Summary::                 Tags that Muse recognizes.
968 @end menu
970 @node Paragraphs, Headings, Markup Rules, Markup Rules
971 @comment  node-name,  next,  previous,  up
972 @section Paragraphs: centering and quoting
973 @cindex paragraphs
975 Paragraphs in Muse must be separated by a blank line.
977 @cindex paragraphs, centered
978 @subheading Centered paragraphs and quotations
980 A line that begins with six or more columns of whitespace (either tabs
981 or spaces) indicates a centered paragraph.  Alternatively, you can use
982 the @verb{|<center>|} tag to surround regions that are to be published as
983 centered paragraphs.
985 @cindex paragraphs, quoted
986 @cindex quotations
987 But if a line begins with whitespace, though less than six columns, it
988 indicates a quoted paragraph.  Alternatively, you can use the
989 @verb{|<quote>|} tag to surround regions that are to be published as
990 quoted paragraphs.
992 @cindex examples
993 @cindex monospace, rendering blocks
994 @cindex HTML, rendering blocks in monospace
995 @subheading Literal paragraphs
997 The @verb{|<example>|} tag is used for examples, where whitespace should
998 be preserved, the text rendered in monospace, and any characters special
999 to the output style escaped.
1001 @cindex literal text
1002 @cindex HTML, inserting a raw block
1003 There is also the @verb{|<literal>|} tag, which causes a marked block to
1004 be entirely left alone.  This can be used for inserting a hand-coded
1005 HTML blocks into HTML output, for example.
1007 If you want some text to only be inserted when publishing to a
1008 particular publishing style, use the @option{style} attribute for the
1009 @verb{|<literal>|} tag.  An example follows.
1011 @example
1012 <literal style="latex">
1013 A LaTeX-based style was used in the publishing of this document.
1014 </literal>
1015 @end example
1017 This will leave the region alone if the current publishing style is
1018 ``latex'' or based on ``latex'', such as ``pdf'', and delete the region
1019 otherwise.  It is also possible to leave the text alone only for one
1020 particular style, rather than its derivations, by adding
1021 @code{exact="t"} to the tag.
1023 @node Headings, Directives, Paragraphs, Markup Rules
1024 @comment  node-name,  next,  previous,  up
1025 @section Levels of headings
1026 @cindex headings
1028 A heading becomes a chapter or section in printed output -- depending on
1029 the style.  To indicate a heading, start a new paragraph with one or
1030 more asterices, followed by a space and the heading title.  Then begin
1031 another paragraph to enter the text for that section.
1033 All levels of headings will be published.  Most publishing styles only
1034 distinguish the between the first 4 levels, however.
1036 @example
1037 * First level
1039 ** Second level
1041 *** Third level
1043 **** Fourth level
1044 @end example
1046 @node Directives, Emphasizing Text, Headings, Markup Rules
1047 @comment  node-name,  next,  previous,  up
1048 @section Directives at the beginning of a document
1049 @cindex directives
1051 Directives are lines beginning with the @samp{#} character that come
1052 before any paragraphs or sections in the document.  Directives are of
1053 the form ``#directive content of directive''.  You can use any
1054 combination of uppercase and lowercase letters for directives, even if
1055 the directive is not in the list below.
1057 The @code{muse-publishing-directive} function may be used in header and
1058 footer text to access directives.  For example, to access the
1059 @code{#title} directive, use @code{(muse-publishing-directive "title")}.
1061 The following is a list of directives that Muse uses.
1063 @table @code
1064 @cindex #author
1065 @item #author
1066 The author of this document.
1068 If this is not specified, Muse will attempt to figure it out from the
1069 @code{user-full-name} variable.
1071 @cindex #date
1072 @item #date
1073 The date that the document was last modified.
1075 This is used by publishing styles that are able to embed the date
1076 information.
1078 @cindex #desc
1079 @item #desc
1080 A short description of this document.
1082 This is used by the @code{journal} publishing style to embed information
1083 inside of an RSS/RDF feed.
1085 @cindex #title
1086 @item #title
1087 The title of this document.
1089 If this is not specified, the name of the file is used.
1091 @end table
1093 @node Emphasizing Text, Footnotes, Directives, Markup Rules
1094 @comment  node-name,  next,  previous,  up
1095 @section Bold, italicized, and underlined text
1096 @cindex emphasizing text
1097 @cindex underlining text
1098 @cindex italicizing text
1099 @cindex verbatim text
1100 @cindex monospace, rendering words
1102 To emphasize text, surround it with certain specially recognized
1103 characters.
1105 @example
1106 *emphasis*
1107 **strong emphasis**
1108 ***very strong emphasis***
1109 _underlined_
1110 =verbatim and monospace=
1111 @end example
1113 @cindex WYSIWYG
1114 While editing a Muse document in Muse mode, these forms of emphasis will
1115 be highlighted in a WYSIWYG manner.  Each of these forms may span
1116 multiple lines.
1118 Verbatim text will be colored as gray by default.  To change this,
1119 customize @code{muse-verbatim-face}.
1121 You can also use the @verb{|<code>|} tag to indicate verbatim and
1122 monospace text.  This is handy for regions that have an ``='' in them.
1124 @node Footnotes, Verse, Emphasizing Text, Markup Rules
1125 @comment  node-name,  next,  previous,  up
1126 @section Making notes to be shown at the end
1127 @cindex footnotes
1129 A footnote reference is simply a number in square brackets.  To define
1130 the footnote, place this definition at the bottom of your file.
1131 @samp{footnote-mode} can be used to greatly facilitate the creation of
1132 these kinds of footnotes.
1134 Footnotes are defined by the same number in brackets occurring at the
1135 beginning of a line.  Use footnote-mode's @kbd{C-c ! a} command, to very
1136 easily insert footnotes while typing.  Use @kbd{C-x C-x} to return to
1137 the point of insertion.
1139 @node Verse, Lists, Footnotes, Markup Rules
1140 @comment  node-name,  next,  previous,  up
1141 @section Indicating poetic stanzas
1142 @cindex verses
1143 @cindex poetry
1145 Poetry requires that whitespace be preserved, but without resorting to
1146 monospace.  To indicate this, use the following markup, reminiscent of
1147 email quotations.
1149 @example
1150 > A line of Emacs verse;
1151 >   forgive its being so terse.
1152 @end example
1154 You can also use the @verb{|<verse>|} tag, if you prefer.
1156 @example
1157 <verse>
1158 A line of Emacs verse;
1159   forgive its being so terse.
1160 </verse>
1161 @end example
1163 @cindex verses, multiple stanzas
1164 Multiple stanzas may be included in one set of @verb{|<verse>|} tags, as
1165 follows.
1167 @example
1168 <verse>
1169 A line of Emacs verse;
1170   forgive its being so terse.
1172 In terms of terse verse,
1173   you could do worse.
1174 </verse>
1175 @end example
1177 @node Lists, Tables, Verse, Markup Rules
1178 @comment  node-name,  next,  previous,  up
1179 @section Lists of items
1180 @cindex lists
1182 Lists are given using special characters at the beginning of a line.
1183 Whitespace must occur before bullets or numbered items, to distinguish
1184 from the possibility of those characters occurring in a real sentence.
1186 @cindex lists, bullets
1187 These are rendered as a bullet list.
1189 @example
1190 Normal text.
1192  - bullet item one
1193  - bullet item two
1194 @end example
1196 @cindex lists, enumerated
1197 An enumerated list follows.
1199 @example
1200 Normal text.
1202  1. Enum item one
1203  2. Enum item two
1204 @end example
1206 @cindex lists, definitions
1207 Here is a definition list.
1209 @example
1210 Term1 ::
1211   This is a first definition
1212   And it has two lines;
1213   no, make that three.
1215 Term2 :: This is a second definition
1216 @end example
1218 @subheading Nested lists
1220 @cindex lists, nested
1221 It is possible to nest lists of the same or different kinds.  The
1222 ``level'' of the list is determined by the amount of initial whitespace.
1224 @example
1225 Normal text.
1227  - Level 1, bullet item one
1228    1. Level 2, enum item one
1229    2. Level 2, enum item two
1230  - Level 1, bullet item two
1231    1. Level 2, enum item three
1232    2. Level 2, enum item four
1233       term :: definition
1234 @end example
1236 @subheading Breaking list items
1238 @cindex lists, breaking lines
1239 If you want to break up a line within any list type, just put one blank
1240 line between the end of the previous line and the beginning of the next
1241 line, using the same amount of initial indentation.
1243 @example
1244  - bullet item 1, line 1
1246    bullet item 1, line 2
1248    1. Enum line 1
1250       Enum line 2
1252  - bullet item 2, line 1
1254    bullet item 2, line 2
1255 @end example
1257 @node Tables, Explicit Links, Lists, Markup Rules
1258 @comment  node-name,  next,  previous,  up
1259 @section Generation of data tables
1260 @cindex tables
1262 @cindex tables, simple
1263 Only very simple tables are supported.  The syntax is as follows.
1265 @example
1266 Double bars  || Separate header fields
1268 Single bars   | Separate body fields
1269 Here are more | body fields
1271 Triple bars ||| Separate footer fields
1272 @end example
1274 Some publishing styles require header fields to come first, then footer
1275 fields, and then the body fields.  You can use any order for these
1276 sections that you like, and Muse will re-order them for you at
1277 publish-time.
1279 If you wish to disable table generation for one Muse file, add the
1280 directive @samp{#disable-tables t} to the top of the file.
1282 @subheading Other table formats
1284 @cindex tables, orgtbl-mode style
1285 It is possible to publish very basic Orgtbl-mode style tables.
1287 @example
1288 | org  | style | table |
1289 |------+-------+-------|
1290 | one  |       | one   |
1291 | two  | two   |       |
1292 |      | three | three |
1293 |------+-------+-------|
1294 | more | stuff |       |
1295 @end example
1297 If you are used to the way that Org Mode publishes these tables, then
1298 customize `muse-html-table-attributes' to the following, in order to get
1299 a similar kind of output.
1301 @example
1302 border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"
1303 @end example
1305 @cindex tables, table.el style
1306 @file{table.el} style tables are also supported, as long as
1307 @file{table.el} itself supports outputting tables for a particular
1308 publishing style.  At the time of this writing, the ``html'', ``latex'',
1309 and ``docbook'' styles are supported by @file{table.el}.  Styles derived
1310 from these styles will also work.
1312 @example
1313 +---+-----+---+
1314 |   | one | 1 |
1315 +---+-----+---+
1316 | b | two |   |
1317 +---+-----+---+
1318 | c |     | 3 |
1319 +---+-----+---+
1320 @end example
1322 @node Explicit Links, Implicit Links, Tables, Markup Rules
1323 @comment  node-name,  next,  previous,  up
1324 @section Hyperlinks and email addresses with descriptions
1325 @cindex links, explicit
1327 A hyperlink can reference a URL, or another page within a Muse
1328 project.  In addition, descriptive text can be specified, which should
1329 be displayed rather than the link text in output styles that supports
1330 link descriptions.  The syntax is as follows.
1332 @example
1333 [[link target][link description]]
1334 [[link target without description]]
1335 @end example
1337 Thus, the current maintainer's homepage for Muse can be found
1338 @samp{[[http://mwolson.org/projects/EmacsMuse.html][here]]},
1339 or at @samp{[[http://mwolson.org/projects/EmacsMuse.html]]}.
1341 @node Implicit Links, Images, Explicit Links, Markup Rules
1342 @comment  node-name,  next,  previous,  up
1343 @section Bare URLs, WikiNames, and InterWiki links
1344 @cindex links, implicit
1345 @cindex links, raw
1347 @cindex URLs
1348 @cindex Email addresses
1350 A URL or email address encountered in the input text is published as a
1351 hyperlink.  These kind of links are called @dfn{implicit links} because
1352 they are not separated from the rest of the Muse document in any way.
1354 Some characters in URLs will prevent Muse from recognizing them as
1355 implicit links. If you want to link to a URL containing spaces or any of
1356 the characters ``][,"'`()<>^'', you will have to make the link
1357 explicit. The punctuation characters ``.,;:'' are also not recognized as
1358 part of a URL when they appear at its end. For information on how to
1359 make an explicit link, see @ref{Explicit Links,,Hyperlinks and email
1360 addresses with descriptions}.
1362 @cindex WikiNames
1363 If the @command{muse-wiki} module is loaded, another form of implicit
1364 link will be made available.  WikiNames, which are typed in CamelCase,
1365 are highlighted and published as links, provided that the file they
1366 refer to exists.
1368 Customization of WikiName recognition may be accomplished by editing the
1369 @code{muse-wiki-wikiword-regexp} option and subsequently running
1370 @code{(muse-configure-highlighting 'muse-colors-markupmuse-colors-markup)}.
1371 If you use the Customize interface, the latter will be done
1372 automatically.
1374 @cindex InterWiki links
1375 @cindex inter-project links
1376 The @command{muse-wiki} module also allows for InterWiki links.  These
1377 are similar to WikiWords, but they specify both the project and page of
1378 a file.  The names of your project entries in @code{muse-project-alist}
1379 will be used as InterWiki names by default.  Several examples follow.
1381 @example
1382 Blog::DocumentingMuse
1383 Projects#EmacsMuse
1384 Website
1385 @end example
1387 In the first case, the interwiki delimiter is @samp{::}, @samp{Blog} is
1388 the project name, and @samp{DocumentingMuse} is the page name.  In the
1389 second example, @samp{#} is the interwiki delimiter.  If the name of a
1390 project occurs by itself in text, like the third case, it will be
1391 colorized and published as a link to the default page of the given
1392 project.
1394 Customization of interwiki links may be accomplished by editing the
1395 @code{muse-wiki-interwiki-alist} option.
1397 It is also possible to link to an anchor in an interwiki document.  This
1398 is called a ``three-part link''.  Examples of this follow.
1400 @example
1401 Blog::DocumentingMuse#anchor1
1402 Projects#EmacsMuse#anchor2
1403 @end example
1405 @node Images, Horizontal Rules and Anchors, Implicit Links, Markup Rules
1406 @comment  node-name,  next,  previous,  up
1407 @section Publishing and displaying images
1408 @cindex images
1409 @cindex links, with images
1410 @subheading Image links
1412 Links to images may be used in either the target or the description, or
1413 both.  Thus, the following code will publish as a clickable image that
1414 points to @url{http://mwolson.org/}.
1416 @example
1417 [[http://mwolson.org/][/static/logos/site-logo.png]]
1418 @end example
1420 Normally, images in the link part will be inlined.
1422 If you want these images to be published as links instead, place the
1423 text ``URL:'' immediately in front of the link text.  An example
1424 follows.
1426 @example
1427 [[URL:http://mwolson.org/static/logos/site-logo.png]]
1428 @end example
1430 @cindex images, displaying
1431 @cindex images, local
1432 @subheading Displaying images in Muse mode
1433 If a link to a locally-available image is encountered in the link
1434 description, Muse mode will attempt to display it if your version of
1435 Emacs permits this.
1437 This behavior may be toggled with @kbd{C-c C-i}, or disabled permanently
1438 by setting the @code{muse-colors-inline-images} option to @code{nil}.
1440 The method for finding images may be altered by customizing the
1441 @code{muse-colors-inline-image-method} option.  One useful value for
1442 this option is @code{muse-colors-use-publishing-directory}, which tells
1443 Muse mode to look in the directory where the current file will be
1444 published.  The default is to look in the current directory.  Relative
1445 paths like @samp{../pics/} should work for either setting.
1447 Eventually, it is hoped that Muse will be able to copy images from the a
1448 ``source'' directory to a publishing directory by customizing
1449 @code{muse-project-alist}, but this has not been implemented yet.
1451 @cindex images, without descriptions
1452 @cindex images, inlined
1453 @subheading Publishing simple images
1454 The following example will display correctly and publish correctly if a
1455 @acronym{PNG} file called @file{TestLogo.png} exists in the
1456 @file{../pics/} directory.  If text is on the same line as the picture,
1457 it will remain so in the output.
1459 @example
1460 [[../myimage.png]]
1461 @end example
1463 @cindex images, captions
1464 @subheading Publishing images with captions
1465 If you want to add a caption to an image, use the following syntax.
1466 This will center the image (if the output format supports it) and add a
1467 centered caption below the picture.  Formats that do not support
1468 centering the image will instead leave it against the left margin.
1470 @example
1471 [[../pics/mycat.png][My cat Dexter]]
1472 @end example
1474 Images with captions may only occur in their own paragraphs, with no
1475 text on the same line.  Otherwise, the published output will not be
1476 syntactically correct.
1478 @node Horizontal Rules and Anchors, Embedded Lisp, Images, Markup Rules
1479 @comment  node-name,  next,  previous,  up
1480 @section Inserting a horizontal line or anchor
1482 @cindex horizontal rules
1483 @cindex dashes
1484 @subheading Horizontal Rules
1486 Four or more dashes indicate a horizontal rule.  Be sure to put blank
1487 lines around it, or it will be considered part of the proceeding or
1488 following paragraph!
1490 @cindex anchors
1491 @cindex links, with target on same page
1492 @subheading Anchors
1494 If you begin a line with "#anchor" -- where "anchor" can be any word
1495 that doesn't contain whitespace -- it defines an anchor at that point
1496 into the document.  This point can be referenced using "page#anchor" as
1497 the target in a Muse link.
1499 @node Embedded Lisp, Citations, Horizontal Rules and Anchors, Markup Rules
1500 @comment  node-name,  next,  previous,  up
1501 @section Evaluating Emacs Lisp code in documents for extensibility
1502 @cindex lisp, embedded
1504 Arbitrary kinds of markup can be achieved using the @verb{|<lisp>|} tag,
1505 which is the only Muse tag supported in a style's header and footer
1506 text.  With the @verb{|<lisp>|} tag, you may generated whatever output
1507 text you wish.  The inserted output will get marked up, if the
1508 @verb{|<lisp>|} tag appears within the main text of the document.
1510 @example
1511 <lisp>(concat "This form gets " "inserted")</lisp>
1512 @end example
1514 @cindex lisp, and insert command
1515 Note that you should not use the @code{insert} command within a set of
1516 @verb{|<lisp>|} tags, since the return value from the @verb{|<lisp>|}
1517 tags will be automatically inserted into the document.
1519 It is also possible to treat the output as if it were surrounded by the
1520 @verb{|<example>|}, @verb{|<src>|}, or @verb{|<verse>|} tags, by
1521 specifying ``example'', ``src'', or ``verse'' as the @option{markup}
1522 attribute of the @verb{|<lisp>|} tag.
1524 @example
1525 <lisp markup="example">
1526 (concat "Insert" " me")
1527 </lisp>
1528 @end example
1530 Other languages also have tags that cause source code to be evaluated.
1531 @xref{Tag Summary}, for details.
1533 @node Citations, Comments, Embedded Lisp, Markup Rules
1534 @comment  node-name,  next,  previous,  up
1535 @section Support for citing other resources
1536 @cindex citations
1537 @cindex tags, <cite>
1539 @subheading Example
1541 Here is an example of what citations look like in a Muse document.
1543 @example
1544 #bibsource REFDB
1546 * Title
1547 ** Subtitle
1549 Some text before <cite>Miller1999</cite> and after the citation.
1551 This is an author-only citation <cite type="author">Miller1999</cite>.
1553 And this is a year-only citation <cite type="year">Miller1999</cite>.
1555 Finally, this is a multi-head citation
1556 <cite>Miller1999,Andrews2005</cite>.
1557 @end example
1559 @subheading Overview
1561 The @code{#bibsource} directive defines the source of the
1562 bibliographies.  The following sources are possible.
1564 @itemize @bullet
1565 @item DocBook + RefDB:
1566 the string "REFDB"
1568 @item LaTeX + bibtex:
1569 the name of an appropriate bibtex file
1571 @item LaTeX + RefDB:
1572 if the input file is called "foo.muse", then set this to "foo.bib"
1573 @end itemize
1575 Citations are encoded as @verb{|<cite>|} elements which enclose the
1576 citation keys as they are defined in the bibliography file or database.
1577 In multi-head citations, the citation keys have to be separated by
1578 colons or semicolons.  The @code{latex} and @code{docbook} styles
1579 translate these to the proper separator automatically.
1581 The @verb{|<cite>|} elements take an optional ``type'' attribute that
1582 defines how the citation is rendered.  If the attribute is missing,
1583 you'll get a regular citation according to the bibliography style,
1584 e.g.'' (Miller et al., 1999)''.  If the attribute is set to "author",
1585 only the name of the author(s) will be rendered.  Accordingly, "year"
1586 will cause the year to be printed.  This is useful to create citations
1587 like this:
1589 @example
1590 Miller et al. had already shown in a previous publication (1999) that
1591 this is not going to work.
1592 @end example
1594 Remember that refdb-mode (the Emacs interface to RefDB) can retrieve
1595 references by simply marking the citation key and running the
1596 @code{refdb-getref-by-field-on-region} command.  Later versions of
1597 @code{refdb-mode} will also allow to insert references as Muse citations
1598 (which is already implemented for DocBook, TEI, and LaTeX documents).
1600 You may have noticed that there is no element to indicate the position
1601 of the bibliography.  The latter is always created at a valid position
1602 close to the end of the document.  The functions
1603 @code{muse-docbook-bibliography} and @code{muse-latex-bibliography} are
1604 called in the header or footer to generate this content, so it is
1605 possible to change the exact position.
1607 @node Comments, Tag Summary, Citations, Markup Rules
1608 @comment  node-name,  next,  previous,  up
1609 @section Lines to omit from published output
1610 @cindex comments
1611 @cindex publishing, omitting lines
1613 Use the following syntax to indicate a comment.  Comments will not be
1614 published.
1616 @example
1617 ; Comment text goes here.
1618 @end example
1620 That is, only a semi-colon at the beginning of a line, followed by a
1621 literal space, will cause that line to be treated as a comment.
1623 You can alternatively surround the region with the @verb{|<comment>|}
1624 tag.
1626 If you wish the comment to be published, but just commented out using
1627 the comment syntax of the output format, then set
1628 @option{muse-publish-comments-p} to non-nil.
1630 @node Tag Summary, , Comments, Markup Rules
1631 @comment  node-name,  next,  previous,  up
1632 @section Tags that Muse recognizes
1633 @cindex tags
1634 @cindex inserting files at publish time
1635 @cindex publishing, including markup in headers and footers
1636 @cindex publishing, inserting files
1638 Muse has several built-in tags that may prove useful during publishing.
1639 @xref{muse-publish-markup-tags}, to see how to customize the tags that
1640 Muse uses, as well as make your own tags.
1642 @subheading Syntax
1644 If a tag takes arguments, it will look like this, where ``tagname'' is
1645 the name of the tag.
1647 @example
1648 <tagname arg1="string1" arg2="string2">
1649 @end example
1651 If you want the tag to look like it came straight from an XHTML
1652 document, you can alternatively do the following.
1654 @example
1655 <tagname arg1="string1" arg2="string2" />
1656 @end example
1658 If a tag surrounds some text, it will look like this.
1660 @example
1661 <tagname>Some text</tagname>
1662 @end example
1664 If a tag surrounds a large region, it will look like this.
1666 @example
1667 <tagname>
1668 Some text.
1669 Some more text.
1670 </tagname>
1671 @end example
1673 @subheading Tag listing
1675 This is the complete list of tags that Muse accepts, including those
1676 that were mentioned in previous sections.
1678 @table @samp
1680 @item <cite>
1681 Insert a citation to another source.
1683 This takes the argument @option{type}, which indicates the type of
1684 citation.  The valid types are "author" and "year".  If this argument is
1685 omitted, include both author and year in the citation.
1687 The bibliography to use for the citation may be specified by the
1688 @option{#bibsource} directive.
1690 @xref{Citations}, for additional information.
1692 @item <class>
1693 If publishing to HTML, surround the given text with a @verb{|<span>|}
1694 tag.  It takes one argument called ``name'' that specifies the ``class''
1695 attribute of the @verb{|<span>|} tag.
1697 If publishing to a different format, do nothing extra to the text.
1699 @item <code>
1700 Treat the text surrounded by the tag as if they were enclosed in equal
1701 signs, that is, make it monospace.
1703 @item <command>
1704 Run a command on the region, replacing the region with the result of the
1705 command.  The command is specified with the ``interp'' argument.  If no
1706 value for ``interp'' is given, pass the entire region to the shell.
1708 The ``markup'' argument controls how this section is marked up.
1710 If it is omitted, publish the region with the normal Muse rules.
1712 If "nil", do not mark up the region at all, but prevent Muse from
1713 further interpreting it.
1715 If "example", treat the region as if it was surrounded by the
1716 @verb{|<example>|} tag.
1718 If "src", treat the included text as if it was surrounded by the
1719 @verb{|<src>|} tag.  You should also specify the ``lang'' attribute if
1720 doing this.
1722 If "verse", treat the region as if it was surrounded by the
1723 @verb{|<verse>|} tag, to preserve newlines.
1725 Otherwise, it should be the name of a function to call, with the buffer
1726 narrowed to the region.
1728 @item <comment>
1729 Treat the entire region as a comment.  If the option
1730 @var{muse-publish-comments-p} is nil, delete the region, otherwise
1731 publish it using the comment syntax of the current publishing style.
1733 @item <contents>
1734 Publish a Table of Contents.  This will either be inserted in-place or
1735 at the beginning of the document, depending on your publishing style.
1736 It does not have a delimiting tag.
1738 By default, only 2 levels of headings will be included in the generated
1739 Table of Contents.  To change this globally, customize the
1740 @var{muse-publish-contents-depth} option.  To change this only for the
1741 current tag, use the ``depth'' argument.
1743 @item <example>
1744 Publish the region in monospace, preserving the newlines in the region.
1745 This is useful for snippets of code.
1747 @item <include>
1748 Insert the given file at the current location during publishing.  The
1749 basic use of this tag is as follows, replacing ``included_file'' with
1750 the name of the file that you want to include.
1752 @example
1753 <include file="included_file">
1754 @end example
1756 The ``markup'' argument controls how this section is marked up.
1758 If it is omitted, publish the included text with the normal Muse
1759 rules.
1761 If "nil", do not mark up the included text at all.
1763 If "example", treat the included text as if it was surrounded by the
1764 @verb{|<example>|} tag.
1766 If "src", treat the included text as if it was surrounded by the
1767 @verb{|<src>|} tag.  You should also specify the ``lang'' attribute if
1768 doing this.
1770 If "verse", treat the included text as if it was surrounded by the
1771 @verb{|<verse>|} tag, to preserve newlines.
1773 Otherwise, it should be the name of a function to call after inserting
1774 the file with the buffer narrowed to the section inserted.
1776 @item <lisp>
1777 Evaluate the Emacs Lisp expressions between the initial and ending tags.
1778 The result is then inserted into the document, so you do not need to
1779 explicitly call @code{insert}.  All text properties are removed from the
1780 resulting text.
1782 This tag takes the ``markup'' argument.  See the description of
1783 @verb{|<command>|} for details.
1785 @item <literal>
1786 Make sure that the text enclosed by this tag is published without
1787 escaping it in any way.  This is useful for inserting markup directly
1788 into the published document, when Muse does not provide the desired
1789 functionality.
1791 @item <markup>
1792 Mark up the text between the initial and ending tags.  The markup
1793 command to use may be specified by the ``function'' argument.  The
1794 standard Muse markup routines are used by default if no ``function''
1795 argument is provided.
1797 This is useful for marking up regions in headers and footers.  One
1798 example that comes to mind is generating a published index of all of the
1799 files in the current project by doing the following.
1801 @example
1802 <markup><lisp>(muse-index-as-string t t)</lisp></markup>
1803 @end example
1805 @item <perl>
1806 Run the @command{perl} language interpreter on the region, replacing the
1807 region with the result of the command.
1809 This tag takes the ``markup'' argument.  See the description of
1810 @verb{|<command>|} for details.
1812 @item <python>
1813 Run the @command{python} language interpreter on the region, replacing
1814 the region with the result of the command.
1816 This tag takes the ``markup'' argument.  See the description of
1817 @verb{|<command>|} for details.
1819 @item <quote>
1820 Publish the region as a blockquote.  This will either be inserted
1821 in-place or at the beginning of the document, depending on your
1822 publishing style.  It does not have a delimiting tag.
1824 @item <ruby>
1825 Run the @command{ruby} language interpreter on the region, replacing the
1826 region with the result of the command.
1828 This tag takes the ``markup'' argument.  See the description of
1829 @verb{|<command>|} for details.
1831 @item <src>
1832 Publish the region using htmlize.
1833 The language to use may be specified by the ``lang'' attribute.
1835 Muse will look for a function named @var{lang}-mode, where @var{lang} is
1836 the value of the ``lang'' attribute.
1838 This tag requires htmlize 1.34 or later in order to work.  If this is
1839 not satisfied, or the current publishing style is not HTML-based, Muse
1840 will publish the region like an @verb{|<example>|} tag.
1842 @item <verbatim>
1843 This is used when you want to prevent Muse from trying to interpret some
1844 markup.  Surround the markup in @verb{|<verbatim>|} and
1845 @verb{|</verbatim>|}, and it will not be interpreted.
1847 This tag was used often in previous versions of Muse because they did
1848 not support whole-document escaping of specials.  Now, it will only be
1849 needed for other tags, and perhaps footnotes as well.
1851 @item <verse>
1852 Preserve the newlines in the region.  In formats like HTML, newlines are
1853 removed by default, hence the need for this tag.  In other publishing
1854 styles, this tag may cause the text to be indented slightly in a way
1855 that looks nice for poetry and prose.
1857 @end table
1859 @node Publishing Styles, Extending Muse, Markup Rules, Top
1860 @comment  node-name,  next,  previous,  up
1861 @chapter Publishing Various Types of Documents
1862 @cindex publishing styles
1864 One of the principle features of Muse is the ability to publish a simple
1865 input text to a variety of different output styles.  Muse also makes it
1866 easy to create new styles, or derive from an existing style.
1868 @menu
1869 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
1870 * Book::                        Publishing entries into a compilation.
1871 * ConTeXt::                     Publishing ConTeXt documents.
1872 * DocBook::                     Publishing in DocBook XML form.
1873 * HTML::                        Publishing in HTML or XHTML form.
1874 * Journal::                     Keeping a journal or blog.
1875 * LaTeX::                       Publishing LaTeX documents.
1876 * Poem::                        Publish a poem to LaTex or PDF.
1877 * Texinfo::                     Publish entries to Texinfo format or PDF.
1878 * XML::                         Publish entries to XML.
1879 @end menu
1881 @node Blosxom, Book, Publishing Styles, Publishing Styles
1882 @comment  node-name,  next,  previous,  up
1883 @section Integrating Muse and pyblosxom.cgi
1884 @cindex blog, one-file-per-entry style
1886 The Blosxom publishing style publishes a tree of categorised files to a
1887 mirrored tree of stories to be served by blosxom.cgi or pyblosxom.cgi.
1888 In other words, each blog entry corresponds with one file.
1890 @menu
1891 * Blosxom Requirements::        Other tools needed for the Blosxom style.
1892 * Blosxom Entries::             Format of a Blosxom entry and automation.
1893 * Blosxom Options::             Blosxom styles and options provided.
1894 @end menu
1896 @node Blosxom Requirements, Blosxom Entries, Blosxom, Blosxom
1897 @comment  node-name,  next,  previous,  up
1898 @subsection Other tools needed for the Blosxom style
1900 You will need to have @command{pyblosxom.cgi} or @command{blosxom.cgi}
1901 installed on a machine that you have upload access to.
1903 The major difficulty in both of these programs is specifying the date of
1904 the entries.  Both programs rely on the file modification time rather
1905 than any data contained in the entries themselves.  A plugin is needed
1906 in order for these programs to be able to get the correct date.
1908 @subheading PyBlosxom
1910 There are two different ways of accomplishing this in pyblosxom.  The
1911 first way involves gathering the timestamps (as specified by the
1912 @code{#date} directive) into one file and then sending that file along
1913 with published entries to the webserver.
1915 The second will read each file at render time and parse the
1916 @code{#postdate} directive.  Muse will translate the @code{#date}
1917 directive into @code{#postdate} at publish time, so you don't have to do
1918 any extra work.
1920 @subsubheading Placing timestamps in one file
1922 The following additional components are required in order to make the
1923 date of blog entries display as something sensible.
1925 @enumerate
1926 @item
1927 A script to gather date directives from the entire blog tree into a
1928 single file.  The file must associate a blog entry with a date.
1930 @item
1931 A plugin for (py)blosxom that reads this file.
1932 @end enumerate
1934 These 2 things are provided for @command{pyblosxom.cgi} in the
1935 @file{contrib/pyblosxom} subdirectory.  @file{getstamps.py} provides the
1936 former service, while @file{hardcodedates.py} provides the latter
1937 service.
1939 Here is a sample listing from my @file{timestamps} file, which maps
1940 each file to a date.  This can really be in any format, as long as your
1941 date-gathering script and your plugin can both understand it.
1943 @example
1944 2005-04-01-14-16 personal/paper_cranes
1945 2005-03-21 personal/spring_break_over
1946 2004-10-24 personal/finished_free_culture
1947 @end example
1949 The script @file{contrib/pyblosxom/make-blog} demonstrates how to call
1950 @file{getstamps.py}.  Note that you will need to set the current
1951 directory to where your Muse files are, execute @file{getstamps.py}, and
1952 then move the generated timestamps file to your publishing directory.
1954 @subsubheading Getting timestamp from entry while rendering
1956 Alternately, the pyblosxom metadate plugin may be used.  On the plus
1957 side, there is no need to run a script to gather the date.  On the
1958 downside, each entry is read twice rather than once when the page is
1959 rendered.  Set the value of @code{muse-blosxom-use-metadate} to non-nil
1960 to enable adding a @code{#postdate} directive to all published files.
1961 You can do this by:
1963 @example
1964 M-x customize-variable RET muse-blosxom-use-metadate RET
1965 @end example
1967 With the metadate plugin installed in pyblosxom, the date set in this
1968 directive will be used instead of the file's modification time.  The
1969 plugin is included with Muse at @file{contrib/pyblosxom/metadate.py}.
1971 @node Blosxom Entries, Blosxom Options, Blosxom Requirements, Blosxom
1972 @comment  node-name,  next,  previous,  up
1973 @subsection Format of a Blosxom entry and automation
1975 Each Blosxom file must include `#date yyyy-mm-dd', or optionally the
1976 longer `#date yyyy-mm-dd-hh-mm', a title (using the @code{#title}
1977 directive), plus whatever normal content is desired.
1979 The date directive is not used directly by @command{pyblosxom.cgi} or
1980 this program.  You need to have the two additional items from the former
1981 section to make use of this feature.
1983 There is a function called @code{muse-blosxom-new-entry} that will
1984 automate the process of making a new blog entry.  To make use of it, do
1985 the following.
1987 @itemize @bullet
1988 @item
1989 Customize @code{muse-blosxom-base-directory} to the location that your
1990 blog entries are stored.
1992 @item
1993 Assign the @code{muse-blosxom-new-entry} function to a key sequence.  I
1994 use the following code to assign this function to @kbd{C-c p l'}.
1996 @example
1997 (global-set-key "\C-cpl" 'muse-blosxom-new-entry)
1998 @end example
2000 @item
2001 You should create your directory structure ahead of time under your base
2002 directory.  These directories, which correspond with category names, may
2003 be nested.
2005 @item
2006 When you enter this key sequence, you will be prompted for the category
2007 of your entry and its title.  Upon entering this information, a new file
2008 will be created that corresponds with the title, but in lowercase
2009 letters and having special characters converted to underscores.  The
2010 title and date directives will be inserted automatically.
2011 @end itemize
2013 @node Blosxom Options, , Blosxom Entries, Blosxom
2014 @comment  node-name,  next,  previous,  up
2015 @subsection Blosxom styles and options provided
2017 The following styles and options are available in the Blosxom publishing
2018 style.
2020 @subheading Styles provided
2022 @table @code
2024 @cindex publishing styles, blosxom-html
2025 @item blosxom-html
2026 Publish Blosxom entries in HTML form.
2028 @cindex publishing styles, blosxom-xhtml
2029 @item blosxom-xhtml
2030 Publish Blosxom entries in XHTML form.
2032 @end table
2034 @subheading Options provided
2036 @table @code
2038 @item muse-blosxom-extension
2039 Default file extension for publishing Blosxom files.
2041 @item muse-blosxom-header
2042 Header used for publishing Blosxom files.
2044 This may be text or a filename.
2046 @item muse-blosxom-footer
2047 Footer used for publishing Blosxom files.
2049 This may be text or a filename.
2051 @item muse-blosxom-base-directory
2052 Base directory of blog entries, used by @code{muse-blosxom-new-entry}.
2054 This is the top-level directory where your blog entries may be found
2055 locally.
2057 @end table
2059 @node Book, ConTeXt, Blosxom, Publishing Styles
2060 @comment  node-name,  next,  previous,  up
2061 @section Publishing entries into a compilation
2063 This publishing style is used to output ``books'' in LaTeX or PDF
2064 format.
2066 Each page will become a separate chapter in the book, unless the style
2067 keyword @option{:nochapters} is used, in which case they are all run
2068 together as if one giant chapter.
2070 One way of publishing a book is to make a project for it, add the
2071 project to @code{muse-project-alist}, and use the @code{book-pdf} style
2072 with a very specific @option{:include} value to specify some page whose
2073 contents will be checked for the values of @code{#title} and
2074 @code{#date}, and whose name will be used in the output file.  Then to
2075 publish the book, visit the aforementioned page and use @kbd{C-c C-t} or
2076 @kbd{C-c C-p} to trigger the publishing process.  An example
2077 @code{muse-project-alist} for this method follows.
2079 @example
2080 (setq muse-project-alist
2081       '(("MyNotes" (:nochapters t  ; do automatically add chapters
2082                     :book-chapter "Computer Science"
2083                     "~/Notes/cs"
2084                     :book-chapter "Mathematics"
2085                     "~/Notes/math"
2086                     :book-chapter "Emacs"
2087                     "~/Notes/emacs"
2088                     :book-end t ; the rest will not be placed in the book
2089                     "~/Notes"   ; so we can find the notes-anthology page
2090                     "~/Notes/private"
2091                     :force-publish ("index")
2092                     :default "index")
2093          (:base "book-pdf"
2094                 :include "/notes-anthology[^/]*$"
2095                 :path "~/public_html/notes")
2096          ;; other publishing styles for each directory go here,
2097          ;; if desired
2098          )))
2099 @end example
2101 In this example, there would be a file called
2102 @file{~/Notes/notes-anthology.muse}, which would contain just the
2103 following.  The resulting book would be published to
2104 @file{~/public_html/notes/notes-anthology.pdf}.
2106 @example
2107 #title My Technology Ramblings
2108 @end example
2110 Another way is to call the @code{muse-book-publish-project} function
2111 manually, with a custom project entry.  An example of this may be found
2112 in John Wiegley's configuration file at
2113 @file{examples/johnw/muse-init.el}, in the @code{muse-publish-my-books}
2114 function.
2116 @subheading Styles provided
2118 @table @code
2120 @cindex publishing styles, book-latex
2121 @item book-latex
2122 Publish a book in LaTeX form.  The header and footer are different than
2123 the normal LaTeX publishing mode.
2125 @cindex publishing styles, book-pdf
2126 @item book-pdf
2127 Publish a book in PDF form.  The header and footer are different than
2128 the normal PDF publishing mode.
2130 @end table
2132 @subheading Options provided
2134 @table @code
2136 @item muse-book-before-publish-hook
2137 A hook run in the book buffer before it is marked up.
2139 @item muse-book-after-publish-hook
2140 A hook run in the book buffer after it is marked up.
2142 @item muse-book-latex-header
2143 Header used for publishing books to LaTeX.
2145 This may be text or a filename.
2147 @item muse-book-latex-footer
2148 Footer used for publishing books to LaTeX.
2150 This may be text or a filename.
2152 @end table
2153 @node ConTeXt, DocBook, Book, Publishing Styles
2154 @comment  node-name,  next,  previous,  up
2155 @section Publishing ConTeXt documents
2157 This publishing style is capable of producing ConTeXt or PDF documents.
2159 If you wish to publish PDF documents based on ConTeXt, you will need to
2160 have it installed.  For Debian and Ubuntu, this can be accomplished by
2161 installing the ``texlive'' package.
2163 @subheading Styles provided
2165 @table @code
2167 @cindex publishing styles, context
2168 @item context
2169 Publish a ConTeXt document.
2171 @cindex publishing styles, context-pdf
2172 @item context-pdf
2173 Publish a PDF document, using an external ConTeXt document conversion
2174 tool.
2176 @cindex publishing styles, context-slides
2177 @item context-slides
2178 Produce slides from a ConTeXt document.
2180 Here is an example of a slide.
2182 @example
2183 * First Slide
2185 [[Some-sort-of-cute-image.png]]
2187 ** A subheading
2189  - A bullet point.
2190  - Another bullet point.
2192 * Second Slide
2194 ... and so on
2195 @end example
2197 @cindex publishing styles, context-slides-pdf
2198 @item context-slides-pdf
2199 Publish a PDF document of ConTeXt slides.
2201 @end table
2203 @subheading Options provided
2205 @table @code
2207 @item muse-context-extension
2208 Default file extension for publishing ConTeXt files.
2210 @item muse-context-pdf-extension
2211 Default file extension for publishing ConTeXt files to PDF.
2213 @item muse-context-pdf-program
2214 The program that is called to generate PDF content from ConTeXt content.
2216 @item muse-context-pdf-cruft
2217 Extensions of files to remove after generating PDF output successfully.
2219 @item muse-context-header
2220 Header used for publishing ConTeXt files.
2222 This may be text or a filename.
2224 @item muse-context-footer
2225 Footer used for publishing ConTeXt files.
2227 This may be text or a filename.
2229 @item muse-context-markup-regexps
2230 List of markup regexps for identifying regions in a Muse page.
2232 For more on the structure of this list,
2233 @xref{muse-publish-markup-regexps}.
2235 @item muse-context-markup-functions
2236 An alist of style types to custom functions for that kind of text.
2238 For more on the structure of this list,
2239 @xref{muse-publish-markup-functions}.
2241 @item muse-context-markup-strings
2242 Strings used for marking up text.
2244 These cover the most basic kinds of markup, the handling of which
2245 differs little between the various styles.
2247 @item muse-context-slides-header
2248 Header for publishing a presentation (slides) using ConTeXt.
2250 Any of the predefined modules, which are available in the
2251 tex/context/base directory, can be used by writing a "module" directive
2252 at the top of the Muse file; if no such directive is provided, module
2253 pre-01 is used.  Alternatively, you can use your own style ("mystyle",
2254 in this example) by replacing "\usemodule[]" with "\input mystyle".
2256 This may be text or a filename.
2258 @item muse-context-slides-markup-strings
2259 Strings used for marking up text in ConTeXt slides.
2261 @item muse-context-markup-specials-document
2262 A table of characters which must be represented specially.
2263 These are applied to the entire document, sans already-escaped
2264 regions.
2266 @item muse-context-markup-specials-example
2267 A table of characters which must be represented specially.
2268 These are applied to @verb{|example>|} regions.
2270 With the default interpretation of @verb{|<example>|} regions, no
2271 specials need to be escaped.
2273 @item muse-context-markup-specials-literal
2274 A table of characters which must be represented specially.
2275 This applies to =monospaced text= and @verb{|<code>|} regions.
2277 @item muse-context-markup-specials-url
2278 A table of characters which must be represented specially.
2279 These are applied to URLs.
2281 @item muse-context-markup-specials-image
2282 A table of characters which must be represented specially.
2283 These are applied to image filenames.
2285 @item muse-context-permit-contents-tag
2286 If nil, ignore @verb{|<contents>|} tags.  Otherwise, insert table of
2287 contents.
2289 Most of the time, it is best to have a table of contents on the
2290 first page, with a new page immediately following.  To make this
2291 work with documents published in both HTML and ConTeXt, we need to
2292 ignore the @verb{|<contents>|} tag.
2294 If you don't agree with this, then set this option to non-nil,
2295 and it will do what you expect.
2297 @end table
2299 @node DocBook, HTML, ConTeXt, Publishing Styles
2300 @comment  node-name,  next,  previous,  up
2301 @section Publishing in DocBook XML form
2303 This publishing style is used to generate DocBook XML files.
2305 @subheading Styles provided
2307 @table @code
2309 @cindex publishing styles, docbook
2310 @item docbook
2311 Publish a file in Docbook form.
2313 @end table
2315 @subheading Options provided
2317 This publishing style uses the same options for markup up special
2318 characters as the ``xml'' publishing style.  @xref{XML}, for details.
2320 @table @code
2322 @item muse-docbook-extension
2323 Default file extension for publishing DocBook XML files.
2325 @item muse-docbook-header
2326 Header used for publishing DocBook XML files.
2328 This may be text or a filename.
2330 @item muse-docbook-footer
2331 Footer used for publishing DocBook XML files.
2333 This may be text or a filename.
2335 @item muse-docbook-markup-regexps
2336 List of markup rules for publishing a Muse page to DocBook XML.
2338 @item muse-docbook-markup-functions
2339 An alist of style types to custom functions for that kind of text.
2341 @item muse-docbook-markup-strings
2342 Strings used for marking up text.
2344 These cover the most basic kinds of markup, the handling of which
2345 differs little between the various styles.
2347 @item muse-docbook-encoding-default
2348 The default Emacs buffer encoding to use in published files.
2349 This will be used if no special characters are found.
2351 @item muse-docbook-charset-default
2352 The default DocBook XML charset to use if no translation is
2353 found in @code{muse-xml-encoding-map}.
2355 @end table
2357 @node HTML, Journal, DocBook, Publishing Styles
2358 @comment  node-name,  next,  previous,  up
2359 @section Publishing in HTML or XHTML form
2361 This publishing style is capable of producing HTML or XHTML documents.
2363 @subheading Styles provided
2365 @table @code
2367 @cindex publishing styles, html
2368 @item html
2369 Supports publishing to HTML 4.0 and HTML 4.01, Strict or Transitional.
2371 @item xhtml
2372 Supports publishing to XHTML 1.0 and XHTML 1.1, Strict or Transitional.
2374 @end table
2376 @subheading Options provided
2378 If an HTML option does not have a corresponding XHTML option, it will
2379 be used for both of these publishing styles.
2381 These publishing styles use the same options for markup up special
2382 characters as the ``xml'' publishing style.  @xref{XML}, for details.
2384 @table @code
2386 @item muse-html-extension
2387 Default file extension for publishing HTML files.
2389 @item muse-xhtml-extension
2390 Default file extension for publishing XHTML files.
2392 @item muse-html-style-sheet
2393 Store your stylesheet definitions here.
2395 This is used in @code{muse-html-header}.  You can put raw CSS in here or
2396 a @verb{|<link>|} tag to an external stylesheet.  This text may contain
2397 @verb{|<lisp>|} markup tags.
2399 If you are publishing to XHTML, then customize the
2400 @code{muse-xhtml-style-sheet} option instead.
2402 @item muse-xhtml-style-sheet
2403 Store your stylesheet definitions here.
2405 This is used in @code{muse-xhtml-header}.  You can put raw CSS in here
2406 or a @verb{|<link>|} tag to an external stylesheet.  This text may
2407 contain @verb{|<lisp>|} markup tags.
2409 @item muse-html-header
2410 Header used for publishing HTML files.
2412 This may be text or a filename.
2414 @item muse-html-footer
2415 Footer used for publishing HTML files.
2417 This may be text or a filename.
2419 @item muse-xhtml-header
2420 Header used for publishing XHTML files.
2422 This may be text or a filename.
2424 @item muse-xhtml-footer
2425 Footer used for publishing XHTML files.
2427 This may be text or a filename.
2429 @item muse-html-anchor-on-word
2430 When true, anchors surround the closest word.
2432 This allows you to select them in a browser (i.e. for pasting), but has
2433 the side-effect of marking up headers in multiple colors if your header
2434 style is different from your link style.
2436 @item muse-html-table-attributes
2437 The attribute to be used with HTML @verb{|<table>|} tags.
2439 If you want to make more-complicated tables in HTML, surround the HTML
2440 with the @verb{|literal|} tag, so that it does not get escaped.
2442 @item muse-html-markup-regexps
2443 List of markup rules for publishing a Muse page to HTML.
2445 @item muse-html-markup-functions
2446 An alist of style types to custom functions for that kind of text.
2448 @item muse-html-markup-strings
2449 Strings used for marking up text as HTML.
2451 These cover the most basic kinds of markup, the handling of which
2452 differs little between the various styles.
2454 @item muse-xhtml-markup-strings
2455 Strings used for marking up text as XHTML.
2457 These cover the most basic kinds of markup, the handling of which
2458 differs little between the various styles.
2460 @item muse-html-markup-tags
2461 A list of tag specifications, for specially marking up HTML.
2462 @xref{muse-publish-markup-tags}, for more information.
2464 @item muse-html-meta-http-equiv
2465 The http-equiv attribute used for the HTML @verb{|<meta>|} tag.
2467 @item muse-html-meta-content-type
2468 The content type used for the HTML @verb{|<meta>|} tag.
2470 If you are striving for XHTML 1.1 compliance, you may want to change
2471 this to ``application/xhtml+xml''.
2473 @item muse-html-meta-content-encoding
2474 The charset to append to the HTML @verb{|<meta>|} tag.
2476 If set to the symbol 'detect, use @code{muse-xml-encoding-map} to try
2477 and determine the HTML charset from emacs's coding.  If set to a string,
2478 this string will be used to force a particular charset.
2480 @item muse-html-charset-default
2481 The default HTML meta charset to use if no translation is found in
2482 @code{muse-xml-encoding-map}.
2484 @item muse-html-encoding-default
2485 The default Emacs buffer encoding to use in published files.
2486 This will be used if no special characters are found.
2488 @end table
2490 @node Journal, LaTeX, HTML, Publishing Styles
2491 @comment  node-name,  next,  previous,  up
2492 @section Keeping a journal or blog
2493 @cindex journal
2494 @cindex blog, journal style
2496 The module facilitates the keeping and publication of a journal.  When
2497 publishing to HTML, it assumes the form of a web log, or blog.
2499 The input format for each entry is as follows.
2501 @example
2502 * 20040317: Title of entry
2504 text for the entry.
2506 <qotd>
2507 "You know who you are. It comes down to a simple gut check: You
2508 either love what you do or you don't. Period." -- P. Bronson
2509 </qotd>
2510 @end example
2512 The "qotd", or Quote of the Day, is entirely optional.  When generated
2513 to HTML, this entry is rendered as the following.
2515 @example
2516 <div class="entry">
2517   <div class="entry-qotd">
2518     <h3>Quote of the Day:</h3>
2519     <p>"You know who you are. It comes down to a simple gut
2520       check: You either love what you do or you don't. Period."
2521       -- P. Bronson</p>
2522   </div>
2523   <div class="entry-body">
2524     <div class="entry-head">
2525       <div class="entry-date">
2526         <span class="date">March 17, 2004</span>
2527       </div>
2528       <div class="entry-title">
2529         <h2>Title of entry</h2>
2530       </div>
2531     </div>
2532     <div class="entry-text">
2533       <p>Text for the entry.</p>
2534     </div>
2535   </div>
2536 </div>
2537 @end example
2539 The plurality of "div" tags makes it possible to display the entries in
2540 any form you wish, using a CSS style.
2542 Also, an .RDF file can be generated from your journal by publishing it
2543 with the "rdf" style.  It uses the first two sentences of the first
2544 paragraph of each entry as its "description", and auto-generates tags
2545 for linking to the various entries.
2547 @subheading muse-project-alist considerations
2549 If you wish to publish an RDF or RSS feed, it is important to include
2550 the @option{:base-url} attribute in your @code{muse-project-alist} entry
2551 for your Journal projects.  An example follows.
2553 @example
2554 (setq muse-project-alist
2555       '(("Journal" ("~/Journal/"
2556                     :default "journal")
2557         (:base "journal-rss"
2558                :base-url "http://example.org/journal/"
2559                :path "~/public_html/journal"))))
2560 @end example
2562 @subheading Styles provided
2564 @table @code
2566 @cindex publishing styles, journal-html
2567 @item journal-html
2568 Publish journal entries as an HTML document.
2570 @cindex publishing styles, journal-xhtml
2571 @item journal-xhtml
2572 Publish journal entries as an XHTML document.
2574 @cindex publishing styles, journal-latex
2575 @item journal-latex
2576 Publish journal entries as a LaTeX document.
2578 @cindex publishing styles, journal-pdf
2579 @item journal-pdf
2580 Publish journal entries as a PDF document.
2582 @cindex publishing styles, journal-book-latex
2583 @item journal-book-latex
2584 Publish journal entries as a LaTeX book.
2586 @cindex publishing styles, journal-book-pdf
2587 @item journal-book-pdf
2588 Publish journal entries as a PDF book.
2590 @cindex publishing styles, journal-rdf
2591 @cindex publishing styles, RSS 1.0
2592 @item journal-rdf
2593 Publish journal entries as an RDF file (RSS 1.0).
2595 @cindex publishing styles, journal-rss
2596 @cindex publishing styles, RSS 2.0
2597 @item journal-rss
2598 Publish journal entries as an RSS file (RSS 2.0).
2600 @cindex publishing styles, journal-rss-entry
2601 @item journal-rss-entry
2602 Used internally by @code{journal-rss} and @code{journal-rdf} for
2603 publishing individual entries.
2605 @end table
2607 @subheading Options provided
2609 @table @code
2611 @item muse-journal-heading-regexp
2612 A regexp that matches a journal heading.
2614 Paren group 1 is the ISO date, group 2 is the optional category, and
2615 group 3 is the optional heading for the entry.
2617 @item muse-journal-date-format
2618 Date format to use for journal entries.
2620 @item muse-journal-html-heading-regexp
2621 A regexp that matches a journal heading from an HTML document.
2623 Paren group 1 is the ISO date, group 2 is the optional category, and
2624 group 3 is the optional heading for the entry.
2626 @item muse-journal-html-entry-template
2627 Template used to publish individual journal entries as HTML.
2629 This may be text or a filename.
2631 @item muse-journal-latex-section
2632 Template used to publish a LaTeX section.
2634 @item muse-journal-latex-subsection
2635 Template used to publish a LaTeX subsection.
2637 @item muse-journal-markup-tags
2638 A list of tag specifications, for specially marking up Journal entries.
2640 @xref{muse-publish-markup-tags}, for more information.
2642 This is used by @code{journal-latex} and its related styles, as well as
2643 the @code{journal-rss-entry} style, which both @code{journal-rdf} and
2644 @code{journal-rss} use.
2646 @item muse-journal-rdf-extension
2647 Default file extension for publishing RDF (RSS 1.0) files.
2649 @item muse-journal-rdf-base-url
2650 The base URL of the website referenced by the RDF file.
2652 @item muse-journal-rdf-header
2653 Header used for publishing RDF (RSS 1.0) files.
2655 This may be text or a filename.
2657 @item muse-journal-rdf-footer
2658 Footer used for publishing RDF (RSS 1.0) files.
2660 This may be text or a filename.
2662 @item muse-journal-rdf-date-format
2663 Date format to use for RDF entries.
2665 @item muse-journal-rdf-entry-template
2666 Template used to publish individual journal entries as RDF.
2668 This may be text or a filename.
2670 @item muse-journal-rdf-summarize-entries
2671 If non-nil, include only summaries in the RDF file, not the full data.
2673 The default is nil, because this annoys some subscribers.
2675 @item muse-journal-rss-heading-regexp
2676 A regexp that matches a journal heading from an HTML document.
2678 Paren group 1 is the ISO date, group 2 is the optional category,
2679 and group 3 is the optional heading for the entry.
2681 @item muse-journal-rss-extension
2682 Default file extension for publishing RSS 2.0 files.
2684 @item muse-journal-rss-base-url
2685 The base URL of the website referenced by the RSS file.
2687 @item muse-journal-rss-header
2688 Header used for publishing RSS 2.0 files.
2690 This may be text or a filename.
2692 @item muse-journal-rss-footer
2693 Footer used for publishing RSS 2.0 files.
2695 This may be text or a filename.
2697 @item muse-journal-rss-date-format
2698 Date format to use for RSS 2.0 entries.
2700 @item muse-journal-rss-entry-template
2701 Template used to publish individual journal entries as RSS 2.0.
2703 This may be text or a filename.
2705 @item muse-journal-rss-enclosure-types-alist
2706 File types that are accepted as RSS enclosures.
2708 This is an alist that maps file extension to content type.
2710 Useful for podcasting.
2712 @item muse-journal-rss-summarize-entries
2713 If non-nil, include only summaries in the RSS file, not the full data.
2715 The default is nil, because this annoys some subscribers.
2717 @item muse-journal-rss-markup-regexps
2718 List of markup rules for publishing a Muse journal page to RSS.
2720 For more information on the structure of this list,
2721 @xref{muse-publish-markup-regexps}.
2723 @item muse-journal-rss-markup-functions
2724 An alist of style types to custom functions for that kind of text.
2726 For more on the structure of this list,
2727 @xref{muse-publish-markup-functions}.
2729 @end table
2731 @node LaTeX, Poem, Journal, Publishing Styles
2732 @comment  node-name,  next,  previous,  up
2733 @section Publishing LaTeX documents
2735 This publishing style is capable of producing LaTeX or PDF documents.
2737 If you wish to publish PDF documents, you will need to have a good TeX
2738 installation.  For Debian and Ubuntu, this can be accomplished by
2739 installing the ``tetex-bin'' and ``tetex-extra'' packages.  TeX fonts
2740 are also a must.
2742 @subheading Styles provided
2744 @table @code
2746 @cindex publishing styles, latex
2747 @item latex
2748 Publish a LaTeX document.
2750 @cindex publishing styles, pdf
2751 @item pdf
2752 Publish a PDF document, using an external LaTeX document conversion
2753 tool.
2755 @cindex publishing styles, latexcjk
2756 @item latexcjk
2757 Publish a LaTeX document with CJK (Chinese) encodings.
2759 @cindex publishing styles, pdfcjk
2760 @item pdfcjk
2761 Publish a PDF document with CJK (Chinese) encodings, using an external
2762 LaTeX document conversion tool.
2764 @cindex publishing styles, slides
2765 @item slides
2766 Publish a LaTeX document that uses the Beamer extension.  This is
2767 suitable for producing slides.
2769 Here is an example of a slide.
2771 @example
2772 <slide title="First Slide">
2773 Everything between the slide tags composes this slide.
2775 [[Some-sort-of-cute-image.png]]
2777  - A bullet point.
2778  - Another bullet point.
2779 </slide>
2780 @end example
2782 @cindex publishing styles, slides-pdf
2783 @item slides-pdf
2784 Publish a PDF document of slides, using the Beamer extension.
2786 @cindex publishing styles, lecture-notes
2787 @item lecture-notes
2788 Publish a LaTeX document that uses the Beamer extension.  This is
2789 suitable for producing lecture notes.
2791 This can also use the @verb{|<slide>|} tag.
2793 @cindex publishing styles, lecture-notes-pdf
2794 @item lecture-notes-pdf
2795 Publish a PDF document of lecture notes, using the Beamer extension.
2797 @end table
2799 @subheading Options provided
2801 @table @code
2803 @item muse-latex-extension
2804 Default file extension for publishing LaTeX files.
2806 @item muse-latex-pdf-extension
2807 Default file extension for publishing LaTeX files to PDF.
2809 @item muse-latex-pdf-program
2810 The program that is called to generate PDF content from LaTeX content.
2812 @item muse-latex-pdf-cruft
2813 Extensions of files to remove after generating PDF output successfully.
2815 @item muse-latex-header
2816 Header used for publishing LaTeX files.
2818 This may be text or a filename.
2820 @item muse-latex-footer
2821 Footer used for publishing LaTeX files.
2823 This may be text or a filename.
2825 @item muse-latexcjk-header
2826 Header used for publishing LaTeX files (CJK).
2828 This may be text or a filename.
2830 @item muse-latexcjk-footer
2831 Footer used for publishing LaTeX files (CJK).
2833 This may be text or a filename.
2835 @item muse-latex-slides-header
2836 Header for publishing of slides using LaTeX.
2838 This may be text or a filename.
2840 You must have the Beamer extension for LaTeX installed for this to work.
2842 @item muse-latex-lecture-notes-header
2843 Header publishing of lecture notes using LaTeX.
2845 This may be text or a filename.
2847 You must have the Beamer extension for LaTeX installed for this to work.
2849 @item muse-latex-markup-regexps
2850 List of markup regexps for identifying regions in a Muse page.
2852 For more on the structure of this list,
2853 @xref{muse-publish-markup-regexps}.
2855 @item muse-latex-markup-functions
2856 An alist of style types to custom functions for that kind of text.
2858 For more on the structure of this list,
2859 @xref{muse-publish-markup-functions}.
2861 @item muse-latex-markup-strings
2862 Strings used for marking up text.
2864 These cover the most basic kinds of markup, the handling of which
2865 differs little between the various styles.
2867 @item muse-latex-slides-markup-tags
2868 A list of tag specifications, for specially marking up LaTeX slides.
2870 @item muse-latexcjk-encoding-map
2871 An alist mapping emacs coding systems to appropriate CJK codings.
2872 Use the base name of the coding system (ie, without the -unix).
2874 @item muse-latexcjk-encoding-default
2875 The default Emacs buffer encoding to use in published files.
2877 This will be used if no special characters are found.
2879 @item muse-latex-markup-specials-document
2880 A table of characters which must be represented specially.
2881 These are applied to the entire document, sans already-escaped
2882 regions.
2884 @item muse-latex-markup-specials-example
2885 A table of characters which must be represented specially.
2886 These are applied to @verb{|example>|} regions.
2888 With the default interpretation of @verb{|<example>|} regions, no
2889 specials need to be escaped.
2891 @item muse-latex-markup-specials-literal
2892 A table of characters which must be represented specially.
2893 This applies to =monospaced text= and @verb{|<code>|} regions.
2895 @item muse-latex-markup-specials-url
2896 A table of characters which must be represented specially.
2897 These are applied to URLs.
2899 @item muse-latex-markup-specials-image
2900 A table of characters which must be represented specially.
2901 These are applied to image filenames.
2903 @item muse-latex-permit-contents-tag
2904 If nil, ignore @verb{|<contents>|} tags.  Otherwise, insert table of
2905 contents.
2907 Most of the time, it is best to have a table of contents on the
2908 first page, with a new page immediately following.  To make this
2909 work with documents published in both HTML and LaTeX, we need to
2910 ignore the @verb{|<contents>|} tag.
2912 If you don't agree with this, then set this option to non-nil,
2913 and it will do what you expect.
2915 @end table
2917 @node Poem, Texinfo, LaTeX, Publishing Styles
2918 @comment  node-name,  next,  previous,  up
2919 @section Publish a poem to LaTex or PDF
2921 The @code{muse-poem} module makes it easy to attractively publish and
2922 reference poems in the following format, using the "memoir" module for
2923 LaTeX publishing.  It will also markup poems for every other output
2924 style, though none are nearly as pretty.
2926 @example
2927 Title
2930 Body of poem
2933 Annotations, history, notes, etc.
2934 @end example
2936 Once a poem is written in this format, just publish it to PDF using the
2937 @code{poem-pdf} style.  To make an inlined reference to a poem that
2938 you've written -- for example, from a blog page -- there is a "poem" tag
2939 defined by this module.
2941 @example
2942 <poem title="name.of.poem.page">
2943 @end example
2945 Let's assume the template above was called @file{name.of.poem.page};
2946 then the above tag would result in this inclusion.
2948 @example
2949 ** Title
2951 > Body of poem
2952 @end example
2954 John Wiegley uses this module for publishing all of the poems on his
2955 website, which are at
2956 @uref{http://www.newartisans.com/johnw/poems.html}.
2958 @subheading Styles provided
2960 @table @code
2962 @cindex publishing styles, poem-latex
2963 @item poem-latex
2964 Publish a poem in LaTeX form.
2966 @cindex publishing styles, poem-pdf
2967 @item poem-pdf
2968 Publish a poem to a PDF document.
2970 @cindex publishing styles, chapbook-latex
2971 @item chapbook-latex
2972 Publish a book of poems in LaTeX form.
2974 @cindex publishing styles, chapbook-pdf
2975 @item chapbook-pdf
2976 Publish a book of poems to a PDF document.
2978 @end table
2980 @subheading Options provided
2982 @table @code
2984 @item muse-poem-latex-header
2985 Header used for publishing LaTeX poems.
2987 This may be text or a filename.
2989 @item muse-poem-latex-footer
2990 Footer used for publishing LaTeX files.
2992 This may be text or a filename.
2994 @item muse-poem-markup-strings
2995 Strings used for marking up poems.
2997 These cover the most basic kinds of markup, the handling of which
2998 differs little between the various styles.
3000 @item muse-chapbook-latex-header
3001 Header used for publishing a book of poems in LaTeX form.
3003 This may be text or a filename.
3005 @item muse-chapbook-latex-footer
3006 Footer used for publishing a book of poems in LaTeX form.
3008 This may be text or a filename.
3010 @item muse-poem-chapbook-strings
3011 Strings used for marking up books of poems.
3013 These cover the most basic kinds of markup, the handling of which
3014 differs little between the various styles.
3016 @end table
3018 @node Texinfo, XML, Poem, Publishing Styles
3019 @comment  node-name,  next,  previous,  up
3020 @section Publish entries to Texinfo format or PDF
3022 Rules for publishing a Muse file as a Texinfo article.
3024 @subheading Styles provided
3026 @table @code
3028 @cindex publishing styles, texi
3029 @item texi
3030 Publish a file in Texinfo form.
3032 @cindex publishing styles, texi
3033 @item info
3034 Generate an Info file from a Muse file.
3036 @cindex publishing styles, info-pdf
3037 @item info-pdf
3038 Publish a file in PDF form.
3040 @end table
3042 @subheading Options provided
3044 @table @code
3046 @item muse-texinfo-process-natively
3047 If non-nil, use the Emacs `texinfmt' module to make Info files.
3049 @item muse-texinfo-extension
3050 Default file extension for publishing Texinfo files.
3052 @item muse-texinfo-info-extension
3053 Default file extension for publishing Info files.
3055 @item muse-texinfo-pdf-extension
3056 Default file extension for publishing PDF files.
3058 @item muse-texinfo-header
3059 Text to prepend to a Muse page being published as Texinfo.
3061 This may be text or a filename.
3062 It may contain @verb{|<lisp>|} markup tags.
3064 @item muse-texinfo-footer
3065 Text to append to a Muse page being published as Texinfo.
3067 This may be text or a filename.
3068 It may contain @verb{|<lisp>|} markup tags.
3070 @item muse-texinfo-markup-regexps
3071 List of markup rules for publishing a Muse page to Texinfo.
3073 For more on the structure of this list,
3074 @xref{muse-publish-markup-regexps}.
3076 @item muse-texinfo-markup-functions
3077 An alist of style types to custom functions for that kind of text.
3079 For more on the structure of this list,
3080 @xref{muse-publish-markup-functions}.
3082 @item muse-texinfo-markup-strings
3083 Strings used for marking up text.
3085 These cover the most basic kinds of markup, the handling of which
3086 differs little between the various styles.
3088 @item muse-texinfo-markup-specials
3089 A table of characters which must be represented specially.
3091 @item muse-texinfo-markup-specials
3092 A table of characters which must be represented specially.
3093 These are applied to URLs.
3095 @end table
3097 @node XML, , Texinfo, Publishing Styles
3098 @comment  node-name,  next,  previous,  up
3099 @section Publish entries to XML
3101 Muse is capable of publishing XML documents, with the help of the
3102 @file{muse-xml.el} module.
3104 A RelaxNG schema is available as part of the Muse distribution in the
3105 @file{etc/muse.rnc} file.
3107 @subheading Styles provided
3109 @table @code
3111 @cindex publishing styles, xml
3112 @item xml
3113 Publish a file in XML form.
3115 @end table
3117 @subheading Options provided
3119 @table @code
3121 @cindex muse-xml-encoding-map
3122 @item muse-xml-encoding-map
3123 An alist mapping Emacs coding systems to appropriate XML charsets.
3124 Use the base name of the coding system (i.e. without the -unix).
3126 @item muse-xml-markup-specials
3127 A table of characters which must be represented specially in all
3128 XML-like markup formats.
3130 @item muse-xml-markup-specials-url-extra
3131 A table of characters which must be represented specially in all
3132 XML-like markup formats.
3134 These are extra characters that are escaped within URLs.
3136 @item muse-xml-extension
3137 Default file extension used for publishing XML files.
3139 @item muse-xml-header
3140 Header used for publishing XML files.
3142 This may be text or a filename.
3144 @item muse-xml-footer
3145 Footer used for publishing XML files.
3147 This may be text or a filename.
3149 @item muse-xml-markup-regexps
3150 List of markup rules for publishing a Muse page to XML.
3152 For more on the structure of this list,
3153 @xref{muse-publish-markup-regexps}.
3155 @item muse-xml-markup-functions
3156 An alist of style types to custom functions for that kind of text.
3158 For more on the structure of this list,
3159 @xref{muse-publish-markup-functions}.
3161 @item muse-xml-markup-strings
3162 Strings used for marking up text.
3164 These cover the most basic kinds of markup, the handling of which
3165 differs little between the various styles.
3167 @item muse-xml-encoding-default
3168 The default Emacs buffer encoding to use in published files.
3170 This will be used if no special characters are found.
3172 @item muse-xml-charset-default
3173 The default XML charset to use if no translation is found in
3174 @code{muse-xml-encoding-map}.
3176 @end table
3179 @node Extending Muse, Miscellaneous, Publishing Styles, Top
3180 @comment  node-name,  next,  previous,  up
3181 @chapter Making your own publishing styles
3183 @menu
3184 * Common Elements::             Common functionality shared by styles.
3185 * Deriving Styles::             Deriving a new style from an existing
3186                                   one.
3187 @end menu
3189 @node Common Elements, Deriving Styles, , Extending Muse
3190 @comment  node-name,  next,  previous,  up
3191 @section Common functionality shared by styles
3192 @cindex publishing styles, common
3194 @menu
3195 * Markup Functions::            Specifying functions to mark up text.
3196 * Markup Regexps::              Markup rules for publishing.
3197 * Markup Strings::              Strings specific to a publishing style.
3198 * Markup Tags::                 Tag specifications for special markup.
3199 * Style Elements::              Parameters used for defining styles.
3200 @end menu
3202 @node Markup Functions, Markup Regexps, , Common Elements
3203 @comment  node-name,  next,  previous,  up
3204 @subsection Specifying functions to mark up text
3205 @cindex publishing, markup functions
3207 @anchor{muse-publish-markup-functions}
3208 @code{muse-publish-markup-functions}
3210 An alist of style types to custom functions for that kind of text.
3212 This is used by publishing styles to attempt to minimize the amount of
3213 custom regexps that each has to define.  @file{muse-publish} provides
3214 rules for the most common types of markup.
3216 Each member of the list is of the following form.
3218 @example
3219 (SYMBOL FUNCTION)
3220 @end example
3222 @itemize @bullet
3223 @item SYMBOL
3224 Describes the type of text to associate with this rule.
3225 @code{muse-publish-markup-regexps} maps regexps to these symbols.
3227 @item FUNCTION
3228 Function to use to mark up this kind of rule if no suitable function is
3229 found through the @option{:functions} tag of the current style.
3230 @end itemize
3232 @node Markup Regexps, Markup Strings, Markup Functions, Common Elements
3233 @comment  node-name,  next,  previous,  up
3234 @subsection Markup rules for publishing
3235 @cindex publishing, markup regexps
3236 @cindex publishing, rules
3238 @anchor{muse-publish-markup-regexps}
3239 @code{muse-publish-markup-regexps}
3241 List of markup rules for publishing a page with Muse.
3243 The rules given in this variable are invoked first, followed by whatever
3244 rules are specified by the current style.
3246 Each member of the list is either a function, or a list of the following
3247 form.
3249 @example
3250 (REGEXP/SYMBOL TEXT-BEGIN-GROUP REPLACEMENT-TEXT/FUNCTION/SYMBOL)
3251 @end example
3253 @itemize @bullet
3254 @item REGEXP
3255 A regular expression, or symbol whose value is a regular expression,
3256 which is searched for using `re-search-forward'.
3258 @item TEXT-BEGIN-GROUP
3259 The matching group within that regexp which denotes the beginning of the
3260 actual text to be marked up.
3262 @item REPLACEMENT-TEXT
3263 A string that will be passed to `replace-match'.
3265 If it is not a string, but a function, it will be called to determine
3266 what the replacement text should be (it must return a string).  If it is
3267 a symbol, the value of that symbol should be a string.
3268 @end itemize
3270 The replacements are done in order, one rule at a time.  Writing
3271 the regular expressions can be a tricky business.  Note that case
3272 is never ignored.  `case-fold-search' is always bound to nil
3273 while processing the markup rules.
3275 @subheading Publishing order
3277 This is the order that the publishing rules are consulted, by default.
3278 This may be changed by customizing @code{muse-publish-markup-regexps}.
3280 @table @code
3282 @item trailing and leading whitespace
3283 Remove trailing and leading whitespace from a file.
3285 @item directive
3286 @samp{#directive}
3288 This is only recognized at the beginning of a file.
3290 @item comment
3291 @samp{; a commented line}
3293 @item tag
3294 @samp{<tag>}
3296 @item comment
3297 @samp{; comment}
3299 @item explicit links
3300 Prevent emphasis characters in explicit links from being marked up.
3302 Don't actually publish them here, just add a special no-emphasis text
3303 property.
3305 @item word
3306 Whitespace-delimited word, possibly with emphasis characters
3308 This function is responsible for marking up emphasis and escaping some
3309 specials.
3311 @item heading
3312 @samp{** Heading}
3314 Outline-mode style headings.
3316 @item enddots
3317 @samp{....}
3319 These are ellipses with a dot at end.
3321 @item dots
3322 @samp{...}
3324 Ellipses.
3326 @item rule
3327 @samp{----}
3329 Horizontal rule or section separator.
3331 @item no-break-space
3332 @samp{~~}
3334 Prevent lines from being split before or after these characters.
3336 @item fn-sep
3337 @samp{Footnotes:}
3339 beginning of footnotes section
3341 @item footnote
3342 @samp{[1]}
3344 Footnote definition or reference.  If at beginning of line, it is a
3345 definition.
3347 @item list
3348 @itemize @bullet
3349 @item
3350 @samp{ 1. }
3352 @item
3353 @samp{ - }
3355 @item
3356 @samp{term :: }
3357 @end itemize
3359 Numbered list, item list, or term definition list.
3361 @item table-el
3363 @file{table.el} style tables
3365 @item table
3366 @samp{table | cells}
3368 Muse tables or orgtbl-mode style tables.
3370 @item quote
3371 spaces before beginning of text
3373 Blockquotes.
3375 @item emdash
3376 @samp{--}
3378 2-wide dash
3380 @item verse
3381 @samp{> verse text}
3383 @item anchor
3384 @samp{#anchor}
3386 @item link
3387 @samp{[[explicit][links]]}
3389 @item url
3390 @samp{http://example.com/}
3392 @item email
3393 @samp{bare-email@@example.com}
3395 @end table
3397 @node Markup Strings, Markup Tags, Markup Regexps, Common Elements
3398 @comment  node-name,  next,  previous,  up
3399 @subsection Strings specific to a publishing style
3400 @cindex publishing, markup strings
3402 @dfn{Markup strings} are strings used for marking up text for a
3403 particular style.
3405 These cover the most basic kinds of markup, the handling of which
3406 differs little between the various styles.
3408 @subheading Available markup strings
3410 @table @code
3412 @item image-with-desc
3413 An image and a description.
3415 Argument 1: image without extension.  Argument 2: image extension.
3416 Argument 3: description.
3418 @item image
3419 An inlined image.
3421 Argument 1: image without extension.  Argument 2: image extension.
3423 @item image-link
3424 An image with a link around it.
3426 Argument 1: link.  Argument 2: image without extension.
3427 Argument 3: image extension.
3429 @item anchor-ref
3430 A reference to an anchor on the current page.
3432 Argument 1: anchor name.  Argument 2: description if one exists, or the
3433 original link otherwise.
3435 @item url
3436 A URL without a description.
3438 Argument 1: URL.
3440 @item link
3441 A link to a Muse page with a description.
3443 Argument 1: link.  Argument 2: description if one exists, or the
3444 original link otherwise.
3446 @item link-and-anchor
3447 A link to a Muse page with an anchor, and a description.
3449 Argument 1: link.  Argument 2: anchor name.
3450 Argument 3: description if one exists, or the original link otherwise.
3451 Argument 4: link without an extension.
3453 @item email-addr
3454 A link to an email address.
3456 Argument 1: email address.  Argument 2: email address.
3458 @item anchor
3459 An anchor.
3461 Argument 1: name of anchor.
3463 @item emdash
3464 A 2-length dash.
3466 Argument 1: Initial whitespace.  Argument 2: Terminating whitespace.
3468 @item comment-begin
3469 Beginning of a comment.
3471 @item comment-end
3472 End of a comment.
3474 @item rule
3475 A horizontal line or space.
3477 @item no-break-space
3478 A space that separates two words which are not to be separated.
3480 @item footnote
3481 Beginning of footnote.
3483 @item footnote-end
3484 End of footnote.
3486 @item footnotemark
3487 Mark a reference for the current footnote.
3489 Argument 1: number of this footnote.
3491 @item footnotemark-end
3492 End of a reference for the current footnote.
3494 @item footnotetext
3495 Indicate the text of the current footnote.
3497 Argument 1: number of this footnote.
3499 @item footnotetext-end
3500 End of a footnote text line.
3502 @item fn-sep
3503 Text used to replace ``Footnotes:'' line.
3505 @item dots
3506 3 dots.
3508 @item enddots
3509 4 dots.
3511 @item part
3512 Beginning of a part indicator line.  This is used by book publishing.
3514 @item part-end
3515 End of a part indicator line.  This is used by book publishing.
3517 @item chapter
3518 Beginning of a chapter indicator line.  This is used by book publishing.
3520 @item chapter-end
3521 End of a chapter indicator line.  This is used by book publishing.
3523 @item section
3524 Beginning of level 1 section indicator line.
3526 Argument 1: level of section; always 1.
3528 @item section-end
3529 End of level 1 section indicator line.
3531 Argument 1: level of section; always 1.
3533 @item subsection
3534 Beginning of level 2 section indicator line.
3536 Argument 1: level of section; always 2.
3538 @item subsection-end
3539 End of level 2 section indicator line.
3541 Argument 1: level of section; always 2.
3543 @item subsubsection
3544 Beginning of level 3 section indicator line.
3546 Argument 1: level of section; always 3.
3548 @item subsubsection-end
3549 End of level 3 section indicator line.
3551 Argument 1: level of section; always 3.
3553 @item section-other
3554 Beginning of section indicator line, where level is greater than 3.
3556 Argument 1: level of section.
3558 @item section-other-end
3559 End of section indicator line, where level is greater than 3.
3561 Argument 1: level of section.
3563 @item begin-underline
3564 Beginning of underlined text.
3566 @item end-underline
3567 End of underlined text.
3569 @item begin-literal
3570 Beginning of verbatim text.  This includes @verb{|<code>|} tags and
3571 =teletype text=.
3573 @item end-literal
3574 End of verbatim text.  This includes @verb{|<code>|} tags and =teletype
3575 text=.
3577 @item begin-emph
3578 Beginning of the first level of emphasized text.
3580 @item end-emph
3581 End of the first level of emphasized text.
3583 @item begin-more-emph
3584 Beginning of the second level of emphasized text.
3586 @item end-more-emph
3587 End of the second level of emphasized text.
3589 @item begin-most-emph
3590 Beginning of the third (and final) level of emphasized text.
3592 @item end-most-emph
3593 End of the third (and final) level of emphasized text.
3595 @item begin-verse
3596 Beginning of verse text.
3598 @item verse-space
3599 String used to each space that is further indented than the beginning of
3600 the verse.
3602 @item begin-verse-line
3603 Beginning of a line of verse.
3605 @item empty-verse-line
3606 End of a line of verse.
3608 @item begin-last-stanza-line
3609 Beginning of the last line of a verse stanza.
3611 @item end-last-stanza-line
3612 End of the last line of a verse stanza.
3614 @item end-verse
3615 End of verse text.
3617 @item begin-example
3618 Beginning of an example region.  To make use of this, an
3619 @samp{<example>} tag is needed.
3621 @item end-example
3622 End of an example region.  To make use of this, an @samp{</example>} tag
3623 is needed.
3625 @item begin-center
3626 Begin a centered line.
3628 @item end-center
3629 End a centered line.
3631 @item begin-quote
3632 Begin a quoted region.
3634 @item end-quote
3635 End a quoted region.
3637 @item begin-quote-item
3638 Begin a quote paragraph.
3640 @item end-quote-item
3641 End a quote paragraph.
3643 @item begin-uli
3644 Begin an unordered list.
3646 @item end-uli
3647 End an unordered list.
3649 @item begin-uli-item
3650 Begin an unordered list item.
3652 @item end-uli-item
3653 End an unordered list item.
3655 @item begin-oli
3656 Begin an ordered list.
3658 @item end-oli
3659 End an ordered list.
3661 @item begin-oli-item
3662 Begin an ordered list item.
3664 @item end-oli-item
3665 End an ordered list item.
3667 @item begin-dl
3668 Begin a definition list.
3670 @item end-dl
3671 End a definition list.
3673 @item begin-dl-item
3674 Begin a definition list item.
3676 @item end-dl-item
3677 End a definition list item.
3679 @item begin-ddt
3680 Begin a definition list term.
3682 @item end-ddt
3683 End a definition list term.
3685 @item begin-dde
3686 Begin a definition list entry.
3688 @item end-dde
3689 End a definition list entry.
3691 @item begin-table
3692 Begin a table.
3694 @item end-table
3695 End a table.
3697 @item begin-table-group
3698 Begin a table grouping.
3700 @item end-table-group
3701 End a table grouping.
3703 @item begin-table-row
3704 Begin a table row.
3706 @item end-table-row
3707 End a table row.
3709 @item begin-table-entry
3710 Begin a table entry.
3712 @item end-table-entry
3713 End a table entry.
3715 @end table
3717 @node Markup Tags, Style Elements, Markup Strings, Common Elements
3718 @comment  node-name,  next,  previous,  up
3719 @subsection Tag specifications for special markup
3720 @cindex publishing, markup tags
3722 @anchor{muse-publish-markup-tags}
3723 @code{muse-publish-markup-tags}
3725 A list of tag specifications, for specially marking up text.
3727 XML-style tags are the best way to add custom markup to Muse.  This is
3728 easily accomplished by customizing this list of markup tags.
3730 For each entry, the name of the tag is given, whether it expects a
3731 closing tag and/or an optional set of attributes, whether it is
3732 nestable, and a function that performs whatever action is desired within
3733 the delimited region.
3735 The tags themselves are deleted during publishing, before the function
3736 is called.  The function is called with three arguments, the beginning
3737 and end of the region surrounded by the tags.  If properties are
3738 allowed, they are passed as a third argument in the form of an alist.
3739 The `end' argument to the function is always a marker.
3741 Point is always at the beginning of the region within the tags, when the
3742 function is called.  Wherever point is when the function finishes is
3743 where tag markup will resume.
3745 These tag rules are processed once at the beginning of markup, and once
3746 at the end, to catch any tags which may have been inserted in-between.
3748 @node Style Elements, , Markup Tags, Common Elements
3749 @comment  node-name,  next,  previous,  up
3750 @subsection Parameters used for defining styles
3751 @cindex publishing, style elements
3753 Style elements are tags that define a style.  Use
3754 @code{muse-define-style} to create a new style.
3756 @example
3757 (muse-define-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
3758 @end example
3760 @subheading Usable elements
3762 @table @option
3764 @item :suffix
3765 File extension to use for publishing files with this style.
3767 @item :link-suffix
3768 File extension to use for publishing links to Muse files with this
3769 style.
3771 @item :osuffix
3772 File extension to use for publishing second-stage files with this style.
3774 For example, PDF publishing generates a LaTeX file first, then a PDF
3775 from that LaTeX file.
3777 @item :regexps
3778 List of markup rules for publishing a page with Muse.
3779 @xref{muse-publish-markup-regexps}.
3781 @item :functions
3782 An alist of style types to custom functions for that kind of text.
3783 @xref{muse-publish-markup-functions}.
3785 @item :strings
3786 Strings used for marking up text with this style.
3788 These cover the most basic kinds of markup, the handling of which
3789 differs little between the various styles.
3791 @item :tags
3792 A list of tag specifications, used for handling extra tags.
3793 @xref{muse-publish-markup-tags}.
3795 @item :specials
3796 A table of characters which must be represented specially.
3798 @item :before
3799 A function that is to be executed on the newly-created publishing buffer
3800 (or the current region) before any publishing occurs.
3802 This is used to set extra parameters that direct the publishing process.
3804 @item :before-end
3805 A function that is to be executed on the publishing buffer (or the
3806 current region) immediately after applying all of the markup regexps.
3808 This is used to fix the order of table elements (header, footer, body)
3809 in XML-ish styles.
3811 @item :after
3812 A function that is to be executed on the publishing buffer after
3813 :before-end, and immediately after inserting the header and footer.
3815 This is used for generating the table of contents as well as setting the
3816 file coding system.
3818 @item :final
3819 A function that is to be executed after saving the published file, but
3820 while still in its buffer.
3822 This is used for generating second-stage documents like PDF files from
3823 just-published LaTeX files.
3825 @item :header
3826 Header used for publishing files of this style.
3828 This may be a variable, text, or a filename.  It is inserted at the
3829 beginning of a file, after evaluating the publishing markup.
3831 @item :footer
3832 Footer used for publishing files of this style.
3834 This may be a variable, text, or a filename.  It is inserted at the end
3835 of a file, after evaluating the publishing markup.
3837 @item :style-sheet
3838 Style sheet used for publishing files of this style.
3840 This may be a variable or text.  It is used in the header of HTML and
3841 XHTML based publishing styles.
3843 @item :browser
3844 The function used to browse the published result of files of this style.
3846 @end table
3848 @node Deriving Styles, , Common Elements, Extending Muse
3849 @comment  node-name,  next,  previous,  up
3850 @section Deriving a new style from an existing one
3851 @cindex publishing styles, deriving
3853 To create a new style from an existing one, use @code{muse-derive-style}
3854 as follows.  This is a good way to fix something you don't like about a
3855 particular publishing style, or to personalize it.
3857 @example
3858 (muse-derive-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
3859 @end example
3861 The derived name is a string defining the new style, such as "my-html".
3862 The base name must identify an existing style, such as "html" -- if you
3863 have loaded @file{muse-html}.  The style parameters are the same as
3864 those used to create a style, except that they override whatever
3865 definitions exist in the base style.  However, some definitions only
3866 partially override.  The following parameters support partial
3867 overriding.
3869 @xref{Style Elements}, for a complete list of all parameters.
3871 @table @option
3873 @item :functions
3874 If a markup function is not found in the derived style's function list,
3875 the base style's function list will be queried.
3877 @item :regexps
3878 All regexps in the current style and the base style(s) will be used.
3880 @item :strings
3881 If a markup string is not found in the derived style's string list, the
3882 base style's string list will be queried.
3884 @end table
3886 @node Miscellaneous, Getting Help and Reporting Bugs, Extending Muse, Top
3887 @comment  node-name,  next,  previous,  up
3888 @chapter Miscellaneous add-ons, like a minor mode
3890 @menu
3891 * Muse List Edit Minor Mode::   Edit lists easily in other major modes.
3892 @end menu
3894 @node Muse List Edit Minor Mode, , , Miscellaneous
3895 @comment  node-name,  next,  previous,  up
3896 @section Edit lists easily in other major modes
3897 @cindex muse-list-edit-minor-mode
3899 @code{muse-list-edit-minor-mode} is meant to be used with other major
3900 modes, such as Message (for composing email) and debian-changelog-mode
3901 (for editing debian/changelog files).
3903 It implements practically perfect support for editing and filling lists.
3904 It can even handle nested lists.  In addition to Muse-specific list
3905 items ("-", numbers, definition lists, footnotes), it can also handle
3906 items that begin with "*" or "+".  Filling list items behaves in the
3907 same way that it does in Muse, regardless of whether filladapt is also
3908 enabled, which is the primary reason to use this tool.
3910 @subheading Installation
3912 To use it, add ``(require 'muse-mode)'' to your Emacs customization file
3913 and add the function @code{turn-on-muse-list-edit-minor-mode} to any
3914 mode hooks where you wish to enable this minor mode.
3916 @subheading Keybindings
3918 @code{muse-list-edit-minor-mode} uses the following keybindings.
3920 @table @kbd
3922 @item M-RET (`muse-l-e-m-m-insert-list-item')
3923 Insert a new list item at point, using the indentation level of the
3924 current list item.
3926 @item C-< (`muse-l-e-m-m-decrease-list-item-indent')
3927 Decrease indentation of the current list item.
3929 @item C-> (`muse-l-e-m-m-increase-list-item-indent')
3930 Increase indentation of the current list item.
3932 @end table
3934 @subheading Functions
3936 @defun muse-list-edit-minor-mode
3937 This is a global minor mode for editing files with lists.
3938 It is meant to be used with other major modes, and not with Muse mode.
3940 Interactively, with no prefix argument, toggle the mode.
3941 With universal prefix @var{arg} turn mode on.
3942 With zero or negative @var{arg} turn mode off.
3944 This minor mode provides the Muse keybindings for editing lists,
3945 and support for filling lists properly.
3947 It recognizes not only Muse-style lists, which use the "-"
3948 character or numbers, but also lists that use asterisks or plus
3949 signs.  This should make the minor mode generally useful.
3951 Definition lists and footnotes are also recognized.
3953 Note that list items may omit leading spaces, for compatibility
3954 with modes that set @code{left-margin}, such as
3955 @code{debian-changelog-mode}.
3956 @end defun
3958 @defun turn-on-muse-list-edit-minor-mode
3959 Unconditionally turn on Muse list edit minor mode.
3960 @end defun
3962 @defun turn-off-muse-list-edit-minor-mode
3963 Unconditionally turn off Muse list edit minor mode.
3964 @end defun
3966 @node Getting Help and Reporting Bugs, History, Miscellaneous, Top
3967 @comment  node-name,  next,  previous,  up
3968 @chapter Getting Help and Reporting Bugs
3969 @cindex help, getting
3970 @cindex bugs, reporting
3972 After you have read this guide, if you still have questions about
3973 Muse, or if you have bugs to report, there are several places you can
3976 @itemize @bullet
3978 @item
3979 @uref{http://www.emacswiki.org/cgi-bin/wiki/EmacsMuse} is the
3980 emacswiki.org page, and anyone may add tips, hints, or bug descriptions
3981 to it.
3983 @item
3984 @uref{http://mwolson.org/projects/EmacsMuse.html} is the web page
3985 that Michael Olson (the current maintainer) made for Muse.
3987 @item
3988 Muse has several different mailing lists.
3990 @table @samp
3992 @item muse-el-announce
3993 Low-traffic list for Muse-related announcements.
3995 You can join this mailing list (@email{muse-el-announce@@gna.org})
3996 using the subscription form at
3997 @url{http://mail.gna.org/listinfo/muse-el-announce/}.  This
3998 mailing list is also available via Gmane (@url{http://gmane.org/}). The
3999 group is called @samp{gmane.emacs.muse.announce}.
4001 @item muse-el-discuss
4002 Discussion, bugfixes, suggestions, tips, and the like for Muse.
4003 This mailing list also includes the content of muse-el-announce.
4005 You can join this mailing list (@email{muse-el-discuss@@gna.org})
4006 using the subscription form at
4007 @url{http://mail.gna.org/listinfo/muse-el-discuss/}.  This mailing
4008 list is also available via Gmane with the identifier
4009 @samp{gmane.emacs.muse.general}.
4011 @item muse-el-logs
4012 Log messages for commits made to Muse.
4014 You can join this mailing list (@email{muse-el-logs@@gna.org}) using
4015 the subscription form at
4016 @url{http://mail.gna.org/listinfo/muse-el-logs/}.  This mailing list
4017 is also available via Gmane with the identifier
4018 @samp{gmane.emacs.muse.scm}.
4020 @item muse-el-commits
4021 Generated bug reports for Emacs Muse.  If you use our bug-tracker at
4022 @url{https://gna.org/bugs/?group=muse-el}, the bug reports will be
4023 sent to this list automatically.
4025 You can join this mailing list (@email{muse-el-commits@@gna.org}) using
4026 the subscription form at
4027 @url{http://mail.gna.org/listinfo/muse-el-commits/}.  This mailing list
4028 is also available via Gmane with the identifier
4029 @samp{gmane.emacs.muse.cvs}.
4031 @item muse-el-internationalization
4032 Discussion of translation of the Muse website and documentation into
4033 many languages.
4035 You can join this mailing list
4036 (@email{muse-el-internationalization@@gna.org}) using the subscription
4037 form at @url{http://mail.gna.org/listinfo/internationalization/}.  This
4038 mailing list is also available via Gmane with the identifier
4039 @samp{gmane.emacs.muse.internationalization}.
4041 @end table
4043 @item
4044 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
4045 contributors are frequently around and willing to answer your
4046 questions.  The @samp{#muse} channel is also available for
4047 Muse-specific help, and its current maintainer hangs out there.
4049 @item
4050 The maintainer of Emacs Muse, Michael Olson, may be contacted at
4051 @email{mwolson@@gnu.org}.  He can be rather slow at answering email, so
4052 it is often better to use the muse-el-discuss mailing list.
4054 @end itemize
4056 @node History, Contributors, Getting Help and Reporting Bugs, Top
4057 @comment  node-name,  next,  previous,  up
4058 @chapter History of This Document
4059 @cindex history, of Muse
4061 @itemize
4062 @item 2004
4063 John Wiegley started Muse upon realizing that EmacsWiki had some serious
4064 limitations. Around February 2004, he started making "emacs-wiki version
4065 3.00 APLHA", which eventually became known as Muse.
4067 Most of those who frequent the emacs-wiki mailing list continued to use
4068 emacs-wiki, mainly because Planner hasn't been ported over to it.
4070 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
4071 John Wiegley's request.
4073 @item 2005
4074 Michael Olson overhauled this document and added many new sections in
4075 preparation for the first release of Muse (3.01).
4077 @end itemize
4079 @node Contributors, GNU Free Documentation License, History, Top
4080 @comment  node-name,  next,  previous,  up
4081 @chapter Contributors to This Documentation
4082 @cindex contributors
4084 The first draft of this document was taken from the emacs-wiki texinfo
4085 manual.  Michael Olson adapted it for Muse and added most of its
4086 content.
4088 John Sullivan did a majority of the work on the emacs-wiki texinfo
4089 manual.
4091 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
4092 emacs-wiki texinfo manual.
4095 @node GNU Free Documentation License, Concept Index, Contributors, Top
4096 @appendix GNU Free Documentation License
4097 @include doclicense.texi
4100 @node Concept Index,  , GNU Free Documentation License, Top
4101 @comment  node-name,  next,  previous,  up
4102 @unnumbered Index
4104 @printindex cp
4106 @bye