1*4882a593Smuzhiyun 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThe LaTeX Project Public License 4*4882a593Smuzhiyun=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunLPPL Version 1.2 1999-09-03 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunCopyright 1999 LaTeX3 Project 9*4882a593Smuzhiyun Everyone is allowed to distribute verbatim copies of this 10*4882a593Smuzhiyun license document, but modification of it is not allowed. 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunPREAMBLE 14*4882a593Smuzhiyun======== 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunThe LaTeX Project Public License (LPPL) is the license under which the 17*4882a593Smuzhiyunbase LaTeX distribution is distributed. 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunYou may use this license for any program that you have written and wish 20*4882a593Smuzhiyunto distribute. This license may be particularly suitable if your 21*4882a593Smuzhiyunprogram is TeX-related (such as a LaTeX package), but you may use it 22*4882a593Smuzhiyuneven if your program is unrelated to TeX. The section `WHETHER AND HOW 23*4882a593SmuzhiyunTO DISTRIBUTE PROGRAMS UNDER THIS LICENSE`, below, gives instructions, 24*4882a593Smuzhiyunexamples, and recommendations for authors who are considering 25*4882a593Smuzhiyundistributing their programs under this license. 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunIn this license document, `The Program` refers to any program 28*4882a593Smuzhiyundistributed under this license. 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunThis license gives conditions under which The Program may be distributed 31*4882a593Smuzhiyunand conditions under which modified versions of The Program may be 32*4882a593Smuzhiyundistributed. Individual files of The Program may bear supplementary 33*4882a593Smuzhiyunand/or superseding conditions on modification of themselves and on the 34*4882a593Smuzhiyundistribution of modified versions of themselves, but *no* file of The 35*4882a593SmuzhiyunProgram may bear supplementary or superseding conditions on the 36*4882a593Smuzhiyundistribution of an unmodified copy of the file. A distributor wishing 37*4882a593Smuzhiyunto distribute a complete, unmodified copy of The Program therefore 38*4882a593Smuzhiyunneeds to check the conditions only in this license and nowhere else. 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunActivities other than distribution and/or modification of The Program 41*4882a593Smuzhiyunare not covered by this license; they are outside its scope. In 42*4882a593Smuzhiyunparticular, the act of running The Program is not restricted. 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunWe, the LaTeX3 Project, believe that the conditions below give you 45*4882a593Smuzhiyunthe freedom to make and distribute modified versions of The Program 46*4882a593Smuzhiyunthat conform with whatever technical specifications you wish while 47*4882a593Smuzhiyunmaintaining the availability, integrity, and reliability of 48*4882a593SmuzhiyunThe Program. If you do not see how to achieve your goal while 49*4882a593Smuzhiyunmeeting these conditions, then read the document `cfgguide.tex` 50*4882a593Smuzhiyunin the base LaTeX distribution for suggestions. 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun 53*4882a593SmuzhiyunCONDITIONS ON DISTRIBUTION AND MODIFICATION 54*4882a593Smuzhiyun=========================================== 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunYou may distribute a complete, unmodified copy of The Program. 57*4882a593SmuzhiyunDistribution of only part of The Program is not allowed. 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunYou may not modify in any way a file of The Program that bears a legal 60*4882a593Smuzhiyunnotice forbidding modification of that file. 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunYou may distribute a modified file of The Program if, and only if, the 63*4882a593Smuzhiyunfollowing eight conditions are met: 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun 1. You must meet any additional conditions borne by the file on the 66*4882a593Smuzhiyun distribution of a modified version of the file as described below 67*4882a593Smuzhiyun in the subsection `Additional Conditions on Individual Files of 68*4882a593Smuzhiyun The Program`. 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun 2. If the file is a LaTeX software file, then you must meet any 71*4882a593Smuzhiyun applicable additional conditions on the distribution of a modified 72*4882a593Smuzhiyun version of the file that are described below in the subsection 73*4882a593Smuzhiyun `Additional Conditions on LaTeX Software Files`. 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun 3. You must not distribute the modified file with the filename of the 76*4882a593Smuzhiyun original file. 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun 4. In the modified file, you must acknowledge the authorship and 79*4882a593Smuzhiyun name of the original file, and the name (if any) of the program 80*4882a593Smuzhiyun which contains it. 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun 5. You must change any identification string in the file to indicate 83*4882a593Smuzhiyun clearly that the modified file is not part of The Program. 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun 6. You must change any addresses in the modified file for the 86*4882a593Smuzhiyun reporting of errors in the file or in The Program generally to 87*4882a593Smuzhiyun ensure that reports for files no longer maintained by the original 88*4882a593Smuzhiyun maintainers will be directed to the maintainers of the modified 89*4882a593Smuzhiyun files. 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun 7. You must distribute the modified file under a license that forbids 92*4882a593Smuzhiyun distribution both of the modified file and of any files derived 93*4882a593Smuzhiyun from the modified file with the filename of the original file. 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun 8. You must do either (A) or (B): 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun (A) distribute a copy of The Program (that is, a complete, 98*4882a593Smuzhiyun unmodified copy of The Program) together with the modified 99*4882a593Smuzhiyun file; if your distribution of the modified file is made by 100*4882a593Smuzhiyun offering access to copy the modified file from a designated 101*4882a593Smuzhiyun place, then offering equivalent access to copy The Program 102*4882a593Smuzhiyun from the same place meets this condition, even though third 103*4882a593Smuzhiyun parties are not compelled to copy The Program along with the 104*4882a593Smuzhiyun modified file; 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun (B) provide to those who receive the modified file information 107*4882a593Smuzhiyun that is sufficient for them to obtain a copy of The Program; 108*4882a593Smuzhiyun for example, you may provide a Uniform Resource Locator (URL) 109*4882a593Smuzhiyun for a site that you expect will provide them with a copy of 110*4882a593Smuzhiyun The Program free of charge (either the version from which 111*4882a593Smuzhiyun your modification is derived, or perhaps a later version). 112*4882a593Smuzhiyun 113*4882a593SmuzhiyunNote that in the above, `distribution` of a file means making the 114*4882a593Smuzhiyunfile available to others by any means. This includes, for instance, 115*4882a593Smuzhiyuninstalling the file on any machine in such a way that the file is 116*4882a593Smuzhiyunaccessible by users other than yourself. `Modification` of a file 117*4882a593Smuzhiyunmeans any procedure that produces a derivative file under any 118*4882a593Smuzhiyunapplicable law -- that is, a file containing the original file or 119*4882a593Smuzhiyuna significant portion of it, either verbatim or with modifications 120*4882a593Smuzhiyunand/or translated into another language. 121*4882a593Smuzhiyun 122*4882a593SmuzhiyunChanging the name of a file (other than as necessitated by the file 123*4882a593Smuzhiyunconventions of the target file systems) is considered to be a 124*4882a593Smuzhiyunmodification of the file. 125*4882a593Smuzhiyun 126*4882a593SmuzhiyunThe distribution conditions in this license do not have to be 127*4882a593Smuzhiyunapplied to files that have been modified in accordance with the 128*4882a593Smuzhiyunabove conditions. Note, however, that Condition 7. does apply to 129*4882a593Smuzhiyunany such modified file. 130*4882a593Smuzhiyun 131*4882a593SmuzhiyunThe conditions above are not intended to prohibit, and hence do not 132*4882a593Smuzhiyunapply to, the updating, by any method, of a file so that it becomes 133*4882a593Smuzhiyunidentical to the latest version of that file of The Program. 134*4882a593Smuzhiyun 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun 137*4882a593SmuzhiyunA Recommendation on Modification Without Distribution 138*4882a593Smuzhiyun----------------------------------------------------- 139*4882a593Smuzhiyun 140*4882a593SmuzhiyunIt is wise never to modify a file of The Program, even for your own 141*4882a593Smuzhiyunpersonal use, without also meeting the above eight conditions for 142*4882a593Smuzhiyundistributing the modified file. While you might intend that such 143*4882a593Smuzhiyunmodified files will never be distributed, often this will happen by 144*4882a593Smuzhiyunaccident -- you may forget that you have modified the file; or it may 145*4882a593Smuzhiyunnot occur to you when allowing others to access the modified file 146*4882a593Smuzhiyunthat you are thus distributing it and violating the conditions of 147*4882a593Smuzhiyunthis license. It is usually in your best interest to keep your copy 148*4882a593Smuzhiyunof The Program identical with the public one. Many programs provide 149*4882a593Smuzhiyunways to control the behavior of that program without altering its 150*4882a593Smuzhiyunlicensed files. 151*4882a593Smuzhiyun 152*4882a593Smuzhiyun 153*4882a593SmuzhiyunAdditional Conditions on Individual Files of The Program 154*4882a593Smuzhiyun-------------------------------------------------------- 155*4882a593Smuzhiyun 156*4882a593SmuzhiyunAn individual file of The Program may bear additional conditions that 157*4882a593Smuzhiyunsupplement and/or supersede the conditions in this license if, and only 158*4882a593Smuzhiyunif, such additional conditions exclusively concern modification of the 159*4882a593Smuzhiyunfile or distribution of a modified version of the file. The conditions 160*4882a593Smuzhiyunon individual files of The Program therefore may differ only with 161*4882a593Smuzhiyunrespect to the kind and extent of modification of those files that 162*4882a593Smuzhiyunis allowed, and with respect to the distribution of modified versions 163*4882a593Smuzhiyunof those files. 164*4882a593Smuzhiyun 165*4882a593Smuzhiyun 166*4882a593SmuzhiyunAdditional Conditions on LaTeX Software Files 167*4882a593Smuzhiyun--------------------------------------------- 168*4882a593Smuzhiyun 169*4882a593SmuzhiyunIf a file of The Program is intended to be used with LaTeX (that is, 170*4882a593Smuzhiyunif it is a LaTeX software file), then the following additional 171*4882a593Smuzhiyunconditions, which supplement and/or supersede the conditions 172*4882a593Smuzhiyunabove, apply to the file according to its filename extension: 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun - You may not modify any file with filename extension `.ins` since 175*4882a593Smuzhiyun these are installation files containing the legal notices that are 176*4882a593Smuzhiyun placed in the files they generate. 177*4882a593Smuzhiyun 178*4882a593Smuzhiyun - You may distribute modified versions of files with filename 179*4882a593Smuzhiyun extension `.fd` (LaTeX font definition files) under the standard 180*4882a593Smuzhiyun conditions of the LPPL as described above. You may also distribute 181*4882a593Smuzhiyun such modified LaTeX font definition files with their original names 182*4882a593Smuzhiyun provided that: 183*4882a593Smuzhiyun (1) the only changes to the original files either enable use of 184*4882a593Smuzhiyun available fonts or prevent attempts to access unavailable fonts; 185*4882a593Smuzhiyun (2) you also distribute the original, unmodified files (TeX input 186*4882a593Smuzhiyun paths can be used to control which set of LaTeX font definition 187*4882a593Smuzhiyun files is actually used by TeX). 188*4882a593Smuzhiyun 189*4882a593Smuzhiyun - You may distribute modified versions of files with filename 190*4882a593Smuzhiyun extension `.cfg` (configuration files) with their original names. 191*4882a593Smuzhiyun The Program may (and usually will) specify the range of commands 192*4882a593Smuzhiyun that are allowed in a particular configuration file. 193*4882a593Smuzhiyun 194*4882a593SmuzhiyunBecause of portability and exchangeability issues in LaTeX software, 195*4882a593SmuzhiyunThe LaTeX3 Project deprecates the distribution of modified versions of 196*4882a593Smuzhiyuncomponents of LaTeX or of generally available contributed code for them, 197*4882a593Smuzhiyunbut such distribution can meet the conditions of this license. 198*4882a593Smuzhiyun 199*4882a593Smuzhiyun 200*4882a593SmuzhiyunNO WARRANTY 201*4882a593Smuzhiyun=========== 202*4882a593Smuzhiyun 203*4882a593SmuzhiyunThere is no warranty for The Program. Except when otherwise stated in 204*4882a593Smuzhiyunwriting, The Copyright Holder provides The Program `as is`, without 205*4882a593Smuzhiyunwarranty of any kind, either expressed or implied, including, but not 206*4882a593Smuzhiyunlimited to, the implied warranties of merchantability and fitness for 207*4882a593Smuzhiyuna particular purpose. The entire risk as to the quality and performance 208*4882a593Smuzhiyunof The Program is with you. Should The Program prove defective, you 209*4882a593Smuzhiyunassume the cost of all necessary servicing, repair, or correction. 210*4882a593Smuzhiyun 211*4882a593SmuzhiyunIn no event unless agreed to in writing will The Copyright Holder, or 212*4882a593Smuzhiyunany author named in the files of The Program, or any other party who may 213*4882a593Smuzhiyundistribute and/or modify The Program as permitted above, be liable to 214*4882a593Smuzhiyunyou for damages, including any general, special, incidental or 215*4882a593Smuzhiyunconsequential damages arising out of any use of The Program or out of 216*4882a593Smuzhiyuninability to use The Program (including, but not limited to, loss of 217*4882a593Smuzhiyundata, data being rendered inaccurate, or losses sustained by anyone as 218*4882a593Smuzhiyuna result of any failure of The Program to operate with any other 219*4882a593Smuzhiyunprograms), even if The Copyright Holder or said author or said other 220*4882a593Smuzhiyunparty has been advised of the possibility of such damages. 221*4882a593Smuzhiyun 222*4882a593Smuzhiyun 223*4882a593SmuzhiyunWHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE 224*4882a593Smuzhiyun========================================================= 225*4882a593Smuzhiyun 226*4882a593SmuzhiyunThis section contains important instructions, examples, and 227*4882a593Smuzhiyunrecommendations for authors who are considering distributing their 228*4882a593Smuzhiyunprograms under this license. These authors are addressed as `you` in 229*4882a593Smuzhiyunthis section. 230*4882a593Smuzhiyun 231*4882a593Smuzhiyun 232*4882a593SmuzhiyunChoosing This License or Another License 233*4882a593Smuzhiyun---------------------------------------- 234*4882a593Smuzhiyun 235*4882a593SmuzhiyunIf for any part of your program you want or need to use *distribution* 236*4882a593Smuzhiyunconditions that differ from those in this license, then do not refer to 237*4882a593Smuzhiyunthis license anywhere in your program but instead distribute your 238*4882a593Smuzhiyunprogram under a different license. You may use the text of this license 239*4882a593Smuzhiyunas a model for your own license, but your license should not refer to 240*4882a593Smuzhiyunthe LPPL or otherwise give the impression that your program is 241*4882a593Smuzhiyundistributed under the LPPL. 242*4882a593Smuzhiyun 243*4882a593SmuzhiyunThe document `modguide.tex` in the base LaTeX distribution explains 244*4882a593Smuzhiyunthe motivation behind the conditions of this license. It explains, 245*4882a593Smuzhiyunfor example, why distributing LaTeX under the GNU General Public 246*4882a593SmuzhiyunLicense (GPL) was considered inappropriate. Even if your program is 247*4882a593Smuzhiyununrelated to LaTeX, the discussion in `modguide.tex` may still be 248*4882a593Smuzhiyunrelevant, and authors intending to distribute their programs under any 249*4882a593Smuzhiyunlicense are encouraged to read it. 250*4882a593Smuzhiyun 251*4882a593Smuzhiyun 252*4882a593SmuzhiyunHow to Use This License 253*4882a593Smuzhiyun----------------------- 254*4882a593Smuzhiyun 255*4882a593SmuzhiyunTo use this license, place in each of the files of your program both 256*4882a593Smuzhiyunan explicit copyright notice including your name and the year and also 257*4882a593Smuzhiyuna statement that the distribution and/or modification of the file is 258*4882a593Smuzhiyunconstrained by the conditions in this license. 259*4882a593Smuzhiyun 260*4882a593SmuzhiyunHere is an example of such a notice and statement: 261*4882a593Smuzhiyun 262*4882a593Smuzhiyun %% pig.dtx 263*4882a593Smuzhiyun %% Copyright 2001 M. Y. Name 264*4882a593Smuzhiyun % 265*4882a593Smuzhiyun % This program may be distributed and/or modified under the 266*4882a593Smuzhiyun % conditions of the LaTeX Project Public License, either version 1.2 267*4882a593Smuzhiyun % of this license or (at your option) any later version. 268*4882a593Smuzhiyun % The latest version of this license is in 269*4882a593Smuzhiyun % http://www.latex-project.org/lppl.txt 270*4882a593Smuzhiyun % and version 1.2 or later is part of all distributions of LaTeX 271*4882a593Smuzhiyun % version 1999/12/01 or later. 272*4882a593Smuzhiyun % 273*4882a593Smuzhiyun % This program consists of the files pig.dtx and pig.ins 274*4882a593Smuzhiyun 275*4882a593SmuzhiyunGiven such a notice and statement in a file, the conditions given in 276*4882a593Smuzhiyunthis license document would apply, with `The Program` referring to the 277*4882a593Smuzhiyuntwo files `pig.dtx` and `pig.ins`, and `The Copyright Holder` referring 278*4882a593Smuzhiyunto the person `M. Y. Name`. 279*4882a593Smuzhiyun 280*4882a593Smuzhiyun 281*4882a593SmuzhiyunImportant Recommendations 282*4882a593Smuzhiyun------------------------- 283*4882a593Smuzhiyun 284*4882a593Smuzhiyun Defining What Constitutes The Program 285*4882a593Smuzhiyun 286*4882a593Smuzhiyun The LPPL requires that distributions of The Program contain all the 287*4882a593Smuzhiyun files of The Program. It is therefore important that you provide a 288*4882a593Smuzhiyun way for the licensee to determine which files constitute The Program. 289*4882a593Smuzhiyun This could, for example, be achieved by explicitly listing all the 290*4882a593Smuzhiyun files of The Program near the copyright notice of each file or by 291*4882a593Smuzhiyun using a line like 292*4882a593Smuzhiyun 293*4882a593Smuzhiyun % This program consists of all files listed in manifest.txt. 294*4882a593Smuzhiyun 295*4882a593Smuzhiyun in that place. In the absence of an unequivocal list it might be 296*4882a593Smuzhiyun impossible for the licensee to determine what is considered by you 297*4882a593Smuzhiyun to comprise The Program. 298*4882a593Smuzhiyun 299*4882a593Smuzhiyun Noting Exceptional Files 300*4882a593Smuzhiyun 301*4882a593Smuzhiyun If The Program contains any files bearing additional conditions on 302*4882a593Smuzhiyun modification, or on distribution of modified versions, of those 303*4882a593Smuzhiyun files (other than those listed in `Additional Conditions on LaTeX 304*4882a593Smuzhiyun Software Files`), then it is recommended that The Program contain a 305*4882a593Smuzhiyun prominent file that defines the exceptional conditions, and either 306*4882a593Smuzhiyun lists the exceptional files or defines one or more categories of 307*4882a593Smuzhiyun exceptional files. 308*4882a593Smuzhiyun 309*4882a593Smuzhiyun Files containing the text of a license (such as this file) are 310*4882a593Smuzhiyun often examples of files bearing more restrictive conditions on 311*4882a593Smuzhiyun modification. LaTeX configuration files (with filename extension 312*4882a593Smuzhiyun `.cfg`) are examples of files bearing less restrictive conditions 313*4882a593Smuzhiyun on the distribution of a modified version of the file. The 314*4882a593Smuzhiyun additional conditions on LaTeX software given above are examples 315*4882a593Smuzhiyun of declaring a category of files bearing exceptional additional 316*4882a593Smuzhiyun conditions. 317*4882a593Smuzhiyun 318*4882a593Smuzhiyun 319*4882a593Smuzhiyun 320*4882a593Smuzhiyun 321