Merged from hodique@lifl.fr--2005 (patch 0-1)
[muse-el.git] / muse.texi
blob549df03b485f26a2e2f69a8d4a8314523d6aae9e
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 Muse version 3.01
17 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
19 @quotation
20 Permission is granted to copy, distribute and/or modify this document
21 under the terms of the GNU General Public License.
22 @end quotation
23 @end copying
25 @titlepage
26 @title Muse manual
27 @subtitle an authoring and publishing environment
28 @subtitle for GNU Emacs and XEmacs
30 @c The following two commands
31 @c start the copyright page.
32 @page
33 @vskip 0pt plus 1filll
34 @insertcopying
35 @end titlepage
37 @c So the toc is printed at the start
38 @contents
40 @ifnottex
41 @node Top, Preface, (dir), (dir)
42 @comment  node-name,  next,  previous,  up
43 @top Muse
45 @insertcopying
46 @end ifnottex
48 @menu
49 * Preface::                     About the documentation
50 * Introduction::                What is Muse?
51 * Installation::                How to get the stable and development versions
52 * Getting Started::             
53 * Projects::                    Creating a Muse project
54 * Keystroke Summary::           
55 * Getting Help and Reporting Bugs::  
56 * History::                     
57 * Contributors::                Contributors to this documentation
58 * GNU General Public License::  
59 * Concept Index::               
61 @detailmenu
62  --- The Detailed Node Listing ---
64 Installation
66 * Releases::                    Released versions of Muse
67 * Development::                 Latest unreleased changes
69 @end detailmenu
70 @end menu
72 @node Preface, Introduction, Top, Top
73 @comment  node-name,  next,  previous,  up
74 @chapter Preface
76 This document describes Muse, which was written by John Wiegley
77 and is now maintained by Michael Olson.
79 This document is a work in progress, and your contribution will be
80 greatly appreciated.
82 @node Introduction, Installation, Preface, Top
83 @comment  node-name,  next,  previous,  up
84 @chapter Introduction
86 Emacs Muse is an authoring and publishing environment for Emacs.  It
87 simplifies the process of writings documents and publishing them to
88 various output formats.
90 Muse consists of two main parts: an enhanced text-mode for authoring
91 documents and navigating within Muse projects, and a set of publishing
92 styles for generating different kinds of output.
94 This idea is not in any way new. Numerous systems exist -- even one
95 other for Emacs itself (Bhl Mode). What Muse adds to the picture is a
96 more modular environment, with a rather simple core, in which "styles"
97 are derived from to create new styles. Much of Muse's overall
98 functionality is optional. For example, you can use the publisher
99 without the major-mode, or the mode without doing any publishing; or if
100 you don't load the Texinfo or LaTeX modules, those styles won't be
101 available.
103 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
104 code has been restructured and rewritten, especially its publishing
105 functions. The focus in this revision is on the authoring and publishing
106 aspects, and the "wikiness" has been removed as a default behavior (to
107 be offered again as an optional module). CamelCase words are no longer
108 special by default.
110 @node Installation, Getting Started, Introduction, Top
111 @comment  node-name,  next,  previous,  up
112 @chapter Installation
114 @menu
115 * Releases::                    Released versions of Muse
116 * Development::                 Latest unreleased changes
117 @end menu
119 @node Releases, Development, Installation, Installation
120 @comment  node-name,  next,  previous,  up
121 @section Installing a release
123 Choose to install a release if you want to minimize risk.  Currently
124 Muse is in a pre-release stage, so no official releases have been made
125 yet.
127 Errors are corrected in development first.  Once fixes are confirmed, a
128 new release will be made.  User-visible changes will be announced on the
129 @email{emacs-wiki-discuss@@nongnu.org} mailing list.  @pxref{Getting
130 Help and Reporting Bugs}.
132 @cindex Debian package for Muse
134 Debian users can get Muse via apt-get.  @file{Muse} is available only at
135 Michael Olson's Debian repository.
137 @cindex releases, from source
139 You can also install the source distribution.
141 @enumerate
142 @item Download and unpack the latest version from @uref{http://www.mwolson.org/static/dist/muse/} .
143 @item Edit your @file{~/.emacs}.
145 @example
146 ;; Add the directories to your load path
147 (add-to-list 'load-path "/path/to/muse")
148 ;; Load Muse
149 (require 'muse)
150 @end example
152 @end enumerate
154 You can download the archive at the following locations:
156 @itemize
157 @item Current and past releases: @uref{http://www.mwolson.org/static/dist/muse/}
158 @end itemize
160 @node Development,  , Releases, Installation
161 @comment  node-name,  next,  previous,  up
162 @section Installing the development version
163 @cindex development
165 Choose the development version if you want to live on the bleeding
166 edge of Muse development or try out new features before release.
168 @cindex arch revision control system, downloading
169 The Arch revision control system allows you to retrieve previous
170 versions and select specific features and bug fixes.
172 Downloading the modules for the first time:
174 @enumerate
175 @item Install arch. Debian: @kbd{apt-get install tla} .  Other distros: see @uref{http://regexps.srparish.net/www/} .
176 @item Register the archive and download the modules.
178 @example
179 # Register the archive
180 tla register-archive http://www.mwolson.org/archives/2005
182 # Download Muse into the @file{muse/} subdirectory
183 tla get mwolson@@gnu.org--2005/muse--main--1.0 muse
184 @end example
186 @item Open your @file{~/.emacs} and add the @file{Muse/} directory to your load path.
188 @example
189 (add-to-list 'load-path "/path/to/muse")
190 @end example
192 @end enumerate
194 To list upstream changes not in local copy:
196 @example
197 # Change to the source directory you are interested in. Example:
198 cd muse/
200 # Display the summary of changes
201 tla missing --summary
202 @end example
204 @cindex updating Muse with Arch
206 To update to the latest version:
208 @example
209 cd muse
210 tla replay
211 @end example
213 You can also obtain the archive at the following locations on the web:
215 @itemize
216 @item Browse arch repository: @uref{http://www.mwolson.org/archives/}
217 @item Latest development snapshot: @uref{http://www.mwolson.org/static/dist/muse-latest.tar.gz}
218 @end itemize
220 The latest development snapshot will be kept up to date since it is
221 updated at the same time as the Arch repository.
224 @node Getting Started, Projects, Installation, Top
225 @comment  node-name,  next,  previous,  up
226 @chapter Getting Started
228 To use Muse, add the directory containing its files to your
229 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
230 the authoring mode, and the styles you wish to publish to.  For
231 example:
233 @lisp
234 (add-to-list 'load-path "<path to Muse>")
236 (require 'muse-mode)     ; load authoring mode
238 (require 'muse-html)     ; load publishing styles I use
239 (require 'muse-latex)
240 (require 'muse-texinfo)
241 (require 'muse-docbook)
242 @end lisp
244 Once loaded, the command @kbd{M-x muse-publish-this-file} will publish
245 an input document to any available style.  If you enable
246 @file{muse-mode} within a buffer, by typing @kbd{M-x muse-mode}, this
247 command will be bound to @kbd{C-c C-t}.
249 You should also type @kbd{M-x customize-group}, and give the name
250 @samp{muse}.  Change it to suit your preferences.  Each of the
251 options has its own documentation.
254 @node Projects, Keystroke Summary, Getting Started, Top
255 @comment  node-name,  next,  previous,  up
256 @chapter Projects
257 @cindex projects
259 Often you will want to publish all the files within a directory to a
260 particular set of output styles automatically.  To support, Muse
261 allows for the creations of "projects".  Here is a sample project, to
262 be defined in your @file{.emacs} file:
264 @lisp
265 (require 'muse-project)
267 (setq muse-project-alist
268       '(("website"                      ; my various writings
269          ("~/Pages" :default "index")
270          (:base "html" :path "~/public_html")
271          (:base "pdf" :path "~/public_html/pdf"))))
272 @end lisp
274 The above defines a project named "website", whose files are located
275 in the directory @file{~/Pages}.  The default page to visit is
276 @file{index}.  When this project is published, each page will be
277 output as HTML to the directory @file{~/public_html}, and as PDF to
278 the directory @file{~/public_html/pdf}.  Within any project page, you
279 may create a link to other pages using the syntax @samp{[[pagename]]}.
281 @node Keystroke Summary, Getting Help and Reporting Bugs, Projects, Top
282 @comment  node-name,  next,  previous,  up
283 @chapter Keystroke Summary
284 @cindex keystrokes
286 Here is a summary of keystrokes available in every Muse buffer:
288 @table @kbd
290 @item C-c C-a (`muse-index')
291 Display an index of all known Muse pages.
293 @item C-c C-b (`muse-browse-result')
294 Show the published result of this page.
296 @item C-c C-e (`muse-edit-link-at-point')
297 Edit link at point.
299 @item C-c C-f (`muse-project-find-file'), also C-c C-v
300 Open another Muse page.  Prompt for the name.
302 @item C-c C-l (`font-lock-mode')
303 Highlight/refresh the current buffer.
305 @item C-c C-p (`muse-project-publish')
306 Publish any Muse pages that have changed.
308 @item C-c C-v (`muse-project-find-file'), also C-c C-f
309 Open another Muse page.  Prompt for the name.
311 @item C-c = (`muse-what-changed')
312 Diff this page against the last backup version.
314 @item C-c TAB (`muse-insert-tag')
315 Insert a tag interactively.
317 @item TAB
318 Move to the next Wiki reference.
320 @item S-TAB
321 Move to the previous Wiki reference.
323 @end table
326 @node Getting Help and Reporting Bugs, History, Keystroke Summary, Top
327 @comment  node-name,  next,  previous,  up
328 @chapter Getting Help and Reporting Bugs
329 @cindex help, getting
330 @cindex bugs, reporting
332 After you have read this guide, if you still have questions about
333 Muse, or if you have bugs to report, there are several places you can
336 @uref{http://www.mwolson.org/projects/MuseMode.html} is the page that
337 Michael Olson made for Muse.  For the duration of his
338 maintainership, it may be considered the official Muse website.
340 You can join the mailing list at
341 @email{emacs-wiki-discuss@@nongnu.org} using the subscription form at
342 @uref{http://mail.nongnu.org/mailman/listinfo/
343 emacs-wiki-discuss}. This mailing list is also available via Gmane
344 (@uref{http://gmane.org/}). The group is called
345 @samp{gmane.emacs.wiki.general}.
347 @uref{http://www.emacswiki.org/cgi-bin/wiki/MuseMode} is the
348 emacswiki.org page, and anyone may add tips and hints to it.
350 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
351 contributors are frequently around and willing to answer your
352 questions.  The @samp{#muse} channel is also available for
353 Muse-specific help, and its current maintainer hangs out there.
355 You can also contact the maintainer of MuseMode, Michael Olson,
356 at @email{mwolson@@gnu.org}.
358 @node History, Contributors, Getting Help and Reporting Bugs, Top
359 @comment  node-name,  next,  previous,  up
360 @chapter History
361 @cindex history, of Muse
363 @itemize
364 @item 2004
366 John Wiegley started Muse upon realizing that EmacsWiki had some serious
367 limitations. Around February 2004, he started making "emacs-wiki version
368 3.00 APLHA", which eventually became known as Muse.
370 Most of those who frequent the emacs-wiki mailing list continued to use
371 emacs-wiki, mainly because Planner hasn't been ported over to it.
373 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
374 John Wiegley's request.
376 @end itemize
378 @node Contributors, GNU General Public License, History, Top
379 @comment  node-name,  next,  previous,  up
380 @chapter Contributors
381 @cindex contributors
383 @example
384 Copyright @copyright{} 2001, 2002, 2003, 2004 Free Software Foundation
385 @end example
387 The first draft of this document was taken from the emacs-wiki texinfo
388 manual.  Michael Olson adapted it for Muse and began the process of
389 adding content to it.
391 John Sullivan, did a majority of the work on the emacs-wiki texinfo
392 manual.
394 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
395 emacs-wiki texinfo manual.
397 @node GNU General Public License, Concept Index, Contributors, Top
398 @comment  node-name,  next,  previous,  up
399 @appendix GNU GENERAL PUBLIC LICENSE
400 @center Version 2, June 1991
401 @cindex GPL
402 @cindex GNU General Public License
404 @c This file is intended to be included in another file.
406 @display
407 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
408 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
410 Everyone is permitted to copy and distribute verbatim copies
411 of this license document, but changing it is not allowed.
412 @end display
414 @appendixsec Preamble
416   The licenses for most software are designed to take away your
417 freedom to share and change it.  By contrast, the GNU General Public
418 License is intended to guarantee your freedom to share and change free
419 software---to make sure the software is free for all its users.  This
420 General Public License applies to most of the Free Software
421 Foundation's software and to any other program whose authors commit to
422 using it.  (Some other Free Software Foundation software is covered by
423 the GNU Library General Public License instead.)  You can apply it to
424 your programs, too.
426   When we speak of free software, we are referring to freedom, not
427 price.  Our General Public Licenses are designed to make sure that you
428 have the freedom to distribute copies of free software (and charge for
429 this service if you wish), that you receive source code or can get it
430 if you want it, that you can change the software or use pieces of it
431 in new free programs; and that you know you can do these things.
433   To protect your rights, we need to make restrictions that forbid
434 anyone to deny you these rights or to ask you to surrender the rights.
435 These restrictions translate to certain responsibilities for you if you
436 distribute copies of the software, or if you modify it.
438   For example, if you distribute copies of such a program, whether
439 gratis or for a fee, you must give the recipients all the rights that
440 you have.  You must make sure that they, too, receive or can get the
441 source code.  And you must show them these terms so they know their
442 rights.
444   We protect your rights with two steps: (1) copyright the software, and
445 (2) offer you this license which gives you legal permission to copy,
446 distribute and/or modify the software.
448   Also, for each author's protection and ours, we want to make certain
449 that everyone understands that there is no warranty for this free
450 software.  If the software is modified by someone else and passed on, we
451 want its recipients to know that what they have is not the original, so
452 that any problems introduced by others will not reflect on the original
453 authors' reputations.
455   Finally, any free program is threatened constantly by software
456 patents.  We wish to avoid the danger that redistributors of a free
457 program will individually obtain patent licenses, in effect making the
458 program proprietary.  To prevent this, we have made it clear that any
459 patent must be licensed for everyone's free use or not licensed at all.
461   The precise terms and conditions for copying, distribution and
462 modification follow.
464 @iftex
465 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
466 @end iftex
467 @ifinfo
468 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
469 @end ifinfo
471 @enumerate 0
472 @item
473 This License applies to any program or other work which contains
474 a notice placed by the copyright holder saying it may be distributed
475 under the terms of this General Public License.  The ``Program'', below,
476 refers to any such program or work, and a ``work based on the Program''
477 means either the Program or any derivative work under copyright law:
478 that is to say, a work containing the Program or a portion of it,
479 either verbatim or with modifications and/or translated into another
480 language.  (Hereinafter, translation is included without limitation in
481 the term ``modification''.)  Each licensee is addressed as ``you''.
483 Activities other than copying, distribution and modification are not
484 covered by this License; they are outside its scope.  The act of
485 running the Program is not restricted, and the output from the Program
486 is covered only if its contents constitute a work based on the
487 Program (independent of having been made by running the Program).
488 Whether that is true depends on what the Program does.
490 @item
491 You may copy and distribute verbatim copies of the Program's
492 source code as you receive it, in any medium, provided that you
493 conspicuously and appropriately publish on each copy an appropriate
494 copyright notice and disclaimer of warranty; keep intact all the
495 notices that refer to this License and to the absence of any warranty;
496 and give any other recipients of the Program a copy of this License
497 along with the Program.
499 You may charge a fee for the physical act of transferring a copy, and
500 you may at your option offer warranty protection in exchange for a fee.
502 @item
503 You may modify your copy or copies of the Program or any portion
504 of it, thus forming a work based on the Program, and copy and
505 distribute such modifications or work under the terms of Section 1
506 above, provided that you also meet all of these conditions:
508 @enumerate a
509 @item
510 You must cause the modified files to carry prominent notices
511 stating that you changed the files and the date of any change.
513 @item
514 You must cause any work that you distribute or publish, that in
515 whole or in part contains or is derived from the Program or any
516 part thereof, to be licensed as a whole at no charge to all third
517 parties under the terms of this License.
519 @item
520 If the modified program normally reads commands interactively
521 when run, you must cause it, when started running for such
522 interactive use in the most ordinary way, to print or display an
523 announcement including an appropriate copyright notice and a
524 notice that there is no warranty (or else, saying that you provide
525 a warranty) and that users may redistribute the program under
526 these conditions, and telling the user how to view a copy of this
527 License.  (Exception: if the Program itself is interactive but
528 does not normally print such an announcement, your work based on
529 the Program is not required to print an announcement.)
530 @end enumerate
532 These requirements apply to the modified work as a whole.  If
533 identifiable sections of that work are not derived from the Program,
534 and can be reasonably considered independent and separate works in
535 themselves, then this License, and its terms, do not apply to those
536 sections when you distribute them as separate works.  But when you
537 distribute the same sections as part of a whole which is a work based
538 on the Program, the distribution of the whole must be on the terms of
539 this License, whose permissions for other licensees extend to the
540 entire whole, and thus to each and every part regardless of who wrote it.
542 Thus, it is not the intent of this section to claim rights or contest
543 your rights to work written entirely by you; rather, the intent is to
544 exercise the right to control the distribution of derivative or
545 collective works based on the Program.
547 In addition, mere aggregation of another work not based on the Program
548 with the Program (or with a work based on the Program) on a volume of
549 a storage or distribution medium does not bring the other work under
550 the scope of this License.
552 @item
553 You may copy and distribute the Program (or a work based on it,
554 under Section 2) in object code or executable form under the terms of
555 Sections 1 and 2 above provided that you also do one of the following:
557 @enumerate a
558 @item
559 Accompany it with the complete corresponding machine-readable
560 source code, which must be distributed under the terms of Sections
561 1 and 2 above on a medium customarily used for software interchange; or,
563 @item
564 Accompany it with a written offer, valid for at least three
565 years, to give any third party, for a charge no more than your
566 cost of physically performing source distribution, a complete
567 machine-readable copy of the corresponding source code, to be
568 distributed under the terms of Sections 1 and 2 above on a medium
569 customarily used for software interchange; or,
571 @item
572 Accompany it with the information you received as to the offer
573 to distribute corresponding source code.  (This alternative is
574 allowed only for noncommercial distribution and only if you
575 received the program in object code or executable form with such
576 an offer, in accord with Subsection b above.)
577 @end enumerate
579 The source code for a work means the preferred form of the work for
580 making modifications to it.  For an executable work, complete source
581 code means all the source code for all modules it contains, plus any
582 associated interface definition files, plus the scripts used to
583 control compilation and installation of the executable.  However, as a
584 special exception, the source code distributed need not include
585 anything that is normally distributed (in either source or binary
586 form) with the major components (compiler, kernel, and so on) of the
587 operating system on which the executable runs, unless that component
588 itself accompanies the executable.
590 If distribution of executable or object code is made by offering
591 access to copy from a designated place, then offering equivalent
592 access to copy the source code from the same place counts as
593 distribution of the source code, even though third parties are not
594 compelled to copy the source along with the object code.
596 @item
597 You may not copy, modify, sublicense, or distribute the Program
598 except as expressly provided under this License.  Any attempt
599 otherwise to copy, modify, sublicense or distribute the Program is
600 void, and will automatically terminate your rights under this License.
601 However, parties who have received copies, or rights, from you under
602 this License will not have their licenses terminated so long as such
603 parties remain in full compliance.
605 @item
606 You are not required to accept this License, since you have not
607 signed it.  However, nothing else grants you permission to modify or
608 distribute the Program or its derivative works.  These actions are
609 prohibited by law if you do not accept this License.  Therefore, by
610 modifying or distributing the Program (or any work based on the
611 Program), you indicate your acceptance of this License to do so, and
612 all its terms and conditions for copying, distributing or modifying
613 the Program or works based on it.
615 @item
616 Each time you redistribute the Program (or any work based on the
617 Program), the recipient automatically receives a license from the
618 original licensor to copy, distribute or modify the Program subject to
619 these terms and conditions.  You may not impose any further
620 restrictions on the recipients' exercise of the rights granted herein.
621 You are not responsible for enforcing compliance by third parties to
622 this License.
624 @item
625 If, as a consequence of a court judgment or allegation of patent
626 infringement or for any other reason (not limited to patent issues),
627 conditions are imposed on you (whether by court order, agreement or
628 otherwise) that contradict the conditions of this License, they do not
629 excuse you from the conditions of this License.  If you cannot
630 distribute so as to satisfy simultaneously your obligations under this
631 License and any other pertinent obligations, then as a consequence you
632 may not distribute the Program at all.  For example, if a patent
633 license would not permit royalty-free redistribution of the Program by
634 all those who receive copies directly or indirectly through you, then
635 the only way you could satisfy both it and this License would be to
636 refrain entirely from distribution of the Program.
638 If any portion of this section is held invalid or unenforceable under
639 any particular circumstance, the balance of the section is intended to
640 apply and the section as a whole is intended to apply in other
641 circumstances.
643 It is not the purpose of this section to induce you to infringe any
644 patents or other property right claims or to contest validity of any
645 such claims; this section has the sole purpose of protecting the
646 integrity of the free software distribution system, which is
647 implemented by public license practices.  Many people have made
648 generous contributions to the wide range of software distributed
649 through that system in reliance on consistent application of that
650 system; it is up to the author/donor to decide if he or she is willing
651 to distribute software through any other system and a licensee cannot
652 impose that choice.
654 This section is intended to make thoroughly clear what is believed to
655 be a consequence of the rest of this License.
657 @item
658 If the distribution and/or use of the Program is restricted in
659 certain countries either by patents or by copyrighted interfaces, the
660 original copyright holder who places the Program under this License
661 may add an explicit geographical distribution limitation excluding
662 those countries, so that distribution is permitted only in or among
663 countries not thus excluded.  In such case, this License incorporates
664 the limitation as if written in the body of this License.
666 @item
667 The Free Software Foundation may publish revised and/or new versions
668 of the General Public License from time to time.  Such new versions will
669 be similar in spirit to the present version, but may differ in detail to
670 address new problems or concerns.
672 Each version is given a distinguishing version number.  If the Program
673 specifies a version number of this License which applies to it and ``any
674 later version'', you have the option of following the terms and conditions
675 either of that version or of any later version published by the Free
676 Software Foundation.  If the Program does not specify a version number of
677 this License, you may choose any version ever published by the Free Software
678 Foundation.
680 @item
681 If you wish to incorporate parts of the Program into other free
682 programs whose distribution conditions are different, write to the author
683 to ask for permission.  For software which is copyrighted by the Free
684 Software Foundation, write to the Free Software Foundation; we sometimes
685 make exceptions for this.  Our decision will be guided by the two goals
686 of preserving the free status of all derivatives of our free software and
687 of promoting the sharing and reuse of software generally.
689 @iftex
690 @heading NO WARRANTY
691 @end iftex
692 @ifinfo
693 @center NO WARRANTY
694 @end ifinfo
696 @item
697 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
698 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
699 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
700 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
701 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
702 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
703 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
704 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
705 REPAIR OR CORRECTION.
707 @item
708 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
709 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
710 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
711 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
712 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
713 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
714 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
715 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
716 POSSIBILITY OF SUCH DAMAGES.
717 @end enumerate
719 @iftex
720 @heading END OF TERMS AND CONDITIONS
721 @end iftex
722 @ifinfo
723 @center END OF TERMS AND CONDITIONS
724 @end ifinfo
726 @page
727 @appendixsec Appendix: How to Apply These Terms to Your New Programs
729   If you develop a new program, and you want it to be of the greatest
730 possible use to the public, the best way to achieve this is to make it
731 free software which everyone can redistribute and change under these terms.
733   To do so, attach the following notices to the program.  It is safest
734 to attach them to the start of each source file to most effectively
735 convey the exclusion of warranty; and each file should have at least
736 the ``copyright'' line and a pointer to where the full notice is found.
738 @smallexample
739 @var{one line to give the program's name and a brief idea of what it does.}
740 Copyright (C) @var{yyyy}  @var{name of author}
742 This program is free software; you can redistribute it and/or modify
743 it under the terms of the GNU General Public License as published by
744 the Free Software Foundation; either version 2 of the License, or
745 (at your option) any later version.
747 This program is distributed in the hope that it will be useful,
748 but WITHOUT ANY WARRANTY; without even the implied warranty of
749 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
750 GNU General Public License for more details.
752 You should have received a copy of the GNU General Public License
753 along with this program; if not, write to the Free Software
754 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
755 @end smallexample
757 Also add information on how to contact you by electronic and paper mail.
759 If the program is interactive, make it output a short notice like this
760 when it starts in an interactive mode:
762 @smallexample
763 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
764 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
765 This is free software, and you are welcome to redistribute it
766 under certain conditions; type `show c' for details.
767 @end smallexample
769 The hypothetical commands @samp{show w} and @samp{show c} should show
770 the appropriate parts of the General Public License.  Of course, the
771 commands you use may be called something other than @samp{show w} and
772 @samp{show c}; they could even be mouse-clicks or menu items---whatever
773 suits your program.
775 You should also get your employer (if you work as a programmer) or your
776 school, if any, to sign a ``copyright disclaimer'' for the program, if
777 necessary.  Here is a sample; alter the names:
779 @example
780 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
781 `Gnomovision' (which makes passes at compilers) written by James Hacker.
783 @var{signature of Ty Coon}, 1 April 1989
784 Ty Coon, President of Vice
785 @end example
787 This General Public License does not permit incorporating your program into
788 proprietary programs.  If your program is a subroutine library, you may
789 consider it more useful to permit linking proprietary applications with the
790 library.  If this is what you want to do, use the GNU Library General
791 Public License instead of this License.
794 @node Concept Index,  , GNU General Public License, Top
795 @comment  node-name,  next,  previous,  up
796 @unnumbered Index
798 @printindex cp
800 @bye
802 @c Local Variables:
803 @c ispell-local-pdict: "ispell-dict"
804 @c End: