diff options
Diffstat (limited to 'macros/latex/contrib')
24 files changed, 948 insertions, 234 deletions
diff --git a/macros/latex/contrib/asmeconf/README.md b/macros/latex/contrib/asmeconf/README.md index 2039844683..87f8916cbb 100644 --- a/macros/latex/contrib/asmeconf/README.md +++ b/macros/latex/contrib/asmeconf/README.md @@ -1,7 +1,7 @@ #asmeconf: A template for ASME conference papers# - Version 1.16 dated 2020/02/28. + Version 1.17 dated 2020/02/29. ####Overview#### This class provides a template to format ASME Conference papers according to @@ -67,6 +67,8 @@ ####Change log#### + v1.17: set T1 font encoding with utf-8 input, ensure LuaLaTeX compatibility; load hologo and metalogo packages; edit documentation. + v1.16: remove xpatch and comment packages from class file; disable \\( and \\) in pdf bookmarks to avoid warnings; edit documentation. v1.15: correct extra space left by \\CorrespondingAuthor when that author is not last; correct breakage of \\ref in captions. Thanks to Bret Van Poppel for reporting these issues. @@ -94,7 +96,7 @@ ####License#### - Copyright (c) 2019 John H. Lienhard + Copyright (c) 2020 John H. Lienhard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, diff --git a/macros/latex/contrib/asmeconf/asmeconf-template.pdf b/macros/latex/contrib/asmeconf/asmeconf-template.pdf Binary files differindex 74cebad255..6e64eb32b9 100644 --- a/macros/latex/contrib/asmeconf/asmeconf-template.pdf +++ b/macros/latex/contrib/asmeconf/asmeconf-template.pdf diff --git a/macros/latex/contrib/asmeconf/asmeconf-template.tex b/macros/latex/contrib/asmeconf/asmeconf-template.tex index 542c090acd..4010bd1f0e 100644 --- a/macros/latex/contrib/asmeconf/asmeconf-template.tex +++ b/macros/latex/contrib/asmeconf/asmeconf-template.tex @@ -1,11 +1,12 @@ +% !TEX encoding = UTF-8 Unicode %% %% This file is asmeconf-template.tex, a template to format ASME Conference papers according to %% the requirements on ASME's conference web pages. %% -%% This file is version 1.16 dated 2020/02/28. +%% This file is version 1.17 dated 2020/02/29 %% -%% As of version 1.11, this template follows ASME's newer conference guidelines posted in July 2019. -%% The new guidelines have changed the requested author block formatting. +%% As of version 1.11, this template follows ASME's newer conference guidelines first posted July 2019. +%% The new guidelines have changed the requested author block formatting (old format is also supported) %% Nomenclature now follows the abstract. Abstract is in italics. %% %% Author: John H. Lienhard V @@ -83,9 +84,9 @@ %% Class options are described above. + \documentclass[varvw,largesc,upint,mathalfa=cal=euler,colorlinks,hyphenate,balance]{asmeconf} % <=== remove colorlinks for submission to ASME -\pdfminorversion=7 % This selection is not required. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% Fields to be completed %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -116,7 +117,7 @@ % Units of measure and other specialty lowercase terms in the title should be % enclosed in \NoCaseChange{...} to maintain lower case type -% LaTeX will automatically set this in all capital letters. +% LaTeX will automatically set the title in all capital letters. \title{Place Title Here: Place Subtitle After Colon} % <=== change to YOUR title @@ -130,7 +131,7 @@ %% %% \JointFirstAuthor, if applicable, follows the affiliation of the relevant authors, no spaces. -\SetAuthors{Luis Hern\'{a}ndez\affil{1}\JointFirstAuthor , Maria Silva\affil{2}\JointFirstAuthor, Henry Tudor\affil{3}, Catherine~Parr\affil{3}, John H.\ Lienhard V\affil{4}\CorrespondingAuthor{lienhard@mit.edu}} +\SetAuthors{Luis Hern\'andez\affil{1}\JointFirstAuthor , Maria Silva\affil{2}\JointFirstAuthor, Henry Tudor\affil{3}, Catherine~Parr\affil{3}, John H.\ Lienhard V\affil{4}\CorrespondingAuthor{lienhard@mit.edu}} \SetAffiliation{1}{Institution or Company Name, City, State} \SetAffiliation{2}{Institution or Company Name, City, Province, Canada} @@ -157,7 +158,7 @@ %% %% Abstract should be no more than 200 words \begin{abstract} -This paper is an example and template for typesetting ASME Conference Papers in \LaTeX\ using the {\upshape\texttt{asmeconf}} class. This class follows ASME guidelines for margins, fonts, headings, captions, and reference formats as of December 2019. The class is compatible with the {\upshape\texttt{hyperref}} package for producing pdf files with links. The optional argument of \verb|\section| has been modified for manually setting pdf bookmarks when macros or complicated mathematics are included in section headings. The class is intended to be used with the {\upshape\texttt{asmeconf.bst}} \textsc{Bib}\negthinspace\TeX\ style, which is part of this distribution. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in \TeX\ Live and on CTAN. +This paper is an example and template for typesetting ASME Conference Papers in {\upshape\LaTeX} using the {\upshape\texttt{asmeconf}} class. This class follows ASME guidelines for margins, fonts, headings, captions, and reference formats as of early 2020. The class is compatible with the {\upshape\texttt{hyperref}} package for producing pdf files with links. The optional argument of \verb|\section| has been modified for manually setting pdf bookmarks when macros or complicated mathematics are included in section headings. The class is intended to be used with the {\upshape\texttt{asmeconf.bst} \hologo{BibTeX}} style, which is part of this distribution. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in {\upshape\TeX\ Live} and on CTAN. The class is compatible with {\upshape\hologo{pdfLaTeX}} or {\upshape\hologo{LuaLaTeX}}. \end{abstract} %%%%%%%%% NOMENCLATURE (OPTIONAL) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -330,7 +331,7 @@ Landscape figures and tables may be produced at full-page size by putting \verb| Citations are automatically numbered \cite{ning2002}. They should be inserted at the appropriate point using a \verb|\cite{ref}| command~\cite{gibson2008,stevens1999}. The citations will be automatically sorted and compressed as well if they are given in a set \cite{stevens1999,ning2002,gibson2008,wions2005,smith2002,watson1982,smith1998}. See the \texttt{asmeconf-sample.bib} file for examples of how to enter your references. Citations and references are managed by the standard \texttt{natbib} package. -The {\upshape\texttt{asmeconf.bst}} \textsc{Bib}\negthinspace\TeX\ style follows the reference styles posted on ASME's conference web site in early 2020. Examples for these and many other cases are given in the \texttt{asmeconf-sample.bib} file, which is part of this distribution. Nevertheless, a few comments are necessary. +The {\upshape\texttt{asmeconf.bst}} \hologo{BibTeX} style follows the reference styles posted on ASME's conference web site in early 2020. Examples for these and many other cases are given in the \texttt{asmeconf-sample.bib} file, which is part of this distribution. Nevertheless, a few comments are necessary. %% subsubsections are not numbered \subsubsection*{DOI, URL, and eprint} Include DOI numbers when they are available. URL's may alternatively be given. @@ -507,7 +508,7 @@ the option [\texttt{oldauthors}]. When using this form, the author names and ad \verb|\SetAuthorBlock{\CorrespondingAuthor{John Lienhard%| \hbox{}\hfil\verb|}{lienhard@mit.edu}}{Institution \\ City, State}| -%% see after end document for usable code if you go this route. +%% directly usable code follows \end{document}, below. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -519,11 +520,18 @@ as a secondary and tertiary language, \texttt{lang-second} and \texttt{lang-thir The standard caption and section names will follow \texttt{babel}'s dictionary for primary languages other than English. Users may additionally change ``Keywords'', ``Nomenclature'', ``Corresponding author'', and ``Joint first authors'' by renewing the commands \verb|\keywordname|, \verb|\nomname|, \verb|\CAwords|, and \verb|\JAwords|. Changes to the page footer were described earlier. The pdf bookmark for ``Appendices'' may be changed by renewing \verb|\appendicesname|. -No effort has been made to support customization of language-specific fonts, although this is possible by modifying the class file (examples are given in the \texttt{newtx} documentation). The bibliography style, \texttt{asmeconf.bst}, is designed in English and aimed at \texttt{BibTeX}. Multilingual bibliographies can be supported using \texttt{BibLaTeX}. +Font encoding is set to T1 with utf-8 input supported: +%% If you have trouble with the next line, your file may not be saved in utf-8 format. You can delete that line to resolve the issue. +\typeout{If you have trouble with the next line, your file may not be saved in utf-8 format. You can delete that line to resolve the issue.} +àáâäæãåā èéęëêēė îïíīįì ôöòóœøōõ ûüùúū çćč ł ñń ßśš ÿ žźż. + +No effort has been made to support customization of language-specific fonts, although this is possible by modifying the class file (examples are given in the \texttt{newtx} documentation). The bibliography style, \texttt{asmeconf.bst}, is designed in English and aimed at \hologo{BibTeX}. Multilingual bibliographies can be supported using \texttt{BibLaTeX}. \end{document} +%%% This is the set-up for the old author block style, a grid of blocks. + % Can also put multiple emails and use command more than once for multiple corresponding authors. % Change to your name[s] and addresses, in the desired order of authors. Up to nine author blocks. % Note usage below for joint first authors and for corresponding author. diff --git a/macros/latex/contrib/asmeconf/asmeconf.cls b/macros/latex/contrib/asmeconf/asmeconf.cls index 4f2d8f3d42..11cf01aba5 100644 --- a/macros/latex/contrib/asmeconf/asmeconf.cls +++ b/macros/latex/contrib/asmeconf/asmeconf.cls @@ -5,9 +5,9 @@ %% %% Please note that ASME's journals follow specifications different from ASME conference papers. %% -%% This file is version 1.16 dated 2020/02/28. - \def\versionno{1.16} - \def\versiondate{2020/02/28\space} +%% This file is version 1.17 dated 2020/02/29. + \def\versionno{1.17} + \def\versiondate{2020/02/29\space} %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -190,7 +190,7 @@ \RequirePackage{graphicx} \RequirePackage[hyperref,fixpdftex,dvipsnames,svgnames,x11names]{xcolor} \RequirePackage{xparse} -%\RequirePackage{comment} % user may load this in preamble if desired. +\RequirePackage{metalogo,hologo} % Access various LaTeX logos if needed %%%%%%%%%%%%%%%%%%%%%%%% @@ -202,8 +202,18 @@ %%%% FONT related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\RequirePackage{mathtools} % extends amsmath -\RequirePackage[utf8]{inputenc} +\RequirePackage[T1]{fontenc} + +\RequirePackage{iftex} % check whether pdfTeX or a different engine is used +\ifpdftex + \pdfminorversion=7 % This selection is not required. + \RequirePackage[utf8]{inputenc} % for backward compatibility with pre-2018 distributions +\else + \relax +\fi + +\RequirePackage{mathtools} % loads and extends amsmath + \RequirePackage[]{babel} \RequirePackage[]{newtxtext} \RequirePackage[varqu,varl]{inconsolata} % sans typewriter font @@ -213,8 +223,8 @@ %% override \textsu if using default superiors \ifthenelse{\boolean{DefaultSups}}{\let\textsu\textsuperscript}{\relax} -\RequirePackage[]{mathalfa} % load optional fonts for Calligraphy, Script, etc. -% See package documentation for capabilities of this package. +\RequirePackage[]{mathalfa} % load optional fonts for Calligraphy, Script, Fraktur +% See mathalfa package documentation for capabilities of this package. % Option format: mathalfa=cal=euler (etc.) \RequirePackage{bm} % load after all math to give access to bold math @@ -360,7 +370,7 @@ \urlstyle{same} % don't switch to typewriter font -\RequirePackage{doi} % provides line breaking for doi hyperlinks in bibliography +\RequirePackage{doi} % supports the nasty characters in some doi's \renewcommand{\doitext}{DOI } % change the default value, {doi:}, to this per ASME specification \RequirePackage{bookmark} % improves handling of pdf bookmarks diff --git a/macros/latex/contrib/asmejour/README.md b/macros/latex/contrib/asmejour/README.md index 1d9901b796..cc60f3eee6 100644 --- a/macros/latex/contrib/asmejour/README.md +++ b/macros/latex/contrib/asmejour/README.md @@ -1,7 +1,7 @@ #asmejour: A template for ASME journal papers# - Version 1.10 dated 2020/02/28. + Version 1.11 dated 2020/02/29. ####Overview#### This class provides a template to format preprints submitted to ASME journals in the style that @@ -57,6 +57,8 @@ ####Change log#### +v1.11: ensure T1 font encoding, utf-8 input, and LuaLaTeX compatibility; edit documentation. + v1.10: update asmeconf.bst to most recent Crossref standard prefix for doi (https://doi.org/); remove xpatch package from class file; disable \\( and \\) in pdf bookmarks to avoid warnings; adjust \\eqref in bookmarks; edit documentation. v1.09: adjust nomenclature list; edit language support diff --git a/macros/latex/contrib/asmejour/asmejour-template.pdf b/macros/latex/contrib/asmejour/asmejour-template.pdf Binary files differindex f41e442098..9c0a5568ed 100644 --- a/macros/latex/contrib/asmejour/asmejour-template.pdf +++ b/macros/latex/contrib/asmejour/asmejour-template.pdf diff --git a/macros/latex/contrib/asmejour/asmejour-template.tex b/macros/latex/contrib/asmejour/asmejour-template.tex index 2d6601004f..2c0941f983 100644 --- a/macros/latex/contrib/asmejour/asmejour-template.tex +++ b/macros/latex/contrib/asmejour/asmejour-template.tex @@ -3,7 +3,7 @@ %% This file is asmejour-template.tex, a template to format papers in the style of ASME journal papers %% as they are being published in 2020. %% -%% This file is version 1.10 dated 2020/02/28 +%% This file is version 1.11 dated 2020/02/29 %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -139,12 +139,12 @@ email: lienhard@mit.edu %%% This command must come BEFORE the end of the abstract. %%% If you don't want keywords, delete the command. -\keywords{ASME, Paper, Template, \LaTeX, \hologo{BibTeX}} +\keywords{ASME, Paper, Template, {\upshape\LaTeX}, {\upshape\hologo{BibTeX}}} %% Abstract should be no more than 250 words \begin{abstract} -This paper is an example and template for the {\upshape\texttt{asmejour}} class. Papers typeset in this class will follow ASME journal style for margins, fonts, headings, captions, and reference formats. Standard \LaTeX\ commands are used. The class will lay out the author, title, and abstract in ASME style. The class will produce a pdf file that that includes hyperlinks, bookmarks, and pdf metadata. The class is intended to be used with the {\upshape\texttt{asmejour.bst}} \hologo{BibTeX} style for typesetting references, which is part of this distribution. This style supports hyperlinks and modern reference formats, following current ASME practice. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in \TeX~Live and in CTAN (\href{http://ctan.org}{ctan.org}). The class is compatible with \hologo{pdfLaTeX} or \LuaLaTeX. +This paper is an example and template for the {\upshape\texttt{asmejour}} class. Papers typeset in this class will follow ASME journal style for margins, fonts, headings, captions, and reference formats. Standard {\upshape\LaTeX} commands are used. The class will lay out the author, title, and abstract in ASME style. The class will produce a pdf file that that includes hyperlinks, bookmarks, and pdf metadata. The class is intended to be used with the {\upshape\texttt{asmejour.bst} \hologo{BibTeX}} style for typesetting references, which is part of this distribution. This style supports hyperlinks and modern reference formats, following current ASME practice. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in {\upshape\TeX~Live} and in CTAN (\href{http://ctan.org}{ctan.org}). The class is compatible with {\upshape\hologo{pdfLaTeX}} or {\upshape\hologo{LuaLaTeX}}. \end{abstract} @@ -551,9 +551,13 @@ If no language option is given, the package defaults to English. The standard ca An example of use is shown in \selectlanguage{french}\appendixname\ \ref{app:fourier}.\selectlanguage{english} +Font encoding is set to T1 with utf-8 input supported: +%% If you have trouble with the next line (or the French text that follows), your file may not be saved in utf-8 format. You can delete these lines to resolve the issue. +\typeout{If you have trouble with the next line, your file may not be saved in utf-8 format. You can delete that line to resolve the issue.} +àáâäæãåā èéęëêēė îïíīįì ôöòóœøōõ ûüùúū çćč ł ñń ßśš ÿ žźż + No effort has been made to support customization of language-specific fonts, although this is possible by modifying the class file (examples are given in the \texttt{newtx} documentation). The bibliography style, \texttt{asmejour.bst}, is designed in English and aimed at \texttt{BibTeX}. Multilingual bibliographies can be supported using \texttt{BibLaTeX}. - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \selectlanguage{french} \section{Joseph Fourier}\label{app:fourier} diff --git a/macros/latex/contrib/asmejour/asmejour.cls b/macros/latex/contrib/asmejour/asmejour.cls index b452428380..ea70605bda 100644 --- a/macros/latex/contrib/asmejour/asmejour.cls +++ b/macros/latex/contrib/asmejour/asmejour.cls @@ -6,9 +6,9 @@ %% The asmejour.cls file should be used with the files asmejour.bst (for citations) and asmejour-template.tex. %% %% -%% This file is version 1.10 dated 2020/2/28. - \def\versionno{1.10} - \def\versiondate{2020/02/28\space} +%% This file is version 1.11 dated 2020/02/29. + \def\versionno{1.11} + \def\versiondate{2020/02/29\space} %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -209,8 +209,17 @@ %%%%%%%% FONT related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage[T1]{fontenc} + +\RequirePackage{iftex} % check whether pdftex or another engine is used +\ifpdftex + \pdfminorversion=7 % This selection is not required. + \RequirePackage[utf8]{inputenc} % for backward compatibility with pre-2018 distributions +\else + \relax +\fi + \RequirePackage{mathtools} % extends amsmath -\RequirePackage[utf8]{inputenc} % backward compatibility...LuaLaTeX will disable \RequirePackage[]{babel} \RequirePackage[]{newtxtext} \RequirePackage[varqu,varl]{inconsolata} % sans typewriter font @@ -223,7 +232,7 @@ \RequirePackage{bm} % load after all math to give access to bold math -%% In addition to the word spacing options declared in line 121... +%% In addition to the word spacing options declared in line 163... %% Relative to size9.clo: leading reduced to 10 pt; displayskips made greater \renewcommand\normalsize{% \@setfontsize\normalsize\@ixpt{10\p@}% % <== was \@xipt @@ -274,7 +283,7 @@ %%%%%%%%%%%%%%%%% EQUATION AND LINE NUMBERING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ASME puts equation tags in blue -\RequirePackage{etoolbox} % dropped xpatch 28/2/20 +\RequirePackage{etoolbox} % dropped xpatch 28/02/20 \patchcmd{\tagform@}{(\ignorespaces#1\unskip\@@italiccorr)}{\color{blue}(\ignorespaces#1\unskip\@@italiccorr)}{}{} %% Ensure that the current font is used for equation tags, not \normalfont as set by amsmath @@ -768,14 +777,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage{iftex}%% can delete all this if desired. -\ifpdftex - \pdfminorversion=7 % This selection is not required. -\else - \relax -\fi - - \endinput %% %% End of file `asmejour.cls'. diff --git a/macros/latex/contrib/autofancyhdr/LICENSE b/macros/latex/contrib/autofancyhdr/LICENSE new file mode 100644 index 0000000000..2244313901 --- /dev/null +++ b/macros/latex/contrib/autofancyhdr/LICENSE @@ -0,0 +1,416 @@ +The LaTeX Project Public License +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +LPPL Version 1.3c 2008-05-04 + +Copyright 1999 2002-2008 LaTeX3 Project + Everyone is allowed to distribute verbatim copies of this + license document, but modification of it is not allowed. + + +PREAMBLE +======== + +The LaTeX Project Public License (LPPL) is the primary license under +which the LaTeX kernel and the base LaTeX packages are distributed. + +You may use this license for any work of which you hold the copyright +and which you wish to distribute. This license may be particularly +suitable if your work is TeX-related (such as a LaTeX package), but +it is written in such a way that you can use it even if your work is +unrelated to TeX. + +The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', +below, gives instructions, examples, and recommendations for authors +who are considering distributing their works under this license. + +This license gives conditions under which a work may be distributed +and modified, as well as conditions under which modified versions of +that work may be distributed. + +We, the LaTeX3 Project, believe that the conditions below give you +the freedom to make and distribute modified versions of your work +that conform with whatever technical specifications you wish while +maintaining the availability, integrity, and reliability of +that work. If you do not see how to achieve your goal while +meeting these conditions, then read the document `cfgguide.tex' +and `modguide.tex' in the base LaTeX distribution for suggestions. + + +DEFINITIONS +=========== + +In this license document the following terms are used: + + `Work' + Any work being distributed under this License. + + `Derived Work' + Any work that under any applicable law is derived from the Work. + + `Modification' + Any procedure that produces a Derived Work under any applicable + law -- for example, the production of a file containing an + original file associated with the Work or a significant portion of + such a file, either verbatim or with modifications and/or + translated into another language. + + `Modify' + To apply any procedure that produces a Derived Work under any + applicable law. + + `Distribution' + Making copies of the Work available from one person to another, in + whole or in part. Distribution includes (but is not limited to) + making any electronic components of the Work accessible by + file transfer protocols such as FTP or HTTP or by shared file + systems such as Sun's Network File System (NFS). + + `Compiled Work' + A version of the Work that has been processed into a form where it + is directly usable on a computer system. This processing may + include using installation facilities provided by the Work, + transformations of the Work, copying of components of the Work, or + other activities. Note that modification of any installation + facilities provided by the Work constitutes modification of the Work. + + `Current Maintainer' + A person or persons nominated as such within the Work. If there is + no such explicit nomination then it is the `Copyright Holder' under + any applicable law. + + `Base Interpreter' + A program or process that is normally needed for running or + interpreting a part or the whole of the Work. + + A Base Interpreter may depend on external components but these + are not considered part of the Base Interpreter provided that each + external component clearly identifies itself whenever it is used + interactively. Unless explicitly specified when applying the + license to the Work, the only applicable Base Interpreter is a + `LaTeX-Format' or in the case of files belonging to the + `LaTeX-format' a program implementing the `TeX language'. + + + +CONDITIONS ON DISTRIBUTION AND MODIFICATION +=========================================== + +1. Activities other than distribution and/or modification of the Work +are not covered by this license; they are outside its scope. In +particular, the act of running the Work is not restricted and no +requirements are made concerning any offers of support for the Work. + +2. You may distribute a complete, unmodified copy of the Work as you +received it. Distribution of only part of the Work is considered +modification of the Work, and no right to distribute such a Derived +Work may be assumed under the terms of this clause. + +3. You may distribute a Compiled Work that has been generated from a +complete, unmodified copy of the Work as distributed under Clause 2 +above, as long as that Compiled Work is distributed in such a way that +the recipients may install the Compiled Work on their system exactly +as it would have been installed if they generated a Compiled Work +directly from the Work. + +4. If you are the Current Maintainer of the Work, you may, without +restriction, modify the Work, thus creating a Derived Work. You may +also distribute the Derived Work without restriction, including +Compiled Works generated from the Derived Work. Derived Works +distributed in this manner by the Current Maintainer are considered to +be updated versions of the Work. + +5. If you are not the Current Maintainer of the Work, you may modify +your copy of the Work, thus creating a Derived Work based on the Work, +and compile this Derived Work, thus creating a Compiled Work based on +the Derived Work. + +6. If you are not the Current Maintainer of the Work, you may +distribute a Derived Work provided the following conditions are met +for every component of the Work unless that component clearly states +in the copyright notice that it is exempt from that condition. Only +the Current Maintainer is allowed to add such statements of exemption +to a component of the Work. + + a. If a component of this Derived Work can be a direct replacement + for a component of the Work when that component is used with the + Base Interpreter, then, wherever this component of the Work + identifies itself to the user when used interactively with that + Base Interpreter, the replacement component of this Derived Work + clearly and unambiguously identifies itself as a modified version + of this component to the user when used interactively with that + Base Interpreter. + + b. Every component of the Derived Work contains prominent notices + detailing the nature of the changes to that component, or a + prominent reference to another file that is distributed as part + of the Derived Work and that contains a complete and accurate log + of the changes. + + c. No information in the Derived Work implies that any persons, + including (but not limited to) the authors of the original version + of the Work, provide any support, including (but not limited to) + the reporting and handling of errors, to recipients of the + Derived Work unless those persons have stated explicitly that + they do provide such support for the Derived Work. + + d. You distribute at least one of the following with the Derived Work: + + 1. A complete, unmodified copy of the Work; + if your distribution of a modified component is made by + offering access to copy the modified component from a + designated place, then offering equivalent access to copy + the Work from the same or some similar place meets this + condition, even though third parties are not compelled to + copy the Work along with the modified component; + + 2. Information that is sufficient to obtain a complete, + unmodified copy of the Work. + +7. If you are not the Current Maintainer of the Work, you may +distribute a Compiled Work generated from a Derived Work, as long as +the Derived Work is distributed to all recipients of the Compiled +Work, and as long as the conditions of Clause 6, above, are met with +regard to the Derived Work. + +8. The conditions above are not intended to prohibit, and hence do not +apply to, the modification, by any method, of any component so that it +becomes identical to an updated version of that component of the Work as +it is distributed by the Current Maintainer under Clause 4, above. + +9. Distribution of the Work or any Derived Work in an alternative +format, where the Work or that Derived Work (in whole or in part) is +then produced by applying some process to that format, does not relax or +nullify any sections of this license as they pertain to the results of +applying that process. + +10. a. A Derived Work may be distributed under a different license + provided that license itself honors the conditions listed in + Clause 6 above, in regard to the Work, though it does not have + to honor the rest of the conditions in this license. + + b. If a Derived Work is distributed under a different license, that + Derived Work must provide sufficient documentation as part of + itself to allow each recipient of that Derived Work to honor the + restrictions in Clause 6 above, concerning changes from the Work. + +11. This license places no restrictions on works that are unrelated to +the Work, nor does this license place any restrictions on aggregating +such works with the Work by any means. + +12. Nothing in this license is intended to, or may be used to, prevent +complete compliance by all parties with all applicable laws. + + +NO WARRANTY +=========== + +There is no warranty for the Work. Except when otherwise stated in +writing, the Copyright Holder provides the Work `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 Work is with you. Should the Work prove defective, you assume +the cost of all necessary servicing, repair, or correction. + +In no event unless required by applicable law or agreed to in writing +will The Copyright Holder, or any author named in the components of the +Work, or any other party who may distribute and/or modify the Work as +permitted above, be liable to you for damages, including any general, +special, incidental or consequential damages arising out of any use of +the Work or out of inability to use the Work (including, but not limited +to, loss of data, data being rendered inaccurate, or losses sustained by +anyone as a result of any failure of the Work to operate with any other +programs), even if the Copyright Holder or said author or said other +party has been advised of the possibility of such damages. + + +MAINTENANCE OF THE WORK +======================= + +The Work has the status `author-maintained' if the Copyright Holder +explicitly and prominently states near the primary copyright notice in +the Work that the Work can only be maintained by the Copyright Holder +or simply that it is `author-maintained'. + +The Work has the status `maintained' if there is a Current Maintainer +who has indicated in the Work that they are willing to receive error +reports for the Work (for example, by supplying a valid e-mail +address). It is not required for the Current Maintainer to acknowledge +or act upon these error reports. + +The Work changes from status `maintained' to `unmaintained' if there +is no Current Maintainer, or the person stated to be Current +Maintainer of the work cannot be reached through the indicated means +of communication for a period of six months, and there are no other +significant signs of active maintenance. + +You can become the Current Maintainer of the Work by agreement with +any existing Current Maintainer to take over this role. + +If the Work is unmaintained, you can become the Current Maintainer of +the Work through the following steps: + + 1. Make a reasonable attempt to trace the Current Maintainer (and + the Copyright Holder, if the two differ) through the means of + an Internet or similar search. + + 2. If this search is successful, then enquire whether the Work + is still maintained. + + a. If it is being maintained, then ask the Current Maintainer + to update their communication data within one month. + + b. If the search is unsuccessful or no action to resume active + maintenance is taken by the Current Maintainer, then announce + within the pertinent community your intention to take over + maintenance. (If the Work is a LaTeX work, this could be + done, for example, by posting to comp.text.tex.) + + 3a. If the Current Maintainer is reachable and agrees to pass + maintenance of the Work to you, then this takes effect + immediately upon announcement. + + b. If the Current Maintainer is not reachable and the Copyright + Holder agrees that maintenance of the Work be passed to you, + then this takes effect immediately upon announcement. + + 4. If you make an `intention announcement' as described in 2b. above + and after three months your intention is challenged neither by + the Current Maintainer nor by the Copyright Holder nor by other + people, then you may arrange for the Work to be changed so as + to name you as the (new) Current Maintainer. + + 5. If the previously unreachable Current Maintainer becomes + reachable once more within three months of a change completed + under the terms of 3b) or 4), then that Current Maintainer must + become or remain the Current Maintainer upon request provided + they then update their communication data within one month. + +A change in the Current Maintainer does not, of itself, alter the fact +that the Work is distributed under the LPPL license. + +If you become the Current Maintainer of the Work, you should +immediately provide, within the Work, a prominent and unambiguous +statement of your status as Current Maintainer. You should also +announce your new status to the same pertinent community as +in 2b) above. + + +WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE +====================================================== + +This section contains important instructions, examples, and +recommendations for authors who are considering distributing their +works under this license. These authors are addressed as `you' in +this section. + +Choosing This License or Another License +---------------------------------------- + +If for any part of your work you want or need to use *distribution* +conditions that differ significantly from those in this license, then +do not refer to this license anywhere in your work but, instead, +distribute your work under a different license. You may use the text +of this license as a model for your own license, but your license +should not refer to the LPPL or otherwise give the impression that +your work is distributed under the LPPL. + +The document `modguide.tex' in the base LaTeX distribution explains +the motivation behind the conditions of this license. It explains, +for example, why distributing LaTeX under the GNU General Public +License (GPL) was considered inappropriate. Even if your work is +unrelated to LaTeX, the discussion in `modguide.tex' may still be +relevant, and authors intending to distribute their works under any +license are encouraged to read it. + +A Recommendation on Modification Without Distribution +----------------------------------------------------- + +It is wise never to modify a component of the Work, even for your own +personal use, without also meeting the above conditions for +distributing the modified component. While you might intend that such +modifications will never be distributed, often this will happen by +accident -- you may forget that you have modified that component; or +it may not occur to you when allowing others to access the modified +version that you are thus distributing it and violating the conditions +of this license in ways that could have legal implications and, worse, +cause problems for the community. It is therefore usually in your +best interest to keep your copy of the Work identical with the public +one. Many works provide ways to control the behavior of that work +without altering any of its licensed components. + +How to Use This License +----------------------- + +To use this license, place in each of the components of your work both +an explicit copyright notice including your name and the year the work +was authored and/or last substantially modified. Include also a +statement that the distribution and/or modification of that +component is constrained by the conditions in this license. + +Here is an example of such a notice and statement: + + %% pig.dtx + %% Copyright 2005 M. Y. Name + % + % This work may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.3 + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.3 or later is part of all distributions of LaTeX + % version 2005/12/01 or later. + % + % This work has the LPPL maintenance status `maintained'. + % + % The Current Maintainer of this work is M. Y. Name. + % + % This work consists of the files pig.dtx and pig.ins + % and the derived file pig.sty. + +Given such a notice and statement in a file, the conditions +given in this license document would apply, with the `Work' referring +to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being +generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' +referring to any `LaTeX-Format', and both `Copyright Holder' and +`Current Maintainer' referring to the person `M. Y. Name'. + +If you do not want the Maintenance section of LPPL to apply to your +Work, change `maintained' above into `author-maintained'. +However, we recommend that you use `maintained', as the Maintenance +section was added in order to ensure that your Work remains useful to +the community even when you can no longer maintain and support it +yourself. + +Derived Works That Are Not Replacements +--------------------------------------- + +Several clauses of the LPPL specify means to provide reliability and +stability for the user community. They therefore concern themselves +with the case that a Derived Work is intended to be used as a +(compatible or incompatible) replacement of the original Work. If +this is not the case (e.g., if a few lines of code are reused for a +completely different task), then clauses 6b and 6d shall not apply. + + +Important Recommendations +------------------------- + + Defining What Constitutes the Work + + The LPPL requires that distributions of the Work contain all the + files of the Work. It is therefore important that you provide a + way for the licensee to determine which files constitute the Work. + This could, for example, be achieved by explicitly listing all the + files of the Work near the copyright notice of each file or by + using a line such as: + + % This work consists of all files listed in manifest.txt. + + in that place. In the absence of an unequivocal list it might be + impossible for the licensee to determine what is considered by you + to comprise the Work and, in such a case, the licensee would be + entitled to make reasonable conjectures as to which files comprise + the Work. + diff --git a/macros/latex/contrib/autofancyhdr/README.md b/macros/latex/contrib/autofancyhdr/README.md new file mode 100644 index 0000000000..f92ed68b1e --- /dev/null +++ b/macros/latex/contrib/autofancyhdr/README.md @@ -0,0 +1,11 @@ +This package automatically compute headlength for fancyhdr package. +For using this package just substitute +```tex +\usepackage{fancyhdr} +``` +with +```tex +\usepackage{autofancyhdr} +``` +This package is under LaTeX Project Public 1.3c license. +You can contact me by emailing to mojtaba.baghban@gmail.com
\ No newline at end of file diff --git a/macros/latex/contrib/autofancyhdr/autofancyhdr.sty b/macros/latex/contrib/autofancyhdr/autofancyhdr.sty new file mode 100644 index 0000000000..83613a59b4 --- /dev/null +++ b/macros/latex/contrib/autofancyhdr/autofancyhdr.sty @@ -0,0 +1,69 @@ +\ProvidesPackage{autofancyhdr}% + [2019/01/18 v0.1 + Extensive control of page headers and footers with automatic calculate headheight]% +\RequirePackage{fancyhdr} +\RequirePackage{biditools} +\def\headfootlength{} +% Redefine \f@nch@vbox for auto height +\def\f@nch@vbox#1#2{% + \setbox0\vbox{#2}% + \ifdim\ht0=#1\else% + \f@nch@warning{% + \string#1 (\the#1) is not equal with \the\ht0.^^J + Please compile again to correct this problem.% + }% + \fi% + \ifx#1\headheight% + \edef\eheadfootlength{% + \string\expandafter\string\def\string\csname\space + headleng\thepage \string\endcsname{\strip@pt\ht0}% + }% + \expandafter\g@addto@macro\expandafter\headfootlength\expandafter{% + \eheadfootlength^^J% + }% + \fi% + \box0% +} +\bidi@AfterOutputPageShipOut{% + \newdimen\newheadheight% + \ifcsname headleng\the\numexpr\value{page}+1\relax\endcsname% + \setlength{\newheadheight}{% + \csname headleng\the\numexpr\value{page}+1\relax\endcsname pt% + }% + \else% + \ifcsname headleng1\endcsname% + \setlength{\newheadheight}{% + \csname headleng1\endcsname pt% + }% + \else% + \setlength{\newheadheight}{0pt}% + \fi% + \fi% + \global\setlength{\textheight}{ + \dimexpr\textheight+\headheight-\newheadheight\relax + }% + \global\setlength{\headheight}{\newheadheight}% +}% +\IfFileExists{\jobname.headfootlength} +{ + \input{\jobname.headfootlength} +} +{} +\ifcsname headleng1\endcsname +\global\setlength\headheight{\csname headleng1\endcsname pt} +\else +\global\setlength\headheight{0pt} +\fi +\bidi@AfterLastShipout{% + \if@filesw% + \begingroup + % same write register as environment `filecontents` uses + \chardef\reserved@c=15 % + \immediate\openout\reserved@c=\jobname.headfootlength\relax + \immediate\write\reserved@c{% + \headfootlength% + }% + \immediate\closeout\reserved@c + \endgroup + \fi% +}
\ No newline at end of file diff --git a/macros/latex/contrib/biblatex2bibitem/README.md b/macros/latex/contrib/biblatex2bibitem/README.md new file mode 100644 index 0000000000..6873f6272d --- /dev/null +++ b/macros/latex/contrib/biblatex2bibitem/README.md @@ -0,0 +1,10 @@ +## Usage +In preamble: +``` +\usepackage{biblatex2bibitem} +``` + +At the very end of document: +``` +\printbibitembibliography +``` diff --git a/macros/latex/contrib/biblatex2bibitem/biblatex2bibitem.sty b/macros/latex/contrib/biblatex2bibitem/biblatex2bibitem.sty new file mode 100644 index 0000000000..cc3ff68bcf --- /dev/null +++ b/macros/latex/contrib/biblatex2bibitem/biblatex2bibitem.sty @@ -0,0 +1,64 @@ +% A workaround to convert biblatex-generated bibliography to bibitems +% +% (c) Nikolai Avdeev aka @nickkolok, and @odomanov +% +% See also https://github.com/odomanov/biblatex-gost/issues/20 +% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN archives +%% in directory macros/latex/base/lppl.txt. +% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{biblatex2bibitem} + [2020/02/24 v0.01 LaTeX package to convert biblatex-generated bibliography to bibitem commands] + +\RequirePackage{biblatex} + +\defbibenvironment{bibitembibliography} + {\textbackslash begin\{thebibliography\}\{99\} + % Page numbers and page headings are not wanted when copying + \thispagestyle{empty} + \pagestyle{empty} + \hyphenpenalty=10000 + \exhyphenpenalty=10000 + \renewcommand*{\&}{\textbackslash \symbol{38}}% + \renewcommand*{\mkbibemph}[1]{\textbackslash emph\{##1\}}% + \renewcommand*{\mkbibitalic}[1]{\textbackslash textit\{##1\}}% + \renewcommand*{\mkbibbold}[1]{\textbackslash textbf\{##1\}}% + %\DeclareFieldFormat{titlecase}{\texttt{\utffriendlydetokenize{#1}}} + \list{}{}} + {\endlist + \textbackslash end\{thebibliography\} + \thispagestyle{empty} + \pagestyle{empty} + } + {\item\%\\~\textbackslash bibitem\{\printfield{entrykey}\}\\} + +\newcommand{\utffriendlydetokenize}[1]{ + \scantokens{ + \catcode`\_=12 + \catcode`\^=12 + \catcode`\{=12 + \catcode`\}=12 + \catcode`\&=12 + \catcode`\$=12 + \catcode`\#=12 + \catcode`\\=12 + #1 + } +} + + + +\newcommand{\printbibitembibliography}{ + \raggedright + \DeclareFieldFormat{titlecase}{\utffriendlydetokenize{##1}} + %\DeclareDelimFormat[bib]{nametitledelim}{\newline\bibsentence} + \printbibliography[env=bibitembibliography] +} + + + +\endinput +%% +%% End of file `biblatex2bibitem.sty'. diff --git a/macros/latex/contrib/diagbox/diagbox.dtx b/macros/latex/contrib/diagbox/diagbox.dtx index 0fa92deec6..341a3cdccf 100644 --- a/macros/latex/contrib/diagbox/diagbox.dtx +++ b/macros/latex/contrib/diagbox/diagbox.dtx @@ -58,6 +58,7 @@ \makeatother \usepackage[numbered]{hypdoc} \hypersetup{pdfstartview=FitH} +\fvset{gobble=1} %% 删除例子代码开头的 % \EnableCrossrefs \CodelineIndex \RecordChanges @@ -69,7 +70,7 @@ %</driver> % \fi % -% \CheckSum{661} +% \CheckSum{901} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -97,7 +98,8 @@ % \newbox, \newdimen, \p@, \PackageError, \pkg, \put, \relax, \RequirePackage, % \setbox, \setkeys, \setlength, \strip@pt, \unexpanded, \unitlength, % \vcenter, \wd, \xdef, \z@, \@ifnextchar, \bgroup, \FPadd, \FPmul, \FPneg, -% \FPsub, \FPupn, \let, \unless, \hspace} +% \FPsub, \FPupn, \let, \unless, \hspace, \@tempskipa, \newif, \detokenize, +% \@@, \\, \c, \l, \cs, \fp, \dim, \msg, \scan} % % \providecommand*{\pkg}{\textsf} % \GetFileInfo{diagbox.dtx} @@ -629,13 +631,8 @@ % \begin{macrocode} \RequirePackage{pict2e} % \end{macrocode} -% 计算依赖 \pkg{fp} 宏包。 % \changes{v2.2}{2016/12/28}{避免 \pkg{fp} 包的 \texttt{nomessages} 选项在使用 % \pkg{catoptions} 包时冲突} -% \begin{macrocode} -\RequirePackage{fp} -\FPmessagesfalse -% \end{macrocode} % 长度计算 \pkg{calc} 宏包。 % \changes{v2.2}{2016/12/28}{使用 \pkg{calc} 包计算选项参数,以支持 % \cs{widthof} 等命令。} @@ -1004,6 +1001,88 @@ % \changes{v2.3}{2020/02/09}{检测二次方程无解、异常解的情形} % 分成三部分的盒子。四个参数,分别为 key-value 格式的可选项、左半边内容、中间 % 内容、右半边内容。 +% \begin{macrocode} +\def\diagbox@triple#1#2#3#4{% + \begingroup + \diagbox@clear + \def\diagbox@part{triple}% + \setkeys{diagbox}{dir=NW,#1}% + \@nameuse{diagbox@triple@setbox@\diagbox@dir}{#2}{#3}{#4}% +% \end{macrocode} +% 在宏包最后定义,需要返回 "\x", "\xm", "\xxm", "\y", "\ym" 和 "\yym"。 +% \begin{macrocode} + \diagbox@solve@equations + $\vcenter{\hbox{\diagbox@pict}}$% + \endgroup} +% \end{macrocode} +% \end{macro} +% +% \subsection{用户命令} +% +% \begin{macro}{\diagbox} +% \changes{v2.0}{2011/11/22}{判断参数个数,选择两部分或三部分盒子。} +% 主要的用户命令。判断使用两部分还是三部分的盒子。 +% \begin{macrocode} +\newcommand\diagbox[3][]{% + \@ifnextchar\bgroup + {\diagbox@triple{#1}{#2}{#3}}{\diagbox@double{#1}{#2}{#3}}} +% \end{macrocode} +% \end{macro} +% +% 以下代码用来模拟 \pkg{slashbox} 宏包的功能。 +% +% 禁止读入 \pkg{slashbox}。 +% \begin{macrocode} +\expandafter\xdef\csname ver@slashbox.\@pkgextension\endcsname{9999/99/99} +% \end{macrocode} +% +% +% \begin{macro}{\slashbox} +% 模拟 "\slashbox"。 +% \begin{macrocode} +\def\slashbox{% + \def\diagbox@slashbox@options{dir=SW,}% + \slashbox@} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\backslashbox} +% 模拟 "\backslashbox"。 +% \begin{macrocode} +\def\backslashbox{% + \def\diagbox@slashbox@options{dir=NW,}% + \slashbox@} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\slashbox@} +% \begin{macrocode} +\newcommand\slashbox@[1][]{% + \ifx\relax#1\relax\else + \edef\diagbox@slashbox@options{% + \unexpanded\expandafter{\diagbox@slashbox@options}% + \unexpanded{width=#1,}}% + \fi + \slashbox@@} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\slashbox@@} +% \begin{macrocode} +\newcommand\slashbox@@[3][]{% + \edef\diagbox@slashbox@options{% + \unexpanded\expandafter{\diagbox@slashbox@options}% + \unexpanded{trim=#1,}}% + \expandafter\diagbox\expandafter[\diagbox@slashbox@options]{#2}{#3}} +% \end{macrocode} +% \end{macro} +% +% \changes{v2.4}{2020/02/28}{利用 \pkg{l3fp} 解方程组。} +% +% \subsection{解方程组} % % 这里计算双斜线盒子宽、高的算法是简单而直观的。如下图所示,将 A、M、B 三个子盒 % 子分别放在斜线盒的三个角后,斜线正好使 M 盒、A 或 B 盒、斜线盒的一角三点共 @@ -1023,6 +1102,16 @@ % \frac{y}{y_b} &= \frac{x - x_m}{x - x_m - x_b}. % \end{align*} % 该方程组通常可化简为一个一元二次方程求解,两组共轭根中可以只需要较大的一组。 +% 通过 Mathematica 软件,容易得到方程组的解为: +% \begin{align*} +% x & = \frac{u + v \pm \sqrt{\Delta}} {2(t - y_b)}, \\ +% y & = \frac{u - v \mp \sqrt{\Delta}} {2(x_a - s)}, \\ +% \Delta & := (u + v)^2 + 4 x_a (t - y_b) \bigl(x_m (y_b - y_m) - x_b y_m\bigr), \\ +% u & := x_a y_m - x_m y_b, \\ +% v & := st - x_a y_b, \\ +% s & := x_b + x_m, \\ +% t & := y_a + y_m. +% \end{align*} % 但须注意上面的方程组并非总有正的实根,经过简单的代数分析可知,要给出几何直观 % 的可行解(正实根),需要同时满足以下条件: % \begin{align*} @@ -1030,13 +1119,164 @@ % y_b &< y_m + y_a. % \end{align*} % 该条件需要在计算中予以检查。 +% +% \begin{macro}{\diagbox@solve@equations} +% 如果 \pkg{expl3} 环境可用,就使用 \pkg{l3fp} 计算,否则使用 \pkg{fp} 包。 % \begin{macrocode} -\def\diagbox@triple#1#2#3#4{% - \begingroup - \diagbox@clear - \def\diagbox@part{triple}% - \setkeys{diagbox}{dir=NW,#1}% - \@nameuse{diagbox@triple@setbox@\diagbox@dir}{#2}{#3}{#4}% +\ifcsname\detokenize{fp_eval:n}\endcsname +\csname fi\endcsname +\ExplSyntaxOn +%<@@=diagbox> +\cs_new_protected:Npn \@@_solve_equations: + { +% \end{macrocode} +% 取长宽。 +% \begin{macrocode} + \fp_set:Nn \l_@@_xa_fp + { \dim_to_fp:n { \wd \diagbox@boxa } } + \fp_set:Nn \l_@@_ya_fp + { \dim_to_fp:n { \ht \diagbox@boxa + \dp \diagbox@boxa } } + \fp_set:Nn \l_@@_xb_fp + { \dim_to_fp:n { \wd \diagbox@boxb } } + \fp_set:Nn \l_@@_yb_fp + { \dim_to_fp:n { \ht \diagbox@boxb + \dp \diagbox@boxb } } + \fp_set:Nn \l_@@_xm_fp + { \dim_to_fp:n { \wd \diagbox@boxm } } + \fp_set:Nn \l_@@_ym_fp + { \dim_to_fp:n { \ht \diagbox@boxm + \dp \diagbox@boxm } } + \fp_set:Nn \l_@@_s_fp { \l_@@_xb_fp + \l_@@_xm_fp } + \fp_set:Nn \l_@@_t_fp { \l_@@_ya_fp + \l_@@_ym_fp } +% \end{macrocode} +% 如果宽度和长度都被指定了,就不需要列方程组求解。 +% \begin{macrocode} + \fp_set_eq:NN \l_@@_delta_fp \c_nan_fp + \dim_compare:nNnTF \diagbox@wd = \c_zero_dim + { \@@_calculate_width: } + { \fp_set:Nn \l_@@_x_fp { \dim_to_fp:n { \diagbox@wd } } } + \dim_compare:nNnTF \diagbox@ht = \c_zero_dim + { \@@_calculate_height: } + { \fp_set:Nn \l_@@_y_fp { \dim_to_fp:n { \diagbox@ht } } } + \edef \x { \fp_use:N \l_@@_x_fp } + \edef \y { \fp_use:N \l_@@_y_fp } + \edef \xm { \fp_use:N \l_@@_xm_fp } + \edef \ym { \fp_use:N \l_@@_ym_fp } + \edef \xxm { \fp_eval:n { \l_@@_x_fp - \l_@@_xm_fp } } + \edef \yym { \fp_eval:n { \l_@@_y_fp - \l_@@_ym_fp } } + } +% \end{macrocode} +% 检查可行解条件,解二次方程。这里对于无正实根的情形,会给出一个宽松的值作为斜 +% 线盒子的宽高: +% \begin{align*} +% x &= 2 \max(x_a + x_m, x_b + x_m),\\ +% y &= 2 \max(y_a + y_m, y_b + y_m). +% \end{align*} +% \begin{macrocode} +\cs_new_protected:Npn \@@_calculate_width: + { + \fp_zero:N \l_@@_x_fp + \fp_compare:nNnT \l_@@_yb_fp < \l_@@_t_fp + { + \@@_calculate_coefficient: + \fp_if_nan:nF { \l_@@_sqrt_fp } + { + \fp_set:Nn \l_@@_x_fp + { + ( \l_@@_u_fp + \l_@@_v_fp + \l_@@_sqrt_fp ) / + ( 2 ( \l_@@_t_fp - \l_@@_yb_fp ) ) + } + } + } + \fp_compare:nNnF \l_@@_x_fp > \c_zero_fp + { + \fp_set:Nn \l_@@_x_fp + { 2 ( max( \l_@@_xa_fp , \l_@@_xb_fp ) + \l_@@_xm_fp ) } + \msg_warning:nnxx { diagbox } { calculate-error } + { width } { \fp_use:N \l_@@_x_fp } + } + \diagbox@wd = \fp_to_dim:N \l_@@_x_fp \scan_stop: + } +\cs_new_protected:Npn \@@_calculate_height: + { + \fp_zero:N \l_@@_y_fp + \fp_compare:nNnT \l_@@_xa_fp < \l_@@_s_fp + { + \@@_calculate_coefficient: + \fp_if_nan:nF { \l_@@_sqrt_fp } + { + \fp_set:Nn \l_@@_y_fp + { + ( \l_@@_u_fp - \l_@@_v_fp - \l_@@_sqrt_fp ) / + ( 2 ( \l_@@_xa_fp - \l_@@_s_fp ) ) + } + } + } + \fp_compare:nNnF \l_@@_y_fp > \c_zero_fp + { + \fp_set:Nn \l_@@_y_fp + { 2 ( max( \l_@@_ya_fp , \l_@@_yb_fp ) + \l_@@_ym_fp ) } + \msg_warning:nnxx { diagbox } { calculate-error } + { height } { \fp_use:N \l_@@_y_fp } + } + \diagbox@ht = \fp_to_dim:N \l_@@_y_fp \scan_stop: + } +\cs_new_protected:Npn \@@_calculate_coefficient: + { + \fp_if_nan:nT { \l_@@_delta_fp } + { \@@_calculate_coefficient_aux: } + } +\cs_new_protected:Npn \@@_calculate_coefficient_aux: + { + \fp_set:Nn \l_@@_u_fp + { + \l_@@_xa_fp * \l_@@_ym_fp - + \l_@@_xm_fp * \l_@@_yb_fp + } + \fp_set:Nn \l_@@_v_fp + { + \l_@@_s_fp * \l_@@_t_fp - + \l_@@_xa_fp * \l_@@_yb_fp + } + \fp_set:Nn \l_@@_delta_fp + { + ( \l_@@_u_fp + \l_@@_v_fp )^2 + + 4 * \l_@@_xa_fp * ( \l_@@_t_fp - \l_@@_yb_fp ) * + ( \l_@@_xm_fp * ( \l_@@_yb_fp - \l_@@_ym_fp ) - + \l_@@_xb_fp * \l_@@_ym_fp ) + } + \fp_compare:nNnTF \l_@@_delta_fp < \c_zero_fp + { \fp_set_eq:NN \l_@@_sqrt_fp \c_nan_fp } + { \fp_set:Nn \l_@@_sqrt_fp { sqrt(\l_@@_delta_fp) } } + } +\cs_new_eq:NN \diagbox@solve@equations \@@_solve_equations: +\fp_new:N \l_@@_xa_fp +\fp_new:N \l_@@_ya_fp +\fp_new:N \l_@@_xb_fp +\fp_new:N \l_@@_yb_fp +\fp_new:N \l_@@_xm_fp +\fp_new:N \l_@@_ym_fp +\fp_new:N \l_@@_x_fp +\fp_new:N \l_@@_y_fp +\fp_new:N \l_@@_s_fp +\fp_new:N \l_@@_t_fp +\fp_new:N \l_@@_u_fp +\fp_new:N \l_@@_v_fp +\fp_new:N \l_@@_sqrt_fp +\fp_new:N \l_@@_delta_fp +\msg_new:nnn { diagbox } { calculate-error } + { + Cannot~calculate~proper~#1~of~triple~diagbox~ + \msg_line_context:. \\ + Use~#2pt~instead. + } +\file_input_stop: +% \end{macrocode} +% +% 若 \pkg{l3fp} 不可用,则引入 \pkg{fp} 包计算。 +% \begin{macrocode} +\fi +\RequirePackage{fp} +\FPmessagesfalse +\def\diagbox@solve@equations{% % \end{macrocode} % 取长宽 % \begin{macrocode} @@ -1096,81 +1336,12 @@ \else \edef\y{\strip@pt\diagbox@ht}% \fi -% \end{macrocode} -% 画盒子 -% \begin{macrocode} \FPsub\xxm\x\xm \FPsub\yym\y\ym - $\vcenter{\hbox{\diagbox@pict}}$% - \endgroup} -% \end{macrocode} -% \end{macro} -% -% \subsection{用户命令} -% -% \begin{macro}{\diagbox} -% \changes{v2.0}{2011/11/22}{判断参数个数,选择两部分或三部分盒子。} -% 主要的用户命令。判断使用两部分还是三部分的盒子。 -% \begin{macrocode} -\newcommand\diagbox[3][]{% - \@ifnextchar\bgroup - {\diagbox@triple{#1}{#2}{#3}}{\diagbox@double{#1}{#2}{#3}}} -% \end{macrocode} -% \end{macro} -% -% 以下代码用来模拟 \pkg{slashbox} 宏包的功能。 -% -% 禁止读入 \pkg{slashbox}。 -% \begin{macrocode} -\expandafter\xdef\csname ver@slashbox.\@pkgextension\endcsname{9999/99/99} -% \end{macrocode} -% -% -% \begin{macro}{\slashbox} -% 模拟 "\slashbox"。 -% \begin{macrocode} -\def\slashbox{% - \def\diagbox@slashbox@options{dir=SW,}% - \slashbox@} -% \end{macrocode} -% \end{macro} -% -% -% \begin{macro}{\backslashbox} -% 模拟 "\backslashbox"。 -% \begin{macrocode} -\def\backslashbox{% - \def\diagbox@slashbox@options{dir=NW,}% - \slashbox@} -% \end{macrocode} -% \end{macro} -% -% -% \begin{macro}{\slashbox@} -% \begin{macrocode} -\newcommand\slashbox@[1][]{% - \ifx\relax#1\relax\else - \edef\diagbox@slashbox@options{% - \unexpanded\expandafter{\diagbox@slashbox@options}% - \unexpanded{width=#1,}}% - \fi - \slashbox@@} -% \end{macrocode} -% \end{macro} -% -% -% \begin{macro}{\slashbox@@} -% \begin{macrocode} -\newcommand\slashbox@@[3][]{% - \edef\diagbox@slashbox@options{% - \unexpanded\expandafter{\diagbox@slashbox@options}% - \unexpanded{trim=#1,}}% - \expandafter\diagbox\expandafter[\diagbox@slashbox@options]{#2}{#3}} -\endinput +} % \end{macrocode} % \end{macro} % -% % \iffalse %</package> % \fi diff --git a/macros/latex/contrib/diagbox/diagbox.ins b/macros/latex/contrib/diagbox/diagbox.ins index 196e5eb08b..2011c3321c 100644 --- a/macros/latex/contrib/diagbox/diagbox.ins +++ b/macros/latex/contrib/diagbox/diagbox.ins @@ -16,7 +16,7 @@ %% and the derived filebase diagbox.sty. %% -\input docstrip.tex +\input l3docstrip.tex \keepsilent \usedir{tex/latex/diagbox} diff --git a/macros/latex/contrib/diagbox/diagbox.pdf b/macros/latex/contrib/diagbox/diagbox.pdf Binary files differindex b891b8926a..51592660f8 100644 --- a/macros/latex/contrib/diagbox/diagbox.pdf +++ b/macros/latex/contrib/diagbox/diagbox.pdf diff --git a/macros/latex/contrib/icite/Makefile b/macros/latex/contrib/icite/Makefile index 35bf3e4a63..e06046ec57 100644 --- a/macros/latex/contrib/icite/Makefile +++ b/macros/latex/contrib/icite/Makefile @@ -95,7 +95,7 @@ zip: all package: distclean all mkdir $(NAME)/ - cp Makefile README.md $(NAME).{dtx,ins,pdf} $(NAME)/ + cp Makefile README.md $(NAME).{dtx,pdf} $(NAME)/ cp -r samples/ $(NAME)/ mkdir -p tex/latex/$(NAME)/ cp $(NAME).sty tex/latex/$(NAME)/ diff --git a/macros/latex/contrib/icite/README.md b/macros/latex/contrib/icite/README.md index 05846e536a..a96df41d83 100644 --- a/macros/latex/contrib/icite/README.md +++ b/macros/latex/contrib/icite/README.md @@ -17,7 +17,7 @@ License and disclamer icite – Indices locorum citatorum -Copyright ⓒ 2019 Robert Alessi +Copyright ⓒ 2019--2020 Robert Alessi Please send error reports and suggestions for improvements to Robert Alessi: @@ -46,14 +46,16 @@ This release of icite consists of the following source files: - `icite.dtx` -- `icite.ins` +- `icite.ins` (As this file can be generated from `icite.dtx`, it is + not included in CTAN repository, but it is included in the git + repository mentioned below for easier installation.) - `Makefile` License applicable to the documentation --------------------------------------- -Copyright ⓒ 2019 Robert Alessi +Copyright ⓒ 2019--2020 Robert Alessi The documentation file `icite.pdf` that is generated from the `icite.dtx` source file is licensed under the Creative Commons @@ -64,8 +66,11 @@ a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. Installation ============ -1. Run `'latex icite.ins'` to produce the `icite.sty` - file; +1. If `icite` was downloaded from CTAN, run `'lualatex --shell-escape + icite.dtx'` to produce the `icite.sty` file. + + If `icite` was downloaded from the git repository mentioned above, + Run `'latex icite.ins'` to produce the `icite.sty` file. 2. To finish the installation you have to move the `icite.sty` file into a directory where LaTeX can find them. See the FAQ on `texfaq.org` diff --git a/macros/latex/contrib/icite/icite.dtx b/macros/latex/contrib/icite/icite.dtx index 1e61a15d9c..d89d01299d 100644 --- a/macros/latex/contrib/icite/icite.dtx +++ b/macros/latex/contrib/icite/icite.dtx @@ -23,7 +23,7 @@ License and disclamer icite – Indices locorum citatorum -Copyright ⓒ 2019 Robert Alessi +Copyright ⓒ 2019--2020 Robert Alessi Please send error reports and suggestions for improvements to Robert Alessi: @@ -52,14 +52,16 @@ This release of icite consists of the following source files: - `icite.dtx` -- `icite.ins` +- `icite.ins` (As this file can be generated from `icite.dtx`, it is + not included in CTAN repository, but it is included in the git + repository mentioned below for easier installation.) - `Makefile` License applicable to the documentation --------------------------------------- -Copyright ⓒ 2019 Robert Alessi +Copyright ⓒ 2019--2020 Robert Alessi The documentation file `icite.pdf` that is generated from the `icite.dtx` source file is licensed under the Creative Commons @@ -70,8 +72,11 @@ a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. Installation ============ -1. Run `'latex icite.ins'` to produce the `icite.sty` - file; +1. If `icite` was downloaded from CTAN, run `'lualatex --shell-escape + icite.dtx'` to produce the `icite.sty` file. + + If `icite` was downloaded from the git repository mentioned above, + Run `'latex icite.ins'` to produce the `icite.sty` file. 2. To finish the installation you have to move the `icite.sty` file into a directory where LaTeX can find them. See the FAQ on `texfaq.org` @@ -131,7 +136,7 @@ be able to make whatever changes you like to. \askforoverwritefalse \preamble -Copyright (C) 2019 by Robert Alessi <alessi@robertalessi.net> +Copyright (C) 2019-2020 by Robert Alessi <alessi@robertalessi.net> Please send error reports and suggestions for improvements to Robert Alessi <alessi@robertalessi.net> @@ -188,7 +193,7 @@ Running "make install" installs the files in the local TeX tree. %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{icite} %<*package> - [2019/03/17 v1.2 Make Indices locorum citatorum] + [2020/02/29 v1.3 Make Indices locorum citatorum] %</package> %<*driver> \documentclass{ltxdoc} @@ -258,7 +263,7 @@ Running "make install" installs the files in the local TeX tree. } @Book{IAUMuller, - sortname = {Ibn abi Usaybia}, + sortname = {{ibn abi usaybia}}, editor = {Müller, August}, author = {\prname{ibn 'abI 'u.saybi`aT}}, shorteditor = {Müller}, @@ -289,7 +294,7 @@ Running "make install" installs the files in the local TeX tree. title = {\arb[trans]{\uc{k}itAb al-^sukUk `al_A \uc{^g}AlInUs}}, indextitle = {\arb[trans]{\uc{^s}ukUk}}, - sortname = {Razi}, + sortname = {razi}, date = 1993, shorthand = {\prname{al-rAziyy}, \arb[trans]{\uc{^s}ukUk}}, editor = {Mehdi Mohaghegh}, @@ -310,7 +315,7 @@ Running "make install" installs the files in the local TeX tree. @MVBook{al-Nadim, author = {\prname{ibn al-nadIm}}, title = {\arb[trans]{\uc{f}ihrist}}, - sortname = {Ibn al-Nadim}, + sortname = {{ibn al-nadim}}, date = {1871/1872}, shorthand = {\arb[trans]{\uc{f}ihrist}}, editor = {Flügel, Gustav}, @@ -320,7 +325,7 @@ Running "make install" installs the files in the local TeX tree. } @Book{al-Qifti, - sortname = {Ibn al-Qifti}, + sortname = {{ibn al-qifti}}, entrysubtype = {classical}, shorthand = {\prname{al-qif.tiyy}, \arb[trans]{\uc{t}a'rI_h}}, location = {Leipzig}, @@ -340,25 +345,25 @@ Running "make install" installs the files in the local TeX tree. version = {1.0a} } \end{filecontents*} +\usepackage{fontspec} \usepackage[english]{babel} \usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} -\usepackage{fontspec} -\setmainfont{Old Standard}[RawFeature={+ss05;+ss06}] -\usepackage{newunicodechar} -\newunicodechar{ǧ}{ǧ} % Old Standard does not include ǧ/Ǧ -\newunicodechar{Ǧ}{Ǧ} % +\babelfont{rm}{Old Standard} +\babelfont{sf}{NewComputerModern Sans} +\babelfont{tt}{NewComputerModern Mono} \usepackage{arabluatex} \SetTranslitConvention{loc} \usepackage{xurl} \usepackage{uri} \usepackage{hyperxmp} \usepackage{varioref} +\usepackage{latexcolors} \usepackage[numbered]{hypdoc} -\hypersetup{unicode=true, colorlinks, allcolors=blue, +\hypersetup{unicode=true, colorlinks, allcolors=cinnamon, linktocpage=true, pdfauthor={Robert Alessi}, pdftitle={The icite package}, pdfcontactemail={alessi@robertalessi.net}, pdfcontacturl={http://www.robertalessi.net/icite}, - pdfcopyright={Copyright (C) 2019 Robert Alessi + pdfcopyright={Copyright (C) 2019--2020 Robert Alessi <alessi@robertalessi.net>. This document is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit @@ -408,7 +413,7 @@ Running "make install" installs the files in the local TeX tree. \newcommand{\package}[1]{\textsf{#1}\index{#1=#1 (package)}} \usepackage{tikz} \usepackage[breakable, skins, xparse, minted]{tcolorbox} -\tcbset{colback=white, boxrule=.15mm, colframe=red!50!white, +\tcbset{colback=white, boxrule=.15mm, colframe=cinnamon, breakable} \newtcblisting{example}{minted options={linenos, numbersep=0mm}} \newtcblisting{code}{minted options={linenos, numbersep=0mm}, listing @@ -451,7 +456,7 @@ Running "make install" installs the files in the local TeX tree. %</driver> % \fi % -% \CheckSum{352} +% \CheckSum{360} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -526,7 +531,7 @@ Running "make install" installs the files in the local TeX tree. % \label{sec:license-software} % % \package{icite} --- \emph{Indices locorum citatorum}\\ -% Copyright \textcopyright\ 2019 Robert Alessi +% Copyright \textcopyright\ 2019--2020 Robert Alessi % % Please send error reports and suggestions for improvements to Robert % Alessi: @@ -563,7 +568,7 @@ Running "make install" installs the files in the local TeX tree. % % \subsection*{License applicable to this document} % \label{sec:documentation-license} -% Copyright \textcopyright\ 2019 Robert Alessi +% Copyright \textcopyright\ 2019--2020 Robert Alessi % % \ccbysa\marginpar{\texttt{CC BY-SA 4.0}} % This document is licensed under the Creative Commons @@ -609,7 +614,7 @@ Running "make install" installs the files in the local TeX tree. %</example> % \fi % -% \package{icite} may be loaded with two optional \enquote*{named +% \package{icite} may be loaded with three optional \enquote*{named % arguments} either of which is set using the syntax % \meta{key}$=$\meta{value}. The description of the optional arguments % follows:--- @@ -626,7 +631,7 @@ Running "make install" installs the files in the local TeX tree. % \tcboxverb{Default: not set}\\ % \meta{index\_name} is the name of the index in which all passages % cited with the \cs{icite} command are to be found by default. As -% this option is not initally set, \cs{icite} naturally inserts cited +% this option is not initially set, \cs{icite} naturally inserts cited % passages in the default general index, unless |defaultindex| is set % to the value |none|, in which case indexing is disabled. It must be % noted that this named argument does not need a value as it defaults @@ -717,8 +722,9 @@ Running "make install" installs the files in the local TeX tree. % is satisfactory in most cases. % \item[indexauthor] This field is not set by Bib\LaTeX. However, it % may be used as a fallback field for multiple or complex names. -% \item[sortname] This standard Bib\LaTeX\ which is never printed may -% be used to modify the sorting order of the index entries. +% \item[sortname] This standard Bib\LaTeX\ field which is never +% printed may be used to modify the sorting order of the index +% entries. % \end{description} % % \paragraph{Example} @@ -733,7 +739,7 @@ Running "make install" installs the files in the local TeX tree. % But in the end, the |sortname| field is also needed because the % diacritics must be discarded so that the name be sorted % properly:\\[1ex]% -% |sortname = {|Hunayn ibn Ishaq|}| +% |sortname = {{|Hunayn ibn Ishaq|}}| % % \subsection{Titles} % To process titles, \package{icite} uses the following entry fields: @@ -1111,7 +1117,7 @@ Running "make install" installs the files in the local TeX tree. \begin{code} % preamble: \usepackage[xindy]{imakeidx} - \makeindex[name=loccit, options=-M icite.sty] + \makeindex[name=loccit, options=-M icite.xdy] % document: \printindex[loccit] \end{code} @@ -1320,6 +1326,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1332,7 +1339,8 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle}% \fi\fi% - \fi}} + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% @@ -1352,6 +1360,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle!#1}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1364,13 +1373,14 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle!#1}% \fi\fi% - \fi}}% + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% \ic@titpgdelim{#1}% \else% - \@shorthand, {#1}% + \@shorthand\ic@titpgdelim{#1}% \fi% \else% \fi% @@ -1384,6 +1394,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle!#2}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1396,13 +1407,14 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle!#2}% \fi\fi% - \fi}}% + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% #1 \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% \ic@titpgdelim{#2}% \else% - #1 \@shorthand, {#2}% + #1 \@shorthand\ic@titpgdelim{#2}% \fi \else% \fi% diff --git a/macros/latex/contrib/icite/icite.ins b/macros/latex/contrib/icite/icite.ins deleted file mode 100644 index 176b1fd700..0000000000 --- a/macros/latex/contrib/icite/icite.ins +++ /dev/null @@ -1,71 +0,0 @@ -%% -%% This is file `icite.ins', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% icite.dtx (with options: `install') -%% -%% Copyright (C) 2019 by Robert Alessi <alessi@robertalessi.net> -%% -%% Please send error reports and suggestions for improvements to Robert -%% Alessi <alessi@robertalessi.net> -%% -%% 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 -%% <http://www.gnu.org/licenses/>. -%% -%% This work consists of the file icite.dtx, icite.ins and a Makefile. -%% Running "make" generates the derived files README.md, icite.pdf and icite.sty. -%% Running "make inst" installs the files in the user's TeX tree. -%% Running "make install" installs the files in the local TeX tree. -%% -\input docstrip.tex -\keepsilent -\askforoverwritefalse -\preamble - -Copyright (C) 2019 by Robert Alessi <alessi@robertalessi.net> - -Please send error reports and suggestions for improvements to Robert -Alessi <alessi@robertalessi.net> - -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 -<http://www.gnu.org/licenses/>. - -This work consists of the file icite.dtx, icite.ins and a Makefile. -Running "make" generates the derived files README.md, icite.pdf and icite.sty. -Running "make inst" installs the files in the user's TeX tree. -Running "make install" installs the files in the local TeX tree. - -\endpreamble - -\usedir{tex/latex/icite} -\generate{ - \file{\jobname.sty}{\from{\jobname.dtx}{package}} -} -\endbatchfile -\endinput -%% -%% End of file `icite.ins'. diff --git a/macros/latex/contrib/icite/icite.pdf b/macros/latex/contrib/icite/icite.pdf Binary files differindex c492cb5e31..a39837d7c0 100644 --- a/macros/latex/contrib/icite/icite.pdf +++ b/macros/latex/contrib/icite/icite.pdf diff --git a/macros/latex/contrib/icite/samples/icite-biblatex.pdf b/macros/latex/contrib/icite/samples/icite-biblatex.pdf Binary files differindex f19d15473c..54154eb06f 100644 --- a/macros/latex/contrib/icite/samples/icite-biblatex.pdf +++ b/macros/latex/contrib/icite/samples/icite-biblatex.pdf diff --git a/macros/latex/contrib/icite/samples/icite-minimal.pdf b/macros/latex/contrib/icite/samples/icite-minimal.pdf Binary files differindex e010128479..13b201c4d8 100644 --- a/macros/latex/contrib/icite/samples/icite-minimal.pdf +++ b/macros/latex/contrib/icite/samples/icite-minimal.pdf diff --git a/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf b/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf Binary files differindex ae93aa9deb..7f524bb7ec 100644 --- a/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf +++ b/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf |