├── example.pdf ├── NOTICE ├── TODO.md ├── README.md ├── .gitignore ├── example.tex ├── chato-notes.sty └── LICENSE /example.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rionda/chato-notes/HEAD/example.pdf -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | ChaTo-notes 2 | Copyright 2015 Matteo Riondato 3 | 4 | This product includes software developed by Matteo Riondato 5 | (http://matteo.rionda.to), derived from work by Aris Anagnostopoulos and Carlos 6 | Castillo. 7 | -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- 1 | # To Do 2 | 3 | - [ ] Convert package to use Doc/DocStrip 4 | - [ ] Add more package options to allow for customization 5 | - [ ] Ask Aris and ChaTo about license 6 | - [ ] Have the package reviewed by someone who actually knows LaTeX 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ChaTo-notes 2 | A LaTeX package for notes / todos / questions / answers. 3 | 4 | [Matteo](http://matteo.rionda.to) got this package from [Aris 5 | Anagnostopoulos](http://aris.me/), which in turn must have received it from 6 | [Carlos "ChaTo" Castillo](http://chato.cl/) (based on comments in the original 7 | file), hence the name. According to a note in the package file, Aris modified it. 8 | Matteo modified it further. 9 | 10 | It came to Matteo with no license, and he is releasing it under the 11 | [Apache License 2.0](./LICENSE) (see also the [NOTICE](./NOTICE) file). 12 | If Aris and/or ChaTo prefer a different license, they know how to get in touch 13 | with Matteo. 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Core latex/pdflatex auxiliary files: 2 | *.aux 3 | *.lof 4 | *.log 5 | *.lot 6 | *.fls 7 | *.out 8 | *.toc 9 | 10 | ## Intermediate documents: 11 | *.dvi 12 | *-converted-to.* 13 | # these rules might exclude image files for figures etc. 14 | # *.ps 15 | # *.eps 16 | # *.pdf 17 | 18 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 19 | *.bbl 20 | *.bcf 21 | *.blg 22 | *-blx.aux 23 | *-blx.bib 24 | *.brf 25 | *.run.xml 26 | 27 | ## Build tool auxiliary files: 28 | *.fdb_latexmk 29 | *.synctex 30 | *.synctex.gz 31 | *.synctex.gz(busy) 32 | *.pdfsync 33 | 34 | ## Auxiliary and intermediate files from other packages: 35 | 36 | # algorithms 37 | *.alg 38 | *.loa 39 | 40 | # achemso 41 | acs-*.bib 42 | 43 | # amsthm 44 | *.thm 45 | 46 | # beamer 47 | *.nav 48 | *.snm 49 | *.vrb 50 | 51 | #(e)ledmac/(e)ledpar 52 | *.end 53 | *.[1-9] 54 | *.[1-9][0-9] 55 | *.[1-9][0-9][0-9] 56 | *.[1-9]R 57 | *.[1-9][0-9]R 58 | *.[1-9][0-9][0-9]R 59 | *.eledsec[1-9] 60 | *.eledsec[1-9]R 61 | *.eledsec[1-9][0-9] 62 | *.eledsec[1-9][0-9]R 63 | *.eledsec[1-9][0-9][0-9] 64 | *.eledsec[1-9][0-9][0-9]R 65 | 66 | # glossaries 67 | *.acn 68 | *.acr 69 | *.glg 70 | *.glo 71 | *.gls 72 | 73 | # gnuplottex 74 | *-gnuplottex-* 75 | 76 | # hyperref 77 | *.brf 78 | 79 | # knitr 80 | *-concordance.tex 81 | *.tikz 82 | *-tikzDictionary 83 | 84 | # listings 85 | *.lol 86 | 87 | # makeidx 88 | *.idx 89 | *.ilg 90 | *.ind 91 | *.ist 92 | 93 | # minitoc 94 | *.maf 95 | *.mtc 96 | *.mtc0 97 | 98 | # minted 99 | _minted* 100 | *.pyg 101 | 102 | # morewrites 103 | *.mw 104 | 105 | # nomencl 106 | *.nlo 107 | 108 | # sagetex 109 | *.sagetex.sage 110 | *.sagetex.py 111 | *.sagetex.scmd 112 | 113 | # sympy 114 | *.sout 115 | *.sympy 116 | sympy-plots-for-*.tex/ 117 | 118 | # todonotes 119 | *.tdo 120 | 121 | # xindy 122 | *.xdy 123 | 124 | # WinEdt 125 | *.bak 126 | *.sav 127 | -------------------------------------------------------------------------------- /example.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[cm]{fullpage} 3 | \usepackage[show]{chato-notes} 4 | \author{} 5 | \title{} 6 | \begin{document} 7 | 8 | \mynote{empty 9 | 10 | empty} % Multiple paragraphs to check fonts 11 | \mynote[author=Matteo,to=Rionda]{for and from} 12 | \mynote[author=Matteo,to=]{from only (empty for)} 13 | \mynote[author=Matteo]{from only} 14 | \mynote[to=Rionda,author=]{for only (empty from)} 15 | \mynote[to=Rionda]{for only} 16 | 17 | \idea{empty} 18 | \idea[author=Matteo,to=Rionda]{for and from} 19 | \idea[author=Matteo,to=]{from only (empty for)} 20 | \idea[author=Matteo]{from only} 21 | \idea[to=Rionda,author=]{for only (empty from)} 22 | \idea[to=Rionda]{for only} 23 | \idea[date=\today]{date} 24 | 25 | \question{empty} 26 | \question[author=Matteo,to=Rionda]{for and from} 27 | \question[author=Matteo,to=]{from only (empty for)} 28 | \question[author=Matteo]{from only} 29 | \question[to=Rionda,author=]{for only (empty from)} 30 | \question[to=Rionda]{for only} 31 | \question[date=\today]{date} 32 | 33 | \reply{empty} 34 | \reply[author=Matteo,to=Rionda]{for and from} 35 | \reply[author=Matteo,to=]{from only (empty for)} 36 | \reply[author=Matteo]{from only} 37 | \reply[to=Rionda,author=]{for only (empty from)} 38 | \reply[to=Rionda]{for only} 39 | 40 | \todo{empty} 41 | \todo[author=Matteo,to=Rionda]{for and from} 42 | \todo[author=Matteo,to=]{from only (empty for)} 43 | \todo[author=Matteo]{from only} 44 | \todo[to=Rionda,author=]{for only (empty from)} 45 | \todo[to=Rionda]{for only} 46 | 47 | \warning{empty} 48 | \warning[author=Matteo,to=Rionda]{for and from} 49 | \warning[author=Matteo,to=]{from only (empty for)} 50 | \warning[author=Matteo]{from only} 51 | \warning[to=Rionda,author=]{for only (empty from)} 52 | \warning[to=Rionda]{for only} 53 | 54 | \iidea{text} \inote{text} \iquestion{text} \ireply{text} \itodo{text} 55 | \iwarning{text} 56 | \citemissing[Gauss]\ \citemissing\ \refmissing[intro]\ \refmissing% 57 | 58 | \end{document} 59 | -------------------------------------------------------------------------------- /chato-notes.sty: -------------------------------------------------------------------------------- 1 | % Simple package for inserting notes 2 | % ChaTo - http://www.chato.cl/ 3 | % Wed Dec 24 13:33:00 CET 2008 4 | % 5 | % Copyright 2015-22 Matteo Riondato (http://matteo.rionda.to) 6 | % 7 | % Licensed under the Apache License, Version 2.0 (the "License"); 8 | % you may not use this file except in compliance with the License. 9 | % You may obtain a copy of the License at 10 | % 11 | % http://www.apache.org/licenses/LICENSE-2.0 12 | % 13 | % Unless required by applicable law or agreed to in writing, software 14 | % distributed under the License is distributed on an "AS IS" BASIS, 15 | % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | % See the License for the specific language governing permissions and 17 | % limitations under the License. 18 | 19 | \ProvidesPackage{chato-notes}[2015/09/22 v0.001a ChaTo notes] 20 | \RequirePackage{color,ifthen,marvosym,tcolorbox,xkeyval,xspace} 21 | \tcbuselibrary{breakable} 22 | 23 | % Variable to store the name of the insert currently under definition 24 | \newcommand{\chato@insertname}{} 25 | 26 | % Utility macro 27 | \newcommand{\chato@setprop}[2]{\expandafter\newcommand\csname chato@#1\chato@insertname\endcsname{#2}} 28 | 29 | % Default insert colors 30 | \definecolor{chato@clrbittersweet}{rgb}{0.55,0.241,0.204} 31 | \definecolor{chato@clrblue}{rgb}{0.0,0.0,0.6} 32 | \definecolor{chato@clrgoldenrod}{rgb}{0.525,0.397,0.077} 33 | \definecolor{chato@clrgreen}{rgb}{0.0,0.6,0.0} 34 | \definecolor{chato@clrprocessblue}{rgb}{0.077,0.414,0.508} 35 | \definecolor{chato@clrpurple}{rgb}{0.340,0.105,0.555} 36 | \definecolor{chato@clrred}{rgb}{0.6,0.0,0.0} 37 | \definecolor{chato@clrtrueblue}{rgb}{0.0,0.45,0.90} 38 | \newcommand{\chato@defclridea}{chato@clrtrueblue} 39 | \newcommand{\chato@defclrnote}{chato@clrpurple} 40 | \newcommand{\chato@defclrmynote}{\chato@defclrnote} 41 | \newcommand{\chato@defclrquestion}{chato@clrbittersweet} 42 | \newcommand{\chato@defclrreply}{chato@clrblue} 43 | \newcommand{\chato@defclrtodo}{chato@clrgreen} 44 | \newcommand{\chato@defclrwarning}{chato@clrred} 45 | % Default insert symbols 46 | \newcommand{\chato@defsymidea}{\Laserbeam} 47 | \newcommand{\chato@defsymnote}{\Pointinghand} 48 | \newcommand{\chato@defsymmynote}{\chato@defsymnote} 49 | \newcommand{\chato@defsymquestion}{?} 50 | \newcommand{\chato@defsymreply}{\Writinghand} 51 | \newcommand{\chato@defsymtodo}{\Checkedbox} 52 | \newcommand{\chato@defsymwarning}{\Biohazard} 53 | % Default framed insert texts 54 | \newcommand{\chato@deftextidea}{Idea} 55 | \newcommand{\chato@deftextmynote}{Note} 56 | \newcommand{\chato@deftextquestion}{Question} 57 | \newcommand{\chato@deftextreply}{Reply} 58 | \newcommand{\chato@deftexttodo}{To-Do} 59 | \newcommand{\chato@deftextwarning}{Warning} 60 | % for/from text for framed inserts 61 | \newcommand{\chato@fortext}{for} 62 | \newcommand{\chato@fromtext}{from} 63 | % Option processing for framed inserts 64 | \newcommand{\chato@processauthor}[1]{\ifx\relax#1\relax 65 | \ifx\chato@author\@undefined \else \let\chato@author\@undefined \fi \else\def\chato@author{#1}\fi} 66 | \newcommand{\chato@processdate}[1]{\ifx\relax#1\relax 67 | \ifx\chato@date\@undefined \else \let\chato@date\@undefined \fi \else 68 | \def\chato@date{#1} \fi} 69 | \newcommand{\chato@processto}[1]{\ifx\relax#1\relax 70 | \ifx\chato@to\@undefined \else \let\chato@to\@undefined \fi \else 71 | \def\chato@to{#1} \fi} 72 | \define@key{chato}{author}{\chato@processauthor{#1}} 73 | \define@key{chato}{by}{\chato@processauthor{#1}} 74 | \define@key{chato}{from}{\chato@processauthor{#1}} 75 | \define@key{chato}{date}{\chato@processdate{#1}} 76 | \define@key{chato}{for}{\chato@processto{#1}} 77 | \define@key{chato}{to}{\chato@processto{#1}} 78 | \presetkeys{chato}{author=,from=,by=,to=,for=,date=}{} 79 | % Framed inserts template 80 | \define@key{chatoframed}{clr}{\chato@setprop{clrf}{#1}} 81 | \define@key{chatoframed}{sym}{\chato@setprop{symf}{#1}} 82 | \define@key{chatoframed}{text}{\chato@setprop{text}{#1}} 83 | \presetkeys{chatoframed}{clr=black,sym=\MineSign,text=Foo}{} 84 | \newcommand{\newframedinsert}[2][]{ 85 | \renewcommand{\chato@insertname}{#2} 86 | \setkeys{chatoframed}{#1} 87 | \expandafter\newcommand\csname #2\endcsname[2][]{ 88 | \setkeys{chato}{##1} 89 | \begin{center} 90 | \begin{tcolorbox}[breakable,sharp 91 | corners,boxrule=.2mm,left=.25mm,right=.25mm,top=.25mm,bottom=.25mm,colback=white,notitle,colframe=\csname 92 | chato@clrf#2\endcsname,pad at break*=0mm] 93 | \sffamily 94 | {\color{\csname chato@clrf#2\endcsname} 95 | \textbf{\textsc{\csname chato@symf#2\endcsname\ \csname chato@text#2\endcsname 96 | \ifx\chato@to\@undefined \else \mbox{ \chato@fortext\ \chato@to}\fi 97 | \ifx\chato@author\@undefined\else\mbox{ \chato@fromtext\ 98 | \chato@author}\fi 99 | \ifx\chato@date\@undefined \else \mbox{ (\chato@date)}\fi:}}} 100 | ##2 101 | \end{tcolorbox} 102 | \end{center}}} 103 | 104 | \newframedinsert[clr=\chato@defclridea,sym=\chato@defsymidea,text=\chato@deftextidea]{idea} 105 | \newframedinsert[clr=\chato@defclrmynote,sym=\chato@defsymmynote,text=\chato@deftextmynote]{mynote} 106 | \newframedinsert[clr=\chato@defclrquestion,sym=\chato@defsymquestion,text=\chato@deftextquestion]{question} 107 | \newframedinsert[clr=\chato@defclrreply,sym=\chato@defsymreply,text=\chato@deftextreply]{reply} 108 | \newframedinsert[clr=\chato@defclrtodo,sym=\chato@defsymtodo,text=\chato@deftexttodo]{todo} 109 | \newframedinsert[clr=\chato@defclrwarning,sym=\chato@defsymwarning,text=\chato@deftextwarning]{warning} 110 | 111 | % Define inline inserts 112 | \define@key{chatoinline}{sym}{\chato@setprop{symi}{#1}} 113 | \define@key{chatoinline}{clr}{\chato@setprop{clri}{#1}} 114 | \define@key{chatoinline}{open}{\chato@setprop{openi}{#1}} 115 | \define@key{chatoinline}{close}{\chato@setprop{closei}{#1}} 116 | \presetkeys{chatoinline}{clr=black,sym=\MineSign,open=\ensuremath\lceil,close=\ensuremath\rfloor}{} 117 | 118 | \newcommand{\newinlineinsert}[2][]{ 119 | \renewcommand{\chato@insertname}{#2} 120 | \setkeys{chatoinline}{#1} 121 | \expandafter\newcommand\csname i#2\endcsname[1]{% 122 | {\textsf{\color{\csname chato@clri#2\endcsname}\textbf{\textsc{\csname 123 | chato@openi#2\endcsname \csname 124 | chato@symi#2\endcsname}} {\color{black}\ ##1} \textbf{\textsc{\csname 125 | chato@closei#2\endcsname}}}}}} 126 | 127 | \newinlineinsert[clr=\chato@defclridea,sym=\chato@defsymidea]{idea} 128 | \newinlineinsert[clr=\chato@defclrnote,sym=\chato@defsymnote]{note} 129 | \newinlineinsert[clr=\chato@defclrmynote,sym=\chato@defsymmynote]{mynote} 130 | \newinlineinsert[clr=\chato@defclrquestion,sym=\chato@defsymquestion]{question} 131 | \newinlineinsert[clr=\chato@defclrreply,sym=\chato@defsymreply]{reply} 132 | \newinlineinsert[clr=\chato@defclrtodo,sym=\chato@defsymtodo]{todo} 133 | \newinlineinsert[clr=\chato@defclrwarning,sym=\chato@defsymwarning]{warning} 134 | 135 | \newcommand{\chato@citemissingclr}{chato@clrgoldenrod} 136 | \newcommand{\chato@citemissingnoargtext}{\lbrack% 137 | Citation\rbrack} 138 | \newcommand{\chato@citemissingwithargtextpre}{\lbrack% 139 | Cit:} 140 | \newcommand{\chato@citemissingwithargtextpost}{\rbrack} 141 | \newcommand{\chato@citemissingnoarg}{\textsf{\textbf{\textsc{\color{\chato@citemissingclr}\chato@citemissingnoargtext}}}\xspace} 142 | \newcommand{\chato@citemissingwitharg}[1]{\textsf{\textbf{\textsc{\color{\chato@citemissingclr}\chato@citemissingwithargtextpre#1\chato@citemissingwithargtextpost}}}\xspace} 143 | \newcommand{\citemissing}[1][]{% 144 | \ifthenelse{\equal{#1}{}}{% 145 | \chato@citemissingnoarg{}}{% 146 | \chato@citemissingwitharg{#1}}} 147 | \newcommand{\chato@refmissingclr}{chato@clrprocessblue} 148 | \newcommand{\chato@refmissingnoargtext}{Reference} 149 | \newcommand{\chato@refmissingwithargtext}{Ref:} 150 | \newcommand{\chato@refmissingnoarg}[0]{\textsf{\textbf{\textsc{\color{\chato@refmissingclr}\chato@refmissingnoargtext}}}\xspace} 151 | \newcommand{\chato@refmissingwitharg}[1]{\textsf{\textbf{\textsc{\color{\chato@refmissingclr}\chato@refmissingwithargtext#1}}}\xspace} 152 | \newcommand{\refmissing}[1][]{% 153 | \ifthenelse{\equal{#1}{}}{% 154 | \chato@refmissingnoarg{}}{% 155 | \chato@refmissingwitharg{#1}}} 156 | 157 | \DeclareOption{show}{ 158 | } 159 | \DeclareOption{hide}{ 160 | \renewcommand{\idea}[2][]{} 161 | \renewcommand{\mynote}[2][]{} 162 | \renewcommand{\question}[2][]{} 163 | \renewcommand{\reply}[2][]{} 164 | \renewcommand{\todo}[2][]{} 165 | \renewcommand{\warning}[2][]{} 166 | \renewcommand{\iidea}[2][]{} 167 | \renewcommand{\inote}[1]{} 168 | \renewcommand{\iquestion}[1]{} 169 | \renewcommand{\ireply}[1]{} 170 | \renewcommand{\itodo}[1]{} 171 | \renewcommand{\iwarning}[1]{} 172 | \renewcommand{\citemissing}{} 173 | \renewcommand{\refmissing}{} 174 | } 175 | \ProcessOptions 176 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | --------------------------------------------------------------------------------