Mention both Ubuntu and Debian throughout.
[muse-el.git] / muse.texi
blob9048adbca95ca2bb7e82b09eee51cd40b5d7fefc
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename muse.info
4 @settitle Muse
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * Muse: (muse). Authoring and publishing environment for Emacs.
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for the Emacs Muse version 3.02.90 (3.03 RC1).
17 Copyright @copyright{} 2004, 2005, 2006 Free Software Foundation, Inc.
19 @quotation
20 Permission is granted to copy, distribute and/or modify this document
21 under the terms of the GNU General Public License.
22 @end quotation
23 @end copying
25 @titlepage
26 @title Muse manual
27 @subtitle an authoring and publishing environment
28 @subtitle for GNU Emacs and XEmacs
30 @c The following two commands
31 @c start the copyright page.
32 @page
33 @vskip 0pt plus 1filll
34 @insertcopying
35 @end titlepage
37 @c So the toc is printed at the start
38 @contents
40 @ifnottex
41 @node Top, Preface, (dir), (dir)
42 @comment  node-name,  next,  previous,  up
43 @top Muse
45 @insertcopying
46 @end ifnottex
48 @menu
49 * Preface::                     About the documentation.
50 * Introduction::                What is Muse?
51 * Obtaining Muse::              How to get Muse releases and development
52                                   changes.
53 * Installation::                Compiling and installing Muse.
54 * Getting Started::             Settings for Muse.
55 * Projects::                    Creating and managing Muse projects.
56 * Keystroke Summary::           Keys used in Muse mode.
57 * Markup Rules::                Rules for using markup.
58 * Publishing Styles::           Publishing various types of documents.
59 * Extending Muse::              Making your own publishing styles.
60 * Getting Help and Reporting Bugs::  
61 * History::                     History of this document.
62 * Contributors::                Contributors to this documentation.
63 * GNU General Public License::  The license for this manual and Muse.
64 * Concept Index::               Search for terms.
66 @detailmenu
67  --- The Detailed Node Listing ---
69 How to Get Muse Releases and Development Changes
71 * Releases::                    Released versions of Muse.
72 * Development::                 Latest unreleased development changes.
74 Rules for Using Markup
76 * Paragraphs::                  Paragraphs: centering and quoting.
77 * Headings::                    Levels of headings.
78 * Directives::                  Directives at the beginning of a
79                                   document.
80 * Emphasizing Text::            Bold, italicized, and underlined text.
81 * Footnotes::                   Making notes to be shown at the end.
82 * Verse::                       Indicating poetic stanzas.
83 * Lists::                       Lists of items.
84 * Tables::                      Generation of data tables.
85 * Explicit Links::              Hyperlinks and email addresses with
86                                   descriptions.
87 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
88                                   links.
89 * Images::                      Publishing and displaying images.
90 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
91 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
92                                   for extensibility.
93 * Comments::                    Lines to omit from published output.
94 * Tag Summary::                 Tags that Muse recognizes.
96 Publishing Various Types of Documents
98 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
99 * Book::                        Publishing entries into a compilation.
100 * DocBook::                     Publishing in DocBook XML form.
101 * HTML::                        Publishing in HTML or XHTML form.
102 * Journal::                     Keeping a journal or blog.
103 * LaTeX::                       Publishing LaTeX documents.
104 * Poem::                        Publish a poem to LaTex or PDF.
105 * Texinfo::                     Publish entries to Texinfo format or PDF.
107 Integrating Muse and pyblosxom.cgi
109 * Blosxom Requirements::        Other tools needed to the Blosxom style.
110 * Blosxom Entries::             Format of a Blosxom entry and automation.
111 * Blosxom Options::             Blosxom styles and options provided.
113 Making your own publishing styles
115 * Common Elements::             Common functionality shared by styles.
116 * Deriving Styles::             Deriving a new style from an existing
117                                   one.
119 Common functionality shared by styles
121 * Markup Functions::            Specifying functions to marking up text.
122 * Markup Regexps::              Markup rules for publishing.
123 * Markup Strings::              Strings specific to a publishing style.
124 * Markup Tags::                 Tag specifications for special markup.
125 * Style Elements::              Parameters used for defining styles.
127 @end detailmenu
128 @end menu
130 @node Preface, Introduction, Top, Top
131 @comment  node-name,  next,  previous,  up
132 @chapter About the documentation
134 This document describes Muse, which was written by John Wiegley
135 and is now maintained by Michael Olson.  Several versions of it are
136 available on-line.
138 @itemize @bullet
139 @item PDF: http://www.mwolson.org/static/doc/muse.pdf
140 @item HTML (single file): http://www.mwolson.org/static/doc/muse.html
141 @item HTML (multiple files): http://www.mwolson.org/static/doc/muse/
142 @end itemize
144 @node Introduction, Obtaining Muse, Preface, Top
145 @comment  node-name,  next,  previous,  up
146 @chapter What is Muse?
148 Emacs Muse is an authoring and publishing environment for Emacs.  It
149 simplifies the process of writing documents and publishing them to
150 various output formats.
152 Muse consists of two main parts: an enhanced text-mode for authoring
153 documents and navigating within Muse projects, and a set of publishing
154 styles for generating different kinds of output.
156 This idea is not in any way new. Numerous systems exist -- even one
157 other for Emacs itself (Bhl Mode). What Muse adds to the picture is a
158 more modular environment, with a rather simple core, in which "styles"
159 are derived from to create new styles. Much of Muse's overall
160 functionality is optional. For example, you can use the publisher
161 without the major-mode, or the mode without doing any publishing; or if
162 you don't load the Texinfo or LaTeX modules, those styles won't be
163 available.
165 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
166 code has been restructured and rewritten, especially its publishing
167 functions. The focus in this revision is on the authoring and publishing
168 aspects, and the "wikiness" has been removed as a default behavior
169 (available in the optional @file{muse-wiki} module). CamelCase words are
170 no longer special by default.
172 @node Obtaining Muse, Installation, Introduction, Top
173 @comment  node-name,  next,  previous,  up
174 @chapter How to Get Muse Releases and Development Changes
176 @menu
177 * Releases::                    Released versions of Muse.
178 * Development::                 Latest unreleased development changes.
179 @end menu
181 @node Releases, Development, Obtaining Muse, Obtaining Muse
182 @comment  node-name,  next,  previous,  up
183 @section Released versions of Muse
185 Choose to install a release if you want to minimize risk.
187 Errors are corrected in development first.  User-visible changes will be
188 announced on the @email{emacs-wiki-discuss@@nongnu.org} mailing list.
189 This mailing list also provides support for @command{Planner} and
190 @command{emacs-wiki}, which is the predecessor of Muse.
191 @pxref{Getting Help and Reporting Bugs}.
193 @cindex releases, Debian package
194 @cindex Debian package for Muse
195 Debian and Ubuntu users can get Muse via apt-get.  The @file{muse-el}
196 package is available both at Michael Olson's APT repository and the
197 official Debian and Ubuntu repositories.  To make use of the former, add
198 the following line to your @file{/etc/apt/sources.list} file and run
199 @code{apt-get install muse}.
201 @example
202 deb http://www.mwolson.org/debian/ ./
203 @end example
205 @cindex releases, from source
206 Alternatively, you can download the latest release from
207 @uref{http://www.mwolson.org/static/dist/muse/} .
209 @node Development,  , Releases, Obtaining Muse
210 @comment  node-name,  next,  previous,  up
211 @section Latest unreleased development changes
212 @cindex development
214 Choose the development version if you want to live on the bleeding edge
215 of Muse development or try out new features before release.
217 @cindex arch revision control system, using
218 The Arch revision control system allows you to retrieve previous
219 versions and select specific features and bug fixes.  If you would like
220 to contribute to Muse development, it is highly recommended that you use
221 Arch, but this is not a requirement.
223 If you are new to Arch, you might find this tutorial helpful:
224 @uref{http://www.mwolson.org/projects/ArchTutorial.html}.
226 Downloading the Muse module with Arch and staying up-to-date involves
227 the following steps.
229 @enumerate
230 @item Install arch
232 @itemize @bullet
233 @item Debian and Ubuntu: @kbd{apt-get install tla}.
234 @item Other distributions: see @uref{http://regexps.srparish.net/www/}.
235 @end itemize
237 @item Register the archive.
238 @example
239 tla register-archive -f http://www.mwolson.org/archives/2005
240 @end example
242 @item Download the Muse package.
243 @example
244 # Download Muse into the @file{muse} directory.
245 tla get mwolson@@gnu.org--2005/muse--main--1.0 muse
246 @end example
248 @item List upstream changes that are missing from your local copy.
249 Do this whenever you want to see whether new changes have been committed
250 to Muse.
252 @example
253 # Change to the source directory you are interested in.
254 cd muse/
256 # Display the summary of changes
257 tla missing --summary
258 @end example
260 @cindex updating Muse with Arch
261 @item Update to the latest version by replaying missing changes.
262 @example
263 cd muse
264 tla replay
265 @end example
267 @end enumerate
269 There are other ways to interact with the Muse archive.
271 @itemize
272 @item Browse arch repository: @uref{http://www.mwolson.org/archives/}
273 @item Latest development snapshot: @uref{http://www.mwolson.org/static/dist/muse-latest.tar.gz}
274 @end itemize
276 The latest development snapshot will be kept up-to-date since it is
277 updated at the same time as the Arch repository.
279 @node Installation, Getting Started, Obtaining Muse, Top
280 @comment  node-name,  next,  previous,  up
281 @chapter Compiling and Installing Muse
283 Muse may be compiled and installed on your machine.
285 @subheading Compilation
287 This is an optional step, since Emacs Lisp source code does not
288 necessarily have to be byte-compiled.  It will yield a speed increase,
289 though.
291 A working copy of Emacs or XEmacs is needed in order to compile the
292 Emacs Muse.  By default, the program that is installed with the name
293 @command{emacs} will be used.
295 If you want to use the @command{xemacs} binary to perform the
296 compilation, you would need to edit @file{Makefile.defs} in the
297 top-level directory as follows.  You can put either a full path to an
298 Emacs or XEmacs binary or just the command name, as long as it is in the
299 @env{PATH}.
301 @example
302 EMACS    = xemacs
303 SITEFLAG = -no-site-file
304 @end example
306 Running @code{make} should compile the Muse source files in the
307 @file{lisp} directory.
309 @subheading Installation
311 Muse may be installed into your file hierarchy by doing the following.
313 Edit the @file{Makefile.defs} file so that @env{ELISPDIR} points to
314 where you want the source and compiled Muse files to be installed and
315 @env{INFODIR} indicates where to put the Muse manual.  Of course, you
316 will want to edit @env{EMACS} and @env{SITEFLAG} as shown in the
317 Compilation section if you are using XEmacs.
319 If you are installing Muse on a Debian or Ubuntu system, you might want
320 to change the value of @env{INSTALLINFO} as specified in
321 @file{Makefile.defs}.
323 If you wish to install Muse to different locations than the defaults
324 specify, edit @file{Makefile.defs} accordingly.
326 Run @code{make} as a normal user.
328 Run @code{make install} as the root user if you have chosen installation
329 locations that require this.
332 @node Getting Started, Projects, Installation, Top
333 @comment  node-name,  next,  previous,  up
334 @chapter Getting Started
335 @cindex settings
337 To use Muse, add the directory containing its files to your
338 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
339 the authoring mode, and the styles you wish to publish to.  An example
340 follows.
342 @lisp
343 (add-to-list 'load-path "<path to Muse>")
345 (require 'muse-mode)     ; load authoring mode
347 (require 'muse-html)     ; load publishing styles I use
348 (require 'muse-latex)
349 (require 'muse-texinfo)
350 (require 'muse-docbook)
351 @end lisp
353 Once loaded, the command @kbd{M-x muse-publish-this-file} will publish
354 an input document to any available style.  If you enable
355 @file{muse-mode} within a buffer, by typing @kbd{M-x muse-mode}, this
356 command will be bound to @kbd{C-c C-t}.
358 If the currently opened file is part of a defined project in
359 @code{muse-project-alist}, it may be published using @kbd{C-c C-p}.
361 You should also type @kbd{M-x customize-group}, and give the name
362 @samp{muse}.  Each of the options has its own documentation.
365 @node Projects, Keystroke Summary, Getting Started, Top
366 @comment  node-name,  next,  previous,  up
367 @chapter Creating and Managing Muse Projects
368 @cindex projects
370 Often you will want to publish all the files within a directory to a
371 particular set of output styles automatically.  To support, Muse
372 allows for the creations of "projects".  Here is a sample project, to
373 be defined in your @file{.emacs} file.
375 @lisp
376 (require 'muse-project)
378 (setq muse-project-alist
379       '(("website"                      ; my various writings
380          ("~/Pages" :default "index")
381          (:base "html" :path "~/public_html")
382          (:base "pdf" :path "~/public_html/pdf"))))
383 @end lisp
385 The above defines a project named "website", whose files are located
386 in the directory @file{~/Pages}.  The default page to visit is
387 @file{index}.  When this project is published, each page will be
388 output as HTML to the directory @file{~/public_html}, and as PDF to
389 the directory @file{~/public_html/pdf}.  Within any project page, you
390 may create a link to other pages using the syntax @samp{[[pagename]]}.
392 By default, Muse expects all project files to have the file extension
393 @file{.muse}. Files without this extension will not be associated with
394 Muse mode and will not be considered part of any project, even if they
395 are within a project directory.
397 If you don't want to use @file{.muse}, you can customize the extension
398 by setting the value of @code{muse-file-extension}.
400 If you don't want to use any extension at all, and want Muse to
401 autodetect project files based on their location, then add the following
402 to your Muse settings file.
404 @lisp
405 (setq muse-file-extension nil
406       muse-mode-auto-p t)
407 @end lisp
409 If you would like to include only some files from a directory in a Muse
410 project, you may use a regexp in place of @file{~/Pages} in the example.
412 @c PRE3_03: Give more examples
413 @c PRE3_03: Describe :set and other options fully
415 @node Keystroke Summary, Markup Rules, Projects, Top
416 @comment  node-name,  next,  previous,  up
417 @chapter Keys Used in Muse Mode
418 @cindex keystrokes
420 This is a summary of keystrokes available in every Muse buffer.
422 @table @kbd
424 @item C-c C-a (`muse-index')
425 Display an index of all known Muse pages.
427 @item C-c C-b (`muse-find-backlinks')
428 Find all pages that link to this page.
430 @item C-c C-c (`muse-follow-name-at-point')
431 Visit the link at point.
433 @item C-c C-e (`muse-edit-link-at-point')
434 Edit link at point.
436 @item C-c C-f (`muse-project-find-file')
437 Open another Muse page.  Prompt for the name.
439 @item C-c C-i (`muse-insert-tag')
440 Insert a tag interactively.
442 @item C-c C-l (`font-lock-mode')
443 Toggle font lock / highlighting for the current buffer.
445 @item C-c C-p (`muse-project-publish')
446 Publish any Muse pages that have changed.
448 @item C-c C-s (`muse-search')
449 Find text in all files of the current project.
451 @item C-c C-t (`muse-project-publish-this-file')
452 Publish the currently-visited file.  Prompt for the style if the current
453 file can be published using more than one style.
455 @item C-c C-T (`muse-publish-this-file')
456 Publish the currently-visited file.  Prompt for both the style and
457 output directory.
459 @item C-c C-v (`muse-browse-result')
460 Show the published result of this page.
462 @item C-c = (`muse-what-changed')
463 Diff this page against the last backup version.
465 @item C-c TAB l (`muse-insert-relative-link-to-file')
466 Insert a link to a file interactively.
468 @item C-c TAB t (`muse-insert-tag')
469 Insert a tag interactively.
471 @item C-c TAB u (`muse-insert-url')
472 Insert a URL interactively.
474 @item TAB
475 Move to the next Wiki reference.
477 @item S-TAB
478 Move to the previous Wiki reference.
480 @item M-TAB
481 Complete the name of a page from the current project at point.
483 @item M-RET
484 Insert a new list item at point, indenting properly.
486 @item C-<
487 Decrease the indentation of the list item at point.
489 @item C->
490 Increase the indentation of the list item at point.
492 @end table
495 @node Markup Rules, Publishing Styles, Keystroke Summary, Top
496 @comment  node-name,  next,  previous,  up
497 @chapter Rules for Using Markup
498 @cindex markup
500 A Muse document uses special, contextual markup rules to determine how
501 to format the output result.  For example, if a paragraph is indented,
502 Muse assumes it should be quoted.
504 There are not too many markup rules, and all of them strive to be as
505 simple as possible so that you can focus on document creation, rather
506 than formatting.
508 @menu
509 * Paragraphs::                  Paragraphs: centering and quoting.
510 * Headings::                    Levels of headings.
511 * Directives::                  Directives at the beginning of a
512                                   document.
513 * Emphasizing Text::            Bold, italicized, and underlined text.
514 * Footnotes::                   Making notes to be shown at the end.
515 * Verse::                       Indicating poetic stanzas.
516 * Lists::                       Lists of items.
517 * Tables::                      Generation of data tables.
518 * Explicit Links::              Hyperlinks and email addresses with
519                                   descriptions.
520 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
521                                   links.
522 * Images::                      Publishing and displaying images.
523 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
524 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
525                                   for extensibility.
526 * Comments::                    Lines to omit from published output.
527 * Tag Summary::                 Tags that Muse recognizes.
528 @end menu
530 @node Paragraphs, Headings, Markup Rules, Markup Rules
531 @comment  node-name,  next,  previous,  up
532 @section Paragraphs: centering and quoting
533 @cindex paragraphs
535 Paragraphs in Muse must be separated by a blank line.
537 @cindex paragraphs, centered
538 @subheading Centered paragraphs and quotations
540 A line that begins with six or more columns of whitespace (either tabs
541 or spaces) indicates a centered paragraph.  Alternatively, you can use
542 the @verb{|<center>|} tag to surround regions that are to be published as
543 centered paragraphs.
545 @cindex paragraphs, quoted
546 @cindex quotations
547 But if a line begins with whitespace, though less than six columns, it
548 indicates a quoted paragraph.  Alternatively, you can use the
549 @verb{|<quote>|} tag to surround regions that are to be published as
550 quoted paragraphs.
552 @cindex examples
553 @cindex monospace, rendering blocks
554 @cindex HTML, rendering blocks in monospace
555 @subheading Literal paragraphs
557 The @verb{|<example>|} tag is used for examples, where whitespace should
558 be preserved, the text rendered in monospace, and any characters special
559 to the output style escaped.
561 @cindex literal text
562 @cindex HTML, inserting a raw block
563 There is also the @verb{|<literal>|} tag, which causes a marked block to
564 be entirely left alone.  This can be used for inserting a hand-coded
565 HTML blocks into HTML output, for example.
567 @node Headings, Directives, Paragraphs, Markup Rules
568 @comment  node-name,  next,  previous,  up
569 @section Levels of headings
570 @cindex headings
572 A heading becomes a chapter or section in printed output -- depending on
573 the style.  To indicate a heading, start a new paragraph with one or
574 more asterices, followed by a space and the heading title.  Then begin
575 another paragraph to enter the text for that section.
577 All levels of headings will be published.  Most publishing styles only
578 distinguish the between the first 4 levels, however.
580 @example
581 * First level
583 ** Second level
585 *** Third level
587 **** Fourth level
588 @end example
590 @node Directives, Emphasizing Text, Headings, Markup Rules
591 @comment  node-name,  next,  previous,  up
592 @section Directives at the beginning of a document
593 @cindex directives
595 Directives are lines beginning with the @samp{#} character that come
596 before any paragraphs or sections in the document.  Directives are of
597 the form ``#directive content of directive''.  You can use any
598 combination of uppercase and lowercase letters for directives, even if
599 the directive is not in the list below.
601 The @code{muse-publishing-directive} function may be used in header and
602 footer text to access directives.  For example, to access the
603 @samp{#title} directive, use @code{(muse-publishing-directive "title")}.
605 The following is a list of directives that Muse uses.
607 @table @code
608 @cindex #author
609 @item #author
610 The author of this document.
612 If this is not specified, Muse will attempt to figure it out from the
613 @code{user-full-name} variable.
615 @cindex #date
616 @item #date
617 The date that the document was last modified.
619 This is used by publishing styles that are able to embed the date
620 information.
622 @cindex #desc
623 @item #desc
624 A short description of this document.
626 This is used by the @code{journal} publishing style to embed information
627 inside of an RSS/RDF feed.
629 @cindex #title
630 @item #title
631 The title of this document.
633 If this is not specified, the name of the file is used.
635 @end table
637 @node Emphasizing Text, Footnotes, Directives, Markup Rules
638 @comment  node-name,  next,  previous,  up
639 @section Bold, italicized, and underlined text
640 @cindex emphasizing text
641 @cindex underlining text
642 @cindex italicizing text
643 @cindex verbatim text
644 @cindex monospace, rendering words
646 To emphasize text, surround it with certain specially recognized
647 characters.
649 @example
650 *emphasis*
651 **strong emphasis**
652 ***very strong emphasis***
653 _underlined_
654 =verbatim and monospace=
655 @end example
657 @cindex WYSIWYG
658 While editing a Muse document in Muse mode, these forms of emphasis will
659 be highlighted in a WYSIWYG manner.  Each of these forms may span
660 multiple lines.
662 Verbatim text will be colored as gray by default.  To change this,
663 customize @code{muse-verbatim-face}.
665 You can also use the @verb{|<code>|} tag to indicate verbatim and
666 monospace text.  This is handy for regions that have an ``='' in them.
668 @node Footnotes, Verse, Emphasizing Text, Markup Rules
669 @comment  node-name,  next,  previous,  up
670 @section Making notes to be shown at the end
671 @cindex footnotes
673 A footnote reference is simply a number in square brackets.  To define
674 the footnote, place this definition at the bottom of your file.
675 @samp{footnote-mode} can be used to greatly facilitate the creation of
676 these kinds of footnotes.
678 Footnotes are defined by the same number in brackets occurring at the
679 beginning of a line.  Use footnote-mode's @kbd{C-c ! a} command, to very
680 easily insert footnotes while typing.  Use @kbd{C-x C-x} to return to
681 the point of insertion.
683 @node Verse, Lists, Footnotes, Markup Rules
684 @comment  node-name,  next,  previous,  up
685 @section Indicating poetic stanzas
686 @cindex verses
687 @cindex poetry
689 Poetry requires that whitespace be preserved, but without resorting to
690 monospace.  To indicate this, use the following markup, reminiscent of
691 email quotations.
693 @example
694 > A line of Emacs verse;
695 >   forgive its being so terse.
696 @end example
698 You can also use the @verb{|<verse>|} tag, if you prefer.
700 @example
701 <verse>
702 A line of Emacs verse;
703   forgive its being so terse.
704 </verse>
705 @end example
707 @cindex verses, multiple stanzas
708 Multiple stanzas may be included in one set of @verb{|<verse>|} tags, as
709 follows.
711 @example
712 <verse>
713 A line of Emacs verse;
714   forgive its being so terse.
716 In terms of terse verse,
717   you could do worse.
718 </verse>
719 @end example
721 @node Lists, Tables, Verse, Markup Rules
722 @comment  node-name,  next,  previous,  up
723 @section Lists of items
724 @cindex lists
726 Lists are given using special characters at the beginning of a line.
727 Whitespace must occur before bullets or numbered items, to distinguish
728 from the possibility of those characters occurring in a real sentence.
730 @cindex lists, bullets
731 These are rendered as a bullet list.
733 @example
734 - bullet item one
735 - bullet item two
736 @end example
738 @cindex lists, enumerated
739 An enumerated list follows.
741 @example
742 1. Enum item one
743 2. Enum item two
744 @end example
746 @cindex lists, definitions
747 Here is a definition list.
749 @example
750 Term1 ::
751   This is a first definition
752   And it has two lines;
753   no, make that three.
755 Term2 ::
756   This is a second definition
757 @end example
759 @node Tables, Explicit Links, Lists, Markup Rules
760 @comment  node-name,  next,  previous,  up
761 @section Generation of data tables
762 @cindex tables
764 @cindex tables, simple
765 Only very simple tables are supported.  The syntax is as follows.
767 @example
768 Double bars  || Separate header fields
770 Single bars   | Separate body fields
771 Here are more | body fields
773 Triple bars ||| Separate footer fields
774 @end example
776 Some publishing styles require header fields to come first, then footer
777 fields, and then the body fields.  You can use any order for these
778 sections that you like, and Muse will re-order them for you at
779 publish-time.
781 If you wish to disable table generation for one Muse file, add the
782 directive @samp{#disable-tables t} to the top of the file.
784 @node Explicit Links, Implicit Links, Tables, Markup Rules
785 @comment  node-name,  next,  previous,  up
786 @section Hyperlinks and email addresses with descriptions
787 @cindex links, explicit
789 A hyperlink can reference a URL, or another page within a Muse
790 project.  In addition, descriptive text can be specified, which should
791 be displayed rather than the link text in output styles that supports
792 link descriptions.  The syntax is as follows.
794 @example
795 [[link target][link description]]
796 [[link target without description]]
797 @end example
799 Thus, the current maintainer's homepage for Muse can be found
800 @samp{[[http://www.mwolson.org/projects/EmacsMuse.html][here]]},
801 or at @samp{[[http://www.mwolson.org/projects/EmacsMuse.html]]}.
803 @node Implicit Links, Images, Explicit Links, Markup Rules
804 @comment  node-name,  next,  previous,  up
805 @section Bare URLs, WikiNames, and InterWiki links
806 @cindex links, implicit
807 @cindex links, raw
808 @cindex URLs
809 @cindex Email addresses
811 A URL or email address encountered in the input text is published as a
812 hyperlink.  These kind of links are called @dfn{implicit links} because
813 they are not separated from the rest of the Muse document in any way.
815 @cindex WikiNames
816 If the @command{muse-wiki} module is loaded, another form of implicit
817 link will be made available.  WikiNames, which are typed in camelcase,
818 will be highlighted and published as links, provided that the file they
819 refer to exists.
821 Customization of WikiName recognition may be accomplished by editing the
822 @code{muse-wiki-wikiword-regexp} option and subsequently running
823 @code{(muse-configure-highlighting 'muse-colors-markupmuse-colors-markup)}.
824 If you use the Customize interface, the latter will be done
825 automatically.
827 @cindex InterWiki links
828 @cindex inter-project links
829 The @command{muse-wiki} module also allows for InterWiki links.  These
830 are similar to WikiWords, but they specify both the project and page of
831 a file.  The names of your project entries in @code{muse-project-alist}
832 will be used as InterWiki names by default.  Several examples follow.
834 @example
835 Blog::DocumentingMuse
836 Projects#EmacsMuse
837 Website
838 @end example
840 In the first case, the interwiki delimiter is @samp{::}, @samp{Blog} is
841 the project name, and @samp{DocumentingMuse} is the page name.  In the
842 second example, @samp{#} is the interwiki delimiter.  If the name of a
843 project occurs by itself in text, like the third case, it will be
844 colorized and published as a link to the default page of the given
845 project.
847 Customization of interwiki links may be accomplished by editing the
848 @code{muse-wiki-interwiki-alist} option.
850 @node Images, Horizontal Rules and Anchors, Implicit Links, Markup Rules
851 @comment  node-name,  next,  previous,  up
852 @section Publishing and displaying images
853 @cindex images
854 @cindex links, with images
855 @subheading Image links
857 Links to images may be used in either the target or the description, or
858 both.  Thus, the following code will publish as a clickable image that
859 points to @url{http://www.mwolson.org/}.
861 @example
862 [[http://www.mwolson.org/][http://www.mwolson.org/static/logos/site-logo.png]]
863 @end example
865 @cindex images, displaying
866 @cindex images, inlined
867 @cindex images, local
868 If a link to a locally-available image is encountered in the link
869 description, Muse mode will attempt to display it if your version of
870 Emacs permits this.  The following example will display correctly and
871 publish correctly if a @acronym{PNG} file called @file{TestLogo.png}
872 exists in the @file{../pics/} directory.
874 @example
875 [[TestPage][../pics/TestLogo.png]]
876 @end example
878 @cindex images, without a description
879 An image link is not required to have a description.  The link
880 @samp{[[../myimage.png]]} will display and publish as expected.
882 @node Horizontal Rules and Anchors, Embedded Lisp, Images, Markup Rules
883 @comment  node-name,  next,  previous,  up
884 @section Inserting a horizontal line or anchor
886 @cindex horizontal rules
887 @cindex dashes
888 @subheading Horizontal Rules
890 Four or more dashes indicate a horizontal rule.  Be sure to put blank
891 lines around it, or it will be considered part of the proceeding or
892 following paragraph!
894 @cindex anchors
895 @cindex links, with target on same page
896 @subheading Anchors
898 If you begin a line with "#anchor" -- where "anchor" can be any word
899 that doesn't contain whitespace -- it defines an anchor at that point
900 into the document.  This point can be referenced using "page#anchor" as
901 the target in a Muse link.
903 @node Embedded Lisp, Comments, Horizontal Rules and Anchors, Markup Rules
904 @comment  node-name,  next,  previous,  up
905 @section Evaluating Emacs Lisp code in documents for extensibility
906 @cindex lisp, embedded
908 Arbitrary kinds of markup can be achieved using the @verb{|<lisp>|} tag,
909 which is the only Muse tag supported in a style's header and footer
910 text.  With the @verb{|<lisp>|} tag, you may generated whatever output
911 text you wish.  The inserted output will get marked up, if the
912 @verb{|<lisp>|} tag appears within the main text of the document.
914 @example
915 <lisp>(concat "This form gets " "inserted")</lisp>
916 @end example
918 @cindex lisp, and insert command
919 Note that you should not use the @code{insert} command within a set of
920 @verb{|<lisp>|} tags, since the return value from the @verb{|<lisp>|}
921 tags will be automatically inserted into the document.
923 @node Comments, Tag Summary, Embedded Lisp, Markup Rules
924 @comment  node-name,  next,  previous,  up
925 @section Lines to omit from published output
926 @cindex comments
927 @cindex publishing, omitting lines
929 Use the following syntax to indicate a comment.  Comments will not be
930 published.
932 @example
933 ; Comment text goes here.
934 @end example
936 That is, only a semi-colon at the beginning of a line, followed by a
937 literal space, will cause that line to be treated as a comment.
939 @node Tag Summary, , Comments, Markup Rules
940 @comment  node-name,  next,  previous,  up
941 @section Tags that Muse recognizes
942 @cindex tags
943 @cindex inserting files at publish time
944 @cindex publishing, including markup in headers and footers
945 @cindex publishing, inserting files
947 Muse has several built-in tags that may prove useful during publishing.
948 @xref{muse-publish-markup-tags}, to see how to customize the tags that
949 Muse uses, as well as make your own tags.
951 @subheading Syntax
953 If a tag takes arguments, it will look like this, where ``tagname'' is
954 the name of the tag.
956 @example
957 <tagname arg1="string1" arg2="string2">
958 @end example
960 If you want the tag to look like it came straight from an XHTML
961 document, you can alternatively do the following.
963 @example
964 <tagname arg1="string1" arg2="string2" />
965 @end example
967 If a tag surrounds some text, it will look like this.
969 @example
970 <tagname>Some text</tagname>
971 @end example
973 If a tag surrounds a large region, it will look like this.
975 @example
976 <tagname>
977 Some text.
978 Some more text.
979 </tagname>
980 @end example
982 @subheading Tag listing
984 This is the complete list of tags that Muse accepts, including those
985 that were mentioned in previous sections.
987 @table @samp
989 @item <class>
990 If publishing to HTML, surround the given text with a @verb{|<span>|}
991 tag.  It takes one argument called ``name'' that specifies the class
992 attribute of the @verb{|<span>|} tag.
994 If publishing to a different format, do nothing extra to the text.
996 @item <code>
997 Treat the text surrounded by the tag as if they were enclosed in equal
998 signs, that is, make it monospace.
1000 @item <command>
1001 Run a command on the region, replacing the region with the result of the
1002 command.  The command is specified with the ``interp'' argument.  If no
1003 value for ``interp'' is given, pass the entire region to the shell.
1005 @item <comment>
1006 Treat the entire region as a comment.  If the option
1007 @var{muse-publish-comments-p} is nil, delete the region, otherwise
1008 publish it using the comment syntax of the current publishing style.
1010 @item <contents>
1011 Publish a Table of Contents.  This will either be inserted in-place or
1012 at the beginning of the document, depending on your publishing style.
1013 It does not have a delimiting tag.
1015 By default, only 2 levels of headings will be included in the generated
1016 Table of Contents.  To change this globally, customize the
1017 @var{muse-publish-contents-depth} option.  To change this only for the
1018 current tag, use the ``depth'' argument.
1020 @item <example>
1021 Publish the region in monospace, preserving the newlines in the region.
1022 This is useful for snippets of code.
1024 @item <include>
1025 Insert the given file at the current location during publishing.  The
1026 basic use of this tag is as follows, replacing ``included_file'' with
1027 the name of the file that you want to include.
1029 @example
1030 <include file="included_file">
1031 @end example
1033 The ``markup'' attribute controls how this section is marked up.
1034 If it is omitted, publish the included text with the normal Muse
1035 rules.
1037 If "nil", do not mark up the included text at all.
1039 If "example", treat the included text as if it was surrounded by the
1040 @verb{|<example>|} tag.
1042 If "verse", treat the included text as if it was surrounded by the
1043 @verb{|<verse>|} tag, to preserve newlines.
1045 Otherwise, it should be the name of a function to call after inserting
1046 the file with the buffer narrowed to the section inserted.
1048 @item <lisp>
1049 Evaluate the Emacs Lisp expressions between the initial and ending tags.
1050 The result is then inserted into the document, so you do not need to
1051 explicitly call @code{insert}.  All text properties are removed from the
1052 resulting text.
1054 @item <literal>
1055 Make sure that the text enclosed by this tag is published without
1056 escaping it in any way.  This is useful for inserting markup directly
1057 into the published document, when Muse does not provide the desired
1058 functionality.
1060 @item <markup>
1061 Mark up the text between the initial and ending tags.  The markup
1062 command to use may be specified by the ``function'' argument.  The
1063 standard Muse markup routines are used by default if no ``function''
1064 argument is provided.
1066 This is useful for marking up regions in headers and footers.  One
1067 example that comes to mind is generating a published index of all of the
1068 files in the current project by doing the following.
1070 @example
1071 <markup><lisp>(muse-index-as-string t t)</lisp></markup>
1072 @end example
1074 @item <quote>
1075 Publish the region as a blockquote.  This will either be inserted
1076 in-place or at the beginning of the document, depending on your
1077 publishing style.  It does not have a delimiting tag.
1079 @item <verbatim>
1080 This is used when you want to prevent Muse from trying to interpret some
1081 markup.  Surround the markup in @verb{|<verbatim>|} and
1082 @verb{|</verbatim>|}, and it will not be interpreted.
1084 This tag was used often in previous versions of Muse because they did
1085 not support whole-document escaping of specials.  Now, it will only be
1086 needed for other tags, and perhaps footnotes as well.
1088 @item <verse>
1089 Preserve the newlines in the region.  In formats like HTML, newlines are
1090 removed by default, hence the need for this tag.  In other publishing
1091 styles, this tag may cause the text to be indented slightly in a way
1092 that looks nice for poetry and prose.
1094 @end table
1096 @node Publishing Styles, Extending Muse, Markup Rules, Top
1097 @comment  node-name,  next,  previous,  up
1098 @chapter Publishing Various Types of Documents
1099 @cindex publishing styles
1101 One of the principle features of Muse is the ability to publish a simple
1102 input text to a variety of different output styles.  Muse also makes it
1103 easy to create new styles, or derive from an existing style.
1105 @menu
1106 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
1107 * Book::                        Publishing entries into a compilation.
1108 * DocBook::                     Publishing in DocBook XML form.
1109 * HTML::                        Publishing in HTML or XHTML form.
1110 * Journal::                     Keeping a journal or blog.
1111 * LaTeX::                       Publishing LaTeX documents.
1112 * Poem::                        Publish a poem to LaTex or PDF.
1113 * Texinfo::                     Publish entries to Texinfo format or PDF.
1114 @end menu
1116 @node Blosxom, Book, Publishing Styles, Publishing Styles
1117 @comment  node-name,  next,  previous,  up
1118 @section Integrating Muse and pyblosxom.cgi
1119 @cindex blog, one-file-per-entry style
1121 The Blosxom publishing style publishes a tree of categorised files to a
1122 mirrored tree of stories to be served by blosxom.cgi or pyblosxom.cgi.
1123 In other words, each blog entry corresponds with one file.
1125 @menu
1126 * Blosxom Requirements::        Other tools needed to the Blosxom style.
1127 * Blosxom Entries::             Format of a Blosxom entry and automation.
1128 * Blosxom Options::             Blosxom styles and options provided.
1129 @end menu
1131 @node Blosxom Requirements, Blosxom Entries, Blosxom, Blosxom
1132 @comment  node-name,  next,  previous,  up
1133 @subsection Other tools needed to the Blosxom style
1135 You will need to have @command{pyblosxom.cgi} or @command{blosxom.cgi}
1136 installed on a machine that you have upload access to.
1138 The following additional components are required in order to make the
1139 date of blog entries display as something sensible.
1141 @enumerate
1142 @item
1143 A script to gather date directives from the entire blog tree into a
1144 single file.  The file must associate a blog entry with a date.
1146 @item
1147 A plugin for (py)blosxom that reads this file.
1148 @end enumerate
1150 These 2 things are provided for @command{pyblosxom.cgi} in the
1151 @file{contrib/pyblosxom} subdirectory.  @file{getstamps.py} provides the
1152 former service, while @file{hardcodedates.py} provides the latter
1153 service.  Eventually it is hoped that a @command{blosxom.cgi} plugin and
1154 script will be found/written.
1156 Here is a sample listing from my @file{timestamps} file, which maps
1157 each file to a date.  This can really be in any format, as long as your
1158 date-gathering script and your plugin can both understand it.
1160 @example
1161 2005-04-01-14-16 personal/paper_cranes
1162 2005-03-21 personal/spring_break_over
1163 2004-10-24 personal/finished_free_culture
1164 @end example
1166 The script @file{contrib/pyblosxom/make-blog} demonstrates how to call
1167 @file{getstamps.py}.  Note that you will need to set the current
1168 directory to where your Muse files are, execute @file{getstamps.py}, and
1169 then move the generated timestamps file to your publishing directory.
1171 @node Blosxom Entries, Blosxom Options, Blosxom Requirements, Blosxom
1172 @comment  node-name,  next,  previous,  up
1173 @subsection Format of a Blosxom entry and automation
1175 Each Blosxom file must include `#date yyyy-mm-dd', or optionally the
1176 longer `#date yyyy-mm-dd-hh-mm', a title (using the #title directive),
1177 plus whatever normal content is desired.
1179 The date directive is not used directly by @command{pyblosxom.cgi} or
1180 this program.  You need to have the two additional items from the former
1181 section to make use of this feature.
1183 There is a function called @code{muse-blosxom-new-entry} that will
1184 automate the process of making a new blog entry.  To make use of it, do
1185 the following.
1187 @itemize @bullet
1188 @item
1189 Customize @code{muse-blosxom-base-directory} to the location that your
1190 blog entries are stored.
1192 @item
1193 Assign the @code{muse-blosxom-new-entry} function to a key sequence.  I
1194 use the following code to assign this function to @kbd{C-c p l'}.
1196 @example
1197 (global-set-key "\C-cpl" 'muse-blosxom-new-entry)
1198 @end example
1200 @item
1201 You should create your directory structure ahead of time under your base
1202 directory.  These directories, which correspond with category names, may
1203 be nested.
1205 @item
1206 When you enter this key sequence, you will be prompted for the category
1207 of your entry and its title.  Upon entering this information, a new file
1208 will be created that corresponds with the title, but in lowercase
1209 letters and having special characters converted to underscores.  The
1210 title and date directives will be inserted automatically.
1211 @end itemize
1213 @node Blosxom Options, , Blosxom Entries, Blosxom
1214 @comment  node-name,  next,  previous,  up
1215 @subsection Blosxom styles and options provided
1217 The following styles and options are available in the Blosxom publishing
1218 style.
1220 @subheading Styles provided
1222 @table @code
1224 @cindex publishing styles, blosxom-html
1225 @item blosxom-html
1226 Publish Blosxom entries in HTML form.
1228 @cindex publishing styles, blosxom-xhtml
1229 @item blosxom-xhtml
1230 Publish Blosxom entries in XHTML form.
1232 @end table
1234 @subheading Options provided
1236 @table @code
1238 @item muse-blosxom-extension
1239 Default file extension for publishing Blosxom files.
1241 @item muse-blosxom-header
1242 Header used for publishing Blosxom files.
1244 This may be text or a filename.
1246 @item muse-blosxom-footer
1247 Footer used for publishing Blosxom files.
1249 This may be text or a filename.
1251 @item muse-blosxom-base-directory
1252 Base directory of blog entries, used by @code{muse-blosxom-new-entry}.
1254 This is the top-level directory where your blog entries may be found
1255 locally.
1257 @end table
1259 @node Book, DocBook, Blosxom, Publishing Styles
1260 @comment  node-name,  next,  previous,  up
1261 @section Publishing entries into a compilation
1263 This publishing style is used to output ``books'' in LaTeX or PDF
1264 format.
1266 Each page will become a separate chapter in the book, unless the style
1267 keyword @option{:nochapters} is used, in which case they are all run
1268 together as if one giant chapter.
1270 You will need to call the @code{muse-book-publish-project} function in
1271 order to publish this style.  An example of this may be found in John
1272 Wiegley's configuration file at @file{examples/johnw/muse-johnw.el}.
1274 @subheading Styles provided
1276 @table @code
1278 @cindex publishing styles, book-latex
1279 @item book-latex
1280 Publish a book in LaTeX form.  The header and footer are different than
1281 the normal LaTeX publishing mode.
1283 @cindex publishing styles, book-pdf
1284 @item book-pdf
1285 Publish a book in PDF form.  The header and footer are different than
1286 the normal PDF publishing mode.
1288 @end table
1290 @subheading Options provided
1292 @table @code
1294 @item muse-book-before-publish-hook
1295 A hook run in the book buffer before it is marked up.
1297 @item muse-book-after-publish-hook
1298 A hook run in the book buffer after it is marked up.
1300 @item muse-book-latex-header
1301 Header used for publishing books to LaTeX.
1303 This may be text or a filename.
1305 @item muse-book-latex-footer
1306 Footer used for publishing books to LaTeX.
1308 This may be text or a filename.
1310 @end table
1312 @node DocBook, HTML, Book, Publishing Styles
1313 @comment  node-name,  next,  previous,  up
1314 @section Publishing in DocBook XML form
1316 This publishing style is used to generate DocBook XML files.
1318 @subheading Styles provided
1320 @table @code
1322 @cindex publishing styles, docbook
1323 @item docbook
1325 @end table
1327 @subheading Options provided
1329 @table @code
1331 @item muse-docbook-extension
1332 Default file extension for publishing DocBook XML files.
1334 @item muse-docbook-header
1335 Header used for publishing DocBook XML files.
1337 This may be text or a filename.
1339 @item muse-docbook-footer
1340 Footer used for publishing DocBook XML files.
1342 This may be text or a filename.
1344 @item muse-docbook-markup-regexps
1345 List of markup rules for publishing a Muse page to DocBook XML.
1347 @item muse-docbook-markup-functions
1348 An alist of style types to custom functions for that kind of text.
1350 @item muse-docbook-markup-strings
1351 Strings used for marking up text.
1353 These cover the most basic kinds of markup, the handling of which
1354 differs little between the various styles.
1356 @item muse-docbook-markup-specials
1357 A table of characters which must be represented specially.
1359 @item muse-docbook-encoding-default
1360 The default Emacs buffer encoding to use in published files.
1361 This will be used if no special characters are found.
1363 @item muse-docbook-charset-default
1364 The default DocBook XML charset to use if no translation is
1365 found in @code{muse-docbook-encoding-map}.
1367 @item muse-docbook-encoding-map
1368 An alist mapping emacs coding systems to appropriate DocBook charsets.
1369 Use the base name of the coding system (i.e. without the -unix).
1371 @end table
1373 @node HTML, Journal, DocBook, Publishing Styles
1374 @comment  node-name,  next,  previous,  up
1375 @section Publishing in HTML or XHTML form
1377 This publishing style is capable of producing HTML or XHTML documents.
1379 @subheading Styles provided
1381 @table @code
1383 @cindex publishing styles, html
1384 @item html
1385 Supports publishing to HTML 4.0 and HTML 4.01, Strict or Transitional.
1387 @item xhtml
1388 Supports publishing to XHTML 1.0 and XHTML 1.1, Strict or Transitional.
1390 @end table
1392 @subheading Options provided
1394 If an HTML option does not have a corresponding XHTML option, it will
1395 be used for both of these publishing styles.
1397 @table @code
1399 @item muse-html-extension
1400 Default file extension for publishing HTML files.
1402 @item muse-xhtml-extension
1403 Default file extension for publishing XHTML files.
1405 @item muse-html-style-sheet
1406 Store your stylesheet definitions here.
1408 This is used in @code{muse-html-header}.  You can put raw CSS in here or
1409 a @verb{|<link>|} tag to an external stylesheet.  This text may contain
1410 @verb{|<lisp>|} markup tags.
1412 If you are using XHTML, make sure to close the @verb{|<link>|} tag
1413 properly.
1415 @item muse-html-header
1416 Header used for publishing HTML files.
1418 This may be text or a filename.
1420 @item muse-html-footer
1421 Footer used for publishing HTML files.
1423 This may be text or a filename.
1425 @item muse-xhtml-header
1426 Header used for publishing XHTML files.
1428 This may be text or a filename.
1430 @item muse-xhtml-footer
1431 Footer used for publishing XHTML files.
1433 This may be text or a filename.
1435 @item muse-html-anchor-on-word
1436 When true, anchors surround the closest word.
1438 This allows you to select them in a browser (i.e. for pasting), but has
1439 the side-effect of marking up headers in multiple colors if your header
1440 style is different from your link style.
1442 @item muse-html-table-attributes
1443 The attribute to be used with HTML @verb{|<table>|} tags.
1445 If you want to make more-complicated tables in HTML, surround the HTML
1446 with the @verb{|literal|} tag, so that it does not get escaped.
1448 @item muse-html-markup-regexps
1449 List of markup rules for publishing a Muse page to HTML.
1451 @item muse-html-markup-functions
1452 An alist of style types to custom functions for that kind of text.
1454 @item muse-html-markup-strings
1455 Strings used for marking up text as HTML.
1457 These cover the most basic kinds of markup, the handling of which
1458 differs little between the various styles.
1460 @item muse-xhtml-markup-strings
1461 Strings used for marking up text as XHTML.
1463 These cover the most basic kinds of markup, the handling of which
1464 differs little between the various styles.
1466 @item muse-html-markup-tags
1467 A list of tag specifications, for specially marking up HTML.
1468 @xref{muse-publish-markup-tags}, for more information.
1470 @item muse-html-markup-specials
1471 A table of characters which must be represented specially.  By default,
1472 this includes @samp{"}, @samp{<}, @samp{>}, and @samp{&}.
1474 @item muse-html-meta-http-equiv
1475 The http-equiv attribute used for the HTML @verb{|<meta>|} tag.
1477 @item muse-html-meta-content-type
1478 The content type used for the HTML @verb{|<meta>|} tag.
1480 If you are striving for XHTML 1.1 compliance, you may want to change
1481 this to ``application/xhtml+xml''.
1483 @item muse-html-meta-content-encoding
1484 The charset to append to the HTML @verb{|<meta>|} tag.
1486 If set to the symbol 'detect, use @code{muse-html-encoding-map} to try
1487 and determine the HTML charset from emacs's coding.  If set to a string,
1488 this string will be used to force a particular charset.
1490 @item muse-html-charset-default
1491 The default HTML meta charset to use if no translation is found in
1492 @code{muse-html-encoding-map}.
1494 @item muse-html-encoding-default
1495 The default Emacs buffer encoding to use in published files.
1496 This will be used if no special characters are found.
1498 @item muse-html-encoding-map
1499 An alist mapping emacs coding systems to appropriate HTML charsets.
1500 Use the base name of the coding system (i.e. without the -unix).
1502 @end table
1504 @node Journal, LaTeX, HTML, Publishing Styles
1505 @comment  node-name,  next,  previous,  up
1506 @section Keeping a journal or blog
1507 @cindex journal
1508 @cindex blog, journal style
1510 The module facilitates the keeping and publication of a journal.  When
1511 publishing to HTML, it assumes the form of a web log, or blog.
1513 The input format for each entry is as follows.
1515 @example
1516 * 20040317: Title of entry
1518 text for the entry.
1520 <qotd>
1521 "You know who you are. It comes down to a simple gut check: You
1522 either love what you do or you don't. Period." -- P. Bronson
1523 </qotd>
1524 @end example
1526 The "qotd", or Quote of the Day, is entirely optional.  When generated
1527 to HTML, this entry is rendered as the following.
1529 @example
1530 <div class="entry">
1531   <div class="entry-qotd">
1532     <h3>Quote of the Day:</h3>
1533     <p>"You know who you are. It comes down to a simple gut
1534       check: You either love what you do or you don't. Period."
1535       -- P. Bronson</p>
1536   </div>
1537   <div class="entry-body">
1538     <div class="entry-head">
1539       <div class="entry-date">
1540         <span class="date">March 17, 2004</span>
1541       </div>
1542       <div class="entry-title">
1543         <h2>Title of entry</h2>
1544       </div>
1545     </div>
1546     <div class="entry-text">
1547       <p>Text for the entry.</p>
1548     </div>
1549   </div>
1550 </div>
1551 @end example
1553 The plurality of "div" tags makes it possible to display the entries in
1554 any form you wish, using a CSS style.
1556 Also, an .RDF file can be generated from your journal by publishing it
1557 with the "rdf" style.  It uses the first two sentences of the first
1558 paragraph of each entry as its "description", and auto-generates tags
1559 for linking to the various entries.
1561 @subheading Styles provided
1563 @table @code
1565 @cindex publishing styles, journal-html
1566 @item journal-html
1567 Publish journal entries as an HTML document.
1569 @cindex publishing styles, journal-xhtml
1570 @item journal-xhtml
1571 Publish journal entries as an XHTML document.
1573 @cindex publishing styles, journal-latex
1574 @item journal-latex
1575 Publish journal entries as a LaTeX document.
1577 @cindex publishing styles, journal-pdf
1578 @item journal-pdf
1579 Publish journal entries as a PDF document.
1581 @cindex publishing styles, journal-book-latex
1582 @item journal-book-latex
1583 Publish journal entries as a LaTeX book.
1585 @cindex publishing styles, journal-book-pdf
1586 @item journal-book-pdf
1587 Publish journal entries as a PDF book.
1589 @cindex publishing styles, journal-rdf
1590 @cindex publishing styles, RSS 1.0
1591 @item journal-rdf
1592 Publish journal entries as an RDF file (RSS 1.0).
1594 @cindex publishing styles, journal-rss
1595 @cindex publishing styles, RSS 2.0
1596 @item journal-rss
1597 Publish journal entries as an RSS file (RSS 2.0).
1599 @end table
1601 @subheading Options provided
1603 @table @code
1605 @item muse-journal-heading-regexp
1606 A regexp that matches a journal heading.
1608 Paren group 1 is the ISO date, group 2 is the optional category, and
1609 group 3 is the optional heading for the entry.
1611 @item muse-journal-date-format
1612 Date format to use for journal entries.
1614 @item muse-journal-html-heading-regexp
1615 A regexp that matches a journal heading from an HTML document.
1617 Paren group 1 is the ISO date, group 2 is the optional category, and
1618 group 3 is the optional heading for the entry.
1620 @item muse-journal-html-entry-template
1621 Template used to publish individual journal entries as HTML.
1623 @item muse-journal-latex-section
1624 Template used to publish a LaTeX section.
1626 @item muse-journal-latex-subsection
1627 Template used to publish a LaTeX subsection.
1629 @item muse-journal-latex-markup-tags
1630 A list of tag specifications, for specially marking up LaTeX.
1632 @xref{muse-publish-markup-tags}, for more information.
1634 @item muse-journal-rdf-extension
1635 Default file extension for publishing RDF (RSS 1.0) files.
1637 @item muse-journal-rdf-base-url
1638 The base URL of the website referenced by the RDF file.
1640 @item muse-journal-rdf-header
1641 Header used for publishing RDF (RSS 1.0) files.
1643 This may be text or a filename.
1645 @item muse-journal-rdf-footer
1646 Footer used for publishing RDF (RSS 1.0) files.
1648 This may be text or a filename.
1650 @item muse-journal-rdf-date-format
1651 Date format to use for RDF entries.
1653 @item muse-journal-rdf-entry-template
1654 Template used to publish individual journal entries as RDF.
1656 @item muse-journal-rdf-summarize-entries
1657 If non-nil, include only summaries in the RDF file, not the full data.
1659 @item muse-journal-rss-extension
1660 Default file extension for publishing RSS 2.0 files.
1662 @item muse-journal-rss-base-url
1663 The base URL of the website referenced by the RSS file.
1665 @item muse-journal-rss-header
1666 Header used for publishing RSS 2.0 files.
1668 This may be text or a filename.
1670 @item muse-journal-rss-footer
1671 Footer used for publishing RSS 2.0 files.
1673 This may be text or a filename.
1675 @item muse-journal-rss-date-format
1676 Date format to use for RSS 2.0 entries.
1678 @item muse-journal-rss-entry-template
1679 Template used to publish individual journal entries as RSS 2.0.
1681 @item muse-journal-rss-enclosure-types-alist
1682 File types that are accepted as RSS enclosures.
1684 This is an alist that maps file extension to content type.
1686 Useful for podcasting.
1688 @item muse-journal-rss-summarize-entries
1689 If non-nil, include only summaries in the RSS file, not the full data.
1691 Many RSS subscribers find this annoying.
1693 @item muse-journal-rss-markup-regexps
1694 List of markup rules for publishing a Muse journal page to RSS.
1696 For more information on the structure of this list,
1697 @xref{muse-publish-markup-regexps}.
1699 @item muse-journal-rss-markup-functions
1700 An alist of style types to custom functions for that kind of text.
1702 For more on the structure of this list,
1703 @xref{muse-publish-markup-functions}.
1705 @end table
1707 @node LaTeX, Poem, Journal, Publishing Styles
1708 @comment  node-name,  next,  previous,  up
1709 @section Publishing LaTeX documents
1711 This publishing style is capable of producing LaTeX or PDF documents.
1713 If you wish to publish PDF documents, you will need to have a good TeX
1714 installation.  For Debian and Ubuntu, this can be accomplished by
1715 installing the ``tetex-bin'' and ``tetex-extra'' packages.  TeX fonts
1716 are also a must.
1718 @subheading Styles provided
1720 @table @code
1722 @cindex publishing styles, latex
1723 @item latex
1724 Publish a LaTeX document.
1726 @cindex publishing styles, pdf
1727 @item pdf
1728 Publish a PDF document, using an external LaTeX document conversion
1729 tool.
1731 @cindex publishing styles, latexcjk
1732 @item latexcjk
1733 Publish a LaTeX document with CJK (Chinese) encodings.
1735 @cindex publishing styles, pdfcjk
1736 @item pdfcjk
1737 Publish a PDF document with CJK (Chinese) encodings, using an external
1738 LaTeX document conversion tool.
1740 @end table
1742 @subheading Options provided
1744 @table @code
1746 @item muse-latex-extension
1747 Default file extension for publishing LaTeX files.
1749 @item muse-latex-pdf-extension
1750 Default file extension for publishing LaTeX files to PDF.
1752 @item muse-latex-header
1753 Header used for publishing LaTeX files.
1755 This may be text or a filename.
1757 @item muse-latex-footer
1758 Footer used for publishing LaTeX files.
1760 This may be text or a filename.
1762 @item muse-latexcjk-header
1763 Header used for publishing LaTeX files (CJK).
1765 This may be text or a filename.
1767 @item muse-latexcjk-footer
1768 Footer used for publishing LaTeX files (CJK).
1770 This may be text or a filename.
1772 @item muse-latex-markup-regexps
1773 List of markup regexps for identifying regions in a Muse page.
1775 For more on the structure of this list,
1776 @xref{muse-publish-markup-regexps}.
1778 @item muse-latex-markup-functions
1779 An alist of style types to custom functions for that kind of text.
1781 For more on the structure of this list,
1782 @xref{muse-publish-markup-functions}.
1784 @item muse-latex-markup-strings
1785 Strings used for marking up text.
1787 These cover the most basic kinds of markup, the handling of which
1788 differs little between the various styles.
1790 @item muse-latexcjk-encoding-map
1791 An alist mapping emacs coding systems to appropriate CJK codings.
1792 Use the base name of the coding system (ie, without the -unix).
1794 @item muse-latexcjk-encoding-default
1795 The default Emacs buffer encoding to use in published files.
1797 This will be used if no special characters are found.
1799 @item muse-latex-markup-specials-example
1800 A table of characters which must be represented specially.
1801 These are applied to @verb{|example>|} regions.
1803 With the default interpretation of @verb{|<example>|} regions, no
1804 specials need to be escaped.
1806 @item muse-latex-markup-specials-document
1807 A table of characters which must be represented specially.
1808 These are applied to the entire document, sans already-escaped
1809 regions.
1811 @item muse-latex-markup-specials-literal
1812 A table of characters which must be represented specially.
1813 This applies to =monospaced text= and @verb{|<code>|} regions.
1815 @item muse-latex-markup-specials-url
1816 A table of characters which must be represented specially.
1817 These are applied to URLs.
1819 @item muse-latex-permit-contents-tag
1820 If nil, ignore @verb{|<contents>|} tags.  Otherwise, insert table of
1821 contents.
1823 Most of the time, it is best to have a table of contents on the
1824 first page, with a new page immediately following.  To make this
1825 work with documents published in both HTML and LaTeX, we need to
1826 ignore the @verb{|<contents>|} tag.
1828 If you don't agree with this, then set this option to non-nil,
1829 and it will do what you expect.
1831 @end table
1833 @node Poem, Texinfo, LaTeX, Publishing Styles
1834 @comment  node-name,  next,  previous,  up
1835 @section Publish a poem to LaTex or PDF
1837 The @code{muse-poem} module makes it easy to attractively publish and
1838 reference poems in the following format, using the "memoir" module for
1839 LaTeX publishing.  It will also markup poems for every other output
1840 style, though none are nearly as pretty.
1842 @example
1843 Title
1846 Body of poem
1849 Annotations, history, notes, etc.
1850 @end example
1852 Once a poem is written in this format, just publish it to PDF using the
1853 @code{poem-pdf} style.  To make an inlined reference to a poem that
1854 you've written -- for example, from a blog page -- there is a "poem" tag
1855 defined by this module.
1857 @example
1858 <poem title="name.of.poem.page">
1859 @end example
1861 Let's assume the template above was called @file{name.of.poem.page};
1862 then the above tag would result in this inclusion.
1864 @example
1865 ** Title
1867 > Body of poem
1868 @end example
1870 John Wiegley uses this module for publishing all of the poems on his
1871 website, which are at
1872 @uref{http://www.newartisans.com/johnw/poems.html}.
1874 @subheading Styles provided
1876 @table @code
1878 @cindex publishing styles, poem-latex
1879 @item poem-latex
1880 Publish a poem in LaTeX form.
1882 @cindex publishing styles, poem-pdf
1883 @item poem-pdf
1884 Publish a poem to a PDF document.
1886 @cindex publishing styles, chapbook-latex
1887 @item chapbook-latex
1888 Publish a book of poems in LaTeX form.
1890 @cindex publishing styles, chapbook-pdf
1891 @item chapbook-pdf
1892 Publish a book of poems to a PDF document.
1894 @end table
1896 @subheading Options provided
1898 @table @code
1900 @item muse-poem-latex-header
1901 Header used for publishing LaTeX poems.
1903 This may be text or a filename.
1905 @item muse-poem-latex-footer
1906 Footer used for publishing LaTeX files.
1908 This may be text or a filename.
1910 @item muse-poem-markup-strings
1911 Strings used for marking up poems.
1913 These cover the most basic kinds of markup, the handling of which
1914 differs little between the various styles.
1916 @item muse-chapbook-latex-header
1917 Header used for publishing a book of poems in LaTeX form.
1919 This may be text or a filename.
1921 @item muse-chapbook-latex-footer
1922 Footer used for publishing a book of poems in LaTeX form.
1924 This may be text or a filename.
1926 @item muse-poem-chapbook-strings
1927 Strings used for marking up books of poems.
1929 These cover the most basic kinds of markup, the handling of which
1930 differs little between the various styles.
1932 @end table
1934 @node Texinfo, , Poem, Publishing Styles
1935 @comment  node-name,  next,  previous,  up
1936 @section Publish entries to Texinfo format or PDF
1938 Rules for publishing a Muse file as a Texinfo article.
1940 @subheading Styles provided
1942 @table @code
1944 @cindex publishing styles, texi
1945 @item texi
1946 Publish a file in Texinfo form.
1948 @cindex publishing styles, texi
1949 @item info
1950 Generate an Info file from a Muse file.
1952 @cindex publishing styles, info-pdf
1953 @item info-pdf
1954 Publish a file in PDF form.
1956 @end table
1958 @subheading Options provided
1960 @table @code
1962 @item muse-texinfo-process-natively
1963 If non-nil, use the Emacs `texinfmt' module to make Info files.
1965 @item muse-texinfo-extension
1966 Default file extension for publishing Texinfo files.
1968 @item muse-texinfo-info-extension
1969 Default file extension for publishing Info files.
1971 @item muse-texinfo-pdf-extension
1972 Default file extension for publishing PDF files.
1974 @item muse-texinfo-header
1975 Text to prepend to a Muse page being published as Texinfo.
1977 This may be text or a filename.
1978 It may contain @verb{|<lisp>|} markup tags.
1980 @item muse-texinfo-footer
1981 Text to append to a Muse page being published as Texinfo.
1983 This may be text or a filename.
1984 It may contain @verb{|<lisp>|} markup tags.
1986 @item muse-texinfo-markup-regexps
1987 List of markup rules for publishing a Muse page to Texinfo.
1989 For more on the structure of this list,
1990 @xref{muse-publish-markup-regexps}.
1992 @item muse-texinfo-markup-functions
1993 An alist of style types to custom functions for that kind of text.
1995 For more on the structure of this list, see
1996 @xref{muse-publish-markup-functions}.
1998 @item muse-texinfo-markup-strings
1999 Strings used for marking up text.
2001 These cover the most basic kinds of markup, the handling of which
2002 differs little between the various styles.
2004 @item muse-texinfo-markup-specials
2005 A table of characters which must be represented specially.
2007 @end table
2010 @node Extending Muse, Getting Help and Reporting Bugs, Publishing Styles, Top
2011 @comment  node-name,  next,  previous,  up
2012 @chapter Making your own publishing styles
2014 @menu
2015 * Common Elements::             Common functionality shared by styles.
2016 * Deriving Styles::             Deriving a new style from an existing
2017                                   one.
2018 @end menu
2020 @node Common Elements, Deriving Styles, , Extending Muse
2021 @comment  node-name,  next,  previous,  up
2022 @section Common functionality shared by styles
2023 @cindex publishing styles, common
2025 @menu
2026 * Markup Functions::            Specifying functions to marking up text.
2027 * Markup Regexps::              Markup rules for publishing.
2028 * Markup Strings::              Strings specific to a publishing style.
2029 * Markup Tags::                 Tag specifications for special markup.
2030 * Style Elements::              Parameters used for defining styles.
2031 @end menu
2033 @node Markup Functions, Markup Regexps, , Common Elements
2034 @comment  node-name,  next,  previous,  up
2035 @subsection Specifying functions to mark up text
2036 @cindex publishing, markup functions
2038 @anchor{muse-publish-markup-functions}
2039 @code{muse-publish-markup-functions}
2041 An alist of style types to custom functions for that kind of text.
2043 This is used by publishing styles to attempt to minimize the amount of
2044 custom regexps that each has to define.  @file{muse-publish} provides
2045 rules for the most common types of markup.
2047 Each member of the list is of the following form.
2049 @example
2050 (SYMBOL FUNCTION)
2051 @end example
2053 @itemize @bullet
2054 @item SYMBOL
2055 Describes the type of text to associate with this rule.
2056 @code{muse-publish-markup-regexps} maps regexps to these symbols.
2058 @item FUNCTION
2059 Function to use to mark up this kind of rule if no suitable function is
2060 found through the @option{:functions} tag of the current style.
2061 @end itemize
2063 @node Markup Regexps, Markup Strings, Markup Functions, Common Elements
2064 @comment  node-name,  next,  previous,  up
2065 @subsection Markup rules for publishing
2066 @cindex publishing, markup regexps
2067 @cindex publishing, rules
2069 @anchor{muse-publish-markup-regexps}
2070 @code{muse-publish-markup-regexps}
2072 List of markup rules for publishing a page with Muse.
2074 The rules given in this variable are invoked first, followed by whatever
2075 rules are specified by the current style.
2077 Each member of the list is either a function, or a list of the following
2078 form.
2080 @example
2081 (REGEXP/SYMBOL TEXT-BEGIN-GROUP REPLACEMENT-TEXT/FUNCTION/SYMBOL)
2082 @end example
2084 @itemize @bullet
2085 @item REGEXP
2086 A regular expression, or symbol whose value is a regular expression,
2087 which is searched for using `re-search-forward'.
2089 @item TEXT-BEGIN-GROUP
2090 The matching group within that regexp which denotes the beginning of the
2091 actual text to be marked up.
2093 @item REPLACEMENT-TEXT
2094 A string that will be passed to `replace-match'.
2096 If it is not a string, but a function, it will be called to determine
2097 what the replacement text should be (it must return a string).  If it is
2098 a symbol, the value of that symbol should be a string.
2099 @end itemize
2101 The replacements are done in order, one rule at a time.  Writing
2102 the regular expressions can be a tricky business.  Note that case
2103 is never ignored.  `case-fold-search' is always bound to nil
2104 while processing the markup rules.
2106 @subheading Publishing order
2108 This is the order that the publishing rules are consulted, by default.
2109 This may be changed by customizing @code{muse-publish-markup-regexps}.
2111 @table @code
2113 @item trailing and leading whitespace
2114 Remove trailing and leading whitespace from a file.
2116 @item directive
2117 @samp{#directive}
2119 This is only recognized at the beginning of a file.
2121 @item tag
2122 @samp{<tag>}
2124 @item comment
2125 @samp{; comment}
2127 @item anchor
2128 @samp{#anchor}
2130 @item explicit links
2131 Prevent emphasis characters in explicit links from being marked up.
2133 Don't actually publish them here, just add a special no-emphasis text
2134 property.
2136 @item word
2137 Whitespace-delimited word, possibly with emphasis characters
2139 This function is responsible for marking up emphasis and escaping some
2140 specials.
2142 @item emdash
2143 @samp{--}
2145 2-wide dash
2147 @item heading
2148 @samp{** Heading}
2150 Outline-mode style headings.
2152 @item enddots
2153 @samp{....}
2155 These are ellipses with a dot at end.
2157 @item dots
2158 @samp{...}
2160 Ellipses.
2162 @item rule
2163 @samp{----}
2165 Horizontal rule or section separator.
2167 @item fn-sep
2168 @samp{Footnotes:}
2170 beginning of footnotes section
2172 @item footnote
2173 @samp{[1]}
2175 Footnote definition or reference.  If at beginning of line, it is a
2176 definition.
2178 @item list
2179 @itemize @bullet
2180 @item
2181 @samp{ 1. }
2183 @item
2184 @samp{ - }
2186 @item
2187 @samp{term :: }
2188 @end itemize
2190 Numbered list, item list, or term definition list.
2192 @item quote
2193 spaces before beginning of text
2195 Blockquotes.
2197 @item verse
2198 @samp{> verse text}
2200 @item table
2201 @samp{table | cells}
2203 @item link
2204 @samp{[[explicit][links]]}
2206 @item url
2207 @samp{http://example.com/}
2209 @item email
2210 @samp{bare-email@@example.com}
2212 @end table
2214 @node Markup Strings, Markup Tags, Markup Regexps, Common Elements
2215 @comment  node-name,  next,  previous,  up
2216 @subsection Strings specific to a publishing style
2217 @cindex publishing, markup strings
2219 @dfn{Markup strings} are strings used for marking up text for a
2220 particular style.
2222 These cover the most basic kinds of markup, the handling of which
2223 differs little between the various styles.
2225 @subheading Available markup strings
2227 @table @code
2229 @item image-with-desc
2230 An image and a description.
2232 Argument 1: image.  Argument 2: description.
2234 @item image-link
2235 A link to an image.
2237 Argument 1: image link.
2239 @item url-with-image
2240 A URL with an image.
2242 Argument 1: link.  Argument 2: image.
2244 @item url-link
2245 A link with a description.
2247 Argument 1: link.  Argument 2: description if one exists, or the
2248 original link otherwise.
2250 @item internal-link
2251 A link that refers to an internal anchor.
2253 Argument 1: internal link.  Argument 2: description if one exists, or
2254 the original link otherwise.
2256 @item email-addr
2257 A link to an email address.
2259 Argument 1: email address.  Argument 2: email address.
2261 @item emdash
2262 A 2-length dash.
2264 @item rule
2265 A horizontal line or space.
2267 @item footnote
2268 Beginning of footnote.
2270 @item footnote-end
2271 End of footnote.
2273 @item footnotemark
2274 Mark a reference for the current footnote.
2276 Argument 1: number of this footnote.
2278 @item footnotetext
2279 Indicate the text of the current footnote.
2281 Argument 1: number of this footnote.
2283 @item footnotetext-end
2284 End of a footnote text line.
2286 @item fn-sep
2287 Text used to replace ``Footnotes:'' line.
2289 @item enddots
2290 4 dots.
2292 @item dots
2293 3 dots.
2295 @item part
2296 Beginning of a part indicator line.  This is used by book publishing.
2298 @item part-end
2299 End of a part indicator line.  This is used by book publishing.
2301 @item chapter
2302 Beginning of a chapter indicator line.  This is used by book publishing.
2304 @item chapter-end
2305 End of a chapter indicator line.  This is used by book publishing.
2307 @item section
2308 Beginning of level 1 section indicator line.
2310 Argument 1: level of section; always 1.
2312 @item section-end
2313 End of level 1 section indicator line.
2315 Argument 1: level of section; always 1.
2317 @item subsection
2318 Beginning of level 2 section indicator line.
2320 Argument 1: level of section; always 2.
2322 @item subsection-end
2323 End of level 2 section indicator line.
2325 Argument 1: level of section; always 2.
2327 @item subsubsection
2328 Beginning of level 3 section indicator line.
2330 Argument 1: level of section; always 3.
2332 @item subsubsection-end
2333 End of level 3 section indicator line.
2335 Argument 1: level of section; always 3.
2337 @item section-other
2338 Beginning of section indicator line, where level is greater than 3.
2340 Argument 1: level of section.
2342 @item section-other-end
2343 Beginning of section indicator line, where level is greater than 3.
2345 Argument 1: level of section.
2347 @item begin-underline
2348 Beginning of underlined text.
2350 @item end-underline
2351 End of underlined text.
2353 @item begin-literal
2354 Beginning of verbatim text.  This includes @verb{|<code>|} tags and
2355 =teletype text=.
2357 @item end-literal
2358 End of verbatim text.  This includes @verb{|<code>|} tags and =teletype
2359 text=.
2361 @item begin-emph
2362 Beginning of the first level of emphasized text.
2364 @item end-emph
2365 End of the first level of emphasized text.
2367 @item begin-more-emph
2368 Beginning of the second level of emphasized text.
2370 @item end-more-emph
2371 End of the second level of emphasized text.
2373 @item begin-most-emph
2374 Beginning of the third (and final) level of emphasized text.
2376 @item end-most-emph
2377 End of the third (and final) level of emphasized text.
2379 @item begin-verse
2380 Beginning of verse text.
2382 @item verse-space
2383 String used to each space that is further indented than the beginning of
2384 the verse.
2386 @item begin-verse-line
2387 Beginning of a line of verse.
2389 @item empty-verse-line
2390 End of a line of verse.
2392 @item begin-last-stanza-line
2393 Beginning of the last line of a verse stanza.
2395 @item end-last-stanza-line
2396 End of the last line of a verse stanza.
2398 @item end-verse
2399 End of verse text.
2401 @item begin-example
2402 Beginning of an example region.  To make use of this, an
2403 @samp{<example>} tag is needed.
2405 @item end-example
2406 End of an example region.  To make use of this, an @samp{</example>} tag
2407 is needed.
2409 @item begin-center
2410 Begin a centered line.
2412 @item end-center
2413 End a centered line.
2415 @item begin-quote
2416 Begin a quoted region.
2418 @item end-quote
2419 End a quoted region.
2421 @item begin-uli
2422 Begin an unordered list.
2424 @item end-uli
2425 End an unordered list.
2427 @item begin-oli
2428 Begin an ordered list.
2430 @item end-oli
2431 End an ordered list.
2433 @item begin-ddt
2434 Begin a definition list.
2436 @item start-dde
2437 Begin a term in a definition list.
2439 @item end-ddt
2440 End a definition list.
2442 @end table
2444 @node Markup Tags, Style Elements, Markup Strings, Common Elements
2445 @comment  node-name,  next,  previous,  up
2446 @subsection Tag specifications for special markup
2447 @cindex publishing, markup tags
2449 @anchor{muse-publish-markup-tags}
2450 @code{muse-publish-markup-tags}
2452 A list of tag specifications, for specially marking up text.
2454 XML-style tags are the best way to add custom markup to Muse.  This is
2455 easily accomplished by customizing this list of markup tags.
2457 For each entry, the name of the tag is given, whether it expects a
2458 closing tag and/or an optional set of attributes, and a function that
2459 performs whatever action is desired within the delimited region.
2461 The tags themselves are deleted during publishing, before the function
2462 is called.  The function is called with three arguments, the beginning
2463 and end of the region surrounded by the tags.  If properties are
2464 allowed, they are passed as a third argument in the form of an alist.
2465 The `end' argument to the function is always a marker.
2467 Point is always at the beginning of the region within the tags, when the
2468 function is called.  Wherever point is when the function finishes is
2469 where tag markup will resume.
2471 These tag rules are processed once at the beginning of markup, and once
2472 at the end, to catch any tags which may have been inserted in-between.
2474 @node Style Elements, , Markup Tags, Common Elements
2475 @comment  node-name,  next,  previous,  up
2476 @subsection Parameters used for defining styles
2477 @cindex publishing, style elements
2479 Style elements are tags that define a style.  Use
2480 @code{muse-define-style} to create a new style.
2482 @example
2483 (muse-define-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
2484 @end example
2486 @subheading Usable elements
2488 @table @option
2490 @item :suffix
2491 File extension to use for publishing files with this style.
2493 @item :link-suffix
2494 File extension to use for publishing links to Muse files with this
2495 style.
2497 @item :osuffix
2498 File extension to use for publishing second-stage files with this style.
2500 For example, PDF publishing generates a LaTeX file first, then a PDF
2501 from that LaTeX file.
2503 @item :regexps
2504 List of markup rules for publishing a page with Muse.
2505 @xref{muse-publish-markup-regexps}.
2507 @item :functions
2508 An alist of style types to custom functions for that kind of text.
2509 @xref{muse-publish-markup-functions}.
2511 @item :strings
2512 Strings used for marking up text with this style.
2514 These cover the most basic kinds of markup, the handling of which
2515 differs little between the various styles.
2517 @item :tags
2518 A list of tag specifications, used for handling extra tags.
2519 @xref{muse-publish-markup-tags}.
2521 @item :specials
2522 A table of characters which must be represented specially.
2524 @item :before
2525 A function that is to be executed on the newly-created publishing buffer
2526 (or the current region) before any publishing occurs.
2528 This is used to set extra parameters that direct the publishing process.
2530 @item :before-end
2531 A function that is to be executed on the publishing buffer (or the
2532 current region) immediately after applying all of the markup regexps.
2534 This is used to fix the order of table elements (header, footer, body)
2535 in XML-ish styles.
2537 @item :after
2538 A function that is to be executed on the publishing buffer after
2539 :before-end, and immediately after inserting the header and footer.
2541 This is used for generating the table of contents as well as setting the
2542 file coding system.
2544 @item :final
2545 A function that is to be executed after saving the published file, but
2546 while still in its buffer.
2548 This is used for generating second-stage documents like PDF files from
2549 just-published LaTeX files.
2551 @item :header
2552 Header used for publishing files of this style.
2554 This may be a variable, text, or a filename.  It is inserted at the
2555 beginning of a file, after evaluating the publishing markup.
2557 @item :footer
2558 Footer used for publishing files of this style.
2560 This may be a variable, text, or a filename.  It is inserted at the end
2561 of a file, after evaluating the publishing markup.
2563 @item :style-sheet
2564 Style sheet used for publishing files of this style.
2566 This may be a variable or text.  It is used in the header of HTML and
2567 XHTML based publishing styles.
2569 @item :browser
2570 The function used to browse the published result of files of this style.
2572 @end table
2574 @node Deriving Styles, , Common Elements, Extending Muse
2575 @comment  node-name,  next,  previous,  up
2576 @section Deriving a new style from an existing one
2577 @cindex publishing styles, deriving
2579 To create a new style from an existing one, use @code{muse-derive-style}
2580 as follows.  This is a good way to fix something you don't like about a
2581 particular publishing style, or to personalize it.
2583 @example
2584 (muse-derive-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
2585 @end example
2587 The derived name is a string defining the new style, such as "my-html".
2588 The base name must identify an existing style, such as "html" -- if you
2589 have loaded @file{muse-html}.  The style parameters are the same as
2590 those used to create a style, except that they override whatever
2591 definitions exist in the base style.  However, some definitions only
2592 partially override.  The following parameters support partial
2593 overriding.
2595 @xref{Style Elements}, for a complete list of all parameters.
2597 @table @option
2599 @item :functions
2600 If a markup function is not found in the derived style's function list,
2601 the base style's function list will be queried.
2603 @item :regexps
2604 All regexps in the current style and the base style(s) will be used.
2606 @item :strings
2607 If a markup string is not found in the derived style's string list, the
2608 base style's string list will be queried.
2610 @end table
2613 @node Getting Help and Reporting Bugs, History, Extending Muse, Top
2614 @comment  node-name,  next,  previous,  up
2615 @chapter Getting Help and Reporting Bugs
2616 @cindex help, getting
2617 @cindex bugs, reporting
2619 After you have read this guide, if you still have questions about
2620 Muse, or if you have bugs to report, there are several places you can
2623 @itemize @bullet
2625 @item
2626 @uref{http://www.emacswiki.org/cgi-bin/wiki/MuseMode} is the
2627 emacswiki.org page, and anyone may add tips, hints, or bug descriptions
2628 to it.
2630 @item
2631 @uref{http://www.mwolson.org/projects/EmacsMuse.html} is the web page
2632 that Michael Olson (the current maintainer) made for Muse.
2634 @item
2635 You can join the mailing list at @email{emacs-wiki-discuss@@nongnu.org}
2636 using the subscription form at
2637 @uref{http://mail.nongnu.org/mailman/listinfo/ emacs-wiki-discuss}.
2638 This mailing list provides support for Muse, @command{Planner} and
2639 @command{emacs-wiki}, which is the predecessor of Muse.
2641 There are additional methods for accessing the mailing list, adding
2642 content to it, and searching it.  Consult
2643 @uref{http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMailingList} for
2644 more information.
2646 @item
2647 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
2648 contributors are frequently around and willing to answer your
2649 questions.  The @samp{#muse} channel is also available for
2650 Muse-specific help, and its current maintainer hangs out there.
2652 @item
2653 The maintainer of Emacs Muse, Michael Olson, may be contacted at
2654 @email{mwolson@@gnu.org}.
2656 @end itemize
2658 @node History, Contributors, Getting Help and Reporting Bugs, Top
2659 @comment  node-name,  next,  previous,  up
2660 @chapter History of This Document
2661 @cindex history, of Muse
2663 @itemize
2664 @item 2004
2665 John Wiegley started Muse upon realizing that EmacsWiki had some serious
2666 limitations. Around February 2004, he started making "emacs-wiki version
2667 3.00 APLHA", which eventually became known as Muse.
2669 Most of those who frequent the emacs-wiki mailing list continued to use
2670 emacs-wiki, mainly because Planner hasn't been ported over to it.
2672 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
2673 John Wiegley's request.
2675 @item 2005
2676 Michael Olson overhauled this document and added many new sections in
2677 preparation for the first release of Muse (3.01).
2679 @end itemize
2681 @node Contributors, GNU General Public License, History, Top
2682 @comment  node-name,  next,  previous,  up
2683 @chapter Contributors to This Documentation
2684 @cindex contributors
2686 The first draft of this document was taken from the emacs-wiki texinfo
2687 manual.  Michael Olson adapted it for Muse and added most of its
2688 content.
2690 John Sullivan did a majority of the work on the emacs-wiki texinfo
2691 manual.
2693 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
2694 emacs-wiki texinfo manual.
2696 @node GNU General Public License, Concept Index, Contributors, Top
2697 @comment  node-name,  next,  previous,  up
2698 @appendix GNU GENERAL PUBLIC LICENSE
2699 @center Version 2, June 1991
2700 @cindex GPL
2701 @cindex GNU General Public License
2703 @c This file is intended to be included in another file.
2705 @display
2706 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
2707 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2709 Everyone is permitted to copy and distribute verbatim copies
2710 of this license document, but changing it is not allowed.
2711 @end display
2713 @appendixsec Preamble
2715   The licenses for most software are designed to take away your
2716 freedom to share and change it.  By contrast, the GNU General Public
2717 License is intended to guarantee your freedom to share and change free
2718 software---to make sure the software is free for all its users.  This
2719 General Public License applies to most of the Free Software
2720 Foundation's software and to any other program whose authors commit to
2721 using it.  (Some other Free Software Foundation software is covered by
2722 the GNU Library General Public License instead.)  You can apply it to
2723 your programs, too.
2725   When we speak of free software, we are referring to freedom, not
2726 price.  Our General Public Licenses are designed to make sure that you
2727 have the freedom to distribute copies of free software (and charge for
2728 this service if you wish), that you receive source code or can get it
2729 if you want it, that you can change the software or use pieces of it
2730 in new free programs; and that you know you can do these things.
2732   To protect your rights, we need to make restrictions that forbid
2733 anyone to deny you these rights or to ask you to surrender the rights.
2734 These restrictions translate to certain responsibilities for you if you
2735 distribute copies of the software, or if you modify it.
2737   For example, if you distribute copies of such a program, whether
2738 gratis or for a fee, you must give the recipients all the rights that
2739 you have.  You must make sure that they, too, receive or can get the
2740 source code.  And you must show them these terms so they know their
2741 rights.
2743   We protect your rights with two steps: (1) copyright the software, and
2744 (2) offer you this license which gives you legal permission to copy,
2745 distribute and/or modify the software.
2747   Also, for each author's protection and ours, we want to make certain
2748 that everyone understands that there is no warranty for this free
2749 software.  If the software is modified by someone else and passed on, we
2750 want its recipients to know that what they have is not the original, so
2751 that any problems introduced by others will not reflect on the original
2752 authors' reputations.
2754   Finally, any free program is threatened constantly by software
2755 patents.  We wish to avoid the danger that redistributors of a free
2756 program will individually obtain patent licenses, in effect making the
2757 program proprietary.  To prevent this, we have made it clear that any
2758 patent must be licensed for everyone's free use or not licensed at all.
2760   The precise terms and conditions for copying, distribution and
2761 modification follow.
2763 @iftex
2764 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
2765 @end iftex
2766 @ifinfo
2767 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
2768 @end ifinfo
2770 @enumerate 0
2771 @item
2772 This License applies to any program or other work which contains
2773 a notice placed by the copyright holder saying it may be distributed
2774 under the terms of this General Public License.  The ``Program'', below,
2775 refers to any such program or work, and a ``work based on the Program''
2776 means either the Program or any derivative work under copyright law:
2777 that is to say, a work containing the Program or a portion of it,
2778 either verbatim or with modifications and/or translated into another
2779 language.  (Hereinafter, translation is included without limitation in
2780 the term ``modification''.)  Each licensee is addressed as ``you''.
2782 Activities other than copying, distribution and modification are not
2783 covered by this License; they are outside its scope.  The act of
2784 running the Program is not restricted, and the output from the Program
2785 is covered only if its contents constitute a work based on the
2786 Program (independent of having been made by running the Program).
2787 Whether that is true depends on what the Program does.
2789 @item
2790 You may copy and distribute verbatim copies of the Program's
2791 source code as you receive it, in any medium, provided that you
2792 conspicuously and appropriately publish on each copy an appropriate
2793 copyright notice and disclaimer of warranty; keep intact all the
2794 notices that refer to this License and to the absence of any warranty;
2795 and give any other recipients of the Program a copy of this License
2796 along with the Program.
2798 You may charge a fee for the physical act of transferring a copy, and
2799 you may at your option offer warranty protection in exchange for a fee.
2801 @item
2802 You may modify your copy or copies of the Program or any portion
2803 of it, thus forming a work based on the Program, and copy and
2804 distribute such modifications or work under the terms of Section 1
2805 above, provided that you also meet all of these conditions:
2807 @enumerate a
2808 @item
2809 You must cause the modified files to carry prominent notices
2810 stating that you changed the files and the date of any change.
2812 @item
2813 You must cause any work that you distribute or publish, that in
2814 whole or in part contains or is derived from the Program or any
2815 part thereof, to be licensed as a whole at no charge to all third
2816 parties under the terms of this License.
2818 @item
2819 If the modified program normally reads commands interactively
2820 when run, you must cause it, when started running for such
2821 interactive use in the most ordinary way, to print or display an
2822 announcement including an appropriate copyright notice and a
2823 notice that there is no warranty (or else, saying that you provide
2824 a warranty) and that users may redistribute the program under
2825 these conditions, and telling the user how to view a copy of this
2826 License.  (Exception: if the Program itself is interactive but
2827 does not normally print such an announcement, your work based on
2828 the Program is not required to print an announcement.)
2829 @end enumerate
2831 These requirements apply to the modified work as a whole.  If
2832 identifiable sections of that work are not derived from the Program,
2833 and can be reasonably considered independent and separate works in
2834 themselves, then this License, and its terms, do not apply to those
2835 sections when you distribute them as separate works.  But when you
2836 distribute the same sections as part of a whole which is a work based
2837 on the Program, the distribution of the whole must be on the terms of
2838 this License, whose permissions for other licensees extend to the
2839 entire whole, and thus to each and every part regardless of who wrote it.
2841 Thus, it is not the intent of this section to claim rights or contest
2842 your rights to work written entirely by you; rather, the intent is to
2843 exercise the right to control the distribution of derivative or
2844 collective works based on the Program.
2846 In addition, mere aggregation of another work not based on the Program
2847 with the Program (or with a work based on the Program) on a volume of
2848 a storage or distribution medium does not bring the other work under
2849 the scope of this License.
2851 @item
2852 You may copy and distribute the Program (or a work based on it,
2853 under Section 2) in object code or executable form under the terms of
2854 Sections 1 and 2 above provided that you also do one of the following:
2856 @enumerate a
2857 @item
2858 Accompany it with the complete corresponding machine-readable
2859 source code, which must be distributed under the terms of Sections
2860 1 and 2 above on a medium customarily used for software interchange; or,
2862 @item
2863 Accompany it with a written offer, valid for at least three
2864 years, to give any third party, for a charge no more than your
2865 cost of physically performing source distribution, a complete
2866 machine-readable copy of the corresponding source code, to be
2867 distributed under the terms of Sections 1 and 2 above on a medium
2868 customarily used for software interchange; or,
2870 @item
2871 Accompany it with the information you received as to the offer
2872 to distribute corresponding source code.  (This alternative is
2873 allowed only for noncommercial distribution and only if you
2874 received the program in object code or executable form with such
2875 an offer, in accord with Subsection b above.)
2876 @end enumerate
2878 The source code for a work means the preferred form of the work for
2879 making modifications to it.  For an executable work, complete source
2880 code means all the source code for all modules it contains, plus any
2881 associated interface definition files, plus the scripts used to
2882 control compilation and installation of the executable.  However, as a
2883 special exception, the source code distributed need not include
2884 anything that is normally distributed (in either source or binary
2885 form) with the major components (compiler, kernel, and so on) of the
2886 operating system on which the executable runs, unless that component
2887 itself accompanies the executable.
2889 If distribution of executable or object code is made by offering
2890 access to copy from a designated place, then offering equivalent
2891 access to copy the source code from the same place counts as
2892 distribution of the source code, even though third parties are not
2893 compelled to copy the source along with the object code.
2895 @item
2896 You may not copy, modify, sublicense, or distribute the Program
2897 except as expressly provided under this License.  Any attempt
2898 otherwise to copy, modify, sublicense or distribute the Program is
2899 void, and will automatically terminate your rights under this License.
2900 However, parties who have received copies, or rights, from you under
2901 this License will not have their licenses terminated so long as such
2902 parties remain in full compliance.
2904 @item
2905 You are not required to accept this License, since you have not
2906 signed it.  However, nothing else grants you permission to modify or
2907 distribute the Program or its derivative works.  These actions are
2908 prohibited by law if you do not accept this License.  Therefore, by
2909 modifying or distributing the Program (or any work based on the
2910 Program), you indicate your acceptance of this License to do so, and
2911 all its terms and conditions for copying, distributing or modifying
2912 the Program or works based on it.
2914 @item
2915 Each time you redistribute the Program (or any work based on the
2916 Program), the recipient automatically receives a license from the
2917 original licensor to copy, distribute or modify the Program subject to
2918 these terms and conditions.  You may not impose any further
2919 restrictions on the recipients' exercise of the rights granted herein.
2920 You are not responsible for enforcing compliance by third parties to
2921 this License.
2923 @item
2924 If, as a consequence of a court judgment or allegation of patent
2925 infringement or for any other reason (not limited to patent issues),
2926 conditions are imposed on you (whether by court order, agreement or
2927 otherwise) that contradict the conditions of this License, they do not
2928 excuse you from the conditions of this License.  If you cannot
2929 distribute so as to satisfy simultaneously your obligations under this
2930 License and any other pertinent obligations, then as a consequence you
2931 may not distribute the Program at all.  For example, if a patent
2932 license would not permit royalty-free redistribution of the Program by
2933 all those who receive copies directly or indirectly through you, then
2934 the only way you could satisfy both it and this License would be to
2935 refrain entirely from distribution of the Program.
2937 If any portion of this section is held invalid or unenforceable under
2938 any particular circumstance, the balance of the section is intended to
2939 apply and the section as a whole is intended to apply in other
2940 circumstances.
2942 It is not the purpose of this section to induce you to infringe any
2943 patents or other property right claims or to contest validity of any
2944 such claims; this section has the sole purpose of protecting the
2945 integrity of the free software distribution system, which is
2946 implemented by public license practices.  Many people have made
2947 generous contributions to the wide range of software distributed
2948 through that system in reliance on consistent application of that
2949 system; it is up to the author/donor to decide if he or she is willing
2950 to distribute software through any other system and a licensee cannot
2951 impose that choice.
2953 This section is intended to make thoroughly clear what is believed to
2954 be a consequence of the rest of this License.
2956 @item
2957 If the distribution and/or use of the Program is restricted in
2958 certain countries either by patents or by copyrighted interfaces, the
2959 original copyright holder who places the Program under this License
2960 may add an explicit geographical distribution limitation excluding
2961 those countries, so that distribution is permitted only in or among
2962 countries not thus excluded.  In such case, this License incorporates
2963 the limitation as if written in the body of this License.
2965 @item
2966 The Free Software Foundation may publish revised and/or new versions
2967 of the General Public License from time to time.  Such new versions will
2968 be similar in spirit to the present version, but may differ in detail to
2969 address new problems or concerns.
2971 Each version is given a distinguishing version number.  If the Program
2972 specifies a version number of this License which applies to it and ``any
2973 later version'', you have the option of following the terms and conditions
2974 either of that version or of any later version published by the Free
2975 Software Foundation.  If the Program does not specify a version number of
2976 this License, you may choose any version ever published by the Free Software
2977 Foundation.
2979 @item
2980 If you wish to incorporate parts of the Program into other free
2981 programs whose distribution conditions are different, write to the author
2982 to ask for permission.  For software which is copyrighted by the Free
2983 Software Foundation, write to the Free Software Foundation; we sometimes
2984 make exceptions for this.  Our decision will be guided by the two goals
2985 of preserving the free status of all derivatives of our free software and
2986 of promoting the sharing and reuse of software generally.
2988 @iftex
2989 @heading NO WARRANTY
2990 @end iftex
2991 @ifinfo
2992 @center NO WARRANTY
2993 @end ifinfo
2995 @item
2996 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
2997 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
2998 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
2999 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
3000 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
3001 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
3002 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
3003 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
3004 REPAIR OR CORRECTION.
3006 @item
3007 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
3008 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
3009 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
3010 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
3011 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
3012 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
3013 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
3014 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
3015 POSSIBILITY OF SUCH DAMAGES.
3016 @end enumerate
3018 @iftex
3019 @heading END OF TERMS AND CONDITIONS
3020 @end iftex
3021 @ifinfo
3022 @center END OF TERMS AND CONDITIONS
3023 @end ifinfo
3025 @page
3026 @appendixsec Appendix: How to Apply These Terms to Your New Programs
3028   If you develop a new program, and you want it to be of the greatest
3029 possible use to the public, the best way to achieve this is to make it
3030 free software which everyone can redistribute and change under these terms.
3032   To do so, attach the following notices to the program.  It is safest
3033 to attach them to the start of each source file to most effectively
3034 convey the exclusion of warranty; and each file should have at least
3035 the ``copyright'' line and a pointer to where the full notice is found.
3037 @smallexample
3038 @var{one line to give the program's name and a brief idea of what it does.}
3039 Copyright (C) @var{yyyy}  @var{name of author}
3041 This program is free software; you can redistribute it and/or modify
3042 it under the terms of the GNU General Public License as published by
3043 the Free Software Foundation; either version 2 of the License, or
3044 (at your option) any later version.
3046 This program is distributed in the hope that it will be useful,
3047 but WITHOUT ANY WARRANTY; without even the implied warranty of
3048 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3049 GNU General Public License for more details.
3051 You should have received a copy of the GNU General Public License along
3052 with this program; if not, write to the Free Software Foundation, Inc.,
3053 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3054 @end smallexample
3056 Also add information on how to contact you by electronic and paper mail.
3058 If the program is interactive, make it output a short notice like this
3059 when it starts in an interactive mode:
3061 @smallexample
3062 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
3063 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
3064 This is free software, and you are welcome to redistribute it
3065 under certain conditions; type `show c' for details.
3066 @end smallexample
3068 The hypothetical commands @samp{show w} and @samp{show c} should show
3069 the appropriate parts of the General Public License.  Of course, the
3070 commands you use may be called something other than @samp{show w} and
3071 @samp{show c}; they could even be mouse-clicks or menu items---whatever
3072 suits your program.
3074 You should also get your employer (if you work as a programmer) or your
3075 school, if any, to sign a ``copyright disclaimer'' for the program, if
3076 necessary.  Here is a sample; alter the names:
3078 @example
3079 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
3080 `Gnomovision' (which makes passes at compilers) written by James Hacker.
3082 @var{signature of Ty Coon}, 1 April 1989
3083 Ty Coon, President of Vice
3084 @end example
3086 This General Public License does not permit incorporating your program into
3087 proprietary programs.  If your program is a subroutine library, you may
3088 consider it more useful to permit linking proprietary applications with the
3089 library.  If this is what you want to do, use the GNU Library General
3090 Public License instead of this License.
3093 @node Concept Index,  , GNU General Public License, Top
3094 @comment  node-name,  next,  previous,  up
3095 @unnumbered Index
3097 @printindex cp
3099 @bye