From b9d1abe72bdbe29ab82f99dea6103d83219b61c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moussouni=2C=20Ya=C3=ABl?= Date: Sat, 3 May 2025 17:50:32 +0200 Subject: [PATCH] 2025-05-03: Reinitialized repo --- .gitignore | 3 + COPYING.txt | 674 +++++++++++++++++++++++++ README.md | 6 + manchot-article.cls | 82 +++ manchot-beamer.cls | 98 ++++ manchot.sty | 112 +++++ old/yii-v1.sty | 920 ++++++++++++++++++++++++++++++++++ old/yii-v2.sty | 711 ++++++++++++++++++++++++++ src/article_commands.tex | 108 ++++ src/article_options.tex | 92 ++++ src/article_settings.tex | 78 +++ src/beamer_commands.tex | 52 ++ src/beamer_options.tex | 261 ++++++++++ src/beamer_settings.tex | 206 ++++++++ src/common_palette.tex | 100 ++++ src/package_bibliography.tex | 92 ++++ src/package_commands.tex | 244 +++++++++ src/package_corrections.tex | 41 ++ src/package_greek_letters.tex | 128 +++++ src/package_options.tex | 158 ++++++ src/package_settings.tex | 104 ++++ 21 files changed, 4270 insertions(+) create mode 100644 .gitignore create mode 100644 COPYING.txt create mode 100644 README.md create mode 100644 manchot-article.cls create mode 100644 manchot-beamer.cls create mode 100644 manchot.sty create mode 100755 old/yii-v1.sty create mode 100644 old/yii-v2.sty create mode 100644 src/article_commands.tex create mode 100644 src/article_options.tex create mode 100644 src/article_settings.tex create mode 100644 src/beamer_commands.tex create mode 100644 src/beamer_options.tex create mode 100644 src/beamer_settings.tex create mode 100644 src/common_palette.tex create mode 100644 src/package_bibliography.tex create mode 100644 src/package_commands.tex create mode 100644 src/package_corrections.tex create mode 100644 src/package_greek_letters.tex create mode 100644 src/package_options.tex create mode 100644 src/package_settings.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b51443 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.tmp +tmp/ diff --git a/COPYING.txt b/COPYING.txt new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/COPYING.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bbd5df1 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# LaTeX Package and Class: MANCHOT + +## Introduction +Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex (MANCHOT). + +This is work in progress... Documentation is coming soon (before 2030) diff --git a/manchot-article.cls b/manchot-article.cls new file mode 100644 index 0000000..11b52d0 --- /dev/null +++ b/manchot-article.cls @@ -0,0 +1,82 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% manchot-article.cls +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\ProvidesClass{manchot-article}[2025-05-03] + +\LoadClass[10pt, a4paper]{article} + +% Required Packages + +\RequirePackage[utf8]{inputenc} % input encoding +\RequirePackage[T1]{fontenc} % font encoding +\RequirePackage{geometry} % page geometry +\RequirePackage{paracol} % multiple columns +\RequirePackage{fancyhdr} % header and footer +\RequirePackage{xcolor} % colours +\RequirePackage{pagecolor} % page colours +\RequirePackage{setspace} % spacing between lines +\RequirePackage{cuted} % full width strip environment +\RequirePackage{hyperref} % links, references, etc. - must be the last package + +% Definitions + +\def\yii@warning{} +\def\yii@title{} +\def\yii@subtitle{} +\def\yii@author{} +\def\yii@institution{} +\def\yii@division{} +\def\yii@date{} + +\def\yii@headtopleft{\yii@title} +\def\yii@headbottomleft{\yii@subtitle} +\def\yii@headtopright{\yii@author} +\def\yii@headbottomright{\yii@institution} + +\newif\iftwocolumn +\newif\ifdark +\newif\ifbright + +\input{src/common_palette.tex} + +% Options + +\input{src/article_options.tex} + +% Settings + +\input{src/article_settings.tex} + +% Commands + +\input{src/article_commands.tex} + + diff --git a/manchot-beamer.cls b/manchot-beamer.cls new file mode 100644 index 0000000..1f56df5 --- /dev/null +++ b/manchot-beamer.cls @@ -0,0 +1,98 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% manchot-beamer.cls +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\ProvidesClass{manchot-beamer}[2025-05-03] + +\LoadClass[aspectratio=32, compress]{beamer} + +% Required Packages + +\RequirePackage[utf8]{inputenc} % input encoding +\RequirePackage[T1]{fontenc} % font encoding +\RequirePackage{geometry} % page geometry +\RequirePackage{paracol} % multiple columns +\RequirePackage{fancyhdr} % header and footer +\RequirePackage{xcolor} % colours +\RequirePackage{pagecolor} % page colours +\RequirePackage{setspace} % spacing between lines +\RequirePackage{cuted} % full width strip environment +\RequirePackage{hyperref} % links, references, etc. - must be the last package + +% Definitions + +\def\yii@warning{} +\def\yii@title{} +\def\yii@subtitle{} +\def\yii@author{} +\def\yii@institution{} +\def\yii@division{} +\def\yii@date{} + +\def\yii@headtopleft{\yii@title} +\def\yii@headbottomleft{\yii@subtitle} +\def\yii@headtopright{\yii@author} +\def\yii@headbottomright{\yii@institution} + +\newif\iftwocolumn +\newif\ifdark +\newif\ifbright +\newif\ifserif +\newif\ifberlin +\newif\ifilmenau + +\newif\ifcold +\newif\ifwarm + +\newif\ifblue +\newif\iflightblue +\newif\ifred +\newif\ifyellow +\newif\ifgreen +\newif\ifviolet +\newif\ifcyan +\newif\iforange + +\input{src/common_palette.tex} + +% Options + +\input{src/beamer_options.tex} + +% Settings + +\input{src/beamer_settings.tex} + +% Commands + +\input{src/beamer_commands.tex} + + + diff --git a/manchot.sty b/manchot.sty new file mode 100644 index 0000000..d8e1f6b --- /dev/null +++ b/manchot.sty @@ -0,0 +1,112 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% manchot.sty +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\ProvidesPackage{manchot}[2025-05-03] + +% Required Packages + +\RequirePackage[utf8]{inputenc} % input encoding +\RequirePackage[T1]{fontenc} % font encoding +\RequirePackage{lmodern} % Latin Modern font +\RequirePackage{slantsc} % small caps +\RequirePackage{fix-cm} % Computer Modern fix (for slantsc) +\RequirePackage{textgreek} % Greek upright letters +\RequirePackage{etoolbox} % correct ampersand in citation +\RequirePackage{natbib} % bibliography management +\RequirePackage[greek, french, english]{babel} % language +\RequirePackage{amsmath} % AMS maths package +\RequirePackage{amssymb} % AMS symbols package +\RequirePackage{amsthm} % AMS theorems package +\RequirePackage{mathtools} % Additions to AMS packages +\RequirePackage{graphicx} % including images +\RequirePackage{xparse} % creating functions +\RequirePackage{afterpage} % hook after page +\RequirePackage{xcolor} % colours +\RequirePackage{pagecolor} % page colours +\RequirePackage{setspace} % spacing between lines +\RequirePackage{cuted} % full width strip environment +\RequirePackage{paracol} % multiple columns +\RequirePackage{lscape} % landscape page +\RequirePackage{array} % array tables +\RequirePackage{multirow} % multiple rows in table +\RequirePackage{caption} % figure management +\RequirePackage{subcaption} % subfigure management +\RequirePackage{appendix} % creating appendix +\RequirePackage{listings} % including code +\RequirePackage{tikz} % Tikz drawings +\RequirePackage{tikz-3dplot} % 3D tikz drawings +\RequirePackage{tikzducks} % including ducks with tikz +\RequirePackage[RPvoltages, european, straight voltages, cuteinductors]{circuitikz} % electrical circuits with tikz +\RequirePackage{datetime} % date and time of compilation +\RequirePackage{lipsum} % Lorem Ipsum +\RequirePackage{physics} % physics +\RequirePackage{esint} % integral symbol +\RequirePackage{orcidlink} % ORCID +\RequirePackage{hyperref} % links, references, etc. - must be the last package + +% Definitions + +\def\yii@FT{\mathrm{FT}} +\def\yii@name{\text} +\def\yii@eqdef{\equiv} +\def\yii@vect{\vb} +\def\yii@epsilon{\epsilon} + +\newif\ifFR +\newif\ifisbeamer + +\input{src/common_palette.tex} + +% Options + +\input{src/package_options.tex} + +% Corrections + +\input{src/package_corrections.tex} + +% Settings + +\input{src/package_settings.tex} + +% Greek letters + +\input{src/package_greek_letters.tex} + +% Commands + +\input{src/package_commands.tex} + +% Bibliography + +\input{src/package_bibliography.tex} + +\endinput diff --git a/old/yii-v1.sty b/old/yii-v1.sty new file mode 100755 index 0000000..ae4b5bd --- /dev/null +++ b/old/yii-v1.sty @@ -0,0 +1,920 @@ +\ProvidesPackage{yii-v1}[2024-01-01] + +\RequirePackage[utf8]{inputenc} % encodage entree +\RequirePackage{natbib} % bibliography +\RequirePackage[english,french,greek]{babel} % français +\RequirePackage[T1]{fontenc} % encodage sortie +\RequirePackage{amsmath} % maths +\RequirePackage{amssymb} % symbols +\RequirePackage{amsthm} % th, prop etc. +\RequirePackage{xparse} % fonctions +\RequirePackage{geometry} % correction footnote +\RequirePackage{fancyhdr} % entêtes et pied-de-page +\RequirePackage{appendix} % annexes +\RequirePackage{graphicx} % images +\RequirePackage{xcolor} % couleur +\RequirePackage{mathrsfs} % police maths \mathscr +\RequirePackage{array} % tableau +\RequirePackage{lmodern} % police +\RequirePackage{slantsc} % correction police +\RequirePackage{fix-cm} % correction CM +\RequirePackage{chemfig} % formules chimiques +\RequirePackage[version=4]{mhchem} +\RequirePackage{listings} % code +\RequirePackage{lipsum} % lorem ipsum +\RequirePackage{tikz} % schem +\RequirePackage[RPvoltages, european, straight voltages, cuteinductors]{circuitikz} % circuits +\RequirePackage{tikz-3dplot} % plot 3D +\RequirePackage{esint} % intégrales +\RequirePackage{textgreek} % lettres grecques en roman +\RequirePackage{setspace} % interlignes +\RequirePackage{paracol} % plusieurs colones +\RequirePackage[bottom]{footmisc} % correction footnote +\RequirePackage{lscape} % format paysage pour une page : environnement landscape (remplacer par le package pdflscape si besoin) +\RequirePackage[arrowdel]{physics} % Un package essentiel +\RequirePackage{afterpage} % pour intégrer le \clearpage dès la fin de page +\RequirePackage{caption}% figure... +\RequirePackage{subcaption}% sous-figures... +\RequirePackage{multirow} % case de plusieurs lignes dans un tableau +\RequirePackage{datetime} % date et heure de compilation +\RequirePackage{pagecolor} % couleur de la page +\RequirePackage{tikzducks} % quark +\RequirePackage{hyperref} % ref. url etc... en dernier ! + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Paramètres % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\definecolor{ym_noir}{HTML}{121212} +\definecolor{ym_blanc}{HTML}{DDDDDD} +\definecolor{ym_bleu}{HTML}{06518E} +\definecolor{ym_bleuc}{HTML}{009EDB} +\definecolor{ym_rouge}{HTML}{ED1C24} +\definecolor{ym_jaune}{HTML}{E8BD0F} +\definecolor{ym_vert}{HTML}{3B795E} +\definecolor{ym_violet}{HTML}{C95BCF} + +\colorlet{ym_black}{ym_noir} +\colorlet{ym_white}{ym_blanc} +\colorlet{ym_blue}{ym_bleu} +\colorlet{ym_lblue}{ym_bleuc} +\colorlet{ym_red}{ym_rouge} +\colorlet{ym_yellow}{ym_jaune} +\colorlet{ym_green}{ym_vert} +\colorlet{ym_purple}{ym_violet} + +\colorlet{ym_orange}{ym_yellow!60!ym_red} + +\setcounter{page}{1} +\setcounter{part}{0} +\setcounter{section}{0} +\setcounter{subsection}{0} +\setcounter{subsubsection}{0} +\setcounter{figure}{0} + +\def\varwarning{} +\def\vartitle{} +\def\varsubtitle{} +\def\varauthor{} +\def\varinstitution{} +\def\varinstitutionbis{} +\def\varshortinst{} +\def\vardate{} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Options % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newif\ifFR +\newif\ifpaper + +\DeclareOption{light}{ + \colorlet{fg}{black} + \colorlet{bg}{white} + + \colorlet{fg_froid}{ym_bleu} + \colorlet{bg_froid}{ym_bleuc} + \colorlet{fg_chaud}{ym_rouge} + \colorlet{bg_chaud}{ym_jaune} + \colorlet{fg_neutre}{ym_vert} + \colorlet{bg_neutre}{ym_violet} +} + + +\DeclareOption{dark}{ + \colorlet{fg}{ym_blanc} + \colorlet{bg}{ym_noir} + + \colorlet{fg_froid}{ym_bleuc} + \colorlet{bg_froid}{ym_bleu} + \colorlet{fg_chaud}{ym_jaune} + \colorlet{bg_chaud}{ym_rouge} + \colorlet{fg_neutre}{ym_violet} + \colorlet{bg_neutre}{ym_vert} + + \pagecolor{bg} + \color{fg} +} + +\DeclareOption{EN}{ + \FRfalse + \AtBeginDocument{ + \selectlanguage{english} + } + \def\@eqdef{\equiv} + \def\@name{\text} + \def\@cste{\mathrm{cst}} + \def\@TF{FT} + \def\@VP{PV} +} + +\DeclareOption{FR}{ + \FRtrue + \AtBeginDocument{ + \selectlanguage{french} + } + \mathcode`\.="013B % 1.23 --> 1,23 + \def\@eqdef{\overset{\mathrm{def}}{=}} + \def\@name{\textsc} + \def\@cste{\mathrm{cste}} + \def\@TF{TF} + \def\@VP{VP} + \captionsetup{labelsep=endash} +} + + +\DeclareOption{a4paper}{ + \papertrue + \geometry{a4paper, top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm} + \pagestyle{fancy} + \fancyhead[L]{{\footnotesize \vartitle\\\varsubtitle}} + \fancyhead[R]{{\footnotesize \varauthor\\\varshortinst}} + \fancyfoot[C]{\thepage\ / \pageref{LastPage}} + \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrule}{}} + + \AddToHook{shipout/background}{% + \put (1.3cm, -0.3\paperheight){\rotatebox[origin=c]{90}{{\large \normalfont \textbf{\textcolor{red}{\varwarning}}}}}} + + \theoremstyle{plain} + \newtheorem{propriete}{Propriété} + \newtheorem{theoreme}{Théorème} + \newtheorem{theorem}{Theorem} + \newtheorem{postulat}{Postulat} + \newtheorem{lemme}{Lemme} + \newtheorem*{note}{N-B} + + \theoremstyle{definition} + \newtheorem{definition}{Définition} + \newtheorem{definition-en}{Definition} + \newtheorem{exemple}{Exemple} + \newtheorem{example}{Example} + + + \theoremstyle{remark} + \newtheorem*{remarque}{Remarque} + \newtheorem*{remark}{Remark} + + \title{\vartitle\\\varsubtitle} + \author{\varauthor\\\varinstitution\\\varinstitutionbis} + \date{\vardate} + + \hypersetup{hidelinks, unicode} + + \AddToHook{shipout/lastpage}{\label{LastPage}} +} + +\DeclareOption{Bib-siam}{ + \citestyle{abbrv} + \bibliographystyle{siam} +} + +\DeclareOption{Bib-yii}{ + \citestyle{abbrv} + \bibliographystyle{yii} +} + +\DeclareOption{Bib-aasjournal}{ + \citestyle{aasjournal} + \bibliographystyle{aasjournal} +} + +\DeclareOption{beamer}{ + \paperfalse + \setbeamercolor{structure}{fg=ym_bleu} + \setbeamertemplate{page number in head/foot}[framenumber] + \setbeamertemplate{caption}[numbered] + \beamertemplatenavigationsymbolsempty + + \title{\vartitle} + \subtitle{\varsubtitle} + \author{\varauthor} + \institute[\varshortinst]{\varinstitution\\\varinstitutionbis} + + \date{\vardate} +} + +\DeclareOption{part}{ + \numberwithin{section}{part} + \renewcommand{\numberline}[1]{#1~} +} + +\DeclareOption{default}{ + \def\@G{\mathcal{G}} + \def\@vect{\va*} + \def\@u{\vu u_} + \def\@e{\vu e_} + \def\@vu{\vu} +} + +\DeclareOption{astro}{ + \def\@G{G} + \def\@vect{\vb} + \def\@u{\vu u_} + \def\@e{\vu e_} + \def\@vu{\vu} +} + +\DeclareOption{vb}{ + \def\@vect{\vb} +} + +\DeclareOption{vu-u}{ + \def\@u{\vu u_} + \def\@e{\vu u_} + \def\@vu{\vu u_} +} + +\DeclareOption{vu-e}{ + \def\@u{\vu e_} + \def\@e{\vu e_} + \def\@vu{\vu e_} +} + +\DeclareOption{vu}{ + \def\@u{\vu} + \def\@e{\vu} + \def\@vu{\vu} +} + +\DeclareOption{nosc}{ + \renewcommand{\textsc}{\text} + \def\@name{\text} +} + +\ExecuteOptions{EN} +\ExecuteOptions{light} +\ExecuteOptions{default} + + +\ProcessOptions\relax + +\ifFR + \ifpaper + \renewcommand{\labelitemi}{---} + \renewcommand{\labelitemii}{---} + \renewcommand{\labelitemiii}{---} + \renewcommand{\labelitemiv}{---} + \fi +\fi +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Paramètres % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\setlength\parindent{0cm} % pas d'indentation des paragraphes +\renewcommand{\oiint}{\varoiint} % intégrales + +\rmfamily +\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{bx}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{m}{scit}{<->ssub*cmr/m/scit}{} + +\numberwithin{equation}{section} +\lstset{frame=single, numbers=left, showstringspaces=false, basicstyle=\footnotesize\ttfamily, breaklines=true, commentstyle=\color{ym_bleu}, keywordstyle=\color{ym_jaune}, stringstyle=\color{ym_vert}, extendedchars=true, literate={à}{{a}}1 {â}{{a}}1 {é}{{e}}1 {è}{{e}}1 {ê}{{e}}1 {ë}{{e}}1 {ï}{{i}}1 {û}{u}1 {ù}{u}1 {î}{i}1 {À}{{A}}1 {ô}{o}1 {ç}{c}1 {Â}{{A}}1 {É}{{E}}1 {È}{{E}}1 {Ê}{{E}}1 {Ë}{{E}}1 {Ï}{{I}}1 {Û}{U}1 {Ù}{U}1 {Î}{I}1 {Ô}{O}1 {Ç}{C}1 {°}{d}1} + +\usetikzlibrary{babel} +\usetikzlibrary{decorations.pathmorphing, decorations.markings} +\tikzset{gluon/.style={thick, decorate, decoration={coil, segment length=4pt}}} +\tikzset{boson/.style={thick, decorate, decoration={snake, segment length=8pt}}} +\tikzset{higgs/.style={thick, dashed}} +\tikzset{fermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex}}}}} +\tikzset{antifermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex reversed}}}}} + +% \hypersetup{unicode=false} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Greek letters % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Missing capital greek letters +\newcommand{\Alpha}{A} +\newcommand{\Beta}{B} +\newcommand{\Epsilon}{E} +\newcommand{\Varpsilon}{\Epsilon} +\newcommand{\Zeta}{Z} +\newcommand{\Eta}{H} +\newcommand{\Vartheta}{\Theta} +\newcommand{\Iota}{I} +\newcommand{\Kappa}{K} +\newcommand{\Mu}{M} +\newcommand{\Nu}{N} +\newcommand{\Omicron}{O} +\newcommand{\Varpi}{\Pi} +\newcommand{\Rho}{R} +\newcommand{\Varrho}{\Rho} +\newcommand{\Tau}{T} +\newcommand{\Varphi}{\Phi} +\newcommand{\Chi}{X} +% Math roman greek letters +\newcommand{\mathalpha}{\text{\normalfont{\textalpha}}} +\newcommand{\mathbeta}{\text{\normalfont{\textbeta}}} +\newcommand{\mathgamma}{\text{\normalfont{\textgamma}}} +\newcommand{\mathdelta}{\text{\normalfont{\textdelta}}} +\newcommand{\mathepsilon}{\text{\normalfont{\textepsilon}}} +\newcommand{\mathvarepsilon}{\text{\normalfont{\textepsilon}}} +\newcommand{\mathzeta}{\text{\normalfont{\textzeta}}} +\newcommand{\matheta}{\text{\normalfont{\texteta}}} +\newcommand{\maththeta}{\text{\normalfont{\texttheta}}} +\newcommand{\mathvartheta}{\text{\normalfont{\texttheta}}} +\newcommand{\mathiota}{\text{\normalfont{\textiota}}} +\newcommand{\mathkappa}{\text{\normalfont{\textkappa}}} +\newcommand{\mathlambda}{\text{\normalfont{\textlambda}}} +\newcommand{\mathmu}{\text{\normalfont{\textmu}}} +\newcommand{\mathnu}{\text{\normalfont{\textnu}}} +\newcommand{\mathomicron}{\text{\normalfont{\textomicron}}} +\newcommand{\mathpi}{\text{\normalfont{\textpi}}} +\newcommand{\mathvarpi}{\text{\normalfont{\textpi}}} +\newcommand{\mathrho}{\text{\normalfont{\textrho}}} +\newcommand{\mathvarrho}{\text{\normalfont{\textrho}}} +\newcommand{\mathsigma}{\text{\normalfont{\textsigma}}} +\newcommand{\mathtau}{\text{\normalfont{\texttau}}} +\newcommand{\mathupsilon}{\text{\normalfont{\textupsilon}}} +\newcommand{\mathphi}{\text{\normalfont{\textphi}}} +\newcommand{\mathvarphi}{\text{\normalfont{\textphi}}} +\newcommand{\mathchi}{\text{\normalfont{\textchi}}} +\newcommand{\mathpsi}{\text{\normalfont{\textpsi}}} +\newcommand{\mathomega}{\text{\normalfont{\textomega}}} +% Math roman capital greek letters +\newcommand{\mathAlpha}{\text{\normalfont{\textAlpha}}} +\newcommand{\mathBeta}{\text{\normalfont{\textBeta}}} +\newcommand{\mathGamma}{\text{\normalfont{\textGamma}}} +\newcommand{\mathDelta}{\text{\normalfont{\textDelta}}} +\newcommand{\mathEpsilon}{\text{\normalfont{\textEpsilon}}} +\newcommand{\mathVarepsilon}{\text{\normalfont{\textEpsilon}}} +\newcommand{\mathZeta}{\text{\normalfont{\textZeta}}} +\newcommand{\mathEta}{\text{\normalfont{\textEta}}} +\newcommand{\mathTheta}{\text{\normalfont{\textTheta}}} +\newcommand{\mathVartheta}{\text{\normalfont{\textTheta}}} +\newcommand{\mathIota}{\text{\normalfont{\textIota}}} +\newcommand{\mathKappa}{\text{\normalfont{\textKappa}}} +\newcommand{\mathLambda}{\text{\normalfont{\textLambda}}} +\newcommand{\mathMu}{\text{\normalfont{\textMu}}} +\newcommand{\mathNu}{\text{\normalfont{\textNu}}} +\newcommand{\mathOmicron}{\text{\normalfont{\textOmicron}}} +\newcommand{\mathPi}{\text{\normalfont{\textPi}}} +\newcommand{\mathVarpi}{\text{\normalfont{\textPi}}} +\newcommand{\mathRho}{\text{\normalfont{\textRho}}} +\newcommand{\mathVarrho}{\text{\normalfont{\textRho}}} +\newcommand{\mathSigma}{\text{\normalfont{\textSigma}}} +\newcommand{\mathTau}{\text{\normalfont{\textTau}}} +\newcommand{\mathUpsilon}{\text{\normalfont{\textUpsilon}}} +\newcommand{\mathPhi}{\text{\normalfont{\textPhi}}} +\newcommand{\mathVarphi}{\text{\normalfont{\textPhi}}} +\newcommand{\mathChi}{\text{\normalfont{\textChi}}} +\newcommand{\mathPsi}{\text{\normalfont{\textPsi}}} +\newcommand{\mathOmega}{\text{\normalfont{\textOmega}}} +% Math bold greek letters +\newcommand{\boldalpha}{\boldsymbol{\alpha}} +\newcommand{\boldbeta}{\boldsymbol{\beta}} +\newcommand{\boldgamma}{\boldsymbol{\gamma}} +\newcommand{\bolddelta}{\boldsymbol{\delta}} +\newcommand{\boldepsilon}{\boldsymbol{\epsilon}} +\newcommand{\boldvarepsilon}{\boldsymbol{\epsilon}} +\newcommand{\boldzeta}{\boldsymbol{\zeta}} +\newcommand{\boldeta}{\boldsymbol{\eta}} +\newcommand{\boldtheta}{\boldsymbol{\theta}} +\newcommand{\boldvartheta}{\boldsymbol{\theta}} +\newcommand{\boldiota}{\boldsymbol{\iota}} +\newcommand{\boldkappa}{\boldsymbol{\kappa}} +\newcommand{\boldlambda}{\boldsymbol{\lambda}} +\newcommand{\boldmu}{\boldsymbol{\mu}} +\newcommand{\boldnu}{\boldsymbol{\nu}} +\newcommand{\boldomicron}{\boldsymbol{\omicron}} +\newcommand{\boldpi}{\boldsymbol{\pi}} +\newcommand{\boldvarpi}{\boldsymbol{\pi}} +\newcommand{\boldrho}{\boldsymbol{\rho}} +\newcommand{\boldvarrho}{\boldsymbol{\rho}} +\newcommand{\boldsigma}{\boldsymbol{\sigma}} +\newcommand{\boldtau}{\boldsymbol{\tau}} +\newcommand{\boldupsilon}{\boldsymbol{\upsilon}} +\newcommand{\boldphi}{\boldsymbol{\phi}} +\newcommand{\boldvarphi}{\boldsymbol{\phi}} +\newcommand{\boldchi}{\boldsymbol{\chi}} +\newcommand{\boldpsi}{\boldsymbol{\psi}} +\newcommand{\boldomega}{\boldsymbol{\omega}} +% Math bold capital greek letters +\newcommand{\boldAlpha}{\boldsymbol{\Alpha}} +\newcommand{\boldBeta}{\boldsymbol{\Beta}} +\newcommand{\boldGamma}{\boldsymbol{\Gamma}} +\newcommand{\boldDelta}{\boldsymbol{\Delta}} +\newcommand{\boldEpsilon}{\boldsymbol{\Epsilon}} +\newcommand{\boldVarepsilon}{\boldsymbol{\Epsilon}} +\newcommand{\boldZeta}{\boldsymbol{\Zeta}} +\newcommand{\boldEta}{\boldsymbol{\Eta}} +\newcommand{\boldTheta}{\boldsymbol{\Theta}} +\newcommand{\boldVartheta}{\boldsymbol{\Theta}} +\newcommand{\boldIota}{\boldsymbol{\Iota}} +\newcommand{\boldKappa}{\boldsymbol{\Kappa}} +\newcommand{\boldLambda}{\boldsymbol{\Lambda}} +\newcommand{\boldMu}{\boldsymbol{\Mu}} +\newcommand{\boldNu}{\boldsymbol{\Nu}} +\newcommand{\boldOmicron}{\boldsymbol{\Omicron}} +\newcommand{\boldPi}{\boldsymbol{\Pi}} +\newcommand{\boldVarpi}{\boldsymbol{\Pi}} +\newcommand{\boldRho}{\boldsymbol{\Rho}} +\newcommand{\boldVarrho}{\boldsymbol{\Rho}} +\newcommand{\boldSigma}{\boldsymbol{\Sigma}} +\newcommand{\boldTau}{\boldsymbol{\Tau}} +\newcommand{\boldUpsilon}{\boldsymbol{\Upsilon}} +\newcommand{\boldPhi}{\boldsymbol{\Phi}} +\newcommand{\boldVarphi}{\boldsymbol{\Phi}} +\newcommand{\boldChi}{\boldsymbol{\Chi}} +\newcommand{\boldPsi}{\boldsymbol{\Psi}} +\newcommand{\boldOmega}{\boldsymbol{\Omega}} +% Text bold roman greek letters +\newcommand{\boldtextalpha}{\textbf{\textalpha}} +\newcommand{\boldtextbeta}{\textbf{\textbeta}} +\newcommand{\boldtextgamma}{\textbf{\textgamma}} +\newcommand{\boldtextdelta}{\textbf{\textdelta}} +\newcommand{\boldtextepsilon}{\textbf{\textepsilon}} +\newcommand{\boldtextvarepsilon}{\textbf{\textepsilon}} +\newcommand{\boldtextzeta}{\textbf{\textzeta}} +\newcommand{\boldtexteta}{\textbf{\texteta}} +\newcommand{\boldtexttheta}{\textbf{\texttheta}} +\newcommand{\boldtextvartheta}{\textbf{\texttheta}} +\newcommand{\boldtextiota}{\textbf{\textiota}} +\newcommand{\boldtextkappa}{\textbf{\textkappa}} +\newcommand{\boldtextlambda}{\textbf{\textlambda}} +\newcommand{\boldtextmu}{\textbf{\textmu}} +\newcommand{\boldtextnu}{\textbf{\textnu}} +\newcommand{\boldtextomicron}{\textbf{\textomicron}} +\newcommand{\boldtextpi}{\textbf{\textpi}} +\newcommand{\boldtextvarpi}{\textbf{\textpi}} +\newcommand{\boldtextrho}{\textbf{\textrho}} +\newcommand{\boldtextvarrho}{\textbf{\textrho}} +\newcommand{\boldtextsigma}{\textbf{\textsigma}} +\newcommand{\boldtexttau}{\textbf{\texttau}} +\newcommand{\boldtextupsilon}{\textbf{\textupsilon}} +\newcommand{\boldtextphi}{\textbf{\textphi}} +\newcommand{\boldtextvarphi}{\textbf{\textphi}} +\newcommand{\boldtextchi}{\textbf{\textchi}} +\newcommand{\boldtextpsi}{\textbf{\textpsi}} +\newcommand{\boldtextomega}{\textbf{\textomega}} +% Text bold roman capital greek letters +\newcommand{\boldtextAlpha}{\textbf{\textAlpha}} +\newcommand{\boldtextBeta}{\textbf{\textBeta}} +\newcommand{\boldtextGamma}{\textbf{\textGamma}} +\newcommand{\boldtextDelta}{\textbf{\textDelta}} +\newcommand{\boldtextEpsilon}{\textbf{\textEpsilon}} +\newcommand{\boldtextVarepsilon}{\textbf{\textEpsilon}} +\newcommand{\boldtextZeta}{\textbf{\textZeta}} +\newcommand{\boldtextEta}{\textbf{\textEta}} +\newcommand{\boldtextTheta}{\textbf{\textTheta}} +\newcommand{\boldtextVartheta}{\textbf{\textTheta}} +\newcommand{\boldtextIota}{\textbf{\textIota}} +\newcommand{\boldtextKappa}{\textbf{\textKappa}} +\newcommand{\boldtextLambda}{\textbf{\textLambda}} +\newcommand{\boldtextMu}{\textbf{\textMu}} +\newcommand{\boldtextNu}{\textbf{\textNu}} +\newcommand{\boldtextOmicron}{\textbf{\textOmicron}} +\newcommand{\boldtextPi}{\textbf{\textPi}} +\newcommand{\boldtextVarpi}{\textbf{\textPi}} +\newcommand{\boldtextRho}{\textbf{\textRho}} +\newcommand{\boldtextVarrho}{\textbf{\textRho}} +\newcommand{\boldtextSigma}{\textbf{\textSigma}} +\newcommand{\boldtextTau}{\textbf{\textTau}} +\newcommand{\boldtextUpsilon}{\textbf{\textUpsilon}} +\newcommand{\boldtextPhi}{\textbf{\textPhi}} +\newcommand{\boldtextVarphi}{\textbf{\textPhi}} +\newcommand{\boldtextChi}{\textbf{\textChi}} +\newcommand{\boldtextPsi}{\textbf{\textPsi}} +\newcommand{\boldtextOmega}{\textbf{\textOmega}} +% Math bold roman greek letters +\newcommand{\boldmathalpha}{\text{\boldtextalpha}} +\newcommand{\boldmathbeta}{\text{\boldtextbeta}} +\newcommand{\boldmathgamma}{\text{\boldtextgamma}} +\newcommand{\boldmathdelta}{\text{\boldtextdelta}} +\newcommand{\boldmathepsilon}{\text{\boldtextepsilon}} +\newcommand{\boldmathvarepsilon}{\text{\boldtextepsilon}} +\newcommand{\boldmathzeta}{\text{\boldtextzeta}} +\newcommand{\boldmatheta}{\text{\boldtexteta}} +\newcommand{\boldmaththeta}{\text{\boldtexttheta}} +\newcommand{\boldmathvartheta}{\text{\boldtexttheta}} +\newcommand{\boldmathiota}{\text{\boldtextiota}} +\newcommand{\boldmathkappa}{\text{\boldtextkappa}} +\newcommand{\boldmathlambda}{\text{\boldtextlambda}} +\newcommand{\boldmathmu}{\text{\boldtextmu}} +\newcommand{\boldmathnu}{\text{\boldtextnu}} +\newcommand{\boldmathomicron}{\text{\boldtextomicron}} +\newcommand{\boldmathpi}{\text{\boldtextpi}} +\newcommand{\boldmathvarpi}{\text{\boldtextpi}} +\newcommand{\boldmathrho}{\text{\boldtextrho}} +\newcommand{\boldmathvarrho}{\text{\boldtextrho}} +\newcommand{\boldmathsigma}{\text{\boldtextsigma}} +\newcommand{\boldmathtau}{\text{\boldtexttau}} +\newcommand{\boldmathupsilon}{\text{\boldtextupsilon}} +\newcommand{\boldmathphi}{\text{\boldtextphi}} +\newcommand{\boldmathvarphi}{\text{\boldtextphi}} +\newcommand{\boldmathchi}{\text{\boldtextchi}} +\newcommand{\boldmathpsi}{\text{\boldtextpsi}} +\newcommand{\boldmathomega}{\text{\boldtextomega}} +% Text bold roman capital greek letters +\newcommand{\boldmathAlpha}{\text{\boldtextAlpha}} +\newcommand{\boldmathBeta}{\text{\boldtextBeta}} +\newcommand{\boldmathGamma}{\text{\boldtextGamma}} +\newcommand{\boldmathDelta}{\text{\boldtextDelta}} +\newcommand{\boldmathEpsilon}{\text{\boldtextEpsilon}} +\newcommand{\boldmathVarepsilon}{\text{\boldtextEpsilon}} +\newcommand{\boldmathZeta}{\text{\boldtextZeta}} +\newcommand{\boldmathEta}{\text{\boldtextEta}} +\newcommand{\boldmathTheta}{\text{\boldtextTheta}} +\newcommand{\boldmathVartheta}{\text{\boldtextTheta}} +\newcommand{\boldmathIota}{\text{\boldtextIota}} +\newcommand{\boldmathKappa}{\text{\boldtextKappa}} +\newcommand{\boldmathLambda}{\text{\boldtextLambda}} +\newcommand{\boldmathMu}{\text{\boldtextMu}} +\newcommand{\boldmathNu}{\text{\boldtextNu}} +\newcommand{\boldmathOmicron}{\text{\boldtextOmicron}} +\newcommand{\boldmathPi}{\text{\boldtextPi}} +\newcommand{\boldmathVarpi}{\text{\boldtextPi}} +\newcommand{\boldmathRho}{\text{\boldtextRho}} +\newcommand{\boldmathVarrho}{\text{\boldtextRho}} +\newcommand{\boldmathSigma}{\text{\boldtextSigma}} +\newcommand{\boldmathTau}{\text{\boldtextTau}} +\newcommand{\boldmathUpsilon}{\text{\boldtextUpsilon}} +\newcommand{\boldmathPhi}{\text{\boldtextPhi}} +\newcommand{\boldmathVarphi}{\text{\boldtextPhi}} +\newcommand{\boldmathChi}{\text{\boldtextChi}} +\newcommand{\boldmathPsi}{\text{\boldtextPsi}} +\newcommand{\boldmathOmega}{\text{\boldtextOmega}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Commandes % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% basdepage +\newcommand\basdepage[1]{% + \begingroup + \renewcommand\thefootnote{}\footnote{#1}% + \addtocounter{footnote}{-1}% + \endgroup +} + +% blackboard +\newcommand{\ens}[1]{\mathbf{#1}} +\newcommand{\esp}[1]{\mathcal{#1}} +\newcommand{\fk}[1]{\mathfrak{#1}} +\newcommand{\mat}[1]{\mathcal{#1}} % equiv \esp +\newcommand{\N}{\ens{N}} +\newcommand{\Z}{\ens{Z}} +\newcommand{\D}{\ens{D}} +\newcommand{\Q}{\ens{Q}} +\newcommand{\R}{\ens{R}} +\newcommand{\C}{\ens{C}} +\newcommand{\K}{\ens{K}} +\newcommand{\etoile}{^{\displaystyle \ast}} +\newcommand{\adj}{^{\dagger}} +\newcommand{\transp}{^{\top}} +\newcommand{\std}{\text{°}} +\newcommand{\odeg}{\std} +\newcommand{\fonc}[2]{\left\langle {#1},\,{#2}\right\rangle} +\newcommand{\sfonc}[2]{\langle {#1},\,{#2}\rangle} + +% opérateurs +\DeclareMathOperator{\pgcd}{pgcd} +\DeclareMathOperator{\Vect}{Vect} +\DeclareMathOperator{\Ker}{Ker} +\DeclareMathOperator{\Image}{Im} +\DeclareMathOperator{\Sp}{Sp} +\DeclareMathOperator{\lap}{\laplacian} +\DeclareMathOperator{\vlap}{\vect{\nabla}^2} +\DeclareMathOperator{\ham}{\mathcal H} +\DeclareMathOperator{\lag}{\mathcal L} +\DeclareMathOperator{\mom}{\mathcal M} +\DeclareMathOperator{\act}{\mathcal S} +\DeclareMathOperator{\lang}{\mathscr L} +\DeclareMathOperator{\card}{card} +\DeclareMathOperator{\p}{\mathbb P} +\DeclareMathOperator{\arctandeux}{arctan2} +\DeclareMathOperator{\dal}{\square} +\DeclareMathOperator{\TF}{\@TF} +\DeclareMathOperator{\FT}{\@TF} +\DeclareMathOperator{\VP}{\@VP} + + +\newcommand{\vect}[1]{\@vect{#1}} +\newcommand{\rot}{\curl} + +\newcommand{\name}{\@name} +\newcommand{\unite}[1]{\mathrm{~#1}} +\newcommand{\unit}[1]{\unite{#1}} +\newcommand{\range}{\text{--}} +\newcommand{\e}{\mathrm{e}} +\newcommand{\im}{\mathrm{i}} +\newcommand{\jm}{\mathrm{j}} +\newcommand{\E}[1]{\times 10^{#1}} +\newcommand{\cqfd}{\hspace*{0pt} \hfill $\square$} +\newcommand{\NA}{\mathcal{N}_\mathrm{A}} +\newcommand{\kB}{k_\mathrm{B}} +\newcommand{\muB}{\mu_\mathrm{B}} +\newcommand{\G}{\@G} +\newcommand{\ul}{\underline} +\newcommand{\ol}{\overline} +\newcommand{\eqdef}{\@eqdef} +\newcommand{\cste}{\@cste} +\newcommand{\cst}{\mathrm{cst}} +\newcommand{\moy}[1]{\left\langle{#1}\right\rangle} +\newcommand{\smoy}[1]{\langle{#1}\rangle} +\newcommand{\mean}[1]{\smoy{#1}} +\newcommand{\smean}[1]{\smoy{#1}} +\newcommand{\ope}[1]{\hat{#1}} +\newcommand{\opevect}[1]{\hat{\vb{#1}}} +\newcommand{\sol}{\odot} +\newcommand{\sun}{\odot} +\newcommand{\ter}{\oplus} +\newcommand{\uma}{\mathrm{u}} +\DeclareDocumentCommand\atom{m g g g}{ + \IfNoValueTF{#2}{\ce{#1}}{ + \IfNoValueTF{#3}{\ce{^{\text{$#2$}}{#1}}}{ + \IfNoValueTF{#4}{\ce{^{\text{$#2$}}_{\text{$#3$}}{#1}}}{ + \ce{^{\text{$#2$}}_{\text{$#3$}}{#1}_{\text{$#4$}}} + } + } + } +} +\DeclareDocumentCommand\underbraceset{m g}{ + \IfNoValueTF{#2}{\underbrace{#1}}{ + \underset{#1}{\underbrace{#2}} + } +} +% vecteurs unitaires +\newcommand{\ux}{\@u{x}} +\newcommand{\uy}{\@u{y}} +\newcommand{\uz}{\@u{z}} +\newcommand{\ur}{\@u{r}} +\newcommand{\un}{\@u{n}} +\newcommand{\ut}{\@u{t}} +\newcommand{\urho}{\@u{\rho}} +\newcommand{\utheta}{\@u{\theta}} +\newcommand{\uvartheta}{\@u{\vartheta}} +\newcommand{\uphi}{\@u{\phi}} +\newcommand{\uvarphi}{\@u{\varphi}} + +\newcommand{\ex}{\@e{x}} +\newcommand{\ey}{\@e{y}} +\newcommand{\ez}{\@e{z}} +\newcommand{\er}{\@e{r}} +\newcommand{\en}{\@e{n}} +\newcommand{\et}{\@e{t}} +\newcommand{\erho}{\@e{\rho}} +\newcommand{\etheta}{\@e{\theta}} +\newcommand{\evartheta}{\@e{\vartheta}} +\newcommand{\ephi}{\@e{\phi}} +\newcommand{\evarphi}{\@e{\varphi}} + +\newcommand{\vux}{\@vu{x}} +\newcommand{\vuy}{\@vu{y}} +\newcommand{\vuz}{\@vu{z}} +\newcommand{\vur}{\@vu{r}} +\newcommand{\vun}{\@vu{n}} +\newcommand{\vut}{\@vu{t}} +\newcommand{\vurho}{\@vu{\rho}} +\newcommand{\vutheta}{\@vu{\theta}} +\newcommand{\vuvartheta}{\@vu{\vartheta}} +\newcommand{\vuphi}{\@vu{\phi}} +\newcommand{\vuvarphi}{\@vu{\varphi}} + +% d, déron, etc. +\newcommand{\ds}{\deh{s}} +\newcommand{\dx}{\deh{x}} +\newcommand{\dy}{\deh{y}} +\newcommand{\dz}{\deh{z}} +\newcommand{\dt}{\deh{t}} +\newcommand{\dr}{\deh{r}} +\newcommand{\drho}{\deh{\rho}} +\newcommand{\dtheta}{\deh{\theta}} +\newcommand{\dvartheta}{\deh{\vartheta}} +\newcommand{\dphi}{\deh{\phi}} +\newcommand{\dvarphi}{\deh{\varphi}} +\newcommand{\deron}{\partial} +\newcommand{\ddr}{\dd[3]{\vect r}} +\newcommand{\ddp}{\dd[3]{\vect p}} +\newcommand{\ddk}{\dd[3]{\vect k}} + +\newcommand{\deh}{\dd} + +\def\diffD{\mathrm{D}} +\DeclareDocumentCommand\Differential{ o g d() }{ % Differential 'd' + % o: optional n for nth differential + % g: optional argument for readability and to control spacing + % d: long-form as in d(cos x) + \IfNoValueTF{#2}{ + \IfNoValueTF{#3} + {\diffD\IfNoValueTF{#1}{}{^{#1}}} + {\mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + } + {\mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)}} + } +\DeclareDocumentCommand\Deh{}{\Differential} % Shorthand for \differential +\DeclareDocumentCommand\Variation{ o g d() }{ % Functional variation + % o: optional n for nth differential + % g: optional argument for readability and to control spacing + % d: long-form as in D(F(g)) + \IfNoValueTF{#2}{ + \IfNoValueTF{#3} + {\Delta \IfNoValueTF{#1}{}{^{#1}}} + {\mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + } + {\mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)}} + } +\DeclareDocumentCommand\Var{}{\Variation} % Shorthand for \differential + +\newcommand{\cfill}{\hspace*{0cm}\hfill\hspace*{0cm}} + +\newcommand{\ie}{\textit{i.e.}} +\newcommand{\etal}{\textit{et al}} +\newcommand{\eg}{\textit{e.g.}} + +\newenvironment{question}[1]{\textbf{Q\,#1.}}{} +\newenvironment{systeme}{\left\{\begin{array}{ll}}{\end{array}\right.} % Attention, l'accolade est bien fermée ici ! +\newenvironment{system}{\left\{\begin{array}{ll}}{\end{array}\right.} + +\newcommand{\setWarning}[1]{\def\varwarning{{#1}}} +\newcommand{\setTitle}[1]{\def\vartitle{{#1}}} +\newcommand{\setSubTitle}[1]{\def\varsubtitle{{#1}}} +\newcommand{\setAuthor}[1]{\def\varauthor{{#1}}} +\newcommand{\setInstitution}[1]{\def\varinstitution{{#1}}} +\DeclareDocumentCommand\setInstitution{mo}{\def\varinstitution{{#1}}\IfValueT{#2}{\def\varinstitutionbis{{#2}}}} +\newcommand{\setShortInst}[1]{\def\varshortinst{{#1}}} +\newcommand{\setDate}[1]{\def\vardate{{#1}}} + +\newcommand{\getWarning}{\varwarning} +\newcommand{\getTitle}{\vartitle} +\newcommand{\getSubTitle}{\varsubtitle} +\newcommand{\getAuthor}{\varauthor} +\newcommand{\getInstitution}{\varinstitution} +\newcommand{\getInstitutionbis}{\varinstitutionbis} +\newcommand{\getShortInst}{\varshortinst} +\newcommand{\getDate}{\vardate} + +\newcommand{\setPage}[1]{\setcounter{page}{{#1}}} +\newcommand{\setPart}[1]{\setcounter{part}{{#1}}} +\newcommand{\setSection}[1]{\setcounter{section}{{#1}}} +\newcommand{\setSubSection}[1]{\setcounter{subsection}{{#1}}} +\newcommand{\setSubSubSection}[1]{\setcounter{subsubsection}{{#1}}} +\newcommand{\setFigure}[1]{\setcounter{figure}{{#1}}} + + +\newcommand{\shorttitle}{ + \maketitle +} + +\DeclareDocumentCommand\longtitle{s o m}{ + \thispagestyle{empty} + \IfBooleanTF{#1}{ + \vspace*{5cm} + } + { + \includegraphics[height=2cm]{{#3}} + \vspace*{3cm} + } + \begin{spacing}{1.7} + \begin{center} + {\huge\vartitle} + + \vspace*{1cm} + {\Large\varsubtitle} + + \vspace*{1cm} + {\large\varauthor\\\varinstitution\\\varinstitutionbis} + + \vspace*{1cm} + {\large\vardate} + \end{center} + \end{spacing} + \IfValueT{#2}{ + \vfill + \begin{center} + {#2} + \end{center} + \vfill + } + \newpage + \tableofcontents + \newpage +} + +% ! AASTeX MACROS +% These Macros are taken from the AAS TeX macro package version 5.2 +% and are compatible with the macros in the A&A document class +% version 7.0 +% Include this file in your LaTeX source only if you are not using +% the AAS TeX macro package or the A&A document class and need to +% resolve the macro definitions in the TeX/BibTeX entries returned by +% the ADS abstract service. +% +% If you plan not to use this file to resolve the journal macros +% rather than the whole AAS TeX macro package, you should save the +% file as ``aas_macros.sty'' and then include it in your LaTeX paper +% by using a construct such as: +% \documentstyle[11pt,aas_macros]{article} +% +% For more information on the AASTeX and A&A packages, please see: +% http://journals.aas.org/authors/aastex.html +% ftp://ftp.edpsciences.org/pub/aa/readme.html +% For more information about ADS abstract server, please see: +% http://adsabs.harvard.edu/ads_abstracts.html +% + +% Abbreviations for journals. The object here is to provide authors +% with convenient shorthands for the most "popular" (often-cited) +% journals; the author can use these markup tags without being concerned +% about the exact form of the journal abbreviation, or its formatting. +% It is up to the keeper of the macros to make sure the macros expand +% to the proper text. If macro package writers agree to all use the +% same TeX command name, authors only have to remember one thing, and +% the style file will take care of editorial preferences. This also +% applies when a single journal decides to revamp its abbreviating +% scheme, as happened with the ApJ (Abt 1991). + +\let\jnl@style=\rm +\def\ref@jnl#1{{\jnl@style#1}} + +\def\aj{\ref@jnl{AJ}} % Astronomical Journal +\def\actaa{\ref@jnl{Acta Astron.}} % Acta Astronomica +\def\araa{\ref@jnl{ARA\&A}} % Annual Review of Astron and Astrophys +\def\apj{\ref@jnl{ApJ}} % Astrophysical Journal +\def\apjl{\ref@jnl{ApJ}} % Astrophysical Journal, Letters +\def\apjs{\ref@jnl{ApJS}} % Astrophysical Journal, Supplement +\def\ao{\ref@jnl{Appl.~Opt.}} % Applied Optics +\def\apss{\ref@jnl{Ap\&SS}} % Astrophysics and Space Science +\def\aap{\ref@jnl{A\&A}} % Astronomy and Astrophysics +\def\aapr{\ref@jnl{A\&A~Rev.}} % Astronomy and Astrophysics Reviews +\def\aaps{\ref@jnl{A\&AS}} % Astronomy and Astrophysics, Supplement +\def\azh{\ref@jnl{AZh}} % Astronomicheskii Zhurnal +\def\baas{\ref@jnl{BAAS}} % Bulletin of the AAS +\def\bac{\ref@jnl{Bull. astr. Inst. Czechosl.}} + % Bulletin of the Astronomical Institutes of Czechoslovakia +\def\caa{\ref@jnl{Chinese Astron. Astrophys.}} + % Chinese Astronomy and Astrophysics +\def\cjaa{\ref@jnl{Chinese J. Astron. Astrophys.}} + % Chinese Journal of Astronomy and Astrophysics +\def\icarus{\ref@jnl{Icarus}} % Icarus +\def\jcap{\ref@jnl{J. Cosmology Astropart. Phys.}} + % Journal of Cosmology and Astroparticle Physics +\def\jrasc{\ref@jnl{JRASC}} % Journal of the RAS of Canada +\def\memras{\ref@jnl{MmRAS}} % Memoirs of the RAS +\def\mnras{\ref@jnl{MNRAS}} % Monthly Notices of the RAS +\def\na{\ref@jnl{New A}} % New Astronomy +\def\nar{\ref@jnl{New A Rev.}} % New Astronomy Review +\def\pra{\ref@jnl{Phys.~Rev.~A}} % Physical Review A: General Physics +\def\prb{\ref@jnl{Phys.~Rev.~B}} % Physical Review B: Solid State +\def\prc{\ref@jnl{Phys.~Rev.~C}} % Physical Review C +\def\prd{\ref@jnl{Phys.~Rev.~D}} % Physical Review D +\def\pre{\ref@jnl{Phys.~Rev.~E}} % Physical Review E +\def\prl{\ref@jnl{Phys.~Rev.~Lett.}} % Physical Review Letters +\def\pasa{\ref@jnl{PASA}} % Publications of the Astron. Soc. of Australia +\def\pasp{\ref@jnl{PASP}} % Publications of the ASP +\def\pasj{\ref@jnl{PASJ}} % Publications of the ASJ +\def\rmxaa{\ref@jnl{Rev. Mexicana Astron. Astrofis.}}% + % Revista Mexicana de Astronomia y Astrofisica +\def\qjras{\ref@jnl{QJRAS}} % Quarterly Journal of the RAS +\def\skytel{\ref@jnl{S\&T}} % Sky and Telescope +\def\solphys{\ref@jnl{Sol.~Phys.}} % Solar Physics +\def\sovast{\ref@jnl{Soviet~Ast.}} % Soviet Astronomy +\def\ssr{\ref@jnl{Space~Sci.~Rev.}} % Space Science Reviews +\def\zap{\ref@jnl{ZAp}} % Zeitschrift fuer Astrophysik +\def\nat{\ref@jnl{Nature}} % Nature +\def\iaucirc{\ref@jnl{IAU~Circ.}} % IAU Cirulars +\def\aplett{\ref@jnl{Astrophys.~Lett.}} % Astrophysics Letters +\def\apspr{\ref@jnl{Astrophys.~Space~Phys.~Res.}} + % Astrophysics Space Physics Research +\def\bain{\ref@jnl{Bull.~Astron.~Inst.~Netherlands}} + % Bulletin Astronomical Institute of the Netherlands +\def\fcp{\ref@jnl{Fund.~Cosmic~Phys.}} % Fundamental Cosmic Physics +\def\gca{\ref@jnl{Geochim.~Cosmochim.~Acta}} % Geochimica Cosmochimica Acta +\def\grl{\ref@jnl{Geophys.~Res.~Lett.}} % Geophysics Research Letters +\def\jcp{\ref@jnl{J.~Chem.~Phys.}} % Journal of Chemical Physics +\def\jgr{\ref@jnl{J.~Geophys.~Res.}} % Journal of Geophysics Research +\def\jqsrt{\ref@jnl{J.~Quant.~Spec.~Radiat.~Transf.}} + % Journal of Quantitiative Spectroscopy and Radiative Transfer +\def\memsai{\ref@jnl{Mem.~Soc.~Astron.~Italiana}} + % Mem. Societa Astronomica Italiana +\def\nphysa{\ref@jnl{Nucl.~Phys.~A}} % Nuclear Physics A +\def\physrep{\ref@jnl{Phys.~Rep.}} % Physics Reports +\def\physscr{\ref@jnl{Phys.~Scr}} % Physica Scripta +\def\planss{\ref@jnl{Planet.~Space~Sci.}} % Planetary Space Science +\def\procspie{\ref@jnl{Proc.~SPIE}} % Proceedings of the SPIE + +\let\astap=\aap +\let\apjlett=\apjl +\let\apjsupp=\apjs +\let\applopt=\ao + + +\endinput diff --git a/old/yii-v2.sty b/old/yii-v2.sty new file mode 100644 index 0000000..95ebfd5 --- /dev/null +++ b/old/yii-v2.sty @@ -0,0 +1,711 @@ +% YII package, for physics, astrophysics and data science +% Yaël Moussouni (M2 ADS, ObAS) +% Version 2 - 2024-09-01 + +\ProvidesPackage{yii-v2}[2024-09-01] + +% Required Packages + +\RequirePackage[utf8]{inputenc} % input encoding +\RequirePackage[T1]{fontenc} % font encoding +\RequirePackage{lmodern} % Latin Modern font +\RequirePackage{slantsc} % small caps +\RequirePackage{fix-cm} % Computer Modern fix (for slantsc) +\RequirePackage{textgreek} % Greek upright letters +\RequirePackage{natbib} % bibliography management +\RequirePackage[greek, french, english]{babel} % language +\RequirePackage{amsmath} % AMS maths package +\RequirePackage{amssymb} % AMS symbols package +\RequirePackage{amsthm} % AMS theorems package +\RequirePackage{mathtools} % Additions to AMS packages +\RequirePackage{graphicx} % including images +\RequirePackage{xparse} % creating functions +\RequirePackage{afterpage} % hook after page +\RequirePackage{geometry} % page geometry +\RequirePackage{fancyhdr} % header and footer +\RequirePackage{xcolor} % color +\RequirePackage{pagecolor} % page color +\RequirePackage{setspace} % spacing between lines +\RequirePackage{paracol} % multiple columns +\RequirePackage{lscape} % landscape page +\RequirePackage{array} % array tables +\RequirePackage{multirow} % multiple rows in table +\RequirePackage{caption} % figure management +\RequirePackage{subcaption} % subfigure management +\RequirePackage{appendix} % creating appendix +\RequirePackage{listings} % including code +\RequirePackage{tikz} % Tikz drawings +\RequirePackage{tikz-3dplot} % 3D tikz drawings +\RequirePackage{tikzducks} % including ducks with tikz +\RequirePackage[RPvoltages, european, straight voltages, cuteinductors]{circuitikz} % electrical circuits with tikz +\RequirePackage{datetime} % date and time of compilation +\RequirePackage{lipsum} % Lorem Ipsum +\RequirePackage{physics} % physics +\RequirePackage{esint} % integral symbol +\RequirePackage{orcidlink} % ORCID +\RequirePackage{hyperref} % links, references, etc. - must be the last package + +% Definitions + +\definecolor{yii-black}{HTML}{121212} +\definecolor{yii-white}{HTML}{DDDDDD} +\definecolor{yii-blue}{HTML}{06518E} +\definecolor{yii-lblue}{HTML}{009EDB} +\definecolor{yii-red}{HTML}{ED1C24} +\definecolor{yii-yellow}{HTML}{E8BD0F} +\definecolor{yii-green}{HTML}{3B795E} +\definecolor{yii-violet}{HTML}{C95BCF} + +\colorlet{yii-purple}{yii-violet} +\colorlet{yii-orange}{yii-yellow!60!yii-red} + +\def\yii@warning{} +\def\yii@title{} +\def\yii@subtitle{} +\def\yii@author{} +\def\yii@institution{} +\def\yii@division{} +\def\yii@date{} + +\def\yii@headtopleft{\yii@title} +\def\yii@headbottomleft{\yii@subtitle} +\def\yii@headtopright{\yii@author} +\def\yii@headbottomright{\yii@institution} + +\def\yii@FT{\mathrm{FT}} +\def\yii@name{\text} +\def\yii@eqdef{\equiv} +\def\yii@vect{\vb} +\def\yii@epsilon{\epsilon} + +\newif\ifFR +\newif\ifpaper + +% Options + +\DeclareOption{light}{ + \colorlet{fg}{black} + \colorlet{bg}{white} + + \colorlet{cold-fg}{yii-blue} + \colorlet{cold-bg}{yii-lblue} + \colorlet{hot-fg}{yii-red} + \colorlet{hot-bg}{yii-yellow} +} + +\DeclareOption{dark}{ + \colorlet{fg}{yii-white} + \colorlet{bg}{yii-black} + + \colorlet{cold-fg}{yii-lblue} + \colorlet{cold-bg}{yii-blue} + \colorlet{hot-fg}{yii-yellow} + \colorlet{hot-bg}{yii-red} +} + +\DeclareOption{EN}{ + \FRfalse + \AddToHook{begindocument}{\selectlanguage{english}} + \def\yii@FT{\mathrm{FT}} + \def\yii@name{\text} + \def\yii@eqdef{\equiv} + +} + +\DeclareOption{FR}{ + \FRtrue + \AddToHook{begindocument}{\selectlanguage{french}} + \def\yii@FT{\mathrm{TF}} + \def\yii@name{\textsc} + \def\yii@eqdef{\overset{\text{def}}{=}} + \captionsetup{labelsep=endash} +} + +\DeclareOption{onecolumn}{ + \geometry{top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm} +} + +\DeclareOption{twocolumn}{ + \geometry{top=3cm, bottom=3cm, left=2cm, right=2cm, headheight=1cm, headsep=0.5cm} +} + +\DeclareOption{a4paper}{ + \papertrue + \AddToHook{shipout/lastpage}{\label{LastPage}} + \pagestyle{fancy} + \fancyhead[L]{{\footnotesize\yii@headtopleft\\\yii@headbottomleft}} + \fancyhead[R]{{\footnotesize\yii@headtopright\\\yii@headbottomright}} + \fancyfoot[C]{\thepage\ / \pageref*{LastPage}} + \AddToHook{shipout/background}{\put(1.3cm, -0.3\paperheight){\rotatebox[origin=c]{90}{{\large \normalfont \textbf{\textcolor{red}{\yii@warning}}}}}} + + \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrule}{}} % Correct foot in plain style + + \title{\yii@title\\\yii@subtitle} + \author{\yii@author\\\yii@institution\\\yii@division} + \date{\yii@date} + + \hypersetup{unicode, colorlinks=true, linkcolor=cold-fg, citecolor=cold-fg, filecolor=cold-fg, urlcolor=cold-fg} +} + + + +\DeclareOption{beamer}{ + \paperfalse + \geometry{papersize={15cm, 10cm}, top=0cm, bottom=0cm, left=1cm, right=1cm, headheight=0cm, headsep=0cm} + \setbeamersize{text margin left=2cm,text margin right=2cm} + + \setbeamercolor{structure}{fg=yii-blue} + \setbeamertemplate{page number in head/foot}[framenumber] + \setbeamertemplate{caption}[numbered] + \beamertemplatenavigationsymbolsempty + + \title[\yii@headtopleft]{\yii@title} + \subtitle[\yii@headbottomleft]{\yii@subtitle} + \author[\yii@headtopright]{\yii@author} + \institute[\yii@headbottomright]{\yii@institution\\\yii@division} + + \date{\yii@date} +} + +\DeclareOption{part}{ + \numberwithin{section}{part} + \renewcommand{\numberline}[1]{#1~} +} + +\DeclareOption{noindent}{ + \setlength\parindent{0cm} % No paragraph indent +} + +\DeclareOption{onlyvarepsilon}{ + \def\yii@epsilon{\varepsilon} +} + +\DeclareOption{bib-siam}{ + \citestyle{abbrv} + \bibliographystyle{siam} +} + +\DeclareOption{bib-yii}{ + \citestyle{abbrv} + \bibliographystyle{yii} +} + +\DeclareOption{bib-aas}{ + \citestyle{aasjournal} + \bibliographystyle{aasjournal} +} + +\DeclareOption{bib-aanda}{ + \citestyle{aa} + \bibliographystyle{aa} +} + +\ExecuteOptions{EN, light, onecolumn} + +\ProcessOptions\relax + +\ifpaper + \ifFR + \renewcommand{\labelitemi}{---} + \renewcommand{\labelitemii}{---} + \renewcommand{\labelitemiii}{---} + \renewcommand{\labelitemiv}{---} + %\newtheorem*{proof}{Démonstration}{\itshape}{\rmfamily} + \newtheorem{theorem}{Théorème}[section]{\bfseries}{\itshape} + \newtheorem{corollary}[theorem]{Corollaire}{\bfseries}{\itshape} + \newtheorem{definition}[theorem]{Définition}{\bfseries}{\rmfamily} + \newtheorem{example}[theorem]{Exemple}{\itshape}{\rmfamily} + \newtheorem{exercise}[theorem]{Exercice}{\itshape}{\rmfamily} + \newtheorem{lemma}[theorem]{Lemme}{\bfseries}{\itshape} + \newtheorem{note}[theorem]{Note}{\itshape}{\rmfamily} + \newtheorem{problem}[theorem]{Problème}{\itshape}{\rmfamily} + \newtheorem{proposition}[theorem]{Proposition}{\bfseries}{\itshape} + \newtheorem{question}[theorem]{Question}{\itshape}{\rmfamily} + \newtheorem{remark}[theorem]{Remarque}{\itshape}{\rmfamily} + \newtheorem{solution}[theorem]{Solution}{\itshape}{\rmfamily} + \else + %\newtheorem*{proof}{Proof}{\itshape}{\rmfamily} + \newtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape} + \newtheorem{corollary}[theorem]{Corollary}{\bfseries}{\itshape} + \newtheorem{definition}[theorem]{Definition}{\bfseries}{\rmfamily} + \newtheorem{example}[theorem]{Example}{\itshape}{\rmfamily} + \newtheorem{exercise}[theorem]{Exercise}{\itshape}{\rmfamily} + \newtheorem{lemma}[theorem]{Lemma}{\bfseries}{\itshape} + \newtheorem{note}[theorem]{Note}{\itshape}{\rmfamily} + \newtheorem{problem}[theorem]{Problem}{\itshape}{\rmfamily} + \newtheorem{proposition}[theorem]{Proposition}{\bfseries}{\itshape} + \newtheorem{question}[theorem]{Question}{\itshape}{\rmfamily} + \newtheorem{remark}[theorem]{Remark}{\itshape}{\rmfamily} + \newtheorem{solution}[theorem]{Solution}{\itshape}{\rmfamily} + \fi +\fi + +\pagecolor{bg} +\color{fg} + +\setlength{\columnsep}{1cm} +\renewcommand{\oiint}{\varoiint} % integral symbol + +\rmfamily % Font replacement +\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{bx}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{m}{scit}{<->ssub*cmr/m/scit}{} + +\lstset{frame=single, numbers=left, showstringspaces=false, basicstyle=\footnotesize\ttfamily, breaklines=true, commentstyle=\color{yii-blue}, keywordstyle=\color{yii-yellow}, stringstyle=\color{yii-green}, extendedchars=true, literate={à}{{a}}1 {â}{{a}}1 {é}{{e}}1 {è}{{e}}1 {ê}{{e}}1 {ë}{{e}}1 {ï}{{i}}1 {û}{u}1 {ù}{u}1 {î}{i}1 {À}{{A}}1 {ô}{o}1 {ç}{c}1 {Â}{{A}}1 {É}{{E}}1 {È}{{E}}1 {Ê}{{E}}1 {Ë}{{E}}1 {Ï}{{I}}1 {Û}{U}1 {Ù}{U}1 {Î}{I}1 {Ô}{O}1 {Ç}{C}1 {°}{d}1} + +\numberwithin{equation}{section} % Number equation with section number + +% Tikz + +\usetikzlibrary{babel} +\usetikzlibrary{decorations.pathmorphing, decorations.markings} +\tikzset{gluon/.style={thick, decorate, decoration={coil, segment length=4pt}}} +\tikzset{boson/.style={thick, decorate, decoration={snake, segment length=8pt}}} +\tikzset{higgs/.style={thick, dashed}} +\tikzset{fermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex}}}}} +\tikzset{antifermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex reversed}}}}} + +% Greek letters + +\DeclareSymbolFont{yiilm}{T1}{lmr}{m}{n} + +\DeclareMathSymbol{\Alpha}{7}{yiilm}{"41} +\DeclareMathSymbol{\Beta}{7}{yiilm}{"42} +\DeclareMathSymbol{\Epsilon}{7}{yiilm}{"45} +\DeclareMathSymbol{\Zeta}{7}{yiilm}{"5A} +\DeclareMathSymbol{\Eta}{7}{yiilm}{"48} +\DeclareMathSymbol{\Iota}{7}{yiilm}{"49} +\DeclareMathSymbol{\Kappa}{7}{yiilm}{"4B} +\DeclareMathSymbol{\Mu}{7}{yiilm}{"4D} +\DeclareMathSymbol{\Nu}{7}{yiilm}{"4E} +\DeclareMathSymbol{\Omicron}{7}{yiilm}{"4F} +\DeclareMathSymbol{\Rho}{7}{yiilm}{"50} +\DeclareMathSymbol{\Tau}{7}{yiilm}{"54} +\DeclareMathSymbol{\Chi}{7}{yiilm}{"58} + +\let\epsilon\yii@epsilon + +\let\Varepsilon\Epsilon +\let\Vartheta\Theta +\let\Varpi\Pi +\let\Varrho\Rho +\let\Varphi\Phi + +\let\textvarepsilon\straightepsilon +\let\textvarrho\textrho +\let\textvarphi\textphi +\let\textphi\straightphi +\let\textvartheta\texttheta +\let\texttheta\straighttheta +\let\textVarepsilon\textEpsilon +\let\textVartheta\textTheta +\let\textVarrho\textRho +\let\textVarphi\textPhi + +\newcommand{\omicron}{\mathit{o}} +\renewcommand{\textomicron}{o} +\renewcommand{\textOmicron}{O} + +\newcommand{\mathalpha}{\text{\textalpha}} +\newcommand{\mathbeta}{\text{\textbeta}} +\newcommand{\mathgamma}{\text{\textgamma}} +\newcommand{\mathdelta}{\text{\textdelta}} +\newcommand{\mathepsilon}{\text{\textepsilon}} +\newcommand{\mathvarepsilon}{\text{\textvarepsilon}} +\newcommand{\mathzeta}{\text{\textzeta}} +\newcommand{\matheta}{\text{\texteta}} +\newcommand{\maththeta}{\text{\texttheta}} +\newcommand{\mathvartheta}{\text{\textvartheta}} +\newcommand{\mathiota}{\text{\textiota}} +\newcommand{\mathkappa}{\text{\textkappa}} +\newcommand{\mathlambda}{\text{\textlambda}} +\newcommand{\mathmu}{\text{\textmu}} +\newcommand{\mathnu}{\text{\textnu}} +\newcommand{\mathxi}{\text{\textxi}} +\newcommand{\mathomicron}{\text{\textomicron}} +\newcommand{\mathpi}{\text{\textpi}} +\newcommand{\mathrho}{\text{\textrho}} +\newcommand{\mathvarrho}{\text{\textvarrho}} +\newcommand{\mathsigma}{\text{\textsigma}} +\newcommand{\mathtau}{\text{\texttau}} +\newcommand{\mathupsilon}{\text{\textupsilon}} +\newcommand{\mathphi}{\text{\textphi}} +\newcommand{\mathvarphi}{\text{\textvarphi}} +\newcommand{\mathchi}{\text{\textchi}} +\newcommand{\mathpsi}{\text{\textpsi}} +\newcommand{\mathomega}{\text{\textomega}} +\newcommand{\mathAlpha}{\text{\textAlpha}} +\newcommand{\mathBeta}{\text{\textBeta}} +\newcommand{\mathGamma}{\text{\textGamma}} +\newcommand{\mathDelta}{\text{\textDelta}} +\newcommand{\mathEpsilon}{\text{\textEpsilon}} +\newcommand{\mathVarepsilon}{\text{\textVarepsilon}} +\newcommand{\mathZeta}{\text{\textZeta}} +\newcommand{\mathEta}{\text{\textEta}} +\newcommand{\mathTheta}{\text{\textTheta}} +\newcommand{\mathVartheta}{\text{\textVartheta}} +\newcommand{\mathIota}{\text{\textIota}} +\newcommand{\mathKappa}{\text{\textKappa}} +\newcommand{\mathLambda}{\text{\textLambda}} +\newcommand{\mathMu}{\text{\textMu}} +\newcommand{\mathNu}{\text{\textNu}} +\newcommand{\mathXi}{\text{\textXi}} +\newcommand{\mathOmicron}{\text{\textOmicron}} +\newcommand{\mathPi}{\text{\textPi}} +\newcommand{\mathRho}{\text{\textRho}} +\newcommand{\mathVarrho}{\text{\textVarrho}} +\newcommand{\mathSigma}{\text{\textSigma}} +\newcommand{\mathTau}{\text{\textTau}} +\newcommand{\mathUpsilon}{\text{\textUpsilon}} +\newcommand{\mathPhi}{\text{\textPhi}} +\newcommand{\mathVarphi}{\text{\textVarphi}} +\newcommand{\mathChi}{\text{\textChi}} +\newcommand{\mathPsi}{\text{\textPsi}} +\newcommand{\mathOmega}{\text{\textOmega}} + +\let\micro\mathmu +% Commands +%% vectors +\let\vect\vb +\let\rot\curl + +%% set and spaces +\newcommand{\set}[1]{\mathbf{#1}} % set (in bold) +\newcommand{\spc}[1]{\mathcal{#1}} % space (in cal) +\newcommand{\N}{\set{N}} +\newcommand{\Z}{\set{Z}} +\newcommand{\D}{\set{D}} +\newcommand{\Q}{\set{Q}} +\newcommand{\R}{\set{R}} +\newcommand{\C}{\set{C}} +\newcommand{\K}{\set{K}} + +\newcommand{\intqty}[1]{\left[\!\left[{#1}\right]\!\right]} + +%% quantities +\newcommand{\lag}{\mathcal{L}} +\newcommand{\ham}{\mathcal{H}} +\newcommand{\mom}{\mathcal{M}} + +%% symbols +\newcommand{\odeg}{\text{°}} +\newcommand{\omin}{\text{'}} +\newcommand{\osec}{\text{''}} +\let\transp\top +\let\Sun\odot +\let\Earth\oplus + +%% Operators +\DeclareMathOperator{\Sp}{Sp} +\DeclareMathOperator{\Image}{Im} +\DeclareMathOperator{\Ker}{Ker} +\DeclareMathOperator{\diag}{diag} +\DeclareMathOperator{\arctantwo}{arctan2} +\DeclareMathOperator{\argmin}{\arg\min} +\DeclareMathOperator{\argmax}{\arg\max} +\let\FT\yii@FT +\let\lap\laplacian % Physics alias + +%% Probability +\DeclareMathOperator{\p}{\mathbb{P}} +\DeclareMathOperator{\pO}{\mathbb{O}} +\DeclareMathOperator{\pF}{\mathbb{F}} +\DeclareMathOperator{\pdf}{\mathbb{F'}} +\DeclareMathOperator{\pE}{\mathbb{E}} +\DeclareMathOperator{\pV}{\mathbb{V}} +\DeclareMathOperator{\normal}{\mathcal{N}} +\DeclareMathOperator{\binomial}{\mathcal{B}} +\DeclareMathOperator{\poisson}{\mathcal{P}} + +%% Constants +\newcommand{\im}{\mathrm{i}} +\newcommand{\jm}{\mathrm{j}} +\newcommand{\e}{\mathrm{e}} +\newcommand{\NA}{\mathcal{N}_\mathrm{A}} +\newcommand{\kB}{k_\mathrm{B}} +\newcommand{\muB}{\mu_\mathrm{B}} +\newcommand{\cst}{\mathrm{cst}} +\newcommand{\uma}{\mathrm{u}} + +%% Unitary vectors +\newcommand{\ux}{\vu u_x} +\newcommand{\uy}{\vu u_y} +\newcommand{\uz}{\vu u_z} +\newcommand{\ur}{\vu u_r} +\newcommand{\un}{\vu u_n} +\newcommand{\ut}{\vu u_t} +\newcommand{\urho}{\vu u_\rho} +\newcommand{\uvarrho}{\vu u_\varrho} +\newcommand{\utheta}{\vu u_\theta} +\newcommand{\uvartheta}{\vu u_\vartheta} +\newcommand{\uphi}{\vu u_\phi} +\newcommand{\uvarphi}{\vu u_\varphi} + +\newcommand{\ex}{\vu e_x} +\newcommand{\ey}{\vu e_y} +\newcommand{\ez}{\vu e_z} +\newcommand{\er}{\vu e_r} +\newcommand{\en}{\vu e_n} +\newcommand{\et}{\vu e_t} +\newcommand{\erho}{\vu e_\rho} +\newcommand{\evarrho}{\vu e_\varrho} +\newcommand{\etheta}{\vu e_\theta} +\newcommand{\evartheta}{\vu e_\vartheta} +\newcommand{\ephi}{\vu e_\phi} +\newcommand{\evarphi}{\vu e_\varphi} + +\newcommand{\vux}{\vu x} +\newcommand{\vuy}{\vu y} +\newcommand{\vuz}{\vu z} +\newcommand{\vur}{\vu r} +\newcommand{\vun}{\vu n} +\newcommand{\vut}{\vu t} +\newcommand{\vurho}{\vu{\boldsymbol{\rho}}} +\newcommand{\vuvarrho}{\vu{\boldsymbol{\varrho}}} +\newcommand{\vutheta}{\vu{\boldsymbol{\theta}}} +\newcommand{\vuvartheta}{\vu{\boldsymbol{\vartheta}}} +\newcommand{\vuphi}{\vu{\boldsymbol{\phi}}} +\newcommand{\vuvarphi}{\vu{\boldsymbol{\varphi}}} + +%% Differential elements +\newcommand{\ds}{\dd{s}} +\newcommand{\dx}{\dd{x}} +\newcommand{\dy}{\dd{y}} +\newcommand{\dz}{\dd{z}} +\newcommand{\dt}{\dd{t}} +\newcommand{\dr}{\dd{r}} +\newcommand{\drho}{\dd{\rho}} +\newcommand{\dvarrho}{\dd{\varrho}} +\newcommand{\dtheta}{\dd{\theta}} +\newcommand{\dvartheta}{\dd{\vartheta}} +\newcommand{\dphi}{\dd{\phi}} +\newcommand{\dvarphi}{\dd{\varphi}} +\newcommand{\deron}{\partial} +\newcommand{\ddr}{\dd[3]{\vect r}} +\newcommand{\ddp}{\dd[3]{\vect p}} +\newcommand{\ddk}{\dd[3]{\vect k}} + +%% Physics complement +\def\diffD{\mathrm{D}} +\DeclareDocumentCommand\Differential{ o g d() }{ + \IfNoValueTF{#2}{ + \IfNoValueTF{#3}{ + \diffD\IfNoValueTF{#1}{}{^{#1}} + }{ + \mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + }{ + \mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)} + } + } +\DeclareDocumentCommand\DD{}{\Differential} +\DeclareDocumentCommand\Variation{ o g d() }{ + \IfNoValueTF{#2}{ + \IfNoValueTF{#3}{ + \Delta \IfNoValueTF{#1}{}{^{#1}} + }{ + \mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + }{ + \mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)} + } + } +\DeclareDocumentCommand\Var{}{\Variation} + +%% other commands +\newcommand{\eg}{e.g.} +\newcommand{\etal}{et al} +\newcommand{\ie}{i.e.} +\newcommand{\unit}[1]{\mathrm{~#1}} +\newcommand{\axunit}[1]{\mathrm{~[#1]}} +\newcommand{\colunit}[1]{\mathrm{[#1]}} +\newcommand{\angstrom}{\text{\r A}} +\newcommand{\range}{\text{--}} +\newcommand{\E}[1]{\times 10^{#1}} +\newcommand{\simpropto}{\underset{\sim}{\propto}} +\newcommand{\cfill}[1]{\hspace*{0cm}\hfill{#1}\hfill\hspace*{0cm}} +\DeclareDocumentCommand\mean{s m}{ + \IfBooleanTF{#1} + { % \mean*{} + \langle {#2} \rangle + }{ % \mean{} + \left\langle {#2} \right\rangle + } +} +\newcommand{\ope}[1]{\hat{#1}} +\newcommand{\opevect}[1]{\hat{\vb{#1}}} +\DeclareDocumentCommand\atom{m g g g o}{ + \IfNoValueTF{#5}{ + \IfNoValueTF{#2}{ + \mathrm{#1} + }{ + \IfNoValueTF{#3}{ + \prescript{#2}{}{\mathrm{#1}} + }{ + \IfNoValueTF{#4}{ + \prescript{#2}{#3}{\mathrm{#1}} + }{ + \prescript{#2}{#3}{\mathrm{#1}}_{#4} + }}}}{ + \IfNoValueTF{#2}{ + \mathrm{#1}\text{\textsc{#5}} + }{ + \IfNoValueTF{#3}{ + \prescript{#2}{}{\mathrm{#1}\text{\textsc{#5}}} + }{ + \IfNoValueTF{#4}{ + \prescript{#2}{#3}{\mathrm{#1}\text{\textsc{#5}}} + }{ + \prescript{#2}{#3}{\mathrm{#1}\text{\textsc{#5}}}_{#4} + }}}} +} +\DeclareDocumentCommand\underbraceset{m g}{ + \IfNoValueTF{#2}{ + \underbrace{#1} + }{ + \underset{#1}{\underbrace{#2}} + } +} +\DeclareDocumentCommand\overbraceset{m g}{ + \IfNoValueTF{#2}{ + \overbrace{#1} + }{ + \overset{#1}{\overbrace{#2}} + } +} +\newcommand{\metal}[1]{[\atom{#1}]} +\let\eqdef\yii@eqdef +\let\ol\overline +\let\ul\underline +\let\name\yii@name +% Note: "cases" should now be used instead of "system" + +% Information variable access and edit + +\newcommand{\setWarning}[1]{\def\yii@warning{{#1}}} +\newcommand{\setTitle}[1]{\def\yii@title{{#1}}} +\newcommand{\setSubtitle}[1]{\def\yii@subtitle{{#1}}} +\newcommand{\setAuthor}[1]{\def\yii@author{{#1}}} +\newcommand{\setInstitution}[1]{\def\yii@institution{{#1}}} +\newcommand{\setDivision}[1]{\def\yii@division{{#1}}} +\newcommand{\setDate}[1]{\def\yii@date{{#1}}} + +\newcommand{\getWarning}{\yii@warning} +\newcommand{\getTitle}{\yii@title} +\newcommand{\getSubtitle}{\yii@subtitle} +\newcommand{\getAuthor}{\yii@author} +\newcommand{\getInstitution}{\yii@institution} +\newcommand{\getDivision}{\yii@division} +\newcommand{\getDate}{\yii@date} + +\newcommand{\setHeadTopLeft}[1]{\def\yii@headtopleft{{#1}}} +\newcommand{\setHeadBottomLeft}[1]{\def\yii@headbottomleft{{#1}}} +\newcommand{\setHeadTopRight}[1]{\def\yii@headtopright{{#1}}} +\newcommand{\setHeadBottomRight}[1]{\def\yii@headbottomright{{#1}}} + +%% Title page +\let\shorttitle\maketitle + +\DeclareDocumentCommand\longtitle{s o m}{ + \thispagestyle{empty} + \IfBooleanTF{#1}{ + \vspace*{5cm} + }{ + \noindent\includegraphics[height=2cm]{#3} + \vspace*{3cm} + } + \begin{spacing}{1.7} + \begin{center} + {\huge\noindent\yii@title} + + \vspace*{1cm} + + {\LARGE\noindent\yii@subtitle} + \vspace*{1cm} + + {\large\noindent\yii@author} + + {\large\noindent\yii@institution} + + {\large\noindent\yii@division} + + \vspace*{1cm} + {\large\noindent\yii@date} + \end{center} + \end{spacing} + \IfValueT{#2}{ + \vfill + \begin{center} + \noindent{#2} + \end{center} + \vfill + } + \newpage + \tableofcontents + \newpage +} + + +% Bibliography + +\newcommand*\aap{A\&A} +\let\astap=\aap +\newcommand*\aapr{A\&A~Rev.} +\newcommand*\aaps{A\&AS} +\newcommand*\actaa{Acta Astron.} +\newcommand*\aj{AJ} +\newcommand*\ao{Appl.~Opt.} +\let\applopt\ao +\newcommand*\apj{ApJ} +\newcommand*\apjl{ApJ} +\let\apjlett\apjl +\newcommand*\apjs{ApJS} +\let\apjsupp\apjs +\newcommand*\aplett{Astrophys.~Lett.} +\newcommand*\apspr{Astrophys.~Space~Phys.~Res.} +\newcommand*\apss{Ap\&SS} +\newcommand*\araa{ARA\&A} +\newcommand*\azh{AZh} +\newcommand*\baas{BAAS} +\newcommand*\bac{Bull. astr. Inst. Czechosl.} +\newcommand*\bain{Bull.~Astron.~Inst.~Netherlands} +\newcommand*\caa{Chinese Astron. Astrophys.} +\newcommand*\cjaa{Chinese J. Astron. Astrophys.} +\newcommand*\fcp{Fund.~Cosmic~Phys.} +\newcommand*\gca{Geochim.~Cosmochim.~Acta} +\newcommand*\grl{Geophys.~Res.~Lett.} +\newcommand*\iaucirc{IAU~Circ.} +\newcommand*\icarus{Icarus} +\newcommand*\jcap{J. Cosmology Astropart. Phys.} +\newcommand*\jcp{J.~Chem.~Phys.} +\newcommand*\jgr{J.~Geophys.~Res.} +\newcommand*\jqsrt{J.~Quant.~Spectr.~Rad.~Transf.} +\newcommand*\jrasc{JRASC} +\newcommand*\memras{MmRAS} +\newcommand*\memsai{Mem.~Soc.~Astron.~Italiana} +\newcommand*\mnras{MNRAS} +\newcommand*\na{New A} +\newcommand*\nar{New A Rev.} +\newcommand*\nat{Nature} +\newcommand*\nphysa{Nucl.~Phys.~A} +\newcommand*\pasa{PASA} +\newcommand*\pasj{PASJ} +\newcommand*\pasp{PASP} +\newcommand*\physrep{Phys.~Rep.} +\newcommand*\physscr{Phys.~Scr} +\newcommand*\planss{Planet.~Space~Sci.} +\newcommand*\pra{Phys.~Rev.~A} +\newcommand*\prb{Phys.~Rev.~B} +\newcommand*\prc{Phys.~Rev.~C} +\newcommand*\prd{Phys.~Rev.~D} +\newcommand*\pre{Phys.~Rev.~E} +\newcommand*\prl{Phys.~Rev.~Lett.} +\newcommand*\procspie{Proc.~SPIE} +\newcommand*\qjras{QJRAS} +\newcommand*\rmxaa{Rev. Mexicana Astron. Astrofis.} +\newcommand*\skytel{S\&T} +\newcommand*\solphys{Sol.~Phys.} +\newcommand*\sovast{Soviet~Ast.} +\newcommand*\ssr{Space~Sci.~Rev.} +\newcommand*\zap{ZAp} + + +\endinput diff --git a/src/article_commands.tex b/src/article_commands.tex new file mode 100644 index 0000000..c45020c --- /dev/null +++ b/src/article_commands.tex @@ -0,0 +1,108 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% article_commands.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\newcommand{\setWarning}[1]{\def\yii@warning{{#1}}} +\newcommand{\setTitle}[1]{\def\yii@title{{#1}}} +\newcommand{\setSubtitle}[1]{\def\yii@subtitle{{#1}}} +\newcommand{\setAuthor}[1]{\def\yii@author{{#1}}} +\newcommand{\setInstitution}[1]{\def\yii@institution{{#1}}} +\newcommand{\setDivision}[1]{\def\yii@division{{#1}}} +\newcommand{\setDate}[1]{\def\yii@date{{#1}}} + +\newcommand{\getWarning}{\yii@warning} +\newcommand{\getTitle}{\yii@title} +\newcommand{\getSubtitle}{\yii@subtitle} +\newcommand{\getAuthor}{\yii@author} +\newcommand{\getInstitution}{\yii@institution} +\newcommand{\getDivision}{\yii@division} +\newcommand{\getDate}{\yii@date} + +\newcommand{\setHeadTopLeft}[1]{\def\yii@headtopleft{{#1}}} +\newcommand{\setHeadBottomLeft}[1]{\def\yii@headbottomleft{{#1}}} +\newcommand{\setHeadTopRight}[1]{\def\yii@headtopright{{#1}}} +\newcommand{\setHeadBottomRight}[1]{\def\yii@headbottomright{{#1}}} + +% Title page +\DeclareDocumentCommand\shorttitle{}{ + \iftwocolumn + \begin{strip} + \maketitle + \end{strip} + \else + \maketitle + \fi +} + +\DeclareDocumentCommand\longtitle{s o m}{ + \iftwocolumn + \onecolumn + \fi + \thispagestyle{empty} + \IfBooleanTF{#1}{ + \vspace*{5cm} + }{ + \noindent\includegraphics[height=2cm]{#3} + \vspace*{3cm} + } + \begin{spacing}{1.7} + \begin{center} + {\huge\noindent\yii@title} + + \vspace*{1cm} + + {\LARGE\noindent\yii@subtitle} + \vspace*{1cm} + + {\large\noindent\yii@author} + + {\large\noindent\yii@institution} + + {\large\noindent\yii@division} + + \vspace*{1cm} + {\large\noindent\yii@date} + \end{center} + \end{spacing} + \IfValueT{#2}{ + \vfill + \begin{center} + \noindent{#2} + \end{center} + \vfill + } + \newpage + \tableofcontents + \newpage + \iftwocolumn + \twocolumn + \fi +} + diff --git a/src/article_options.tex b/src/article_options.tex new file mode 100644 index 0000000..f3c2830 --- /dev/null +++ b/src/article_options.tex @@ -0,0 +1,92 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% article_options.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +% Options + +\DeclareOption{white}{ + \darkfalse + \colorlet{fg}{black} + \colorlet{bg}{white} +} + +\DeclareOption{light-grey}{ + \darkfalse + \colorlet{fg}{bright-black} + \colorlet{bg}{bright-white} +} + +\DeclareOption{light}{ + \darkfalse + \colorlet{fg}{colour-black} + \colorlet{bg}{colour-white} +} + +\DeclareOption{dark}{ + \darktrue + \colorlet{bg}{colour-black} + \colorlet{fg}{colour-white} +} + +\DeclareOption{grey}{ + \darktrue + \colorlet{bg}{bright-black} + \colorlet{fg}{bright-white} +} + +\DeclareOption{black}{ + \darktrue + \colorlet{bg}{black} + \colorlet{fg}{white} +} + +\DeclareOption{colour}{ + \brightfalse +} + +\DeclareOption{bright}{ + \brighttrue +} + +\DeclareOption{onecolumn}{ + \geometry{top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm} + \twocolumnfalse +} + +\DeclareOption{twocolumn}{ + \geometry{top=3cm, bottom=3cm, left=2cm, right=2cm, headheight=1cm, headsep=0.5cm} + \twocolumntrue +} + +\ExecuteOptions{onecolumn, white, colour} + +\ProcessOptions\relax + + diff --git a/src/article_settings.tex b/src/article_settings.tex new file mode 100644 index 0000000..f597dd8 --- /dev/null +++ b/src/article_settings.tex @@ -0,0 +1,78 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% article_settings.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\pagecolor{bg} +\color{fg} + +\AddToHook{shipout/lastpage}{\label{LastPage}} +\pagestyle{fancy} +\fancyhead[L]{{\footnotesize\yii@headtopleft\\\yii@headbottomleft}} +\fancyhead[R]{{\footnotesize\yii@headtopright\\\yii@headbottomright}} +\fancyfoot[C]{\thepage\ / \pageref*{LastPage}} +\AddToHook{shipout/background}{\put(1.3cm, -0.3\paperheight){\rotatebox[origin=c]{90}{{\large \normalfont \textbf{\textcolor{bright-red}{\yii@warning}}}}}} + +\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrule}{}} % Correct foot in plain style + +\title{\yii@title\\\yii@subtitle} +\author{\yii@author\\\yii@institution\\\yii@division} +\date{\yii@date} + + +\ifbright + \ifdark + \colorlet{cold-fg}{bright-light-blue} + \colorlet{cold-bg}{bright-blue} + \colorlet{warm-fg}{bright-yellow} + \colorlet{warm-bg}{bright-red} + \else + \colorlet{cold-fg}{bright-blue} + \colorlet{cold-bg}{bright-light-blue} + \colorlet{warm-fg}{bright-red} + \colorlet{warm-bg}{bright-yellow} + \fi +\else + \ifdark + \colorlet{cold-fg}{colour-light-blue} + \colorlet{cold-bg}{colour-blue} + \colorlet{warm-fg}{colour-yellow} + \colorlet{warm-bg}{colour-red} + \else + \colorlet{cold-fg}{colour-blue} + \colorlet{cold-bg}{colour-light-blue} + \colorlet{warm-fg}{colour-red} + \colorlet{warm-bg}{colour-yellow} + \fi +\fi + +\hypersetup{unicode, colorlinks=true,linkcolor=cold-fg, citecolor=cold-fg, filecolor=cold-fg, urlcolor=cold-fg} +\setlength{\columnsep}{1cm} + + diff --git a/src/beamer_commands.tex b/src/beamer_commands.tex new file mode 100644 index 0000000..2386b0a --- /dev/null +++ b/src/beamer_commands.tex @@ -0,0 +1,52 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% beamer_commands.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\newcommand{\setWarning}[1]{\def\yii@warning{{#1}}} +\newcommand{\setTitle}[1]{\def\yii@title{{#1}}} +\newcommand{\setSubtitle}[1]{\def\yii@subtitle{{#1}}} +\newcommand{\setAuthor}[1]{\def\yii@author{{#1}}} +\newcommand{\setInstitution}[1]{\def\yii@institution{{#1}}} +\newcommand{\setDivision}[1]{\def\yii@division{{#1}}} +\newcommand{\setDate}[1]{\def\yii@date{{#1}}} + +\newcommand{\getWarning}{\yii@warning} +\newcommand{\getTitle}{\yii@title} +\newcommand{\getSubtitle}{\yii@subtitle} +\newcommand{\getAuthor}{\yii@author} +\newcommand{\getInstitution}{\yii@institution} +\newcommand{\getDivision}{\yii@division} +\newcommand{\getDate}{\yii@date} + +\newcommand{\setHeadTopLeft}[1]{\def\yii@headtopleft{{#1}}} +\newcommand{\setHeadBottomLeft}[1]{\def\yii@headbottomleft{{#1}}} +\newcommand{\setHeadTopRight}[1]{\def\yii@headtopright{{#1}}} +\newcommand{\setHeadBottomRight}[1]{\def\yii@headbottomright{{#1}}} + diff --git a/src/beamer_options.tex b/src/beamer_options.tex new file mode 100644 index 0000000..2941b61 --- /dev/null +++ b/src/beamer_options.tex @@ -0,0 +1,261 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% beamer_options.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +% Options + +\DeclareOption{white}{ + \darkfalse + \colorlet{fg}{black} + \colorlet{bg}{white} + \colorlet{slide-fg}{black} + \colorlet{slide-bg}{white} +} + +\DeclareOption{light-grey}{ + \darkfalse + \colorlet{fg}{bright-black} + \colorlet{bg}{bright-white} + \colorlet{slide-fg}{bright-black} + \colorlet{slide-bg}{bright-white} +} + +\DeclareOption{light}{ + \darkfalse + \colorlet{fg}{colour-black} + \colorlet{bg}{colour-white} + \colorlet{slide-fg}{colour-black} + \colorlet{slide-bg}{colour-white} +} + +\DeclareOption{dark}{ + \darktrue + \colorlet{bg}{colour-black} + \colorlet{fg}{colour-white} + \colorlet{slide-bg}{colour-black} + \colorlet{slide-fg}{colour-white} +} + +\DeclareOption{grey}{ + \darktrue + \colorlet{bg}{bright-black} + \colorlet{fg}{bright-white} + \colorlet{slide-bg}{bright-black} + \colorlet{slide-fg}{bright-white} +} + +\DeclareOption{black}{ + \darktrue + \colorlet{bg}{black} + \colorlet{fg}{white} + \colorlet{slide-bg}{black} + \colorlet{slide-fg}{white} +} + +\DeclareOption{colour}{ + \brightfalse +} + +\DeclareOption{bright}{ + \brighttrue +} + +\DeclareOption{serif}{ + \seriftrue +} + +\DeclareOption{sans}{ + \seriffalse +} + +\DeclareOption{berlin}{ + \berlintrue + \ilmenaufalse +} + +\DeclareOption{ilmenau}{ + \berlinfalse + \ilmenautrue +} + +\DeclareOption{cold}{ + \coldtrue + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + +\DeclareOption{warm}{ + \coldfalse + \warmtrue + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + +\DeclareOption{blue}{ + \coldfalse + \warmfalse + \bluetrue + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + +\DeclareOption{light-blue}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluetrue + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + + +\DeclareOption{red}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redtrue + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + + +\DeclareOption{yellow}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowtrue + \greenfalse + \violetfalse + \cyanfalse + \orangefalse +} + + +\DeclareOption{green}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greentrue + \violetfalse + \cyanfalse + \orangefalse +} + + +\DeclareOption{violet}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violettrue + \cyanfalse + \orangefalse +} + + +\DeclareOption{cyan}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyantrue + \orangefalse +} + + +\DeclareOption{orange}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violetfalse + \cyanfalse + \orangetrue +} + +\DeclareOption{purple}{ + \coldfalse + \warmfalse + \bluefalse + \lightbluefalse + \redfalse + \yellowfalse + \greenfalse + \violettrue + \cyanfalse + \orangefalse +} + +\ExecuteOptions{onecolumn, white, colour, default, berlin, cold} + +\ProcessOptions\relax + + diff --git a/src/beamer_settings.tex b/src/beamer_settings.tex new file mode 100644 index 0000000..e26247b --- /dev/null +++ b/src/beamer_settings.tex @@ -0,0 +1,206 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% beamer_settings.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\AddToHook{shipout/lastpage}{\label{LastPage}} +%\AddToHook{shipout/background}{\put(1.3cm, -0.3\paperheight){\rotatebox[origin=c]{90}{{\large \normalfont \textbf{\textcolor{bright-red}{\yii@warning}}}}}} + +\title[\yii@headtopleft]{\yii@title} +\subtitle[\yii@headbottomleft]{\yii@subtitle} +\author[\yii@headtopright]{\yii@author} +\institute[\yii@headbottomright]{\yii@institution\\\yii@division} + +\date{{\footnotesize\yii@date}} + +\ifbright + \ifdark + \colorlet{cold-fg}{bright-light-blue} + \colorlet{cold-bg}{bright-blue} + \colorlet{warm-fg}{bright-yellow} + \colorlet{warm-bg}{bright-red} + \else + \colorlet{cold-fg}{bright-blue} + \colorlet{cold-bg}{bright-light-blue} + \colorlet{warm-fg}{bright-red} + \colorlet{warm-bg}{bright-yellow} + \fi +\else + \ifdark + \colorlet{cold-fg}{colour-light-blue} + \colorlet{cold-bg}{colour-blue} + \colorlet{warm-fg}{colour-yellow} + \colorlet{warm-bg}{colour-red} + \else + \colorlet{cold-fg}{colour-blue} + \colorlet{cold-bg}{colour-light-blue} + \colorlet{warm-fg}{colour-red} + \colorlet{warm-bg}{colour-yellow} + \fi +\fi + +\hypersetup{unicode, colorlinks=false, citecolor=cold-fg, filecolor=cold-fg, urlcolor=cold-fg} + +% Beamer look + +%% Presentation theme + +\ifberlin + \usetheme{Berlin} +\fi +\ifilmenau + \usetheme{Ilmenau} +\fi + +%% Font theme + +\ifserif + \usefonttheme{serif} +\else + \usefonttheme{default} + \let\mathnormal\mathsf + \let\mathrm\mathsf + \let\textsc\text +\fi + +%% Colour theme +\usecolortheme[rgb={0.5,0.5,0.5}]{structure} +\colorlet{slide-aa}{slide-bg} + +\ifcold + \setbeamercolor{structure}{fg=cold-fg} +\fi +\ifwarm + \setbeamercolor{structure}{fg=warm-fg} +\fi +\ifblue + \ifbright + \setbeamercolor{structure}{fg=bright-blue} + \else + \setbeamercolor{structure}{fg=colour-blue} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi +\iflightblue + \ifbright + \setbeamercolor{structure}{fg=bright-light-blue} + \else + \setbeamercolor{structure}{fg=colour-light-blue} + \fi + \ifdark + \else + \colorlet{slide-aa}{slide-fg} + \fi +\fi +\ifred + \ifbright + \setbeamercolor{structure}{fg=bright-red} + \else + \setbeamercolor{structure}{fg=colour-red} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi +\ifyellow + \ifbright + \setbeamercolor{structure}{fg=bright-yellow} + \else + \setbeamercolor{structure}{fg=colour-yellow} + \fi + \ifdark + \else + \fi +\fi +\ifgreen + \ifbright + \setbeamercolor{structure}{fg=bright-green} + \else + \setbeamercolor{structure}{fg=colour-green} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi +\ifviolet + \ifbright + \setbeamercolor{structure}{fg=bright-violet} + \else + \setbeamercolor{structure}{fg=colour-violet} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi +\ifcyan + \ifbright + \setbeamercolor{structure}{fg=bright-cyan} + \else + \setbeamercolor{structure}{fg=colour-cyan} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi +\iforange + \ifbright + \setbeamercolor{structure}{fg=bright-orange} + \else + \setbeamercolor{structure}{fg=colour-orange} + \fi + \ifdark + \colorlet{slide-aa}{slide-fg} + \else + \fi +\fi + +\setbeamercolor{normal text}{fg=slide-fg, bg=slide-bg} +\setbeamercolor{structure}{bg=black} + +\setbeamercolor{palette primary}{fg=slide-aa, bg=structure.fg} +\setbeamercolor{palette secondary}{fg=slide-aa, bg=structure.fg!80!structure.bg} +\setbeamercolor{palette tertiary}{fg=slide-aa, bg=structure.fg!60!structure.bg} +\setbeamercolor{palette quaternary}{fg=slide-aa, bg=structure.fg!40!structure.bg} +\setbeamercolor{alerted text}{fg=colour-orange} +\setbeamercolor{item projected}{fg=slide-aa} +\setbeamercolor{section in toc}{fg=normal text.fg} + +% Tweaks + +\setbeamertemplate{page number in head/foot}[framenumber] +\setbeamertemplate{caption}[numbered] +\beamertemplatenavigationsymbolsempty + diff --git a/src/common_palette.tex b/src/common_palette.tex new file mode 100644 index 0000000..cef0d5b --- /dev/null +++ b/src/common_palette.tex @@ -0,0 +1,100 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% common_palette.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +% Default palette + +\definecolor{colour-blue}{HTML}{113847} +\definecolor{colour-light-blue}{HTML}{88AAC6} +\definecolor{colour-red}{HTML}{4D251D} +\definecolor{colour-yellow}{HTML}{BD9A5A} +\definecolor{colour-green}{HTML}{3F4738} +\definecolor{colour-violet}{HTML}{5F2C51} +\definecolor{colour-cyan}{HTML}{1D627E} +\definecolor{colour-orange}{HTML}{9B4D40} + +\colorlet{colour-purple}{colour-violet} + +% Bright palette + +\definecolor{bright-white}{HTML}{DDDDDD} +\definecolor{bright-black}{HTML}{121212} + +\definecolor{bright-blue}{HTML}{06518E} +\definecolor{bright-light-blue}{HTML}{009EDB} +\definecolor{bright-red}{HTML}{ED1C24} +\definecolor{bright-yellow}{HTML}{E8BD0F} +\definecolor{bright-green}{HTML}{3B795E} +\definecolor{bright-violet}{HTML}{C95BCF} +\definecolor{bright-cyan}{HTML}{216576} +\definecolor{bright-light-cyan}{HTML}{1E8C9D} +\definecolor{bright-orange}{HTML}{EB6D1A} + +\colorlet{bright-purple}{bright-violet} + +% Blue palette + +\definecolor{blues-1}{HTML}{D6E3EC} +\definecolor{blues-2}{HTML}{88AAC6} % light blue +\definecolor{blues-3}{HTML}{4A5B65} +\definecolor{blues-4}{HTML}{21475A} +\definecolor{blues-5}{HTML}{113847} % blue + +% Grey palette + +\definecolor{greys-1}{HTML}{CED8DB} % white +\definecolor{greys-2}{HTML}{A4B0B4} +\definecolor{greys-3}{HTML}{7A888C} % grey +\definecolor{greys-4}{HTML}{596569} +\definecolor{greys-5}{HTML}{171F22} % black + +\colorlet{colour-white}{greys-1} +\colorlet{colour-grey}{greys-3} +\colorlet{colour-black}{greys-5} + +% bluegreen palette + +\definecolor{bluegreen-1}{HTML}{C2D0DB} +\definecolor{bluegreen-2}{HTML}{6C8B90} +\definecolor{bluegreen-3}{HTML}{4D6C5B} +\definecolor{bluegreen-4}{HTML}{3A5662} +\definecolor{bluegreen-5}{HTML}{31504B} + +% tree palette + +\definecolor{tree-1}{HTML}{CFDED7} +\definecolor{tree-2}{HTML}{806655} % brown +\definecolor{tree-3}{HTML}{3F4738} % green +\definecolor{tree-4}{HTML}{113847} % blue +\definecolor{tree-5}{HTML}{122921} % dark green + +\colorlet{colour-brown}{tree-2} +\colorlet{colour-dark-green}{tree-5} + diff --git a/src/package_bibliography.tex b/src/package_bibliography.tex new file mode 100644 index 0000000..abdcca5 --- /dev/null +++ b/src/package_bibliography.tex @@ -0,0 +1,92 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_bibliography.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\newcommand*\aap{A\&A} +\let\astap=\aap +\newcommand*\aapr{A\&A~Rev.} +\newcommand*\aaps{A\&AS} +\newcommand*\actaa{Acta Astron.} +\newcommand*\aj{AJ} +\newcommand*\ao{Appl.~Opt.} +\let\applopt\ao +\newcommand*\apj{ApJ} +\newcommand*\apjl{ApJ} +\let\apjlett\apjl +\newcommand*\apjs{ApJS} +\let\apjsupp\apjs +\newcommand*\aplett{Astrophys.~Lett.} +\newcommand*\apspr{Astrophys.~Space~Phys.~Res.} +\newcommand*\apss{Ap\&SS} +\newcommand*\araa{ARA\&A} +\newcommand*\azh{AZh} +\newcommand*\baas{BAAS} +\newcommand*\bac{Bull. astr. Inst. Czechosl.} +\newcommand*\bain{Bull.~Astron.~Inst.~Netherlands} +\newcommand*\caa{Chinese Astron. Astrophys.} +\newcommand*\cjaa{Chinese J. Astron. Astrophys.} +\newcommand*\fcp{Fund.~Cosmic~Phys.} +\newcommand*\gca{Geochim.~Cosmochim.~Acta} +\newcommand*\grl{Geophys.~Res.~Lett.} +\newcommand*\iaucirc{IAU~Circ.} +\newcommand*\icarus{Icarus} +\newcommand*\jcap{J. Cosmology Astropart. Phys.} +\newcommand*\jcp{J.~Chem.~Phys.} +\newcommand*\jgr{J.~Geophys.~Res.} +\newcommand*\jqsrt{J.~Quant.~Spectr.~Rad.~Transf.} +\newcommand*\jrasc{JRASC} +\newcommand*\memras{MmRAS} +\newcommand*\memsai{Mem.~Soc.~Astron.~Italiana} +\newcommand*\mnras{MNRAS} +\newcommand*\na{New A} +\newcommand*\nar{New A Rev.} +\newcommand*\nat{Nature} +\newcommand*\nphysa{Nucl.~Phys.~A} +\newcommand*\pasa{PASA} +\newcommand*\pasj{PASJ} +\newcommand*\pasp{PASP} +\newcommand*\physrep{Phys.~Rep.} +\newcommand*\physscr{Phys.~Scr} +\newcommand*\planss{Planet.~Space~Sci.} +\newcommand*\pra{Phys.~Rev.~A} +\newcommand*\prb{Phys.~Rev.~B} +\newcommand*\prc{Phys.~Rev.~C} +\newcommand*\prd{Phys.~Rev.~D} +\newcommand*\pre{Phys.~Rev.~E} +\newcommand*\prl{Phys.~Rev.~Lett.} +\newcommand*\procspie{Proc.~SPIE} +\newcommand*\qjras{QJRAS} +\newcommand*\rmxaa{Rev. Mexicana Astron. Astrofis.} +\newcommand*\skytel{S\&T} +\newcommand*\solphys{Sol.~Phys.} +\newcommand*\sovast{Soviet~Ast.} +\newcommand*\ssr{Space~Sci.~Rev.} +\newcommand*\zap{ZAp} + diff --git a/src/package_commands.tex b/src/package_commands.tex new file mode 100644 index 0000000..dd9eb6a --- /dev/null +++ b/src/package_commands.tex @@ -0,0 +1,244 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_commands.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +% Vectors +\let\vect\vb +\let\rot\curl + +% Set and spaces +\newcommand{\set}[1]{\mathbf{#1}} % set (in bold) +\newcommand{\spc}[1]{\mathcal{#1}} % space (in cal) +\newcommand{\N}{\set{N}} +\newcommand{\Z}{\set{Z}} +\newcommand{\D}{\set{D}} +\newcommand{\Q}{\set{Q}} +\newcommand{\R}{\set{R}} +\newcommand{\C}{\set{C}} +\newcommand{\K}{\set{K}} + +\newcommand{\intqty}[1]{\left[\!\left[{#1}\right]\!\right]} + +% Quantities +\newcommand{\lag}{\mathcal{L}} +\newcommand{\ham}{\mathcal{H}} +\newcommand{\mom}{\mathcal{M}} + +% Symbols +\newcommand{\odeg}{\text{°}} +\newcommand{\omin}{\text{'}} +\newcommand{\osec}{\text{''}} +\let\transp\top +\let\Sun\odot +\let\sun\odot +\let\Earth\oplus +\let\earth\oplus + +% Operators +\DeclareMathOperator{\Sp}{Sp} +\DeclareMathOperator{\Image}{Im} +\DeclareMathOperator{\Ker}{Ker} +\DeclareMathOperator{\diag}{diag} +\DeclareMathOperator{\arctantwo}{arctan2} +\DeclareMathOperator{\argmin}{\arg\min} +\DeclareMathOperator{\argmax}{\arg\max} +\let\FT\yii@FT +\let\lap\laplacian % Physics alias + +% Probability +\DeclareMathOperator{\p}{\mathbb{P}} +\DeclareMathOperator{\pO}{\mathbb{O}} +\DeclareMathOperator{\pF}{\mathbb{F}} +\DeclareMathOperator{\pdf}{\mathbb{F'}} +\DeclareMathOperator{\pE}{\mathbb{E}} +\DeclareMathOperator{\pV}{\mathbb{V}} +\DeclareMathOperator{\normal}{\mathcal{N}} +\DeclareMathOperator{\binomial}{\mathcal{B}} +\DeclareMathOperator{\poisson}{\mathcal{P}} + +% Constants +\newcommand{\im}{\mathrm{i}} +\newcommand{\jm}{\mathrm{j}} +\newcommand{\e}{\mathrm{e}} +\newcommand{\NA}{\mathcal{N}_\mathrm{A}} +\newcommand{\kB}{k_\mathrm{B}} +\newcommand{\muB}{\mu_\mathrm{B}} +\newcommand{\cst}{\mathrm{cst}} +\newcommand{\uma}{\mathrm{u}} + +% Unitary vectors +\newcommand{\ux}{\vu u_x} +\newcommand{\uy}{\vu u_y} +\newcommand{\uz}{\vu u_z} +\newcommand{\ur}{\vu u_r} +\newcommand{\un}{\vu u_n} +\newcommand{\ut}{\vu u_t} +\newcommand{\urho}{\vu u_\rho} +\newcommand{\uvarrho}{\vu u_\varrho} +\newcommand{\utheta}{\vu u_\theta} +\newcommand{\uvartheta}{\vu u_\vartheta} +\newcommand{\uphi}{\vu u_\phi} +\newcommand{\uvarphi}{\vu u_\varphi} + +\newcommand{\ex}{\vu e_x} +\newcommand{\ey}{\vu e_y} +\newcommand{\ez}{\vu e_z} +\newcommand{\er}{\vu e_r} +\newcommand{\en}{\vu e_n} +\newcommand{\et}{\vu e_t} +\newcommand{\erho}{\vu e_\rho} +\newcommand{\evarrho}{\vu e_\varrho} +\newcommand{\etheta}{\vu e_\theta} +\newcommand{\evartheta}{\vu e_\vartheta} +\newcommand{\ephi}{\vu e_\phi} +\newcommand{\evarphi}{\vu e_\varphi} + +\newcommand{\vux}{\vu x} +\newcommand{\vuy}{\vu y} +\newcommand{\vuz}{\vu z} +\newcommand{\vur}{\vu r} +\newcommand{\vun}{\vu n} +\newcommand{\vut}{\vu t} +\newcommand{\vurho}{\vu{\boldsymbol{\rho}}} +\newcommand{\vuvarrho}{\vu{\boldsymbol{\varrho}}} +\newcommand{\vutheta}{\vu{\boldsymbol{\theta}}} +\newcommand{\vuvartheta}{\vu{\boldsymbol{\vartheta}}} +\newcommand{\vuphi}{\vu{\boldsymbol{\phi}}} +\newcommand{\vuvarphi}{\vu{\boldsymbol{\varphi}}} + +% Differential elements +\newcommand{\ds}{\dd{s}} +\newcommand{\dx}{\dd{x}} +\newcommand{\dy}{\dd{y}} +\newcommand{\dz}{\dd{z}} +\newcommand{\dt}{\dd{t}} +\newcommand{\dr}{\dd{r}} +\newcommand{\drho}{\dd{\rho}} +\newcommand{\dvarrho}{\dd{\varrho}} +\newcommand{\dtheta}{\dd{\theta}} +\newcommand{\dvartheta}{\dd{\vartheta}} +\newcommand{\dphi}{\dd{\phi}} +\newcommand{\dvarphi}{\dd{\varphi}} +\newcommand{\deron}{\partial} +\newcommand{\ddr}{\dd[3]{\vect r}} +\newcommand{\ddp}{\dd[3]{\vect p}} +\newcommand{\ddk}{\dd[3]{\vect k}} + +% Physics complement +\def\diffD{\mathrm{D}} +\DeclareDocumentCommand\Differential{ o g d() }{ + \IfNoValueTF{#2}{ + \IfNoValueTF{#3}{ + \diffD\IfNoValueTF{#1}{}{^{#1}} + }{ + \mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + }{ + \mathinner{\diffD\IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)} + } + } +\DeclareDocumentCommand\DD{}{\Differential} +\DeclareDocumentCommand\Variation{ o g d() }{ + \IfNoValueTF{#2}{ + \IfNoValueTF{#3}{ + \Delta \IfNoValueTF{#1}{}{^{#1}} + }{ + \mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}\argopen(#3\argclose)}} + }{ + \mathinner{\Delta \IfNoValueTF{#1}{}{^{#1}}#2} \IfNoValueTF{#3}{}{(#3)} + } + } +\DeclareDocumentCommand\Var{}{\Variation} + +% other commands +\newcommand{\eg}{e.g.} +\newcommand{\etal}{et al} +\newcommand{\ie}{i.e.} +\newcommand{\unit}[1]{\mathrm{~#1}} +\newcommand{\axunit}[1]{\mathrm{~[#1]}} +\newcommand{\colunit}[1]{\mathrm{[#1]}} +\newcommand{\angstrom}{\text{\r A}} +\newcommand{\range}{\text{--}} +\newcommand{\E}[1]{\times 10^{#1}} +\newcommand{\simpropto}{\underset{\sim}{\propto}} +\newcommand{\cfill}[1]{\hspace*{0cm}\hfill{#1}\hfill\hspace*{0cm}} +\DeclareDocumentCommand\mean{s m}{ + \IfBooleanTF{#1} + { % \mean*{} + \langle {#2} \rangle + }{ % \mean{} + \left\langle {#2} \right\rangle + } +} +\newcommand{\ope}[1]{\hat{#1}} +\newcommand{\opevect}[1]{\hat{\vb{#1}}} +\DeclareDocumentCommand\atom{m g g g o}{ + \IfNoValueTF{#5}{ + \IfNoValueTF{#2}{ + \mathrm{#1} + }{ + \IfNoValueTF{#3}{ + \prescript{#2}{}{\mathrm{#1}} + }{ + \IfNoValueTF{#4}{ + \prescript{#2}{#3}{\mathrm{#1}} + }{ + \prescript{#2}{#3}{\mathrm{#1}}_{#4} + }}}}{ + \IfNoValueTF{#2}{ + \mathrm{#1}\text{\textsc{#5}} + }{ + \IfNoValueTF{#3}{ + \prescript{#2}{}{\mathrm{#1}\text{\textsc{#5}}} + }{ + \IfNoValueTF{#4}{ + \prescript{#2}{#3}{\mathrm{#1}\text{\textsc{#5}}} + }{ + \prescript{#2}{#3}{\mathrm{#1}\text{\textsc{#5}}}_{#4} + }}}} +} +\DeclareDocumentCommand\underbraceset{m g}{ + \IfNoValueTF{#2}{ + \underbrace{#1} + }{ + \underset{#1}{\underbrace{#2}} + } +} +\DeclareDocumentCommand\overbraceset{m g}{ + \IfNoValueTF{#2}{ + \overbrace{#1} + }{ + \overset{#1}{\overbrace{#2}} + } +} +\newcommand{\metal}[1]{[\atom{#1}]} +\let\eqdef\yii@eqdef +\let\ol\overline +\let\ul\underline +\let\name\yii@name diff --git a/src/package_corrections.tex b/src/package_corrections.tex new file mode 100644 index 0000000..bedce70 --- /dev/null +++ b/src/package_corrections.tex @@ -0,0 +1,41 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_corrections.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + + + +\renewcommand{\oiint}{\varoiint} % integral symbol + +\rmfamily % Font replacement +\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{bx}{sc}{<->ssub*cmr/bx/sc}{} +\DeclareFontShape{T1}{lmr}{m}{scit}{<->ssub*cmr/m/scit}{} + +\apptocmd{\bbl@greek@ampersand}{\space}{}{} % add space to ampersand in bibliography diff --git a/src/package_greek_letters.tex b/src/package_greek_letters.tex new file mode 100644 index 0000000..de91dbf --- /dev/null +++ b/src/package_greek_letters.tex @@ -0,0 +1,128 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_greek_letters.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\DeclareSymbolFont{yiilm}{T1}{lmr}{m}{n} + +\DeclareMathSymbol{\Alpha}{7}{yiilm}{"41} +\DeclareMathSymbol{\Beta}{7}{yiilm}{"42} +\DeclareMathSymbol{\Epsilon}{7}{yiilm}{"45} +\DeclareMathSymbol{\Zeta}{7}{yiilm}{"5A} +\DeclareMathSymbol{\Eta}{7}{yiilm}{"48} +\DeclareMathSymbol{\Iota}{7}{yiilm}{"49} +\DeclareMathSymbol{\Kappa}{7}{yiilm}{"4B} +\DeclareMathSymbol{\Mu}{7}{yiilm}{"4D} +\DeclareMathSymbol{\Nu}{7}{yiilm}{"4E} +\DeclareMathSymbol{\Omicron}{7}{yiilm}{"4F} +\DeclareMathSymbol{\Rho}{7}{yiilm}{"50} +\DeclareMathSymbol{\Tau}{7}{yiilm}{"54} +\DeclareMathSymbol{\Chi}{7}{yiilm}{"58} + +\let\epsilon\yii@epsilon + +\let\Varepsilon\Epsilon +\let\Vartheta\Theta +\let\Varpi\Pi +\let\Varrho\Rho +\let\Varphi\Phi + +\let\textvarepsilon\straightepsilon +\let\textvarrho\textrho +\let\textvarphi\textphi +\let\textphi\straightphi +\let\textvartheta\texttheta +\let\texttheta\straighttheta +\let\textVarepsilon\textEpsilon +\let\textVartheta\textTheta +\let\textVarrho\textRho +\let\textVarphi\textPhi + +\newcommand{\omicron}{\mathit{o}} +\renewcommand{\textomicron}{o} +\renewcommand{\textOmicron}{O} + +\newcommand{\mathalpha}{\text{\textalpha}} +\newcommand{\mathbeta}{\text{\textbeta}} +\newcommand{\mathgamma}{\text{\textgamma}} +\newcommand{\mathdelta}{\text{\textdelta}} +\newcommand{\mathepsilon}{\text{\textepsilon}} +\newcommand{\mathvarepsilon}{\text{\textvarepsilon}} +\newcommand{\mathzeta}{\text{\textzeta}} +\newcommand{\matheta}{\text{\texteta}} +\newcommand{\maththeta}{\text{\texttheta}} +\newcommand{\mathvartheta}{\text{\textvartheta}} +\newcommand{\mathiota}{\text{\textiota}} +\newcommand{\mathkappa}{\text{\textkappa}} +\newcommand{\mathlambda}{\text{\textlambda}} +\newcommand{\mathmu}{\text{\textmu}} +\newcommand{\mathnu}{\text{\textnu}} +\newcommand{\mathxi}{\text{\textxi}} +\newcommand{\mathomicron}{\text{\textomicron}} +\newcommand{\mathpi}{\text{\textpi}} +\newcommand{\mathrho}{\text{\textrho}} +\newcommand{\mathvarrho}{\text{\textvarrho}} +\newcommand{\mathsigma}{\text{\textsigma}} +\newcommand{\mathtau}{\text{\texttau}} +\newcommand{\mathupsilon}{\text{\textupsilon}} +\newcommand{\mathphi}{\text{\textphi}} +\newcommand{\mathvarphi}{\text{\textvarphi}} +\newcommand{\mathchi}{\text{\textchi}} +\newcommand{\mathpsi}{\text{\textpsi}} +\newcommand{\mathomega}{\text{\textomega}} +\newcommand{\mathAlpha}{\text{\textAlpha}} +\newcommand{\mathBeta}{\text{\textBeta}} +\newcommand{\mathGamma}{\text{\textGamma}} +\newcommand{\mathDelta}{\text{\textDelta}} +\newcommand{\mathEpsilon}{\text{\textEpsilon}} +\newcommand{\mathVarepsilon}{\text{\textVarepsilon}} +\newcommand{\mathZeta}{\text{\textZeta}} +\newcommand{\mathEta}{\text{\textEta}} +\newcommand{\mathTheta}{\text{\textTheta}} +\newcommand{\mathVartheta}{\text{\textVartheta}} +\newcommand{\mathIota}{\text{\textIota}} +\newcommand{\mathKappa}{\text{\textKappa}} +\newcommand{\mathLambda}{\text{\textLambda}} +\newcommand{\mathMu}{\text{\textMu}} +\newcommand{\mathNu}{\text{\textNu}} +\newcommand{\mathXi}{\text{\textXi}} +\newcommand{\mathOmicron}{\text{\textOmicron}} +\newcommand{\mathPi}{\text{\textPi}} +\newcommand{\mathRho}{\text{\textRho}} +\newcommand{\mathVarrho}{\text{\textVarrho}} +\newcommand{\mathSigma}{\text{\textSigma}} +\newcommand{\mathTau}{\text{\textTau}} +\newcommand{\mathUpsilon}{\text{\textUpsilon}} +\newcommand{\mathPhi}{\text{\textPhi}} +\newcommand{\mathVarphi}{\text{\textVarphi}} +\newcommand{\mathChi}{\text{\textChi}} +\newcommand{\mathPsi}{\text{\textPsi}} +\newcommand{\mathOmega}{\text{\textOmega}} + +\let\micro\mathmu diff --git a/src/package_options.tex b/src/package_options.tex new file mode 100644 index 0000000..94becce --- /dev/null +++ b/src/package_options.tex @@ -0,0 +1,158 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_options.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\DeclareOption{EN}{ + \FRfalse + \AddToHook{begindocument}{\selectlanguage{english}} + \def\yii@FT{\mathrm{FT}} + \def\yii@name{\text} + \def\yii@eqdef{\equiv} +} + +\DeclareOption{FR}{ + \FRtrue + \AddToHook{begindocument}{\selectlanguage{french}} + \def\yii@FT{\mathrm{TF}} + \def\yii@name{\textsc} + \def\yii@eqdef{\overset{\text{def}}{=}} + \captionsetup{labelsep=endash} +} + +\DeclareOption{nobeamer}{ + \isbeamerfalse +} +\DeclareOption{beamer}{ + \isbeamertrue +} + +\DeclareOption{noindent}{ + \setlength\parindent{0cm} % No paragraph indent +} + +\DeclareOption{onlyvarepsilon}{ + \def\yii@epsilon{\varepsilon} +} + +\DeclareOption{bib-siam}{ + \citestyle{abbrv} + \bibliographystyle{siam} +} + +\DeclareOption{bib-yii}{ + \citestyle{abbrv} + \bibliographystyle{yii} +} + +\DeclareOption{bib-aas}{ + \citestyle{aasjournal} + \bibliographystyle{aasjournal} +} + +\DeclareOption{bib-aanda}{ + \citestyle{aa} + \bibliographystyle{aa} +} + +\DeclareOption{number-section-in-equations}{ + \counterwithin{equation}{section} % Number equation with section number +} + +\DeclareOption{nonumber-section-in-equations}{ + \counterwithout{equation}{section} % Number equation with section number +} + +\ExecuteOptions{EN, nobeamer, number-section-in-equations} + +\ProcessOptions\relax + +\DeclareOption{EN}{ + \FRfalse + \AddToHook{begindocument}{\selectlanguage{english}} + \def\yii@FT{\mathrm{FT}} + \def\yii@name{\text} + \def\yii@eqdef{\equiv} +} + +\DeclareOption{FR}{ + \FRtrue + \AddToHook{begindocument}{\selectlanguage{french}} + \def\yii@FT{\mathrm{TF}} + \def\yii@name{\textsc} + \def\yii@eqdef{\overset{\text{def}}{=}} + \captionsetup{labelsep=endash} +} + + +\DeclareOption{part}{ + \numberwithin{section}{part} + \renewcommand{\numberline}[1]{#1~} +} + +\DeclareOption{noindent}{ + \setlength\parindent{0cm} % No paragraph indent +} + +\DeclareOption{onlyvarepsilon}{ + \def\yii@epsilon{\varepsilon} +} + +\DeclareOption{bib-siam}{ + \citestyle{abbrv} + \bibliographystyle{siam} +} + +\DeclareOption{bib-yii}{ + \citestyle{abbrv} + \bibliographystyle{yii} +} + +\DeclareOption{bib-aas}{ + \citestyle{aasjournal} + \bibliographystyle{aasjournal} +} + +\DeclareOption{bib-aanda}{ + \citestyle{aa} + \bibliographystyle{aa} +} + +\DeclareOption{number-section-in-equations}{ + \counterwithin{equation}{section} % Number equation with section number +} + +\DeclareOption{nonumber-section-in-equations}{ + \counterwithout{equation}{section} % Number equation with section number +} + +\ExecuteOptions{EN, number-section-in-equations} + +\ProcessOptions\relax + diff --git a/src/package_settings.tex b/src/package_settings.tex new file mode 100644 index 0000000..a551c30 --- /dev/null +++ b/src/package_settings.tex @@ -0,0 +1,104 @@ +%[TLP:CLEAR] +% MANCHOT +% +% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex +% (MANCHOT) +% +%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr) +%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique +% de Strasbourg, UMR 7550, F-67000 Strasbourg, France +%@ Date: 2025-05-03 +% +% Licence: +% MSc2 Internship: SMACS Cluster +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% package_settings.tex +% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr) +% +% This program is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see www.gnu.org/licenses/. + +\lstset{ + frame=single, + numbers=left, + numbersep=1em, + xleftmargin=2em, + showstringspaces=false, + basicstyle=\footnotesize\ttfamily, + breaklines=true, + commentstyle=\it\ttfamily\color{gray}, + keywordstyle=\color{bright-blue}, + stringstyle=\color{bright-green}, + extendedchars=true, + literate= + {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 + {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 + {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1 + {À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1 + {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1 + {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1 + {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1 + {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1 + {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 + {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 + {€}{{\euro}}1 {£}{{\pounds}}1 {°}{{$^\circ$}}1 +} + + +% Tikz + +\usetikzlibrary{babel} +\usetikzlibrary{decorations.pathmorphing, decorations.markings} +\tikzset{gluon/.style={thick, decorate, decoration={coil, segment length=4pt}}} +\tikzset{boson/.style={thick, decorate, decoration={snake, segment length=8pt}}} +\tikzset{higgs/.style={thick, dashed}} +\tikzset{fermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex}}}}} +\tikzset{antifermion/.style={thick, postaction={decorate}, decoration={markings,mark=at position 0.55 with {\arrow{latex reversed}}}}} + +\ifisbeamer +\else + \ifFR + \renewcommand{\labelitemi}{---} + \renewcommand{\labelitemii}{---} + \renewcommand{\labelitemiii}{---} + \renewcommand{\labelitemiv}{---} + %\newtheorem*{proof}{Démonstration}{\itshape}{\rmfamily} + \newtheorem{theorem}{Théorème}[section]{\bfseries}{\itshape} + \newtheorem{corollary}[theorem]{Corollaire}{\bfseries}{\itshape} + \newtheorem{definition}[theorem]{Définition}{\bfseries}{\rmfamily} + \newtheorem{example}[theorem]{Exemple}{\itshape}{\rmfamily} + \newtheorem{exercise}[theorem]{Exercice}{\itshape}{\rmfamily} + \newtheorem{lemma}[theorem]{Lemme}{\bfseries}{\itshape} + \newtheorem{note}[theorem]{Note}{\itshape}{\rmfamily} + \newtheorem{problem}[theorem]{Problème}{\itshape}{\rmfamily} + \newtheorem{proposition}[theorem]{Proposition}{\bfseries}{\itshape} + \newtheorem{question}[theorem]{Question}{\itshape}{\rmfamily} + \newtheorem{remark}[theorem]{Remarque}{\itshape}{\rmfamily} + \newtheorem{solution}[theorem]{Solution}{\itshape}{\rmfamily} + \else + %\newtheorem*{proof}{Proof}{\itshape}{\rmfamily} + \newtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape} + \newtheorem{corollary}[theorem]{Corollary}{\bfseries}{\itshape} + \newtheorem{definition}[theorem]{Definition}{\bfseries}{\rmfamily} + \newtheorem{example}[theorem]{Example}{\itshape}{\rmfamily} + \newtheorem{exercise}[theorem]{Exercise}{\itshape}{\rmfamily} + \newtheorem{lemma}[theorem]{Lemma}{\bfseries}{\itshape} + \newtheorem{note}[theorem]{Note}{\itshape}{\rmfamily} + \newtheorem{problem}[theorem]{Problem}{\itshape}{\rmfamily} + \newtheorem{proposition}[theorem]{Proposition}{\bfseries}{\itshape} + \newtheorem{question}[theorem]{Question}{\itshape}{\rmfamily} + \newtheorem{remark}[theorem]{Remark}{\itshape}{\rmfamily} + \newtheorem{solution}[theorem]{Solution}{\itshape}{\rmfamily} + \fi +\fi