summaryrefslogtreecommitdiff
path: root/macros/latex/contrib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-04-29 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2022-04-29 03:00:51 +0000
commit871577883bd14da9df6a3b85bae42337e392f583 (patch)
tree1e27a0d5b1a66a08b1f634fab339f60c528995cb /macros/latex/contrib
parentaf956ba2c2710e269fb7eed018809aa08da5bd40 (diff)
CTAN sync 202204290300
Diffstat (limited to 'macros/latex/contrib')
-rw-r--r--macros/latex/contrib/doclicense/doclicense-chinese-gbk.ldf2
-rw-r--r--macros/latex/contrib/doclicense/doclicense-chinese-tw.ldf30
-rw-r--r--macros/latex/contrib/doclicense/doclicense-chinese-utf8.ldf2
-rw-r--r--macros/latex/contrib/doclicense/doclicense-esperanto.ldf45
-rw-r--r--macros/latex/contrib/doclicense/doclicense-swedish.ldf43
-rw-r--r--macros/latex/contrib/doclicense/doclicense.dtx34
-rw-r--r--macros/latex/contrib/doclicense/doclicense.pdfbin262284 -> 273455 bytes
-rw-r--r--macros/latex/contrib/doclicense/manifest.txt1
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdfbin487568 -> 498392 bytes
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex171
-rw-r--r--macros/latex/contrib/proflycee/tex/ProfLycee.sty65
11 files changed, 352 insertions, 41 deletions
diff --git a/macros/latex/contrib/doclicense/doclicense-chinese-gbk.ldf b/macros/latex/contrib/doclicense/doclicense-chinese-gbk.ldf
index e042127cf5..5390e68f45 100644
--- a/macros/latex/contrib/doclicense/doclicense-chinese-gbk.ldf
+++ b/macros/latex/contrib/doclicense/doclicense-chinese-gbk.ldf
@@ -5,7 +5,7 @@
% This work consists of all files listed in manifest.txt.
% For more details about the licensing, refer to the README.md file.
-\ProvidesFile{doclicense-chinese.ldf}
+\ProvidesFile{doclicense-chinese-gbk.ldf}
\@namedef{doclicense@lang@thisDoc}{本作品采用}%
\@namedef{doclicense@lang@word@license}{许可协议进行许可}%
diff --git a/macros/latex/contrib/doclicense/doclicense-chinese-tw.ldf b/macros/latex/contrib/doclicense/doclicense-chinese-tw.ldf
new file mode 100644
index 0000000000..3d4e37ff35
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-chinese-tw.ldf
@@ -0,0 +1,30 @@
+% SPDX-FileCopyrightText: 2019 sd44 <sd44sd44@yeah.net>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-chinese-tw.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{鏈綔鍝佷互}%
+\@namedef{doclicense@lang@word@license}{鍏溇鎺堟瑠姊濇閲嬪嚭}%
+
+\@namedef{doclicense@lang@lic@CC@code}{zh}%
+% Using:https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 閫氱敤}%
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{濮撳悕妯欑ず 3.0 鍙扮仯}%
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{濮撳悕妯欑ず鈥旂浉鍚屾柟寮忓垎浜 3.0 鍙扮仯}%
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{濮撳悕妯欑ず鈥旂姝㈡敼浣 3.0 鍙扮仯}%
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬 3.0 鍙扮仯}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬р旂浉鍚屾柟寮忓垎浜 3.0 鍙扮仯}%
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬р旂姝㈡敼浣 3.0 鍙扮仯}%
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{濮撳悕妯欑ず 4.0 鍦嬮殯}%
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{濮撳悕妯欑ず鈥旂浉鍚屾柟寮忓垎浜 4.0 鍦嬮殯}%
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{濮撳悕妯欑ず鈥旂姝㈡敼浣 4.0 鍦嬮殯}%
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬 4.0 鍦嬮殯}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬р旂浉鍚屾柟寮忓垎浜 4.0 鍦嬮殯}%
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{濮撳悕妯欑ず鈥旈潪鍟嗘キ鎬р旂姝㈡敼浣 4.0 鍦嬮殯}%
diff --git a/macros/latex/contrib/doclicense/doclicense-chinese-utf8.ldf b/macros/latex/contrib/doclicense/doclicense-chinese-utf8.ldf
index e61621a98d..3231794c51 100644
--- a/macros/latex/contrib/doclicense/doclicense-chinese-utf8.ldf
+++ b/macros/latex/contrib/doclicense/doclicense-chinese-utf8.ldf
@@ -5,7 +5,7 @@
% This work consists of all files listed in manifest.txt.
% For more details about the licensing, refer to the README.md file.
-\ProvidesFile{doclicense-chinese.ldf}
+\ProvidesFile{doclicense-chinese-utf8.ldf}
\@namedef{doclicense@lang@thisDoc}{鏈綔鍝侀噰鐢▆%
\@namedef{doclicense@lang@word@license}{璁稿彲鍗忚杩涜璁稿彲}%
diff --git a/macros/latex/contrib/doclicense/doclicense-esperanto.ldf b/macros/latex/contrib/doclicense/doclicense-esperanto.ldf
new file mode 100644
index 0000000000..7c4a271150
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-esperanto.ldf
@@ -0,0 +1,45 @@
+% SPDX-FileCopyrightText: 2022 Ingemar Berg <73386284+ingemarberg@users.noreply.github.com>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-esperanto.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{膱i tiu verko estas disponebla la怒 la permesilo}%
+\@namedef{doclicense@lang@word@license}{}%
+
+\@namedef{doclicense@lang@lic@CC}{Krea Komuna牡o}
+
+\@namedef{doclicense@lang@lic@CC@code}{eo}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 Universala}%
+% https://creativecommons.org/publicdomain/zero/1.0/deed.eo
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{Atribuite 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by/3.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Atribuite-Samkondi膲e 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by-sa/3.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Atribuite-Nemodifite 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by-nd/3.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Atribuite-Nekomerce 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by-nc/3.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Atribuite-Nekomerce-Samkondi膲e 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by-nc-sa/3.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Atribuite-Nekomerce-Nemodifite 3.0 Neadaptita}%
+% https://creativecommons.org/licenses/by-nc-nd/3.0/deed.eo
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{Atribuite 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by/4.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Atribuite-Samkondi膲e 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by-sa/4.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Atribuite-Nemodifite 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by-nd/4.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Atribuite-Nekomerce 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by-nc/4.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Atribuite-Nekomerce-Samkondi膲e 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by-nc-sa/4.0/deed.eo
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Atribuite-Nekomerce-Nemodifite 4.0 Tutmonda}%
+% https://creativecommons.org/licenses/by-nc-nd/4.0/deed.eo
diff --git a/macros/latex/contrib/doclicense/doclicense-swedish.ldf b/macros/latex/contrib/doclicense/doclicense-swedish.ldf
new file mode 100644
index 0000000000..97017e456a
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-swedish.ldf
@@ -0,0 +1,43 @@
+% SPDX-FileCopyrightText: 2022 Ingemar Berg <73386284+ingemarberg@users.noreply.github.com>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-swedish.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{Detta verk 盲r licensierat under en}%
+\@namedef{doclicense@lang@word@license}{-licens}%
+
+\@namedef{doclicense@lang@lic@CC@code}{sv}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 universell}%
+% https://creativecommons.org/publicdomain/zero/1.0/deed.sv
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{Erk盲nnande 3.0 Unported}%
+% https://creativecommons.org/licenses/by/3.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Erk盲nnande-DelaLika 3.0 Unported}%
+% https://creativecommons.org/licenses/by-sa/3.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Erk盲nnande-IngaBearbetningar 3.0 Unported}%
+% https://creativecommons.org/licenses/by-nd/3.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Erk盲nnande-IckeKommersiell 3.0 Unported}%
+% https://creativecommons.org/licenses/by-nc/3.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Erk盲nnande-IckeKommersiell-DelaLika 3.0 Unported}%
+% https://creativecommons.org/licenses/by-nc-sa/3.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Erk盲nnande-Ickekommersiell-IngaBearbetningar 3.0 Unported}%
+% https://creativecommons.org/licenses/by-nc-nd/3.0/deed.sv
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{Erk盲nnande 4.0 Internationell}%
+% https://creativecommons.org/licenses/by/4.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Erk盲nnande-DelaLika 4.0 Internationell}%
+% https://creativecommons.org/licenses/by-sa/4.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Erk盲nnande-IngaBearbetningar 4.0 Internationell}%
+% https://creativecommons.org/licenses/by-nd/4.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Erk盲nnande-IckeKommersiell 4.0 Internationell}%
+% https://creativecommons.org/licenses/by-nc/4.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Erk盲nnande-IckeKommersiell-DelaLika 4.0 Internationell}%
+% https://creativecommons.org/licenses/by-nc-sa/4.0/deed.sv
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Erk盲nnande-Ickekommersiell-IngaBearbetningar 4.0 Internationell}%
+% https://creativecommons.org/licenses/by-nc-nd/4.0/deed.sv
diff --git a/macros/latex/contrib/doclicense/doclicense.dtx b/macros/latex/contrib/doclicense/doclicense.dtx
index e6520b4d80..f858db9c8d 100644
--- a/macros/latex/contrib/doclicense/doclicense.dtx
+++ b/macros/latex/contrib/doclicense/doclicense.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% SPDX-FileCopyrightText: 2015-2021 Robin Schneider <ypid@riseup.net>
+% SPDX-FileCopyrightText: 2015-2022 Robin Schneider <ypid@riseup.net>
%
% SPDX-License-Identifier: LPPL-1.3c
%
@@ -13,7 +13,7 @@
%<*driver>
\ProvidesFile{doclicense.dtx}
%</driver>
-%<package>% SPDX-FileCopyrightText: 2015-2021 Robin Schneider <ypid@riseup.net>
+%<package>% SPDX-FileCopyrightText: 2015-2022 Robin Schneider <ypid@riseup.net>
%<package>%
%<package>% SPDX-License-Identifier: LPPL-1.3c
%<package>%
@@ -24,7 +24,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
%<package>\ProvidesPackage{doclicense}
%<*package>
- [2021/07/11 v3.0.0 Support for putting documents under a license]
+ [2022/04/27 v3.1.0 Support for putting documents under a license]
%</package>
%
%<*driver>
@@ -133,10 +133,12 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \changes{2.0.0}{2020/05/27}{Add 80x15 version of CC images which can be used with the imagemodifier option. Fix slight color offset for all CC images caused by bad image conversion. Thanks to rodrigoalcarazdelaosa for reporting. Fix \cmd{\doclicenseThis} support for twocolumn layouts. Thanks to Nao Pross. Soft require package options "type", "modifier" and "version" now. Defaults are deprecated. This will become a package error in an upcoming major version of the package, with the earliest release in 2021-07 to give people time to migrate. Remove Creative Commons PD which has been replaced by CC-zero as of 2010-10-11. Update example license used for examples in manual to CC-BY-SA-4.0.}
% \changes{2.0.1}{2020/06/26}{Fix backwards compatibility by still accepting imagemodifier={-eu} and imagemodifier={-us}. Thanks to J眉rgen Spitzm眉ller for reporting. Fix ability to modify currency of \cmd{\doclicenseIcon} macro using imagemodifier to Japan currency JP without breaking \cmd{\doclicenseImage}.}
% \changes{2.1.0}{2020/07/26}{Fix regression: Proper language default image variants (Euro variants for example) was broken and the US variant was always used. This bug was introduced in v2.0.0. Documentation fixes. Added Marathi translation.}
-% \changes{2.2.0}{2020/09/18}{Add Japanese and Bulgarian translation. Add hint how to use Chinese to docs. Load hyperxmp by default when it is installed. Before, doclicense just suggested to load it and made use of the package when the user did.}
+% \changes{2.2.0}{2020/09/18}{Add Japanese and Bulgarian translations. Add hint how to use Chinese to docs. Load hyperxmp by default when it is installed. Before, doclicense just suggested to load it and made use of the package when the user did.}
% \changes{2.2.1}{2020/09/25}{Fix compatibility issue with newer versions of hyperxmp (bug confirmed with Tex Live 2020) resulting in an compile error by loading hyperxmp and hyperref in the order the packages expect it.}
% \changes{2.3.0}{2021/03/13}{Add option to disable the use of hyperxmp and add compatibility for pdfx. Use \url{https://reuse.software/} for the doclicense source code itself.}
% \changes{3.0.0}{2021/07/11}{Breaking change: Hard require package options "type", "modifier" and "version" now after one year in soft require migration period. Add Croatian translation. Add sections to docs about choosing a license and the REUSE specification. Update Spanish translation to match Creative Commons website. Add note to README that CC license texts and images are licensed themselves under CC0-1.0. Load csquotes after hyperref to avoid hyperref warning. Do not load the hyperxmp package if the silence package is loaded to avoid an endless loop. Improve warning messages generated by the package. Add "Dependency packages and load order" section to docs.}
+% \changes{3.1.0}{2022/04/27}{Add macro \cmd{\doclicenseLongTextForHyperref} and use it inside \cmd{\hypersetup} to replace the fagile code that was previously used. Add Traditional Chinese (Taiwan), Swedish and Esperanto translations.}
+%
%
%
% ^^A nag warned about the center environment and it really messes up spacing.
@@ -193,10 +195,10 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% installed, it will be loaded and the options \PrintOptionF{pdflicenseurl}
% and \PrintOptionF{pdfcopyright} will be set by \PackageName{} to the
% corresponding values (\enquote{\url{\doclicenseURL}} and
-% \enquote{\doclicenseLongText{}}). This embeds license metadata into the PDF
-% which proper PDF readers can show. For example Evince shows it in the
-% \enquote{Document License} tab under \enquote{Properties}. You may check
-% this manual for how your PDF reader handles such metadata.
+% \enquote{\doclicenseLongTextForHyperref{}}). This embeds license metadata
+% into the PDF which proper PDF readers can show. For example Evince shows it
+% in the \enquote{Document License} tab under \enquote{Properties}. You may
+% check this manual for how your PDF reader handles such metadata.
%
% In case you are using other packages to manipulate the metadata which is
% incompatible to the use of hyperxmp, e.\,g. \PrintPackage{pdfx} you can use
@@ -271,9 +273,10 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \item Brazilian
% \item Bulgarian
% \item Catalan
-% \item Chinese: Note that you might need to pass \verb+lang={chinese-utf8}+ or \verb+chinese-gbk+.
+% \item Chinese: Note that you might need to pass \verb+lang={chinese-utf8}+ \verb+lang={chinese-tw}+, or \verb+chinese-gbk+.
% \item Croatian
% \item English
+% \item Esperanto
% \item French
% \item Galician
% \item German
@@ -284,6 +287,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \item Portuguese
% \item Russian
% \item Spanish
+% \item Swedish
% \end{itemize}
%
% Image position for \cmd{\doclicenseThis}: right (default) or left.
@@ -421,6 +425,11 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% Same as \cmd{\doclicenseText} except that it uses the long name of the license.
% Example: \enquote{\doclicenseLongText{}}
%
+% \DescribeMacro{\doclicenseLongTextForHyperref}
+% \hspace{2.5em}Same as \cmd{\doclicenseLongText} except that it does not contain \cmd{\href}
+% and other complex macros. The purpose of this macro is to be used as value inside of \cmd{\hypersetup}.
+% Example: \enquote{\doclicenseLongTextForHyperref{}}
+%
% \DescribeMacro{\doclicensePlainFullText}
% Verbatim prints the full license text.
%
@@ -708,7 +717,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
\@ifpackageloaded{hyperxmp}{%
% The following options are only defined when the hyperxmp package was loaded.
\hypersetup{%
- pdfcopyright = {\doclicenseLongText},
+ pdfcopyright = {\doclicenseLongTextForHyperref},
pdflicenseurl = {\doclicenseURL},
}
}{}
@@ -835,6 +844,11 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
\href{\doclicenseURL}{\doclicenseLongType\space\enquote{\doclicense@longName}}%
\doclicense@lang@word@license.\xspace%
}
+\newcommand{\doclicenseLongTextForHyperref}{%
+ \doclicense@lang@thisDoc\space
+ \doclicenseLongType\space"\doclicense@longName"% chktex 18
+ \doclicense@lang@word@license.%
+}
\newcommand{\doclicenseIcon}{\doclicense@icon\xspace}
\newcommand{\doclicenseTypeIcon}{\doclicenseType}
% \newcommand{\doclicenseModifierIcon}{} % Not directly provided by ccicons.
diff --git a/macros/latex/contrib/doclicense/doclicense.pdf b/macros/latex/contrib/doclicense/doclicense.pdf
index a31cb3d636..07310c4324 100644
--- a/macros/latex/contrib/doclicense/doclicense.pdf
+++ b/macros/latex/contrib/doclicense/doclicense.pdf
Binary files differ
diff --git a/macros/latex/contrib/doclicense/manifest.txt b/macros/latex/contrib/doclicense/manifest.txt
index ff312798c8..247db4fe0d 100644
--- a/macros/latex/contrib/doclicense/manifest.txt
+++ b/macros/latex/contrib/doclicense/manifest.txt
@@ -16,6 +16,7 @@ doclicense/doclicense-canadian.ldf
doclicense/doclicense-canadien.ldf
doclicense/doclicense-catalan.ldf
doclicense/doclicense-chinese-gbk.ldf
+doclicense/doclicense-chinese-tw.ldf
doclicense/doclicense-chinese-utf8.ldf
doclicense/doclicense-croatian.ldf
doclicense/doclicense.dtx
diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
index d5b650b1a6..5349f06c06 100644
--- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
+++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
index b6f426cdbf..0132bc7c69 100644
--- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
+++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
@@ -34,6 +34,9 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
+\def\PLversion{1.1.1}
+\def\PLdate{28 Avril 2022}
+
\tcbset{vignettes/.style={%
nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,%
boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,%
@@ -153,7 +156,7 @@
{\ttfamily c pierquet -- at -- outlook . fr}
\end{tabular}
}
-\date{Version 1.0.9 -- 24 Avril 2022}
+\date{Version \PLversion{} -- \PLdate}
\newcommand\Cle[1]{{\bfseries\sffamily\textlangle #1\textrangle}}
@@ -335,7 +338,9 @@ Le \ctex{package}, qui s'enrichira peut-锚tre au fil du temps permet -- pour le
\item tracer des tangentes (ou portions) de tangentes sur la m锚me base que pour les splines ;
\item simuler une fen锚tre de logiciel formel (\textit{脿 la mani猫re de} \textsf{XCas}) ;
\item mettre en forme du code \textsf{python} ou \textsf{pseudocode} ;
- \item simuler une fen锚tre de terminal (win/unix/osx).
+ \item simuler une fen锚tre de terminal (win/unix/osx) ;
+ \item cr茅er un cartouche \textit{脿 la mani猫re de} Capytale ;
+ \item cr茅er rapidement un pav茅 droit ou un t茅tra猫dre en \TikZ, avec gestion des n艙uds.
\end{itemize}
\end{codeidee}
@@ -738,7 +743,7 @@ Les \Cle{Cl茅s} disponibles sont :
\item \Cle{tailletitre} : taille du titre ;\hfill{}d茅faut \Cle{\textbackslash normalsize}
\item \Cle{poscmd} : position horizontale de la commande d'entr茅e ;\hfill{}d茅faut \Cle{gauche}
\item \Cle{posres} : position horizontale de la commande de sortie ;\hfill{}d茅faut \Cle{centre}
- \item \Cle{couleurcmd} : couleur de la commande d'entr茅e ;\hfill{}d茅faut \Cle{ed}
+ \item \Cle{couleurcmd} : couleur de la commande d'entr茅e ;\hfill{}d茅faut \Cle{red}
\item \Cle{couleurres} : couleur de la commande de sortie ;\hfill{}d茅faut \Cle{blue}
\item \Cle{sep} : bool茅en pour l'affichage du trait de s茅paration E/S ;\hfill{}d茅faut \Cle{true}
\item \Cle{menu} : bool茅en pour l'affichage du \textit{bouton} MENU ;\hfill{}d茅faut \Cle{true}
@@ -788,7 +793,7 @@ Chaque argument \textsf{COMMANDE} \& \textsf{R脡SULTAT} peut 锚tre format茅 (niv
\subsection{Visualisation des param猫tres}
\begin{codeinfo}
-Pour \textit{illustrer} un peur les \Cle{cl茅s}, un petit sch茅ma, avec les diff茅rents n艙uds cr茅es par les \textsf{macros}.
+Pour \textit{illustrer} un peu les \Cle{cl茅s}, un petit sch茅ma, avec les diff茅rents n艙uds cr茅es par les \textsf{macros}.
\begin{center}
\begin{tikzpicture}[x=1cm,y=1cm,line width=1pt]
@@ -850,7 +855,7 @@ Voir par exemple \url{http://lesmathsduyeti.fr/fr/informatique/latex/pythontex/}
\smallskip
\begin{codeinfo}
-Compte tenu de la \textit{relative complexit茅} de g茅rer les options (par param猫tres/cl茅s\ldots) des \textit{tcbox} et des \textit{fancyvrb}, le style est \og fix茅 \fg{} tel quel, et seules la taille et la position de la \textit{tcbox} sont modifiables. Si toutefois vous souhaitez personnaliser davantage, il faudra prendre le code correspondant et appliquer vos modifications !
+Compte tenu de la \textit{relative complexit茅} pour g茅rer les options (par param猫tres/cl茅s\ldots) des \textit{tcbox} et des \textit{fancyvrb}, le style est \og fix茅 \fg{} tel quel, et seules la taille et la position de la \textit{tcbox} sont modifiables. Si toutefois vous souhaitez personnaliser davantage, il faudra prendre le code correspondant et appliquer vos modifications !
Cela peut donner -- en tout cas -- des id茅es de personnalisation en ayant une base \textit{pr茅}existante !
\end{codeinfo}
@@ -858,7 +863,7 @@ Cela peut donner -- en tout cas -- des id茅es de personnalisation en ayant une b
\subsection{Pr茅sentation de code Python via pythontex}
\begin{codeidee}
-L'environnement \ctex{\textbackslash envcodepythontex} (charg茅 par \ctex{ProfLycee}, avec l'option \textit{autogobble}) permet de pr茅senter du code python, dans une \ctex{colorbox} avec un style particulier.
+L'environnement \ctex{\textbackslash envcodepythontex} (charg茅 par \ctex{ProfLycee}, avec l'option \textit{autogobble}) permet de pr茅senter du code python, dans une \ctex{tcolorbox} avec un style particulier.
\end{codeidee}
\smallskip
@@ -932,7 +937,7 @@ Pour celles et ceux qui ne sont pas 脿 l'aise avec le \textsf{package} \ctex{pyt
\smallskip
\begin{codeidee}
-L'environnement \ctex{\textbackslash envcodepythonminted} permet de pr茅senter du code python, dans une \ctex{colorbox} avec un style (\textit{minted}) particulier.
+L'environnement \ctex{\textbackslash envcodepythonminted} permet de pr茅senter du code python, dans une \ctex{tcolorbox} avec un style (\textit{minted}) particulier.
\end{codeidee}
\smallskip
@@ -1074,7 +1079,7 @@ Les \Cle{Cl茅s} disponibles sont :
\subsection{Introduction}
\begin{codeinfo}
-Le \textsf{package} \ctex{listings} permet d'ins茅rer et de pr茅senter du code, et avec \ctex{tclorobox} on peut obtenir une pr茅sentation similaire 脿 celle du code Python. Pour le moment la \textit{philosophie} de la commande est un peu diff茅rente de celle du code python, avec son syst猫me de \Cle{Cl茅s}, car l'environnement \ctex{tcblisting} est un peu diff茅rent\ldots
+Le \textsf{package} \ctex{listings} permet d'ins茅rer et de pr茅senter du code, et avec \ctex{tcolorbox} on peut obtenir une pr茅sentation similaire 脿 celle du code Python. Pour le moment la \textit{philosophie} de la commande est un peu diff茅rente de celle du code python, avec son syst猫me de \Cle{Cl茅s}, car l'environnement \ctex{tcblisting} est un peu diff茅rent\ldots
\end{codeinfo}
\subsection{Pr茅sentation de Pseudo-Code}
@@ -1163,7 +1168,7 @@ FinPour
\begin{codeinfo}
脌 l'instar de \textsf{packages} existants, la \textit{philosophie} ici est de laisser l'utilisateur g茅rer \textit{son} langage pseudo-code.
-J'ai fait le choix de ne pas d茅finir des \textsf{mots cl茅s} 脿 mettre en valeur car cela reviendrait 脿 \textit{imposer} des choix ! Donc ici, pas de coloration syntaxique ou de mise en 茅vidence de mots cl茅s, uniquement un formatage libre de code pseudo-code.
+J'ai fait le choix de ne pas d茅finir des \textsf{mots cl茅s} 脿 mettre en valeur car cela reviendrait 脿 \textit{imposer} des choix ! Donc ici, pas de coloration syntaxique ou de mise en 茅vidence de mots cl茅s, uniquement un formatage libre de pseudo-code.
\end{codeinfo}
\smallskip
@@ -1173,7 +1178,7 @@ J'ai fait le choix de ne pas d茅finir des \textsf{mots cl茅s} 脿 mettre en valeu
\smallskip
-Celles et ceux qui sont d茅j脿 脿 l'aise avec les \textsf{packages} \ctex{listings} ou \ctex{minted} doivent d茅j avoir leur environnement personnel pr锚t !
+Celles et ceux qui sont d茅j脿 脿 l'aise avec les \textsf{packages} \ctex{listings} ou \ctex{minted} doivent d茅j脿 avoir leur environnement personnel pr锚t !
Il s'agit ici de pr茅senter une version \og cl茅 en main \fg{}.
\end{codeidee}
@@ -1368,7 +1373,7 @@ Le \textsf{cartouche} peut 锚tre \og cliquable \fg{} gr芒ce 脿 \ctex{href}.
\newpage
-\section{Pav茅 droit \og simple \fg}
+\section{Pav茅 droit \og simple \fg{}}
\subsection{Introduction}
@@ -1416,7 +1421,7 @@ Quelques \Cle{cl茅s} sont disponibles pour cette commande :
\begin{codeinfo}
La ligne est de ce fait 脿 ins茅rer dans un environnement \TikZ, avec les options au choix pour cet environnement.
-Le code cr茅茅 les n艙euds relatifs aux sommets, et les nomme comme les sommets, ce qui permet de les r茅utiliser pour 茅ventuellement compl茅ter la figure !
+Le code cr茅e les n艙uds relatifs aux sommets, et les nomme comme les sommets, ce qui permet de les r茅utiliser pour 茅ventuellement compl茅ter la figure !
\end{codeinfo}
\subsection{Influence des param猫tres}
@@ -1459,26 +1464,148 @@ Le code cr茅茅 les n艙euds relatifs aux sommets, et les nomme comme les sommets,
\newpage
+\section{T茅tra猫dre \og simple \fg{}}
+
+\subsection{Introduction}
+
+\begin{codeidee}
+L'id茅e est d'obtenir un t茅tra猫dre, dans un environnement \TikZ, avec les n艙uds cr茅茅s et nomm茅s directement pour utilisation ult茅rieure.
+\end{codeidee}
+
+\subsection{Commandes}
+
+\begin{codetex}[listing only]
+...
+\begin{tikzpicture}[<options>]
+ \tetraCF[<options>]
+ ...
+\end{tikzpicture}
+\end{codetex}
+
+\begin{codecles}
+Quelques \Cle{cl茅s} sont disponibles pour cette commande :
+
+\begin{itemize}
+ \item \Cle{largeur} : \textit{largeur} du t茅tra猫dre ;\hfill{}d茅faut \Cle{4}
+ \item \Cle{profondeur} : \textit{profondeur} du t茅tra猫dre ;\hfill{}d茅faut \Cle{1.25}
+ \item \Cle{hauteur} : \textit{hauteur} du t茅tra猫dre ;\hfill{}d茅faut \Cle{3}
+ \item \Cle{alpha} : angle \textit{du sommet de devant} ;\hfill{}d茅faut \Cle{40}
+ \item \Cle{beta} : angle \textit{du sommet du haut} ;\hfill{}d茅faut \Cle{60}
+ \item \Cle{sommets} : liste des sommets (avec d茅limiteur 搂 !) ;\hfill{}d茅faut \Cle{A搂B搂C搂D}
+ \item \Cle{epaisseur} : 茅paisseur des ar锚tes (en \textit{langage simplifi茅} \TikZ) ;\hfill{}d茅faut \Cle{thick}
+ \item \Cle{aff} : bool茅en pour afficher les noms des sommets ;\hfill{}d茅faut \Cle{false}
+ \item \Cle{plein} : bool茅en pour ne pas afficher l'ar锚te \textit{invisible} .\hfill{}d茅faut \Cle{false}
+\end{itemize}
+\end{codecles}
+
+\begin{codetex}[tikz lower]
+%code tikz
+\tetraPL
+\end{codetex}
+
+\begin{codetex}[tikz lower]
+%code tikz
+\tetraPL[aff,largeur=2,profondeur=0.625,hauteur=1.5]
+\end{codetex}
+
+\begin{codetex}[tikz lower]
+%code tikz
+\tetraPL[plein,aff,largeur=5,beta=60]
+\end{codetex}
+
+%\begin{codeinfo}
+%La ligne est de ce fait 脿 ins茅rer dans un environnement \TikZ, avec les options au choix pour cet environnement.
+%
+%Le code cr茅茅 les n艙uds relatifs aux sommets, et les nomme comme les sommets, ce qui permet de les r茅utiliser pour 茅ventuellement compl茅ter la figure !
+%\end{codeinfo}
+
+\subsection{Influence des param猫tres}
+
+\begin{codeinfo}
+Pour \textit{illustrer} un peu les \Cle{cl茅s}, un petit sch茅ma, avec les diff茅rents param猫tres utiles.
+
+\begin{center}
+ \begin{tikzpicture}[x=1.25cm,y=1.25cm,line width=1pt,line join=bevel]
+ \tetraPL[largeur=5,profondeur=1.95,hauteur=2.75,alpha=45,beta=70]
+ \draw[draw=none] (A)--(C) node[midway,sloped,above,font=\small\sffamily,CadetBlue] {largeur} ;
+ \draw[draw=none] (A)--(B) node[midway,sloped,below,font=\small\sffamily,CadetBlue] {profondeur} ;
+ \draw[draw=none] (A)--(D) node[midway,sloped,above,font=\small\sffamily,CadetBlue] {hauteur} ;
+ \draw[purple] (0.5,0) arc (0:-45:0.5) ;
+ \draw (-22.5:0.5) node[purple,right] {$\alpha$} ;
+ \draw[orange] (0.75,0) arc (0:70:0.75) ;
+ \draw (35:0.75) node[orange,right] {$\beta$} ;
+ \end{tikzpicture}
+\end{center}
+\end{codeinfo}
+
+\begin{codetex}[listing only]
+\begin{center}
+ \begin{tikzpicture}[line join=bevel]
+ \tetraPL[aff,largeur=7,profondeur=3,hauteur=5,epaisseur={ultra thick},alpha=20,beta=30]
+ \draw[very thick,ForestGreen,<->] ($(A)!0.5!(D)$)--($(B)!0.5!(D)$) ;
+ \end{tikzpicture}
+\end{center}
+\end{codetex}
+
+\medskip
+
+\begin{codesortie}
+\begin{center}
+ \begin{tikzpicture}[line join=bevel]
+ \tetraPL[aff,largeur=7,profondeur=3,hauteur=5,epaisseur={ultra thick},alpha=20,beta=30]
+ \draw[very thick,ForestGreen,<->] ($(A)!0.5!(D)$)--($(B)!0.5!(D)$) ;
+ \end{tikzpicture}
+\end{center}
+\end{codesortie}
+%
+%\begin{codetex}[listing only]
+% \begin{center}
+% \begin{tikzpicture}[line join=bevel]
+% \pavePL[plein,aff,largeur=7,profondeur=3.5,hauteur=4,sommets=Q搂S搂D搂F搂G搂H搂J搂K]
+% \draw[thick,red,densely dotted] (G)--(J) ;
+% \draw[thick,blue,densely dotted] (K)--(H) ;
+% \end{tikzpicture}
+% \end{center}
+%\end{codetex}
+%
+%\medskip
+%
+%\begin{codesortie}
+% \begin{center}
+% \begin{tikzpicture}[line join=bevel]
+% \pavePL[plein,aff,largeur=7,profondeur=3.5,hauteur=4,sommets=Q搂S搂D搂F搂G搂H搂J搂K]
+% \draw[thick,red,densely dotted] (G)--(J) ;
+% \draw[thick,blue,densely dotted] (K)--(H) ;
+% \end{tikzpicture}
+% \end{center}
+%\end{codesortie}
+
+\newpage
+
\section{Historique}
-{\small \bverb|v1.0.9| :~~~~Ajout d'une commande \textsf{pavePL} pour cr茅er des pav茅s droits (avec n艙uds) en \TikZ
+{\small \bverb|v1.1.1|~:~~~~Modification mineure de l'environnement CF, avec prise de charge de la taille du texte !
+
+{\small \bverb|v1.1.0|~:~~~~Ajout d'une commande \textsf{tetraPL} pour cr茅er des t茅tra猫dres (avec n艙uds) en \TikZ
+
+{\small \bverb|v1.0.9|~:~~~~Ajout d'une commande \textsf{pavePL} pour cr茅er des pav茅s droits (avec n艙uds) en \TikZ
-{\small \bverb|v1.0.8| :~~~~Ajout d'une commande \textsf{liencapytale} pour cr茅er des cartouches de lien "comme capytale"
+{\small \bverb|v1.0.8|~:~~~~Ajout d'une commande \textsf{liencapytale} pour cr茅er des cartouches de lien "comme capytale"
-{\small \bverb|v1.0.7| :~~~~Ajout d'une option \textsf{build} pour placer certains fichiers auxiliaires dans un r茅pertoire \textsf{./build}
+{\small \bverb|v1.0.7|~:~~~~Ajout d'une option \textsf{build} pour placer certains fichiers auxiliaires dans un r茅pertoire \textsf{./build}
-{\small \bverb|v1.0.6| :~~~~Ajout d'une option \textsf{nominted} pour ne pas charger \ctex{minted} (pas besoin de compiler avec \textsf{shell-escape})
+{\small \bverb|v1.0.6|~:~~~~Ajout d'une option \textsf{nominted} pour ne pas charger \ctex{minted} (pas besoin de compiler avec \textsf{shell-escape})
-{\small \bverb|v1.0.5| :~~~~Ajout d'un environnement pour Python (minted)
+{\small \bverb|v1.0.5|~:~~~~Ajout d'un environnement pour Python (minted)
-{\small \bverb|v1.0.4| :~~~~Ajout des environnements pour Terminal (win, osx, unix)
+{\small \bverb|v1.0.4|~:~~~~Ajout des environnements pour Terminal (win, osx, unix)
-{\small \bverb|v1.0.3| :~~~~Ajout des environnements pour PseudoCode
+{\small \bverb|v1.0.3|~:~~~~Ajout des environnements pour PseudoCode
-{\small \bverb|v1.0.2| :~~~~Ajout des environnements pour Python (pythontex)
+{\small \bverb|v1.0.2|~:~~~~Ajout des environnements pour Python (pythontex)
-{\small \bverb|v1.0.1| :~~~~Modification mineure li茅e au chargement de \ctex{xcolor}
+{\small \bverb|v1.0.1|~:~~~~Modification mineure li茅e au chargement de \ctex{xcolor}
-{\small \bverb|v1.0 | :~~~~Version initiale}
+{\small \bverb|v1.0 |~:~~~~Version initiale}
\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
index 71079843e3..d88ec5e849 100644
--- a/macros/latex/contrib/proflycee/tex/ProfLycee.sty
+++ b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
@@ -3,7 +3,9 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2022/04/24 - v1.0.9 - Aide pour l'utilisation de LaTeX en lyc茅e]
+\ProvidesPackage{ProfLycee}[2022/04/28 - v1.1.1 - Aide pour l'utilisation de LaTeX en lyc茅e]
+% 1.1.1 Modification mineure de l'environnement CF, avec prise de charge de la taille du texte !
+% 1.1.0 Ajout d'une commande tetraPL pour un tetra猫dre dans un environnement TikZ
% 1.0.9 Ajout d'une commande pavePL pour un pave droit dans un environnement TikZ
% 1.0.8 Ajout d'une commande liencapytale pour cr茅er un cartouche "comme sur capytale"
% 1.0.7 Option [build] pour placer les fichiers temporaires dans un r茅pertoire build (d茅sactiv茅e par d茅faut)
@@ -234,13 +236,13 @@
\draw[\CFcouleur] (A0\CFL) rectangle (A5\CFL) ;
%LA COMMANDE EN ROUGE
\IfStrEq{\CFposcmd}{centre}%si poscmd=center
- {\draw (C2\CFL) node[\CFcoulcmd] {#2} ;}
+ {\draw (C2\CFL) node[\CFcoulcmd,font=\CFtaille] {#2} ;}
{}
\IfStrEq{\CFposcmd}{gauche}%si poscmd=left
- {\draw (C1\CFL) node[right,\CFcoulcmd] {#2} ;}
+ {\draw (C1\CFL) node[right,\CFcoulcmd,font=\CFtaille] {#2} ;}
{}
\IfStrEq{\CFposcmd}{right}%si poscmd=right
- {\draw (C3\CFL) node[left,\CFcoulcmd] {#2} ;}
+ {\draw (C3\CFL) node[left,\CFcoulcmd,font=\CFtaille] {#2} ;}
{}
%LA LIGNE DE S脡PARATION
\ifboolKV[paramfenxcas]{sep}%si sep=true
@@ -248,13 +250,13 @@
{}
%LE R脡SULTAT
\IfStrEq{\CFposres}{centre}%si posrep=center
- {\draw (R2\CFL) node[\CFcoulres] {#3} ;}
+ {\draw (R2\CFL) node[\CFcoulres,font=\CFtaille] {#3} ;}
{}
\IfStrEq{\CFposres}{gauche}%si posrep=left
- {\draw (R1\CFL) node[right,\CFcoulres] {#3} ;}
+ {\draw (R1\CFL) node[right,\CFcoulres,font=\CFtaille] {#3} ;}
{}
\IfStrEq{\CFposres}{right}%si posrep=right
- {\draw (R3\CFL) node[left,\CFcoulres] {#3} ;}
+ {\draw (R3\CFL) node[left,\CFcoulres,font=\CFtaille] {#3} ;}
{}
\ifboolKV[paramfenxcas]{sep}%si sep=true
{\draw[\CFcouleur] (A1\CFL) -- (A4\CFL);}%
@@ -745,4 +747,53 @@
(\PaveD)--(\PaveH) ;}
}
+%============T茅tra猫dreTikZ============= OK !!
+\defKV[paramstetra]{%
+ largeur=\xdef\PFTetraLg{#1},%
+ profondeur=\xdef\PFTetraPf{#1},%
+ hauteur=\xdef\PFTetraHt{#1},%
+ alpha=\xdef\PFTetraAlpha{#1},%
+ beta=\xdef\PFTetraBeta{#1},%
+ sommets=\def\PFTetraSommets{#1},%
+ epaisseur=\xdef\PFTetraThick{#1}
+}
+\setKVdefault[paramstetra]{%
+ aff=false,%
+ plein=false,%
+ largeur=4,%
+ profondeur=1.25,%
+ hauteur=3,%
+ alpha=40,%
+ beta=60,%
+ epaisseur=thick,%
+ sommets=A搂B搂C搂D,%
+}
+
+\newcommand\tetraPL[1][]{%
+ \useKVdefault[paramstetra]%
+ \setKV[paramstetra]{#1}%
+ \setsepchar{搂}%
+ \readlist\PFListeSommets\PFTetraSommets
+ \itemtomacro\PFListeSommets[1]\TetraA
+ \itemtomacro\PFListeSommets[2]\TetraB
+ \itemtomacro\PFListeSommets[3]\TetraC
+ \itemtomacro\PFListeSommets[4]\TetraD
+ %les n艙uds du t茅tra猫dre
+ \coordinate (\TetraA) at (0,0) ;
+ \coordinate (\TetraB) at ($(\TetraA) + ({-\PFTetraAlpha}:{\PFTetraPf})$) ;
+ \coordinate (\TetraC) at ({\PFTetraLg},0) ;
+ \coordinate (\TetraD) at ($(\TetraA) + ({\PFTetraBeta}:{\PFTetraHt})$) ;
+ \ifboolKV[paramstetra]{aff}
+ {\draw (\TetraA) node[left] {\TetraA} ;
+ \draw (\TetraB) node[below] {\TetraB} ;
+ \draw (\TetraC) node[right] {\TetraC} ;
+ \draw (\TetraD) node[above] {\TetraD} ;}
+ {}%on affiche rien
+ \draw[\PFTetraThick] (\TetraA)--(\TetraD)--(\TetraC)--(\TetraB)--cycle
+ (\TetraD)--(\TetraB) ;
+ \ifboolKV[paramstetra]{plein}
+ {}
+ {\draw[dashed,\PFTetraThick] (\TetraA)--(\TetraC) ;}
+}
+
\endinput \ No newline at end of file