Reinstate former extended character class rules.
[muse-el.git] / muse.texi
blob7b50de6c121f8da77304937cbe91219bf906c579
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename muse.info
4 @settitle Muse
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * Muse: (muse). Authoring and publishing environment for Emacs.
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for the Emacs Muse version 3.01.91 (3.02 RC2).
17 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
19 @quotation
20 Permission is granted to copy, distribute and/or modify this document
21 under the terms of the GNU General Public License.
22 @end quotation
23 @end copying
25 @titlepage
26 @title Muse manual
27 @subtitle an authoring and publishing environment
28 @subtitle for GNU Emacs and XEmacs
30 @c The following two commands
31 @c start the copyright page.
32 @page
33 @vskip 0pt plus 1filll
34 @insertcopying
35 @end titlepage
37 @c So the toc is printed at the start
38 @contents
40 @ifnottex
41 @node Top, Preface, (dir), (dir)
42 @comment  node-name,  next,  previous,  up
43 @top Muse
45 @insertcopying
46 @end ifnottex
48 @menu
49 * Preface::                     About the documentation.
50 * Introduction::                What is Muse?
51 * Obtaining Muse::              How to get Muse releases and development
52                                   changes.
53 * Installation::                Compiling and installing Muse.
54 * Getting Started::             Settings for Muse.
55 * Projects::                    Creating and managing Muse projects.
56 * Keystroke Summary::           Keys used in Muse mode.
57 * Markup Rules::                Rules for using markup.
58 * Publishing Styles::           Publishing various types of documents.
59 * Getting Help and Reporting Bugs::  
60 * History::                     History of this document.
61 * Contributors::                Contributors to this documentation.
62 * GNU General Public License::  The license for this manual and Muse.
63 * Concept Index::               Search for terms.
65 @detailmenu
66  --- The Detailed Node Listing ---
68 How to Get Muse Releases and Development Changes
70 * Releases::                    Released versions of Muse.
71 * Development::                 Latest unreleased development changes.
73 Rules for Using Markup
75 * Paragraphs::                  Paragraphs: centering and quoting.
76 * Headings::                    Levels of headings.
77 * Directives::                  Directives at the beginning of a
78                                   document.
79 * Emphasizing Text::            Bold, italicized, and underlined text.
80 * Footnotes::                   Making notes to be shown at the end.
81 * Verse::                       Indicating poetic stanzas.
82 * Lists::                       Lists of items.
83 * Tables::                      Generation of data tables.
84 * Explicit Links::              Hyperlinks and email addresses with
85                                   descriptions.
86 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
87                                   links.
88 * Images::                      Publishing and displaying images.
89 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
90 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
91                                   for extensibility.
93 Publishing Various Types of Documents
95 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
96 * Book::                        Publishing entries into a compilation.
97 * DocBook::                     Publishing in DocBook XML form.
98 * HTML::                        Publishing in HTML or XHTML form.
99 * Journal::                     Keeping a journal or blog.
100 * LaTeX::                       Publishing LaTeX documents.
101 * Poem::                        Publish a poem to LaTex or PDF.
102 * Texinfo::                     Publish entries to Texinfo format or PDF.
103 * Common Elements::             Common functionality shared by styles.
104 * Deriving Styles::             Deriving a new style from an existing
105                                   one.
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 @end detailmenu
114 @end menu
116 @node Preface, Introduction, Top, Top
117 @comment  node-name,  next,  previous,  up
118 @chapter About the documentation
120 This document describes Muse, which was written by John Wiegley
121 and is now maintained by Michael Olson.  Several versions of it are
122 available on-line.
124 @itemize @bullet
125 @item PDF: http://www.mwolson.org/static/doc/muse.pdf
126 @item HTML (single file): http://www.mwolson.org/static/doc/muse.html
127 @item HTML (multiple files): http://www.mwolson.org/static/doc/muse/
128 @end itemize
130 @node Introduction, Obtaining Muse, Preface, Top
131 @comment  node-name,  next,  previous,  up
132 @chapter What is Muse?
134 Emacs Muse is an authoring and publishing environment for Emacs.  It
135 simplifies the process of writing documents and publishing them to
136 various output formats.
138 Muse consists of two main parts: an enhanced text-mode for authoring
139 documents and navigating within Muse projects, and a set of publishing
140 styles for generating different kinds of output.
142 This idea is not in any way new. Numerous systems exist -- even one
143 other for Emacs itself (Bhl Mode). What Muse adds to the picture is a
144 more modular environment, with a rather simple core, in which "styles"
145 are derived from to create new styles. Much of Muse's overall
146 functionality is optional. For example, you can use the publisher
147 without the major-mode, or the mode without doing any publishing; or if
148 you don't load the Texinfo or LaTeX modules, those styles won't be
149 available.
151 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
152 code has been restructured and rewritten, especially its publishing
153 functions. The focus in this revision is on the authoring and publishing
154 aspects, and the "wikiness" has been removed as a default behavior (to
155 be offered again as an optional module). CamelCase words are no longer
156 special by default.
158 @node Obtaining Muse, Installation, Introduction, Top
159 @comment  node-name,  next,  previous,  up
160 @chapter How to Get Muse Releases and Development Changes
162 @menu
163 * Releases::                    Released versions of Muse.
164 * Development::                 Latest unreleased development changes.
165 @end menu
167 @node Releases, Development, Obtaining Muse, Obtaining Muse
168 @comment  node-name,  next,  previous,  up
169 @section Released versions of Muse
171 Choose to install a release if you want to minimize risk.
173 Errors are corrected in development first.  User-visible changes will be
174 announced on the @email{emacs-wiki-discuss@@nongnu.org} mailing list.
175 This mailing list also provides support for @command{Planner} and
176 @command{emacs-wiki}, which is the predecessor of Muse.
177 @pxref{Getting Help and Reporting Bugs}.
179 @cindex releases, Debian package
180 @cindex Debian package for Muse
181 Debian users can get Muse via apt-get.  The @file{muse-el} package is
182 available both at Michael Olson's Debian repository and the official
183 Debian repository.  To make use of the former, add the following line to
184 your @file{/etc/apt/sources.list} file and run @code{apt-get install
185 muse}.
187 @example
188 deb http://www.mwolson.org/debian/ ./
189 @end example
191 @cindex releases, from source
192 Alternatively, you can download the latest release from
193 @uref{http://www.mwolson.org/static/dist/muse/} .
195 @node Development,  , Releases, Obtaining Muse
196 @comment  node-name,  next,  previous,  up
197 @section Latest unreleased development changes
198 @cindex development
200 Choose the development version if you want to live on the bleeding edge
201 of Muse development or try out new features before release.
203 @cindex arch revision control system, using
204 The Arch revision control system allows you to retrieve previous
205 versions and select specific features and bug fixes.  If you would like
206 to contribute to Muse development, it is highly recommended that you use
207 Arch, but this is not a requirement.
209 If you are new to Arch, you might find this tutorial helpful:
210 @uref{http://www.mwolson.org/projects/ArchTutorial.html}.
212 Downloading the Muse module with Arch and staying up-to-date involves
213 the following steps.
215 @enumerate
216 @item Install arch
218 @itemize @bullet
219 @item Debian: @kbd{apt-get install tla}.
220 @item Other distributions: see @uref{http://regexps.srparish.net/www/}.
221 @end itemize
223 @item Register the archive.
224 @example
225 tla register-archive -f http://www.mwolson.org/archives/2005
226 @end example
228 @item Download the Muse package.
229 @example
230 # Download Muse into the @file{muse} directory.
231 tla get mwolson@@gnu.org--2005/muse--main--1.0 muse
232 @end example
234 @item List upstream changes that are missing from your local copy.
235 Do this whenever you want to see whether new changes have been committed
236 to Muse.
238 @example
239 # Change to the source directory you are interested in.
240 cd muse/
242 # Display the summary of changes
243 tla missing --summary
244 @end example
246 @cindex updating Muse with Arch
247 @item Update to the latest version by replaying missing changes.
248 @example
249 cd muse
250 tla replay
251 @end example
253 @end enumerate
255 There are other ways to interact with the Muse archive.
257 @itemize
258 @item Browse arch repository: @uref{http://www.mwolson.org/archives/}
259 @item Latest development snapshot: @uref{http://www.mwolson.org/static/dist/muse-latest.tar.gz}
260 @end itemize
262 The latest development snapshot will be kept up-to-date since it is
263 updated at the same time as the Arch repository.
265 @node Installation, Getting Started, Obtaining Muse, Top
266 @comment  node-name,  next,  previous,  up
267 @chapter Compiling and Installing Muse
269 Muse may be compiled and installed on your machine.
271 @emph{Compilation}
273 This is an optional step, since Emacs Lisp source code does not
274 necessarily have to be byte-compiled.  It will yield a speed increase,
275 though.
277 A working copy of Emacs or XEmacs is needed in order to compile the
278 Emacs Muse.  By default, the program that is installed with the name
279 @command{emacs} will be used.
281 If you want to use the @command{xemacs} binary to perform the
282 compilation, you would need to edit @file{Makefile.defs} in the
283 top-level directory as follows.  You can put either a full path to an
284 Emacs or XEmacs binary or just the command name, as long as it is in the
285 @env{PATH}.
287 @example
288 EMACS    = xemacs
289 SITEFLAG = -no-site-file
290 @end example
292 Running @code{make} should compile the Muse source files in the
293 @file{lisp} directory.
295 @emph{Installation}
297 Muse may be installed into your file hierarchy by doing the following.
299 Edit the @file{Makefile.defs} file so that @env{ELISPDIR} points to
300 where you want the source and compiled Muse files to be installed and
301 @env{INFODIR} indicates where to put the Muse manual.  Of course, you
302 will want to edit @env{EMACS} and @env{SITEFLAG} as shown in the
303 Compilation section if you are using XEmacs.
305 If you are installing Muse on a Debian system, you might want to change
306 the value of @env{INSTALLINFO} as specified in @file{Makefile.defs}.
308 If you wish to install Muse to different locations than the defaults
309 specify, edit @file{Makefile.defs} accordingly.
311 Run @code{make} as a normal user.
313 Run @code{make install} as the root user if you have chosen installation
314 locations that require this.
317 @node Getting Started, Projects, Installation, Top
318 @comment  node-name,  next,  previous,  up
319 @chapter Getting Started
320 @cindex settings
322 To use Muse, add the directory containing its files to your
323 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
324 the authoring mode, and the styles you wish to publish to.  An example
325 follows.
327 @lisp
328 (add-to-list 'load-path "<path to Muse>")
330 (require 'muse-mode)     ; load authoring mode
332 (require 'muse-html)     ; load publishing styles I use
333 (require 'muse-latex)
334 (require 'muse-texinfo)
335 (require 'muse-docbook)
336 @end lisp
338 Once loaded, the command @kbd{M-x muse-publish-this-file} will publish
339 an input document to any available style.  If you enable
340 @file{muse-mode} within a buffer, by typing @kbd{M-x muse-mode}, this
341 command will be bound to @kbd{C-c C-t}.
343 If the currently opened file is part of a defined project in
344 @code{muse-project-alist}, it may be published using @kbd{C-c C-p}.
346 You should also type @kbd{M-x customize-group}, and give the name
347 @samp{muse}.  Each of the options has its own documentation.
350 @node Projects, Keystroke Summary, Getting Started, Top
351 @comment  node-name,  next,  previous,  up
352 @chapter Creating and Managing Muse Projects
353 @cindex projects
355 Often you will want to publish all the files within a directory to a
356 particular set of output styles automatically.  To support, Muse
357 allows for the creations of "projects".  Here is a sample project, to
358 be defined in your @file{.emacs} file.
360 @lisp
361 (require 'muse-project)
363 (setq muse-project-alist
364       '(("website"                      ; my various writings
365          ("~/Pages" :default "index")
366          (:base "html" :path "~/public_html")
367          (:base "pdf" :path "~/public_html/pdf"))))
368 @end lisp
370 The above defines a project named "website", whose files are located
371 in the directory @file{~/Pages}.  The default page to visit is
372 @file{index}.  When this project is published, each page will be
373 output as HTML to the directory @file{~/public_html}, and as PDF to
374 the directory @file{~/public_html/pdf}.  Within any project page, you
375 may create a link to other pages using the syntax @samp{[[pagename]]}.
378 @node Keystroke Summary, Markup Rules, Projects, Top
379 @comment  node-name,  next,  previous,  up
380 @chapter Keys Used in Muse Mode
381 @cindex keystrokes
383 This is a summary of keystrokes available in every Muse buffer.
385 @table @kbd
387 @item C-c C-a (`muse-index')
388 Display an index of all known Muse pages.
390 @item C-c C-b (`muse-browse-result')
391 Show the published result of this page.
393 @item C-c C-e (`muse-edit-link-at-point')
394 Edit link at point.
396 @item C-c C-f (`muse-project-find-file'), also C-c C-v
397 Open another Muse page.  Prompt for the name.
399 @item C-c C-l (`font-lock-mode')
400 Highlight/refresh the current buffer.
402 @item C-c C-p (`muse-project-publish')
403 Publish any Muse pages that have changed.
405 @item C-c C-v (`muse-project-find-file'), also C-c C-f
406 Open another Muse page.  Prompt for the name.
408 @item C-c = (`muse-what-changed')
409 Diff this page against the last backup version.
411 @item C-c TAB (`muse-insert-tag')
412 Insert a tag interactively.
414 @item TAB
415 Move to the next Wiki reference.
417 @item S-TAB
418 Move to the previous Wiki reference.
420 @end table
423 @node Markup Rules, Publishing Styles, Keystroke Summary, Top
424 @comment  node-name,  next,  previous,  up
425 @chapter Rules for Using Markup
426 @cindex markup
428 A Muse document uses special, contextual markup rules to determine how
429 to format the output result.  For example, if a paragraph is indented,
430 Muse assumes it should be quoted.
432 There are not too many markup rules, and all of them strive to be as
433 simple as possible so that you can focus on document creation, rather
434 than formatting.
436 @menu
437 * Paragraphs::                  Paragraphs: centering and quoting.
438 * Headings::                    Levels of headings.
439 * Directives::                  Directives at the beginning of a
440                                   document.
441 * Emphasizing Text::            Bold, italicized, and underlined text.
442 * Footnotes::                   Making notes to be shown at the end.
443 * Verse::                       Indicating poetic stanzas.
444 * Lists::                       Lists of items.
445 * Tables::                      Generation of data tables.
446 * Explicit Links::              Hyperlinks and email addresses with
447                                   descriptions.
448 * Implicit Links::              Bare URLs, WikiNames, and InterWiki
449                                   links.
450 * Images::                      Publishing and displaying images.
451 * Horizontal Rules and Anchors::  Inserting a horizontal line or anchor.
452 * Embedded Lisp::               Evaluating Emacs Lisp code in documents
453                                   for extensibility.
454 @end menu
456 @node Paragraphs, Headings, Markup Rules, Markup Rules
457 @comment  node-name,  next,  previous,  up
458 @section Paragraphs: centering and quoting
459 @cindex paragraphs
461 Paragraphs in Muse must be separated by a blank line.
463 @cindex paragraphs, centered
464 @strong{Centered paragraphs and quotations}
466 A line that begins with six or more columns of whitespace (either tabs
467 or spaces) indicates a centered paragraph.
469 @cindex paragraphs, quoted
470 @cindex quotations
471 But if a line begins with whitespace, though less than six columns, it
472 indicates a quoted paragraph.
474 @cindex examples
475 @cindex monospace, rendering blocks
476 @cindex HTML, rendering blocks in monospace
477 @strong{Literal paragraphs}
479 The @verb{|<example>|} tag is used for examples, where whitespace should
480 be preserved, the text rendered in monospace, and any characters special
481 to the output style escaped.
483 @cindex literal text
484 @cindex HTML, inserting a raw block
485 There is also the @verb{|<literal>|} tag, which causes a marked block to
486 be entirely left alone.  This can be used for inserting a hand-coded
487 HTML blocks into HTML output, for example.
489 @node Headings, Directives, Paragraphs, Markup Rules
490 @comment  node-name,  next,  previous,  up
491 @section Levels of headings
492 @cindex headings
494 A heading becomes a chapter or section in printed output -- depending on
495 the style.  To indicate a heading, start a new paragraph with one or
496 more asterices, followed by a space and the heading title.  Then begin
497 another paragraph to enter the text for that section.
499 All levels of headings will be published.  Most publishing styles only
500 distinguish the between the first 4 levels, however.
502 @example
503 * First level
505 ** Second level
507 *** Third level
509 **** Fourth level
510 @end example
512 @node Directives, Emphasizing Text, Headings, Markup Rules
513 @comment  node-name,  next,  previous,  up
514 @section Directives at the beginning of a document
515 @cindex directives
517 Directives are lines beginning with the @samp{#} character that come
518 before any paragraphs or sections in the document.  Directives are of
519 the form ``#directive content of directive''.  You can use any
520 combination of uppercase and lowercase letters for directives, even if
521 the directive is not in the list below.
523 The @code{muse-publishing-directive} function may be used in header and
524 footer text to access directives.  For example, to access the
525 @samp{#title} directive, use @code{(muse-publishing-directive "title")}.
527 The following is a list of directives that Muse uses.
529 @table @code
530 @cindex #author
531 @item #author
532 The author of this document.
534 If this is not specified, Muse will attempt to figure it out from the
535 @code{user-full-name} variable.
537 @cindex #date
538 @item #date
539 The date that the document was originally published.
541 This is used by publishing styles that are able to embed the date
542 information.
544 @cindex #desc
545 @item #desc
546 A short description of this document.
548 This is used by the @code{journal} publishing style to embed information
549 inside of an RSS/RDF feed.
551 @cindex #title
552 @item #title
553 The title of this document.
555 If this is not specified, the name of the file is used.
557 @end table
559 @node Emphasizing Text, Footnotes, Directives, Markup Rules
560 @comment  node-name,  next,  previous,  up
561 @section Bold, italicized, and underlined text
562 @cindex emphasizing text
563 @cindex underlining text
564 @cindex italicizing text
565 @cindex verbatim text
566 @cindex monospace, rendering words
568 To emphasize text, surround it with certain specially recognized
569 characters.
571 @example
572 *emphasis*
573 **strong emphasis**
574 ***very strong emphasis***
575 _underlined_
576 =verbatim and monospace=
577 @end example
579 @cindex WYSIWYG
580 While editing a Muse document in Muse mode, these forms of emphasis will
581 be highlighted in a WYSIWYG manner.  Each of these forms may span
582 multiple lines.
584 Verbatim text will be colored as gray by default.  To change this,
585 customize @code{muse-verbatim-face}.
587 @node Footnotes, Verse, Emphasizing Text, Markup Rules
588 @comment  node-name,  next,  previous,  up
589 @section Making notes to be shown at the end
590 @cindex footnotes
592 A footnote reference is simply a number in square brackets.  To define
593 the footnote, place this definition at the bottom of your file.
594 @samp{footnote-mode} can be used to greatly facilitate the creation of
595 these kinds of footnotes.
597 Footnotes are defined by the same number in brackets occurring at the
598 beginning of a line.  Use footnote-mode's @kbd{C-c ! a} command, to very
599 easily insert footnotes while typing.  Use @kbd{C-x C-x} to return to
600 the point of insertion.
602 @node Verse, Lists, Footnotes, Markup Rules
603 @comment  node-name,  next,  previous,  up
604 @section Indicating poetic stanzas
605 @cindex verses
606 @cindex poetry
608 Poetry requires that whitespace be preserved, but without resorting to
609 monospace.  To indicate this, use the following markup, reminiscent of
610 email quotations.
612 @example
613 > A line of Emacs verse;
614 >   forgive its being so terse.
615 @end example
617 You can also use the @verb{|<verse>|} tag, if you prefer.
619 @example
620 <verse>
621 A line of Emacs verse;
622   forgive its being so terse.
623 </verse>
624 @end example
626 @cindex verses, multiple stanzas
627 Multiple stanzas may be included in one set of @verb{|<verse>|} tags, as
628 follows.
630 @example
631 <verse>
632 A line of Emacs verse;
633   forgive its being so terse.
635 This a second stanza:
636 Something longer should go here,
637 But the author is out of ideas.
638 </verse>
639 @end example
641 @node Lists, Tables, Verse, Markup Rules
642 @comment  node-name,  next,  previous,  up
643 @section Lists of items
644 @cindex lists
646 Lists are given using special characters at the beginning of a line.
647 Whitespace must occur before bullets or numbered items, to distinguish
648 from the possibility of those characters occurring in a real sentence.
650 @cindex lists, bullets
651 These are rendered as a bullet list.
653 @example
654  - bullet item one
655  - bullet item two
656 @end example
658 @cindex lists, enumerated
659 An enumerated list follows.
661 @example
662  1. Enum item one
663  2. Enum item two
664 @end example
666 @cindex lists, definitions
667 Here is a definition list.
669 @example
670 Term1 ::
671   This is a first definition
672   And it has two lines;
673   no, make that three.
675 Term2 ::
676   This is a second definition
677 @end example
679 @node Tables, Explicit Links, Lists, Markup Rules
680 @comment  node-name,  next,  previous,  up
681 @section Generation of data tables
682 @cindex tables
684 @cindex tables, simple
685 Only very simple tables are supported.  The syntax is as follows.
687 @example
688   Double bars  || Separate header fields
690   Single bars   | Separate body fields
691   Here are more | body fields
693   Triple bars ||| Separate footer fields
694 @end example
696 Some publishing styles require header fields to come first, then footer
697 fields, and then the body fields.  You can use any order for these
698 sections that you like, and Muse will re-order them for you at
699 publish-time.
701 @node Explicit Links, Implicit Links, Tables, Markup Rules
702 @comment  node-name,  next,  previous,  up
703 @section Hyperlinks and email addresses with descriptions
704 @cindex links, explicit
706 A hyperlink can reference a URL, or another page within a Muse
707 project.  In addition, descriptive text can be specified, which should
708 be displayed rather than the link text in output styles that supports
709 link descriptions.  The syntax is as follows.
711 @example
712 [[link target][link description]]
713 [[link target without description]]
714 @end example
716 Thus, the current maintainer's homepage for Muse can be found
717 @samp{[[http://www.mwolson.org/projects/MuseMode.html][here]]},
718 or at @samp{[[http://www.mwolson.org/projects/MuseMode.html]]}.
720 @node Implicit Links, Images, Explicit Links, Markup Rules
721 @comment  node-name,  next,  previous,  up
722 @section Bare URLs, WikiNames, and InterWiki links
723 @cindex links, implicit
724 @cindex links, raw
725 @cindex URLs
726 @cindex Email addresses
728 A URL or email address encountered in the input text is published as a
729 hyperlink.  These kind of links are called @dfn{implicit links} because
730 they are not separated from the rest of the Muse document in any way.
732 @cindex WikiNames
733 If the @command{muse-wiki} module is loaded, another form of implicit
734 link will be made available.  WikiNames, which are typed in camelcase,
735 will be highlighted and published as links, provided that the file they
736 refer to exists.
738 @cindex InterWiki links
739 @cindex inter-project links
740 The @command{muse-wiki} module also allows for InterWiki links.  These
741 are similar to WikiWords, but they specify both the project and page of
742 a file.  The names of your project entries in @code{muse-project-alist}
743 will be used as InterWiki names by default.  Several examples follow.
745 @example
746 Blog::DocumentingMuse
747 Projects#MuseMode
748 Website
749 @end example
751 In the first case, the interwiki delimiter is @samp{::}, @samp{Blog} is
752 the project name, and @samp{DocumentingMuse} is the page name.  In the
753 second example, @samp{#} is the interwiki delimiter.  If the name of a
754 project occurs by itself in text, like the third case, it will be
755 colorized and published as a link to the default page of the given
756 project.
758 Customization of interwiki links may be accomplished by editing the
759 @code{muse-wiki-interwiki-alist} option.
761 @node Images, Horizontal Rules and Anchors, Implicit Links, Markup Rules
762 @comment  node-name,  next,  previous,  up
763 @section Publishing and displaying images
764 @cindex images
765 @cindex links, with images
766 @strong{Image links}
768 Links to images may be used in either the target or the description, or
769 both.  Thus, the following code will publish as a clickable image that
770 points to @url{http://www.mwolson.org/}.
772 @example
773 [[http://www.mwolson.org/][http://www.mwolson.org/static/logos/site-logo.png]]
774 @end example
776 @cindex images, displaying
777 @cindex images, inlined
778 @cindex images, local
779 If a link to a locally-available image is encountered in the link
780 description, Muse mode will attempt to display it if your version of
781 Emacs permits this.  The following example will display correctly and
782 publish correctly if a @acronym{PNG} file called @file{TestLogo.png}
783 exists in the @file{../pics/} directory.
785 @example
786 [[TestPage][../pics/TestLogo.png]]
787 @end example
789 @cindex images, without a description
790 An image link is not required to have a description.  The link
791 @samp{[[../myimage.png]]} will display and publish as expected.
793 @node Horizontal Rules and Anchors, Embedded Lisp, Images, Markup Rules
794 @comment  node-name,  next,  previous,  up
795 @section Inserting a horizontal line or anchor
797 @cindex horizontal rules
798 @cindex dashes
799 @strong{Horizontal Rules}
801 Four or more dashes indicate a horizontal rule.  Be sure to put blank
802 lines around it, or it will be considered part of the proceeding or
803 following paragraph!
805 @cindex anchors
806 @cindex links, with target on same page
807 @strong{Anchors}
809 If you begin a line with "#anchor" -- where "anchor" can be any word
810 that doesn't contain whitespace -- it defines an anchor at that point
811 into the document.  This point can be referenced using "page#anchor" as
812 the target in a Muse link.
814 @node Embedded Lisp, , Horizontal Rules and Anchors, Markup Rules
815 @comment  node-name,  next,  previous,  up
816 @section Evaluating Emacs Lisp code in documents for extensibility
817 @cindex lisp, embedded
819 Arbitrary kinds of markup can be achieved using the @verb{|<lisp>|} tag,
820 which is the only Muse tag supported in a style's header and footer
821 text.  With the @verb{|<lisp>|} tag, you may generated whatever output
822 text you wish.  The inserted output will get marked up, if the
823 @verb{|<lisp>|} tag appears within the main text of the document.
825 @example
826 <lisp>(concat "This form gets " "inserted")</lisp>
827 @end example
829 @cindex lisp, and insert command
830 Note that you should not use the @code{insert} command within a set of
831 @verb{|<lisp>|} tags, since the return value from the @verb{|<lisp>|}
832 tags will be automatically inserted into the document.
834 @node Publishing Styles, Getting Help and Reporting Bugs, Markup Rules, Top
835 @comment  node-name,  next,  previous,  up
836 @chapter Publishing Various Types of Documents
837 @cindex publishing styles
839 One of the principle features of Muse is the ability to publish a simple
840 input text to a variety of different output styles.  Muse also makes it
841 easy to create new styles, or derive from an existing style.
843 @menu
844 * Blosxom::                     Integrating Muse and pyblosxom.cgi.
845 * Book::                        Publishing entries into a compilation.
846 * DocBook::                     Publishing in DocBook XML form.
847 * HTML::                        Publishing in HTML or XHTML form.
848 * Journal::                     Keeping a journal or blog.
849 * LaTeX::                       Publishing LaTeX documents.
850 * Poem::                        Publish a poem to LaTex or PDF.
851 * Texinfo::                     Publish entries to Texinfo format or PDF.
852 * Common Elements::             Common functionality shared by styles.
853 * Deriving Styles::             Deriving a new style from an existing
854                                   one.
855 @end menu
857 @node Blosxom, Book, Publishing Styles, Publishing Styles
858 @comment  node-name,  next,  previous,  up
859 @section Integrating Muse and pyblosxom.cgi
860 @cindex blog, one-file-per-entry style
862 The Blosxom publishing style publishes a tree of categorised files to a
863 mirrored tree of stories to be served by blosxom.cgi or pyblosxom.cgi.
864 In other words, each blog entry corresponds with one file.
866 @menu
867 * Blosxom Requirements::        Other tools needed to the Blosxom style.
868 * Blosxom Entries::             Format of a Blosxom entry and automation.
869 * Blosxom Options::             Blosxom styles and options provided.
870 @end menu
872 @node Blosxom Requirements, Blosxom Entries, Blosxom, Blosxom
873 @comment  node-name,  next,  previous,  up
874 @subsection Other tools needed to the Blosxom style
876 You will need to have @command{pyblosxom.cgi} or @command{blosxom.cgi}
877 installed on a machine that you have upload access to.
879 The following additional components are required in order to make the
880 date of blog entries display as something sensible.
882 @enumerate
883 @item
884 A script to gather date directives from the entire blog tree into a
885 single file.  The file must associate a blog entry with a date.
887 @item
888 A plugin for (py)blosxom that reads this file.
889 @end enumerate
891 These 2 things are provided for @command{pyblosxom.cgi} in the
892 @file{contrib/pyblosxom} subdirectory.  @file{getstamps.py} provides the
893 former service, while @file{hardcodedates.py} provides the latter
894 service.  Eventually it is hoped that a @command{blosxom.cgi} plugin and
895 script will be found/written.
897 Here is a sample listing from my @file{timestamps} file, which maps
898 each file to a date.  This can really be in any format, as long as your
899 date-gathering script and your plugin can both understand it.
901 @example
902 2005-04-01-14-16 personal/paper_cranes
903 2005-03-21 personal/spring_break_over
904 2004-10-24 personal/finished_free_culture
905 @end example
907 @node Blosxom Entries, Blosxom Options, Blosxom Requirements, Blosxom
908 @comment  node-name,  next,  previous,  up
909 @subsection Format of a Blosxom entry and automation
911 Each Blosxom file must include `#date yyyy-mm-dd', or optionally the
912 longer `#date yyyy-mm-dd-hh-mm', a title (using the #title directive),
913 plus whatever normal content is desired.
915 The date directive is not used directly by @command{pyblosxom.cgi} or
916 this program.  You need to have the two additional items from the former
917 section to make use of this feature.
919 There is a function called @code{muse-blosxom-new-entry} that will
920 automate the process of making a new blog entry.  To make use of it, do
921 the following.
923 @itemize @bullet
924 @item
925 Customize @code{muse-blosxom-base-directory} to the location that your
926 blog entries are stored.
928 @item
929 Assign the @code{muse-blosxom-new-entry} function to a key sequence.  I
930 use the following code to assign this function to @kbd{C-c p l'}.
932 @example
933 (global-set-key "\C-cpl" 'muse-blosxom-new-entry)
934 @end example
936 @item
937 You should create your directory structure ahead of time under your base
938 directory.  These directories, which correspond with category names, may
939 be nested.
941 @item
942 When you enter this key sequence, you will be prompted for the category
943 of your entry and its title.  Upon entering this information, a new file
944 will be created that corresponds with the title, but in lowercase
945 letters and having special characters converted to underscores.  The
946 title and date directives will be inserted automatically.
947 @end itemize
949 @node Blosxom Options, , Blosxom Entries, Blosxom
950 @comment  node-name,  next,  previous,  up
951 @subsection Blosxom styles and options provided
953 The following styles and options are available in the Blosxom publishing
954 style.
956 @emph{Styles provided}
958 @table @code
960 @cindex publishing styles, blosxom-html
961 @item blosxom-html
962 Publish Blosxom entries in HTML form.
964 @cindex publishing styles, blosxom-xhtml
965 @item blosxom-xhtml
966 Publish Blosxom entries in XHTML form.
968 @end table
970 @emph{Options provided}
972 @table @code
974 @item muse-blosxom-extension
975 Default file extension for publishing Blosxom files.
977 @item muse-blosxom-header
978 Header used for publishing Blosxom files.
980 This may be text or a filename.
982 @item muse-blosxom-footer
983 Footer used for publishing Blosxom files.
985 This may be text or a filename.
987 @item muse-blosxom-base-directory
988 Base directory of blog entries, used by @code{muse-blosxom-new-entry}.
990 This is the top-level directory where your blog entries may be found
991 locally.
993 @end table
995 @node Book, DocBook, Blosxom, Publishing Styles
996 @comment  node-name,  next,  previous,  up
997 @section Publishing entries into a compilation
999 This publishing style is used to output ``books'' in LaTeX or PDF
1000 format.
1002 Each page will become a separate chapter in the book, unless the style
1003 keyword @option{:nochapters} is used, in which case they are all run
1004 together as if one giant chapter.
1006 You will need to call the @code{muse-book-publish-project} function in
1007 order to publish this style.  An example of this may be found in John
1008 Wiegley's configuration file at @file{examples/johnw/muse-johnw.el}.
1010 @emph{Styles provided}
1012 @table @code
1014 @cindex publishing styles, book-latex
1015 @item book-latex
1016 Publish a book in LaTeX form.  The header and footer are different than
1017 the normal LaTeX publishing mode.
1019 @cindex publishing styles, book-pdf
1020 @item book-pdf
1021 Publish a book in PDF form.  The header and footer are different than
1022 the normal PDF publishing mode.
1024 @end table
1026 @emph{Options provided}
1028 @table @code
1030 @item muse-book-before-publish-hook
1031 A hook run in the book buffer before it is marked up.
1033 @item muse-book-after-publish-hook
1034 A hook run in the book buffer after it is marked up.
1036 @item muse-book-latex-header
1037 Header used for publishing books to LaTeX.
1039 This may be text or a filename.
1041 @item muse-book-latex-footer
1042 Footer used for publishing books to LaTeX.
1044 This may be text or a filename.
1046 @end table
1048 @node DocBook, HTML, Book, Publishing Styles
1049 @comment  node-name,  next,  previous,  up
1050 @section Publishing in DocBook XML form
1052 This publishing style is used to generate DocBook XML files.
1054 @emph{Styles provided}
1056 @table @code
1058 @cindex publishing styles, docbook
1059 @item docbook
1061 @end table
1063 @emph{Options provided}
1065 @table @code
1067 @item muse-docbook-extension
1068 Default file extension for publishing DocBook XML files.
1070 @item muse-docbook-header
1071 Header used for publishing DocBook XML files.
1073 This may be text or a filename.
1075 @item muse-docbook-footer
1076 Footer used for publishing DocBook XML files.
1078 This may be text or a filename.
1080 @item muse-docbook-publishing-regexps
1081 List of markup rules for publishing a Muse page to DocBook XML.
1083 @item muse-docbook-markup-function
1084 An alist of style types to custom functions for that kind of text.
1086 @item muse-docbook-publishing-strings
1087 Strings used for marking up text.
1089 These cover the most basic kinds of markup, the handling of which
1090 differs little between the various styles.
1092 @item muse-docbook-markup-specials
1093 A table of characters which must be represented specially.
1095 @end table
1097 @node HTML, Journal, DocBook, Publishing Styles
1098 @comment  node-name,  next,  previous,  up
1099 @section Publishing in HTML or XHTML form
1101 This publishing style is capable of producing HTML or XHTML documents.
1103 @emph{Styles provided}
1105 @table @code
1107 @cindex publishing styles, html
1108 @item html
1109 Supports publishing to HTML 4.0 and HTML 4.01, Strict or Transitional.
1111 @item xhtml
1112 Supports publishing to XHTML 1.0 and XHTML 1.1, Strict or Transitional.
1114 @end table
1116 @emph{Options provided}
1118 If an HTML option does not have a corresponding XHTML option, it will
1119 be used for both of these publishing styles.
1121 @table @code
1123 @item muse-html-extension
1124 Default file extension for publishing HTML files.
1126 @item muse-html-style-sheet
1127 Store your stylesheet definitions here.
1129 This is used in @code{muse-html-header}.  You can put raw CSS in here or
1130 a @verb{|<link>|} tag to an external stylesheet.  This text may contain
1131 @verb{|<lisp>|} markup tags.
1133 If you are using XHTML, make sure to close the @verb{|<link>|} tag
1134 properly.
1136 @item muse-html-header
1137 Header used for publishing HTML files.
1139 This may be text or a filename.
1141 @item muse-html-footer
1142 Footer used for publishing HTML files.
1144 This may be text or a filename.
1146 @item muse-xhtml-header
1147 Header used for publishing XHTML files.
1149 This may be text or a filename.
1151 @item muse-xhtml-footer
1152 Footer used for publishing XHTML files.
1154 This may be text or a filename.
1156 @item muse-html-anchor-on-word
1157 When true, anchors surround the closest word.
1159 This allows you to select them in a browser (i.e. for pasting), but has
1160 the side-effect of marking up headers in multiple colors if your header
1161 style is different from your link style.
1163 @item muse-html-table-attributes
1164 The attribute to be used with HTML @verb{|<table>|} tags.
1166 Note that since Muse supports direct insertion of HTML tags, you can
1167 easily create any kind of table you want, as long as each line begins at
1168 column 0 (to prevent it from being blockquoted).
1170 @item muse-html-markup-regexps
1171 List of markup rules for publishing a Muse page to HTML.
1173 @item muse-html-markup-functions
1174 An alist of style types to custom functions for that kind of text.
1176 @item muse-html-markup-strings
1177 Strings used for marking up text as HTML.
1179 These cover the most basic kinds of markup, the handling of which
1180 differs little between the various styles.
1182 @item muse-xhtml-markup-strings
1183 Strings used for marking up text as XHTML.
1185 These cover the most basic kinds of markup, the handling of which
1186 differs little between the various styles.
1188 @item muse-html-markup-tags
1189 A list of tag specifications, for specially marking up HTML.
1190 @xref{muse-publish-markup-tags}, for more information.
1192 @item muse-html-markup-specials
1193 A table of characters which must be represented specially.  By default,
1194 this includes @samp{"}, @samp{<}, @samp{>}, and @samp{&}.
1196 @item muse-html-meta-http-equiv
1197 The http-equiv attribute used for the HTML @verb{|<meta>|} tag.
1199 @item muse-html-meta-content-type
1200 The content type used for the HTML @verb{|<meta>|} tag.
1202 If you are striving for XHTML 1.1 compliance, you may want to change
1203 this to ``application/xhtml+xml''.
1205 @item muse-html-meta-content-encoding
1206 The charset to append to the HTML @verb{|<meta>|} tag.
1208 If set to the symbol 'detect, use @code{muse-html-encoding-map} to try
1209 and determine the HTML charset from emacs's coding.  If set to a string,
1210 this string will be used to force a particular charset.
1212 @item muse-html-charset-default
1213 The default HTML meta charset to use if no translation is found in
1214 @code{muse-html-encoding-map}.
1216 @item muse-html-encoding-default
1217 The default Emacs buffer encoding to use in published files.
1218 This will be used if no special characters are found.
1220 @item muse-html-encoding-map
1221 An alist mapping emacs coding systems to appropriate HTML charsets.
1222 Use the base name of the coding system (i.e. without the -unix).
1224 @end table
1226 @node Journal, LaTeX, HTML, Publishing Styles
1227 @comment  node-name,  next,  previous,  up
1228 @section Keeping a journal or blog
1229 @cindex journal
1230 @cindex blog, journal style
1232 The module facilitates the keeping and publication of a journal.  When
1233 publishing to HTML, it assumes the form of a web log, or blog.
1235 The input format for each entry is as follows.
1237 @example
1238   * 20040317: Title of entry
1240   Text for the entry.
1242   <qotd>
1243   "You know who you are. It comes down to a simple gut check: You
1244   either love what you do or you don't. Period." -- P. Bronson
1245   </qotd>
1246 @end example
1248 The "qotd", or Quote of the Day, is entirely optional.  When generated
1249 to HTML, this entry is rendered as the following.
1251 @example
1252   <div class="entry">
1253     <div class="entry-qotd">
1254       <h3>Quote of the Day:</h3>
1255       <p>"You know who you are. It comes down to a simple gut
1256         check: You either love what you do or you don't. Period."
1257         -- P. Bronson</p>
1258     </div>
1259     <div class="entry-body">
1260       <div class="entry-head">
1261         <div class="entry-date">
1262           <span class="date">March 17, 2004</span>
1263         </div>
1264         <div class="entry-title">
1265           <h2>Title of entry</h2>
1266         </div>
1267       </div>
1268       <div class="entry-text">
1269         <p>Text for the entry.</p>
1270       </div>
1271     </div>
1272   </div>
1273 @end example
1275 The plurality of "div" tags makes it possible to display the entries in
1276 any form you wish, using a CSS style.
1278 Also, an .RDF file can be generated from your journal by publishing it
1279 with the "rdf" style.  It uses the first two sentences of the first
1280 paragraph of each entry as its "description", and auto-generates tags
1281 for linking to the various entries.
1283 @emph{Styles provided}
1285 @table @code
1287 @cindex publishing styles, journal-html
1288 @item journal-html
1289 Publish journal entries as an HTML document.
1291 @cindex publishing styles, journal-xhtml
1292 @item journal-xhtml
1293 Publish journal entries as an XHTML document.
1295 @cindex publishing styles, journal-latex
1296 @item journal-latex
1297 Publish journal entries as a LaTeX document.
1299 @cindex publishing styles, journal-pdf
1300 @item journal-pdf
1301 Publish journal entries as a PDF document.
1303 @cindex publishing styles, journal-book-latex
1304 @item journal-book-latex
1305 Publish journal entries as a LaTeX book.
1307 @cindex publishing styles, journal-book-pdf
1308 @item journal-book-pdf
1309 Publish journal entries as a PDF book.
1311 @cindex publishing styles, journal-rdf
1312 @cindex publishing styles, RSS 1.0
1313 @item journal-rdf
1314 Publish journal entries as an RDF file (RSS 1.0).
1316 @cindex publishing styles, journal-rss
1317 @cindex publishing styles, RSS 2.0
1318 @item journal-rss
1319 Publish journal entries as an RSS file (RSS 2.0).
1321 @end table
1323 @emph{Options provided}
1325 @table @code
1327 @item muse-journal-heading-regexp
1328 A regexp that matches a journal heading.
1330 Paren group 1 is the ISO date, group 2 is the optional category, and
1331 group 3 is the optional heading for the entry.
1333 @item muse-journal-date-format
1334 Date format to use for journal entries.
1336 @item muse-journal-html-heading-regexp
1337 A regexp that matches a journal heading from an HTML document.
1339 Paren group 1 is the ISO date, group 2 is the optional category, and
1340 group 3 is the optional heading for the entry.
1342 @item muse-journal-html-entry-template
1343 Template used to publish individual journal entries as HTML.
1345 @item muse-journal-latex-section
1346 Template used to publish a LaTeX section.
1348 @item muse-journal-latex-subsection
1349 Template used to publish a LaTeX subsection.
1351 @item muse-journal-latex-markup-tags
1352 A list of tag specifications, for specially marking up LaTeX.
1354 @xref{muse-publish-markup-tags}, for more information.
1356 @item muse-journal-rdf-extension
1357 Default file extension for publishing RDF (RSS 1.0) files.
1359 @item muse-journal-rdf-base-url
1360 The base URL of the website referenced by the RDF file.
1362 @item muse-journal-rdf-header
1363 Header used for publishing RDF (RSS 1.0) files.
1365 This may be text or a filename.
1367 @item muse-journal-rdf-footer
1368 Footer used for publishing RDF (RSS 1.0) files.
1370 This may be text or a filename.
1372 @item muse-journal-rdf-date-format
1373 Date format to use for RDF entries.
1375 @item muse-journal-rdf-entry-template
1376 Template used to publish individual journal entries as RDF.
1378 @item muse-journal-rdf-summarize-entries
1379 If non-nil, include only summaries in the RDF file, not the full data.
1381 @item muse-journal-rss-extension
1382 Default file extension for publishing RSS 2.0 files.
1384 @item muse-journal-rss-base-url
1385 The base URL of the website referenced by the RSS file.
1387 @item muse-journal-rss-header
1388 Header used for publishing RSS 2.0 files.
1390 This may be text or a filename.
1392 @item muse-journal-rss-footer
1393 Footer used for publishing RSS 2.0 files.
1395 This may be text or a filename.
1397 @item muse-journal-rss-date-format
1398 Date format to use for RSS 2.0 entries.
1400 @item muse-journal-rss-entry-template
1401 Template used to publish individual journal entries as RSS 2.0.
1403 @item muse-journal-rss-enclosure-types-alist
1404 File types that are accepted as RSS enclosures.
1406 This is an alist that maps file extension to content type.
1408 Useful for podcasting.
1410 @item muse-journal-rss-summarize-entries
1411 If non-nil, include only summaries in the RSS file, not the full data.
1413 Many RSS subscribers find this annoying.
1415 @item muse-journal-rss-markup-regexps
1416 List of markup rules for publishing a Muse journal page to RSS.
1418 For more information on the structure of this list,
1419 @xref{muse-publish-markup-regexps}.
1421 @item muse-journal-rss-markup-functions
1422 An alist of style types to custom functions for that kind of text.
1424 For more on the structure of this list,
1425 @xref{muse-publish-markup-functions}.
1427 @end table
1429 @node LaTeX, Poem, Journal, Publishing Styles
1430 @comment  node-name,  next,  previous,  up
1431 @section Publishing LaTeX documents
1433 This publishing style is capable of producing LaTeX or PDF documents.
1435 If you wish to publish PDF documents, you will need to have a good TeX
1436 installation.  For Debian, this can be accomplished by installing the
1437 ``tetex-bin'' and ``tetex-extra'' packages.  TeX fonts are also a must.
1439 @emph{Styles provided}
1441 @table @code
1443 @cindex publishing styles, latex
1444 @item latex
1445 Publish a LaTeX document.
1447 @cindex publishing styles, pdf
1448 @item pdf
1449 Publish a PDF document, using an external LaTeX document conversion
1450 tool.
1452 @cindex publishing styles, latexcjk
1453 @item latexcjk
1454 Publish a LaTeX document with CJK (Chinese) encodings.
1456 @cindex publishing styles, pdfcjk
1457 @item pdfcjk
1458 Publish a PDF document with CJK (Chinese) encodings, using an external
1459 LaTeX document conversion tool.
1461 @end table
1463 @emph{Options provided}
1465 @table @code
1467 @item muse-latex-extension
1468 Default file extension for publishing LaTeX files.
1470 @item muse-latex-pdf-extension
1471 Default file extension for publishing LaTeX files to PDF.
1473 @item muse-latex-header
1474 Header used for publishing LaTeX files.
1476 This may be text or a filename.
1478 @item muse-latex-footer
1479 Footer used for publishing LaTeX files.
1481 This may be text or a filename.
1483 @item muse-latexcjk-header
1484 Header used for publishing LaTeX files (CJK).
1486 This may be text or a filename.
1488 @item muse-latexcjk-footer
1489 Footer used for publishing LaTeX files (CJK).
1491 This may be text or a filename.
1493 @item muse-latex-markup-regexps
1494 List of markup regexps for identifying regions in a Muse page.
1496 For more on the structure of this list,
1497 @xref{muse-publish-markup-regexps}.
1499 @item muse-latex-markup-functions
1500 An alist of style types to custom functions for that kind of text.
1502 For more on the structure of this list,
1503 @xref{muse-publish-markup-functions}.
1505 @item muse-latex-markup-strings
1506 Strings used for marking up text.
1508 These cover the most basic kinds of markup, the handling of which
1509 differs little between the various styles.
1511 @item muse-latexcjk-encoding-map
1512 An alist mapping emacs coding systems to appropriate CJK codings.
1513 Use the base name of the coding system (ie, without the -unix).
1515 @item muse-latexcjk-encoding-default
1516 The default Emacs buffer encoding to use in published files.
1518 This will be used if no special characters are found.
1520 @item muse-latex-markup-specials
1521 A table of characters which must be represented specially.
1523 @end table
1525 @node Poem, Texinfo, LaTeX, Publishing Styles
1526 @comment  node-name,  next,  previous,  up
1527 @section Publish a poem to LaTex or PDF
1529 The @code{muse-poem} module makes it easy to attractively publish and
1530 reference poems in the following format, using the "memoir" module for
1531 LaTeX publishing.  It will also markup poems for every other output
1532 style, though none are nearly as pretty.
1534 @example
1535 Title
1538 Body of poem
1541 Annotations, history, notes, etc.
1542 @end example
1544 Once a poem is written in this format, just publish it to PDF using the
1545 @code{poem-pdf} style.  To make an inlined reference to a poem that
1546 you've written -- for example, from a blog page -- there is a "poem" tag
1547 defined by this module.
1549 @example
1550 <poem title="name.of.poem.page">
1551 @end example
1553 Let's assume the template above was called @file{name.of.poem.page};
1554 then the above tag would result in this inclusion.
1556 @example
1557 ** Title
1559 > Body of poem
1560 @end example
1562 John Wiegley uses this module for publishing all of the poems on his
1563 website, which are at
1564 @uref{http://www.newartisans.com/johnw/poems.html}.
1566 @emph{Styles provided}
1568 @table @code
1570 @cindex publishing styles, poem-latex
1571 @item poem-latex
1572 Publish a poem in LaTeX form.
1574 @cindex publishing styles, poem-pdf
1575 @item poem-pdf
1576 Publish a poem to a PDF document.
1578 @cindex publishing styles, chapbook-latex
1579 @item chapbook-latex
1580 Publish a book of poems in LaTeX form.
1582 @cindex publishing styles, chapbook-pdf
1583 @item chapbook-pdf
1584 Publish a book of poems to a PDF document.
1586 @end table
1588 @emph{Options provided}
1590 @table @code
1592 @item muse-poem-latex-header
1593 Header used for publishing LaTeX poems.
1595 This may be text or a filename.
1597 @item muse-poem-latex-footer
1598 Footer used for publishing LaTeX files.
1600 This may be text or a filename.
1602 @item muse-poem-markup-strings
1603 Strings used for marking up poems.
1605 These cover the most basic kinds of markup, the handling of which
1606 differs little between the various styles.
1608 @item muse-chapbook-latex-header
1609 Header used for publishing a book of poems in LaTeX form.
1611 This may be text or a filename.
1613 @item muse-chapbook-latex-footer
1614 Footer used for publishing a book of poems in LaTeX form.
1616 This may be text or a filename.
1618 @item muse-poem-chapbook-strings
1619 Strings used for marking up books of poems.
1621 These cover the most basic kinds of markup, the handling of which
1622 differs little between the various styles.
1624 @end table
1626 @node Texinfo, Common Elements, Poem, Publishing Styles
1627 @comment  node-name,  next,  previous,  up
1628 @section Publish entries to Texinfo format or PDF
1630 Rules for publishing a Muse file as a Texinfo article.
1632 @emph{Styles provided}
1634 @table @code
1636 @cindex publishing styles, texi
1637 @item texi
1638 Publish a file in Texinfo form.
1640 @cindex publishing styles, texi
1641 @item info
1642 Generate an Info file from a Muse file.
1644 @cindex publishing styles, info-pdf
1645 @item info-pdf
1646 Publish a file in PDF form.
1648 @end table
1650 @emph{Options provided}
1652 @table @code
1654 @item muse-texinfo-process-natively
1655 If non-nil, use the Emacs `texinfmt' module to make Info files.
1657 @item muse-texinfo-extension
1658 Default file extension for publishing Texinfo files.
1660 @item muse-texinfo-info-extension
1661 Default file extension for publishing Info files.
1663 @item muse-texinfo-pdf-extension
1664 Default file extension for publishing PDF files.
1666 @item muse-texinfo-header
1667 Text to prepend to a Muse page being published as Texinfo.
1669 This may be text or a filename.
1670 It may contain @verb{|<lisp>|} markup tags.
1672 @item muse-texinfo-footer
1673 Text to append to a Muse page being published as Texinfo.
1675 This may be text or a filename.
1676 It may contain @verb{|<lisp>|} markup tags.
1678 @item muse-texinfo-markup-regexps
1679 List of markup rules for publishing a Muse page to Texinfo.
1681 For more on the structure of this list,
1682 @xref{muse-publish-markup-regexps}.
1684 @item muse-texinfo-markup-functions
1685 An alist of style types to custom functions for that kind of text.
1687 For more on the structure of this list, see
1688 @xref{muse-publish-markup-functions}.
1690 @item muse-texinfo-markup-strings
1691 Strings used for marking up text.
1693 These cover the most basic kinds of markup, the handling of which
1694 differs little between the various styles.
1696 @item muse-texinfo-markup-specials
1697 A table of characters which must be represented specially.
1699 @end table
1701 @node Common Elements, Deriving Styles, Texinfo, Publishing Styles
1702 @comment  node-name,  next,  previous,  up
1703 @section Common functionality shared by styles
1704 @cindex publishing styles, common
1706 @table @code
1708 @cindex publishing, markup functions
1709 @anchor{muse-publish-markup-functions}
1710 @item muse-publish-markup-functions
1711 An alist of style types to custom functions for that kind of text.
1713 This is used by publishing styles to attempt to minimize the amount of
1714 custom regexps that each has to define.  @file{muse-publish} provides
1715 rules for the most common types of markup.
1717 Each member of the list is of the following form.
1719 @example
1720   (SYMBOL FUNCTION)
1721 @end example
1723 @itemize @bullet
1724 @item SYMBOL
1725 Describes the type of text to associate with this rule.
1726 @code{muse-publish-markup-regexps} maps regexps to these symbols.
1728 @item FUNCTION
1729 Function to use to mark up this kind of rule if no suitable function is
1730 found through the @option{:functions} tag of the current style.
1731 @end itemize
1733 @cindex publishing, markup regexps
1734 @anchor{muse-publish-markup-regexps}
1735 @item muse-publish-markup-regexps
1736 List of markup rules for publishing a page with Muse.
1738 The rules given in this variable are invoked first, followed by whatever
1739 rules are specified by the current style.
1741 Each member of the list is either a function, or a list of the following
1742 form.
1744 @example
1745   (REGEXP/SYMBOL TEXT-BEGIN-GROUP REPLACEMENT-TEXT/FUNCTION/SYMBOL)
1746 @end example
1748 @itemize @bullet
1749 @item REGEXP
1750 A regular expression, or symbol whose value is a regular expression,
1751 which is searched for using `re-search-forward'.
1753 @item TEXT-BEGIN-GROUP
1754 The matching group within that regexp which denotes the beginning of the
1755 actual text to be marked up.
1757 @item REPLACEMENT-TEXT
1758 A string that will be passed to `replace-match'.
1760 If it is not a string, but a function, it will be called to determine
1761 what the replacement text should be (it must return a string).  If it is
1762 a symbol, the value of that symbol should be a string.
1763 @end itemize
1765 The replacements are done in order, one rule at a time.  Writing
1766 the regular expressions can be a tricky business.  Note that case
1767 is never ignored.  `case-fold-search' is always bound to nil
1768 while processing the markup rules.
1770 @cindex publishing, markup tags
1771 @anchor{muse-publish-markup-tags}
1772 @item muse-publish-markup-tags
1773 A list of tag specifications, for specially marking up text.
1775 XML-style tags are the best way to add custom markup to Muse.  This is
1776 easily accomplished by customizing this list of markup tags.
1778 For each entry, the name of the tag is given, whether it expects a
1779 closing tag and/or an optional set of attributes, and a function that
1780 performs whatever action is desired within the delimited region.
1782 The tags themselves are deleted during publishing, before the function
1783 is called.  The function is called with three arguments, the beginning
1784 and end of the region surrounded by the tags.  If properties are
1785 allowed, they are passed as a third argument in the form of an alist.
1786 The `end' argument to the function is always a marker.
1788 Point is always at the beginning of the region within the tags, when the
1789 function is called.  Wherever point is when the function finishes is
1790 where tag markup will resume.
1792 These tag rules are processed once at the beginning of markup, and once
1793 at the end, to catch any tags which may have been inserted in-between.
1795 @end table
1797 @node Deriving Styles, , Common Elements, Publishing Styles
1798 @comment  node-name,  next,  previous,  up
1799 @section Deriving a new style from an existing one
1800 @cindex publishing styles, deriving
1802 To create a new style from an existing one, use @code{muse-derive-style}
1803 as follows.  This is a good way to fix something you don't like about a
1804 particular publishing style, or to personalize it.
1806 @example
1807 (muse-derive-style DERIVED-NAME BASE-NAME STYLE-PARAMETERS)
1808 @end example
1810 The derived name is a string defining the new style, such as "my-html".
1811 The base name must identify an existing style, such as "html" -- if you
1812 have loaded @file{muse-html}.  The style parameters are the same as
1813 those used to create a style, except that they override whatever
1814 definitions exist in the base style.  However, some definitions only
1815 partially override.  The following parameters support partial
1816 overriding.
1818 @table @option
1820 @item :functions
1821 If a markup function is not found in the derived style's function list,
1822 the base style's function list will be queried.
1824 @item :strings
1825 If a markup string is not found in the derived style's string list, the
1826 base style's string list will be queried.
1828 @item :before
1829 If this option is specified, it will be consulted rather than the
1830 corresponding value in the derived style.  This applies to the following
1831 options as well.
1833 @item :before-end
1835 @item :after
1837 @end table
1840 @node Getting Help and Reporting Bugs, History, Publishing Styles, Top
1841 @comment  node-name,  next,  previous,  up
1842 @chapter Getting Help and Reporting Bugs
1843 @cindex help, getting
1844 @cindex bugs, reporting
1846 After you have read this guide, if you still have questions about
1847 Muse, or if you have bugs to report, there are several places you can
1850 @itemize @bullet
1852 @item
1853 @uref{http://www.emacswiki.org/cgi-bin/wiki/MuseMode} is the
1854 emacswiki.org page, and anyone may add tips, hints, or bug descriptions
1855 to it.
1857 @item
1858 @uref{http://www.mwolson.org/projects/MuseMode.html} is the web page
1859 that Michael Olson (the current maintainer) made for Muse.
1861 @item
1862 You can join the mailing list at @email{emacs-wiki-discuss@@nongnu.org}
1863 using the subscription form at
1864 @uref{http://mail.nongnu.org/mailman/listinfo/ emacs-wiki-discuss}.
1865 This mailing list provides support for Muse, @command{Planner} and
1866 @command{emacs-wiki}, which is the predecessor of Muse.
1868 There are additional methods for accessing the mailing list, adding
1869 content to it, and searching it.  Consult
1870 @uref{http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMailingList} for
1871 more information.
1873 @item
1874 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
1875 contributors are frequently around and willing to answer your
1876 questions.  The @samp{#muse} channel is also available for
1877 Muse-specific help, and its current maintainer hangs out there.
1879 @item
1880 The maintainer of MuseMode, Michael Olson, may be contacted at
1881 @email{mwolson@@gnu.org}.
1883 @end itemize
1885 @node History, Contributors, Getting Help and Reporting Bugs, Top
1886 @comment  node-name,  next,  previous,  up
1887 @chapter History of This Document
1888 @cindex history, of Muse
1890 @itemize
1891 @item 2004
1892 John Wiegley started Muse upon realizing that EmacsWiki had some serious
1893 limitations. Around February 2004, he started making "emacs-wiki version
1894 3.00 APLHA", which eventually became known as Muse.
1896 Most of those who frequent the emacs-wiki mailing list continued to use
1897 emacs-wiki, mainly because Planner hasn't been ported over to it.
1899 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
1900 John Wiegley's request.
1902 @item 2005
1903 Michael Olson overhauled this document and added many new sections in
1904 preparation for the first release of Muse (3.01).
1906 @end itemize
1908 @node Contributors, GNU General Public License, History, Top
1909 @comment  node-name,  next,  previous,  up
1910 @chapter Contributors to This Documentation
1911 @cindex contributors
1913 The first draft of this document was taken from the emacs-wiki texinfo
1914 manual.  Michael Olson adapted it for Muse and added most of its
1915 content.
1917 John Sullivan did a majority of the work on the emacs-wiki texinfo
1918 manual.
1920 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
1921 emacs-wiki texinfo manual.
1923 @node GNU General Public License, Concept Index, Contributors, Top
1924 @comment  node-name,  next,  previous,  up
1925 @appendix GNU GENERAL PUBLIC LICENSE
1926 @center Version 2, June 1991
1927 @cindex GPL
1928 @cindex GNU General Public License
1930 @c This file is intended to be included in another file.
1932 @display
1933 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
1934 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1936 Everyone is permitted to copy and distribute verbatim copies
1937 of this license document, but changing it is not allowed.
1938 @end display
1940 @appendixsec Preamble
1942   The licenses for most software are designed to take away your
1943 freedom to share and change it.  By contrast, the GNU General Public
1944 License is intended to guarantee your freedom to share and change free
1945 software---to make sure the software is free for all its users.  This
1946 General Public License applies to most of the Free Software
1947 Foundation's software and to any other program whose authors commit to
1948 using it.  (Some other Free Software Foundation software is covered by
1949 the GNU Library General Public License instead.)  You can apply it to
1950 your programs, too.
1952   When we speak of free software, we are referring to freedom, not
1953 price.  Our General Public Licenses are designed to make sure that you
1954 have the freedom to distribute copies of free software (and charge for
1955 this service if you wish), that you receive source code or can get it
1956 if you want it, that you can change the software or use pieces of it
1957 in new free programs; and that you know you can do these things.
1959   To protect your rights, we need to make restrictions that forbid
1960 anyone to deny you these rights or to ask you to surrender the rights.
1961 These restrictions translate to certain responsibilities for you if you
1962 distribute copies of the software, or if you modify it.
1964   For example, if you distribute copies of such a program, whether
1965 gratis or for a fee, you must give the recipients all the rights that
1966 you have.  You must make sure that they, too, receive or can get the
1967 source code.  And you must show them these terms so they know their
1968 rights.
1970   We protect your rights with two steps: (1) copyright the software, and
1971 (2) offer you this license which gives you legal permission to copy,
1972 distribute and/or modify the software.
1974   Also, for each author's protection and ours, we want to make certain
1975 that everyone understands that there is no warranty for this free
1976 software.  If the software is modified by someone else and passed on, we
1977 want its recipients to know that what they have is not the original, so
1978 that any problems introduced by others will not reflect on the original
1979 authors' reputations.
1981   Finally, any free program is threatened constantly by software
1982 patents.  We wish to avoid the danger that redistributors of a free
1983 program will individually obtain patent licenses, in effect making the
1984 program proprietary.  To prevent this, we have made it clear that any
1985 patent must be licensed for everyone's free use or not licensed at all.
1987   The precise terms and conditions for copying, distribution and
1988 modification follow.
1990 @iftex
1991 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1992 @end iftex
1993 @ifinfo
1994 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1995 @end ifinfo
1997 @enumerate 0
1998 @item
1999 This License applies to any program or other work which contains
2000 a notice placed by the copyright holder saying it may be distributed
2001 under the terms of this General Public License.  The ``Program'', below,
2002 refers to any such program or work, and a ``work based on the Program''
2003 means either the Program or any derivative work under copyright law:
2004 that is to say, a work containing the Program or a portion of it,
2005 either verbatim or with modifications and/or translated into another
2006 language.  (Hereinafter, translation is included without limitation in
2007 the term ``modification''.)  Each licensee is addressed as ``you''.
2009 Activities other than copying, distribution and modification are not
2010 covered by this License; they are outside its scope.  The act of
2011 running the Program is not restricted, and the output from the Program
2012 is covered only if its contents constitute a work based on the
2013 Program (independent of having been made by running the Program).
2014 Whether that is true depends on what the Program does.
2016 @item
2017 You may copy and distribute verbatim copies of the Program's
2018 source code as you receive it, in any medium, provided that you
2019 conspicuously and appropriately publish on each copy an appropriate
2020 copyright notice and disclaimer of warranty; keep intact all the
2021 notices that refer to this License and to the absence of any warranty;
2022 and give any other recipients of the Program a copy of this License
2023 along with the Program.
2025 You may charge a fee for the physical act of transferring a copy, and
2026 you may at your option offer warranty protection in exchange for a fee.
2028 @item
2029 You may modify your copy or copies of the Program or any portion
2030 of it, thus forming a work based on the Program, and copy and
2031 distribute such modifications or work under the terms of Section 1
2032 above, provided that you also meet all of these conditions:
2034 @enumerate a
2035 @item
2036 You must cause the modified files to carry prominent notices
2037 stating that you changed the files and the date of any change.
2039 @item
2040 You must cause any work that you distribute or publish, that in
2041 whole or in part contains or is derived from the Program or any
2042 part thereof, to be licensed as a whole at no charge to all third
2043 parties under the terms of this License.
2045 @item
2046 If the modified program normally reads commands interactively
2047 when run, you must cause it, when started running for such
2048 interactive use in the most ordinary way, to print or display an
2049 announcement including an appropriate copyright notice and a
2050 notice that there is no warranty (or else, saying that you provide
2051 a warranty) and that users may redistribute the program under
2052 these conditions, and telling the user how to view a copy of this
2053 License.  (Exception: if the Program itself is interactive but
2054 does not normally print such an announcement, your work based on
2055 the Program is not required to print an announcement.)
2056 @end enumerate
2058 These requirements apply to the modified work as a whole.  If
2059 identifiable sections of that work are not derived from the Program,
2060 and can be reasonably considered independent and separate works in
2061 themselves, then this License, and its terms, do not apply to those
2062 sections when you distribute them as separate works.  But when you
2063 distribute the same sections as part of a whole which is a work based
2064 on the Program, the distribution of the whole must be on the terms of
2065 this License, whose permissions for other licensees extend to the
2066 entire whole, and thus to each and every part regardless of who wrote it.
2068 Thus, it is not the intent of this section to claim rights or contest
2069 your rights to work written entirely by you; rather, the intent is to
2070 exercise the right to control the distribution of derivative or
2071 collective works based on the Program.
2073 In addition, mere aggregation of another work not based on the Program
2074 with the Program (or with a work based on the Program) on a volume of
2075 a storage or distribution medium does not bring the other work under
2076 the scope of this License.
2078 @item
2079 You may copy and distribute the Program (or a work based on it,
2080 under Section 2) in object code or executable form under the terms of
2081 Sections 1 and 2 above provided that you also do one of the following:
2083 @enumerate a
2084 @item
2085 Accompany it with the complete corresponding machine-readable
2086 source code, which must be distributed under the terms of Sections
2087 1 and 2 above on a medium customarily used for software interchange; or,
2089 @item
2090 Accompany it with a written offer, valid for at least three
2091 years, to give any third party, for a charge no more than your
2092 cost of physically performing source distribution, a complete
2093 machine-readable copy of the corresponding source code, to be
2094 distributed under the terms of Sections 1 and 2 above on a medium
2095 customarily used for software interchange; or,
2097 @item
2098 Accompany it with the information you received as to the offer
2099 to distribute corresponding source code.  (This alternative is
2100 allowed only for noncommercial distribution and only if you
2101 received the program in object code or executable form with such
2102 an offer, in accord with Subsection b above.)
2103 @end enumerate
2105 The source code for a work means the preferred form of the work for
2106 making modifications to it.  For an executable work, complete source
2107 code means all the source code for all modules it contains, plus any
2108 associated interface definition files, plus the scripts used to
2109 control compilation and installation of the executable.  However, as a
2110 special exception, the source code distributed need not include
2111 anything that is normally distributed (in either source or binary
2112 form) with the major components (compiler, kernel, and so on) of the
2113 operating system on which the executable runs, unless that component
2114 itself accompanies the executable.
2116 If distribution of executable or object code is made by offering
2117 access to copy from a designated place, then offering equivalent
2118 access to copy the source code from the same place counts as
2119 distribution of the source code, even though third parties are not
2120 compelled to copy the source along with the object code.
2122 @item
2123 You may not copy, modify, sublicense, or distribute the Program
2124 except as expressly provided under this License.  Any attempt
2125 otherwise to copy, modify, sublicense or distribute the Program is
2126 void, and will automatically terminate your rights under this License.
2127 However, parties who have received copies, or rights, from you under
2128 this License will not have their licenses terminated so long as such
2129 parties remain in full compliance.
2131 @item
2132 You are not required to accept this License, since you have not
2133 signed it.  However, nothing else grants you permission to modify or
2134 distribute the Program or its derivative works.  These actions are
2135 prohibited by law if you do not accept this License.  Therefore, by
2136 modifying or distributing the Program (or any work based on the
2137 Program), you indicate your acceptance of this License to do so, and
2138 all its terms and conditions for copying, distributing or modifying
2139 the Program or works based on it.
2141 @item
2142 Each time you redistribute the Program (or any work based on the
2143 Program), the recipient automatically receives a license from the
2144 original licensor to copy, distribute or modify the Program subject to
2145 these terms and conditions.  You may not impose any further
2146 restrictions on the recipients' exercise of the rights granted herein.
2147 You are not responsible for enforcing compliance by third parties to
2148 this License.
2150 @item
2151 If, as a consequence of a court judgment or allegation of patent
2152 infringement or for any other reason (not limited to patent issues),
2153 conditions are imposed on you (whether by court order, agreement or
2154 otherwise) that contradict the conditions of this License, they do not
2155 excuse you from the conditions of this License.  If you cannot
2156 distribute so as to satisfy simultaneously your obligations under this
2157 License and any other pertinent obligations, then as a consequence you
2158 may not distribute the Program at all.  For example, if a patent
2159 license would not permit royalty-free redistribution of the Program by
2160 all those who receive copies directly or indirectly through you, then
2161 the only way you could satisfy both it and this License would be to
2162 refrain entirely from distribution of the Program.
2164 If any portion of this section is held invalid or unenforceable under
2165 any particular circumstance, the balance of the section is intended to
2166 apply and the section as a whole is intended to apply in other
2167 circumstances.
2169 It is not the purpose of this section to induce you to infringe any
2170 patents or other property right claims or to contest validity of any
2171 such claims; this section has the sole purpose of protecting the
2172 integrity of the free software distribution system, which is
2173 implemented by public license practices.  Many people have made
2174 generous contributions to the wide range of software distributed
2175 through that system in reliance on consistent application of that
2176 system; it is up to the author/donor to decide if he or she is willing
2177 to distribute software through any other system and a licensee cannot
2178 impose that choice.
2180 This section is intended to make thoroughly clear what is believed to
2181 be a consequence of the rest of this License.
2183 @item
2184 If the distribution and/or use of the Program is restricted in
2185 certain countries either by patents or by copyrighted interfaces, the
2186 original copyright holder who places the Program under this License
2187 may add an explicit geographical distribution limitation excluding
2188 those countries, so that distribution is permitted only in or among
2189 countries not thus excluded.  In such case, this License incorporates
2190 the limitation as if written in the body of this License.
2192 @item
2193 The Free Software Foundation may publish revised and/or new versions
2194 of the General Public License from time to time.  Such new versions will
2195 be similar in spirit to the present version, but may differ in detail to
2196 address new problems or concerns.
2198 Each version is given a distinguishing version number.  If the Program
2199 specifies a version number of this License which applies to it and ``any
2200 later version'', you have the option of following the terms and conditions
2201 either of that version or of any later version published by the Free
2202 Software Foundation.  If the Program does not specify a version number of
2203 this License, you may choose any version ever published by the Free Software
2204 Foundation.
2206 @item
2207 If you wish to incorporate parts of the Program into other free
2208 programs whose distribution conditions are different, write to the author
2209 to ask for permission.  For software which is copyrighted by the Free
2210 Software Foundation, write to the Free Software Foundation; we sometimes
2211 make exceptions for this.  Our decision will be guided by the two goals
2212 of preserving the free status of all derivatives of our free software and
2213 of promoting the sharing and reuse of software generally.
2215 @iftex
2216 @heading NO WARRANTY
2217 @end iftex
2218 @ifinfo
2219 @center NO WARRANTY
2220 @end ifinfo
2222 @item
2223 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
2224 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
2225 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
2226 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
2227 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
2228 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
2229 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
2230 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
2231 REPAIR OR CORRECTION.
2233 @item
2234 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
2235 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
2236 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
2237 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
2238 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
2239 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
2240 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
2241 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
2242 POSSIBILITY OF SUCH DAMAGES.
2243 @end enumerate
2245 @iftex
2246 @heading END OF TERMS AND CONDITIONS
2247 @end iftex
2248 @ifinfo
2249 @center END OF TERMS AND CONDITIONS
2250 @end ifinfo
2252 @page
2253 @appendixsec Appendix: How to Apply These Terms to Your New Programs
2255   If you develop a new program, and you want it to be of the greatest
2256 possible use to the public, the best way to achieve this is to make it
2257 free software which everyone can redistribute and change under these terms.
2259   To do so, attach the following notices to the program.  It is safest
2260 to attach them to the start of each source file to most effectively
2261 convey the exclusion of warranty; and each file should have at least
2262 the ``copyright'' line and a pointer to where the full notice is found.
2264 @smallexample
2265 @var{one line to give the program's name and a brief idea of what it does.}
2266 Copyright (C) @var{yyyy}  @var{name of author}
2268 This program is free software; you can redistribute it and/or modify
2269 it under the terms of the GNU General Public License as published by
2270 the Free Software Foundation; either version 2 of the License, or
2271 (at your option) any later version.
2273 This program is distributed in the hope that it will be useful,
2274 but WITHOUT ANY WARRANTY; without even the implied warranty of
2275 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2276 GNU General Public License for more details.
2278 You should have received a copy of the GNU General Public License along
2279 with this program; if not, write to the Free Software Foundation, Inc.,
2280 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2281 @end smallexample
2283 Also add information on how to contact you by electronic and paper mail.
2285 If the program is interactive, make it output a short notice like this
2286 when it starts in an interactive mode:
2288 @smallexample
2289 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
2290 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
2291 This is free software, and you are welcome to redistribute it
2292 under certain conditions; type `show c' for details.
2293 @end smallexample
2295 The hypothetical commands @samp{show w} and @samp{show c} should show
2296 the appropriate parts of the General Public License.  Of course, the
2297 commands you use may be called something other than @samp{show w} and
2298 @samp{show c}; they could even be mouse-clicks or menu items---whatever
2299 suits your program.
2301 You should also get your employer (if you work as a programmer) or your
2302 school, if any, to sign a ``copyright disclaimer'' for the program, if
2303 necessary.  Here is a sample; alter the names:
2305 @example
2306 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
2307 `Gnomovision' (which makes passes at compilers) written by James Hacker.
2309 @var{signature of Ty Coon}, 1 April 1989
2310 Ty Coon, President of Vice
2311 @end example
2313 This General Public License does not permit incorporating your program into
2314 proprietary programs.  If your program is a subroutine library, you may
2315 consider it more useful to permit linking proprietary applications with the
2316 library.  If this is what you want to do, use the GNU Library General
2317 Public License instead of this License.
2320 @node Concept Index,  , GNU General Public License, Top
2321 @comment  node-name,  next,  previous,  up
2322 @unnumbered Index
2324 @printindex cp
2326 @bye
2328 @c Local Variables:
2329 @c ispell-local-pdict: "ispell-dict"
2330 @c End: