From ffdef3cddca5a0b9133dd928291b000452777ad8 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 9 Feb 2023 03:01:52 +0000 Subject: CTAN sync 202302090301 --- macros/latex/contrib/cascade/README.md | 4 +- macros/latex/contrib/cascade/cascade-french.pdf | Bin 70833 -> 71128 bytes macros/latex/contrib/cascade/cascade.dtx | 74 +- macros/latex/contrib/cascade/cascade.ins | 4 +- macros/latex/contrib/cascade/cascade.pdf | Bin 119231 -> 100503 bytes macros/latex/contrib/hyperref/ChangeLog.txt | 17 +- macros/latex/contrib/hyperref/README.md | 2 +- macros/latex/contrib/hyperref/backref.dtx | 2 +- macros/latex/contrib/hyperref/bmhydoc.sty | 2 +- macros/latex/contrib/hyperref/doc/backref.pdf | Bin 205447 -> 205447 bytes macros/latex/contrib/hyperref/doc/hyperref-doc.css | 1 + .../latex/contrib/hyperref/doc/hyperref-doc.html | 2140 ++++++++++---------- macros/latex/contrib/hyperref/doc/hyperref-doc.pdf | Bin 318263 -> 319115 bytes macros/latex/contrib/hyperref/doc/hyperref-doc.tex | 29 +- .../latex/contrib/hyperref/doc/hyperref-doc2.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc3.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc4.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc5.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc6.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc7.html | 3 +- .../latex/contrib/hyperref/doc/hyperref-doc8.html | 3 +- .../contrib/hyperref/doc/hyperref-linktarget.pdf | Bin 430121 -> 438106 bytes macros/latex/contrib/hyperref/doc/hyperref.pdf | Bin 2370057 -> 2368871 bytes macros/latex/contrib/hyperref/doc/nameref.pdf | Bin 180085 -> 180085 bytes macros/latex/contrib/hyperref/hluatex.dtx | 6 +- .../latex/contrib/hyperref/hyperref-linktarget.dtx | 8 +- macros/latex/contrib/hyperref/hyperref-patches.dtx | 4 +- macros/latex/contrib/hyperref/hyperref.dtx | 485 ++--- macros/latex/contrib/hyperref/hyperref.ins | 2 +- macros/latex/contrib/hyperref/minitoc-hyper.sty | 2 +- macros/latex/contrib/hyperref/nameref.dtx | 2 +- macros/latex/contrib/hyperref/ntheorem-hyper.sty | 2 +- macros/latex/contrib/hyperref/xr-hyper.sty | 4 +- .../latex/contrib/proflycee/doc/ProfLycee-doc.pdf | Bin 803833 -> 807448 bytes .../latex/contrib/proflycee/doc/ProfLycee-doc.tex | 317 +-- macros/latex/contrib/proflycee/tex/ProfLycee.sty | 492 +---- .../proflycee/tex/proflycee-tools-minted.tex | 48 + .../proflycee/tex/proflycee-tools-piton.tex | 67 + .../proflycee/tex/proflycee-tools-pythontex.tex | 129 ++ .../contrib/resolsysteme/doc/ResolSysteme-doc.pdf | Bin 123651 -> 132738 bytes .../contrib/resolsysteme/doc/ResolSysteme-doc.tex | 93 +- .../doc/ResolSysteme-exemples-pyluatex.pdf | Bin 95573 -> 98310 bytes .../doc/ResolSysteme-exemples-pyluatex.tex | 11 +- .../resolsysteme/doc/ResolSysteme-exemples.pdf | Bin 134039 -> 138727 bytes .../resolsysteme/doc/ResolSysteme-exemples.tex | 15 +- .../contrib/resolsysteme/tex/ResolSysteme.sty | 145 +- macros/latex/contrib/uol-physics-report/LICENSE | 416 ---- .../uol-physics-report/uol-physics-report.dtx | 30 +- .../uol-physics-report/uol-physics-report.pdf | Bin 195080 -> 182005 bytes 49 files changed, 2194 insertions(+), 2380 deletions(-) create mode 100644 macros/latex/contrib/proflycee/tex/proflycee-tools-minted.tex create mode 100644 macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex create mode 100644 macros/latex/contrib/proflycee/tex/proflycee-tools-pythontex.tex delete mode 100644 macros/latex/contrib/uol-physics-report/LICENSE (limited to 'macros/latex') diff --git a/macros/latex/contrib/cascade/README.md b/macros/latex/contrib/cascade/README.md index 051fe2c0a7..224e45aa07 100644 --- a/macros/latex/contrib/cascade/README.md +++ b/macros/latex/contrib/cascade/README.md @@ -2,7 +2,7 @@ Author: F. Pantigny (`fpantigny@wanadoo.fr`). -CTAN page: `https://ctan.org/pkg/nicematrix` +CTAN page: `https://ctan.org/pkg/cascade` ## License The LaTeX extension `cascade` is distributed under the LPPL 1.3 license. @@ -20,7 +20,7 @@ The package `cascade` is present in the distributions MiKTeX, TeXLive and MacTeX For a manual installation: * put the files `cascade.ins` and `cascade.dtx` in the same directory; -* run `latex cascade.ins`. +* run `latex cascade.ins` in that directory. The file `cascade.sty` will be generated. diff --git a/macros/latex/contrib/cascade/cascade-french.pdf b/macros/latex/contrib/cascade/cascade-french.pdf index 964587adc6..e220f40940 100644 Binary files a/macros/latex/contrib/cascade/cascade-french.pdf and b/macros/latex/contrib/cascade/cascade-french.pdf differ diff --git a/macros/latex/contrib/cascade/cascade.dtx b/macros/latex/contrib/cascade/cascade.dtx index 3112dab314..8ccc24de98 100644 --- a/macros/latex/contrib/cascade/cascade.dtx +++ b/macros/latex/contrib/cascade/cascade.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2018-2021 by F. Pantigny +% Copyright (C) 2018-2023 by F. Pantigny % ----------------------------------- % % This file may be distributed and/or modified under the @@ -15,8 +15,8 @@ % % \fi % \iffalse -\def\myfileversion{1.2} -\def\myfiledate{2021/08/23} +\def\myfileversion{1.2a} +\def\myfiledate{2023/02/08} % % %<*batchfile> @@ -26,7 +26,7 @@ \usedir{tex/latex/cascade} \preamble -Copyright (C) 2018-2021 by F. Pantigny +Copyright (C) 2018-2023 by F. Pantigny ----------------------------------- This file may be distributed and/or modified under the @@ -62,35 +62,6 @@ version 2005/12/01 or later. \skip\footins = 2\bigskipamount -\EnableCrossrefs -\makeatletter -\ExplSyntaxOn -\DoNotIndex{\begin,\end} -\DoNotIndex{\c@iRow,\c@jCol,\theiRow,\thejCol} -\DoNotIndex{\pgfpicture,\endpgfpicture,\tikzpicture,\endtikzpicture} -\DoNotIndex{\pgfpoint,\pgfnode,\pgfnodealias,\pgfcoordinate} -\DoNotIndex{\pgf@x,\pgf@y} -\DoNotIndex{\int_add:Nn,\int_case:nnTF,\int_compare:nNnTF,\int_compare:nTF, - \int_compare_p:nNn,\int_decr:N,\int_eval:n,\int_add:Nn,\int_gdecr:N,\int_gincr:N - \int_gset:Nn,\int_gset_eq:NN,\int_gzero:N,\int_gzero_new:N,\int_if_odd:nTF, - \int_max:nn,\int_new:N,\int_set:Nn,\int_set_eq:NN,\int_step_inline:nnn, - \int_step_variable:nNn,\int_step_variable:nnNn,\int_sub:Nn,\int_use:N,\int_zero:N, - \int_zero_new:N,\g_tmpa_int,\l_tmpa_int,\l_tmpb_int -} -\DoNotIndex{\dim_abs:n,\dim_add:Nn,\dim_compare:nNnTF,\dim_compare_p:nNn, -\dim_const:Nn,\dim_eval:n,\dim_gadd:Nn,\dim_gset:Nn,\dim_gset_eq:NN, -\dim_gset:Nn,\dim_gset_eq:NN,\dim_gsub:Nn,\dim_gzero_new:N,\dim_max:nn, -\dim_min:nn,\dim_new:N,\dim_ration:nn,\dim_set:Nn,\dim_set_eq:NN,\dim_sub:Nn, -\dim_use:N,\dim_zero:N,\dim_zero_new:N,\g_tmpa_dim,\l_tmpa_dim,\l_tmpb_dim, -\c_zero_dim} -\DoNotIndex{\cs_new_protected:Npn,\cs_new:Npn,\cs_set_eq:NN, -\cs_set_protected:Npn} -\DoNotIndex{\bool_if:NTF,\bool_new:N,\bool_set_false:N,\bool_set_true:N,\l_tmpa_bool} -\DoNotIndex{\group_begin:,\group_end:,\c_math_toggle_token} -\DoNotIndex{\tl_set:Nn,\l_tmpa_tl} -\ExplSyntaxOff -\makeatother - \begin{document} \DocInput{cascade.dtx} @@ -157,7 +128,7 @@ version 2005/12/01 or later. % \end{center} % % \interitem -% For the lisibility of such constructions, a simplified version of |\Cascade| +% For the legibility of such constructions, a simplified version of |\Cascade| % is available, named |\ShortCascade|. % % The code |\ShortCascade{X}{Y}| is merely a shortcut for the code @@ -522,7 +493,7 @@ version 2005/12/01 or later. % % \iffalse %% -%% The command \Cascade is defined with \NewDocumentCommand of xparse +%% The command \Cascade is defined with \NewDocumentCommand of L3. % \fi % \interitem % \DescribeMacro{\Cascade} @@ -548,6 +519,11 @@ version 2005/12/01 or later. \spread@equation \dim_set_eq:NN \l_@@_interline_dim \l_@@_interline_all_dim \keys_set:nn { cascade / command } { #1 } + \tl_if_empty:nF { #6 } + { + \bool_if:NF \l_@@_t_bool + { \msg_error:nn { cascade } { angular~argument~without~t } } + } \@@_initialisation: \hbox_set:Nn \l_@@_box_one { @@ -608,12 +584,7 @@ version 2005/12/01 or later. % \begin{macrocode} \bool_if:NT \l_@@_first_argument_bool { -% \end{macrocode} -% Here, you should use |\box_ht_plus_dp:N| when TeXLive 2021 will be available -% on Overleaf. -% \begin{macrocode} - \dim_set:Nn \l_tmpa_dim - { \box_ht:N \l_tmpb_box + \box_dp:N \l_tmpb_box } + \dim_set:Nn \l_tmpa_dim { \box_ht_plus_dp:N \l_tmpb_box } \l_tmpa_dim = 0.5\l_tmpa_dim \dim_add:Nn \l_tmpa_dim { \the \fontdimen 22 \textfont2 } \dim_sub:Nn \l_tmpa_dim @@ -660,7 +631,7 @@ version 2005/12/01 or later. % \end{macrocode} % % \bigskip -% The following macro is only for the lisibility of the code. +% The following macro is only for the legibility of the code. % \begin{macrocode} \cs_new_protected:Npn \@@_the_vcenter:nn #1 #2 { @@ -802,6 +773,15 @@ version 2005/12/01 or later. ignored. } % \end{macrocode} +% +% \begin{macrocode} +\msg_new:nnn { cascade } { angular~argument~without~t } + { + You~can't~use~the~argument~between~angular~brackets~because~ + you~have~not~used~the~key~'t'. The~argument~between~angular~brackets~ + will~be~ignored. + } +% \end{macrocode} % % \bigskip % \DescribeMacro{\ShortCascade} @@ -824,16 +804,14 @@ version 2005/12/01 or later. % \vspace{1cm} % \section{History} % +% \subsection*{Changes between versions 1.1 and 1.2} +% +% New commands |\Edacsac| and |\ShortEdacsac|. +% % \subsection*{Changes between versions 1.0 and 1.1} % % New option |t|. % -% \subsection*{Changes between versions 1.0 and 1.1} -% -% New commands |\Edacsac| and |\ShortEdacsac|. -% -% -% \PrintIndex % \tableofcontents % % \end{document} diff --git a/macros/latex/contrib/cascade/cascade.ins b/macros/latex/contrib/cascade/cascade.ins index db89312250..230215337d 100644 --- a/macros/latex/contrib/cascade/cascade.ins +++ b/macros/latex/contrib/cascade/cascade.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2018-2021 by F. Pantigny +%% Copyright (C) 2018-2023 by F. Pantigny %% %% %% This file may be distributed and/or modified under the @@ -17,7 +17,7 @@ \usedir{tex/latex/cascade} \preamble -Copyright (C) 2018-2021 by F. Pantigny +Copyright (C) 2018-2023 by F. Pantigny This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/macros/latex/contrib/cascade/cascade.pdf b/macros/latex/contrib/cascade/cascade.pdf index 98e5437c28..c4be38ff5c 100644 Binary files a/macros/latex/contrib/cascade/cascade.pdf and b/macros/latex/contrib/cascade/cascade.pdf differ diff --git a/macros/latex/contrib/hyperref/ChangeLog.txt b/macros/latex/contrib/hyperref/ChangeLog.txt index a3190b351d..84e4509047 100644 --- a/macros/latex/contrib/hyperref/ChangeLog.txt +++ b/macros/latex/contrib/hyperref/ChangeLog.txt @@ -1,14 +1,27 @@ +2023-02-05 Ulrike Fischer/David Carlisle + * if babel is loaded casing with \MakeUppercase and \MakeLowercase + respects the rules of the current locale/language in the bookmarks. + * removed old amstex patch of \@seteqlabel + * added test for \hyper@nopatch@amsmath@tag to allow to suppress an amsmath patch + * added test for \hyper@nopatch@counter to allow to suppress redefinitions of counter commands + * added test for \hyper@nopatch@mathenv to suppress math related patches + * added test for \hyper@nopatch@toc to suppress redefinition of toc related commands. + +2023-02-04 Yukai Chou + * change puenc-greek.def to puenc-greekbasic.def in docs, to sync with file + renaming, issue #269 + 2022-22-11 Ulrike Fischer/David Carlisle * don't set the pagesize if \mag is different from 1000, see issue #1138 in latex3. * avoid error from old labels if hyperref is loaded, issue #261 * fixed issue #260 * fixed a nopatch command, issue #258 * Use protected commands in \contentsline to allow the use of \MakeUppercase, issue #121 - + 2022-09-22 Ulrike Fischer/David Carlisle * adapt setpagesize option to changes in LaTeX (stockwidth is always defined) * Use hooks instead of auxhook package - + 2022-06-20 Ulrike Fischer/David Carlisle * don't redefine \@secondoffive and \@fifthoffive, issue #238 * add interface to access some pdf related values unchanged (needed by hyperxmp). diff --git a/macros/latex/contrib/hyperref/README.md b/macros/latex/contrib/hyperref/README.md index 666a1d850a..bc04cf62ac 100644 --- a/macros/latex/contrib/hyperref/README.md +++ b/macros/latex/contrib/hyperref/README.md @@ -1,6 +1,6 @@ # README for hyperref bundle -Version 2022-11-13 v7.00u +Version 2023-02-07 v7.00v ## INTRODUCTION diff --git a/macros/latex/contrib/hyperref/backref.dtx b/macros/latex/contrib/hyperref/backref.dtx index f6dda3d569..ec4e1017fc 100644 --- a/macros/latex/contrib/hyperref/backref.dtx +++ b/macros/latex/contrib/hyperref/backref.dtx @@ -3,7 +3,7 @@ %% Copyright (C) 1995-2000 David Carlisle, Sebastian Rahtz, Heiko Oberdiek %% 2001-2012 Heiko Oberdiek %% 2016-2019 Oberdiek Package Suport Group -%% 2019-2022 The LaTeX Project +%% 2019-2023 The LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. diff --git a/macros/latex/contrib/hyperref/bmhydoc.sty b/macros/latex/contrib/hyperref/bmhydoc.sty index f41634002c..14ee7cc137 100644 --- a/macros/latex/contrib/hyperref/bmhydoc.sty +++ b/macros/latex/contrib/hyperref/bmhydoc.sty @@ -1,7 +1,7 @@ %% Copyright %% 1995-2015 Heiko Oberdiek %% 2016-2019 Oberdiek Package Support Group -%% 2019-2020 LaTeX Project +%% 2019-2023 LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. diff --git a/macros/latex/contrib/hyperref/doc/backref.pdf b/macros/latex/contrib/hyperref/doc/backref.pdf index 1b7f41e6fb..8245a47d9d 100644 Binary files a/macros/latex/contrib/hyperref/doc/backref.pdf and b/macros/latex/contrib/hyperref/doc/backref.pdf differ diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc.css b/macros/latex/contrib/hyperref/doc/hyperref-doc.css index f6c9350717..a135ec3c7e 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc.css +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc.css @@ -268,6 +268,7 @@ div.caption span.id{font-weight: bold; white-space: nowrap; } h1.partHead{text-align: center} p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +.subsubsectionHead, .likesubsubsectionHead { font-size: 1em; } .paragraphHead, .likeparagraphHead { margin-top:2em; font-weight: bold;} .subparagraphHead, .likesubparagraphHead { font-weight: bold;} .verse{white-space:nowrap; margin-left:2em} diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc.html b/macros/latex/contrib/hyperref/doc/hyperref-doc.html index 64466b39ad..19e888b0be 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc.html @@ -25,7 +25,7 @@ href="https://github.com/latex3/hyperref/issues" class="url" >https://github.com/latex3/hyperref/issues)
2022-11-13 v7.00u
+class="ec-lmr-12">2023-02-07 v7.00v

Contents

@@ -147,7 +147,7 @@ href="#x1-550007.27" id="QQ2-1-55">Backref entries
  7.28 \phantomsection
  7.29 puenc encoding, puenc-greek.def and puenc-extra.def +href="#x1-570007.29" id="QQ2-1-57">puenc encoding, puenc-greekbasic.def and puenc-extra.def
 8 Acrobat-specific behavior
 9 Web Companion, where you will find additional examples.

The HyperTEX specification2 + id="x1-4003f2"> says that conformant viewers/translators must recognize the following set of \special constructs:

@@ -581,7 +581,7 @@ class="ec-lmss-10">dvips or dvipsone must be processed using Acrobat Distiller to obtain a PDF file.3 + id="x1-4005f3"> The result is generally preferable to that produced by using the hypertex driver, and then processing with \maketitle. class="ec-lmri-10">All those redefinitions can be suppressed by defining \hyper@nopatch@footnote. Be aware that this can suppress links but also make unwanted links appear. -
-

+

+

+amsmath tags

+

hyperref redefines two internal commands of amsmath related the \tag command to add an anchor. + This code can be suppressed by defining \hyper@nopatch@amsmath@tag. (This normally makes + no sense in packages but will probably be needed when math environments are changed to allow + tagging.) +

+

+counters

+

hyperref patches the kernel command \@definecounter, \@newctr, \@addtoreset and + the amsmath command \numberwithin to ensure that for every counter the correct + \theHcounter representation is created or reset. This code can be suppressed by defining + \hyper@nopatch@counter. (This normally makes no sense in packages but will probably be needed + when kernel commands are changed to allow tagging.) +

+

+math environments

+

hyperref patches \equation/\endequation, \eqnarray, \endeqnarray. This code can be suppressed + by defining \hyper@nopatch@mathenv. +

+

+table of contents

+

hyperref redefines \contentsline to be able to add links to toc entries. It redefines \addcontentsline + to create the bookmarks and pass the destination names to the toc entries. This code can be + suppressed by defining \hyper@nopatch@toc.

+

5 Package options

-

All user-configurable aspects of

All user-configurable aspects of hyperref are set using a single ‘key=value’ scheme (using the keyval package) with the key \hypersetup macro. When the package is loaded, a file hyperref.cfg is read if it can be found, and this is a convenient place to set options on a site-wide basis. -

Note however that some options (for example

Note however that some options (for example unicode) can only be used as package options, and not in \hypersetup as the option settings are processed as the package is read. The following @@ -958,13 +1009,13 @@ id="TBL-2-2"> option

remark +class="td11">

remark



all driver options, e.g. pdftex

often +class="td11">

often not needed, as @@ -978,7 +1029,7 @@ class="ec-lmvtt-10">implicit style="vertical-align:baseline;" id="TBL-2-4-"> pdfa

no-op +class="td11">

no-op with new pdfmanagement, @@ -992,7 +1043,7 @@ class="ec-lmvtt-10">\DeclareDocumentMetadata. style="vertical-align:baseline;" id="TBL-2-5-"> unicode

is +class="td11">

is the default now @@ -1001,7 +1052,7 @@ class="td11">

is style="vertical-align:baseline;" id="TBL-2-6-"> pdfversion

no-op +class="td11">

no-op with new pdfmanagement, @@ -1015,7 +1066,7 @@ class="ec-lmvtt-10">\DeclareDocumentMetadata. style="vertical-align:baseline;" id="TBL-2-7-"> bookmarks

this +class="td11">

this will probably change @@ -1026,50 +1077,50 @@ class="td11">

this style="vertical-align:baseline;" id="TBL-2-8-"> backref

pagebackref

+class="td11">

destlabel

pdfusetitle

+class="td11">

pdfpagelabels

+class="td11">

hyperfootnotes

+class="td11">

hyperfigures

+class="td11">

hyperindex

+class="td11">

encap

+class="td11">

CJKbookmarks

only +class="td11">

only with the new @@ -1088,7 +1139,7 @@ class="ec-lmvtt-10">\hypersetup style="vertical-align:baseline;" id="TBL-2-18-"> psdextra

only +class="td11">

only with the new @@ -1107,7 +1158,7 @@ class="ec-lmvtt-10">\hypersetup style="vertical-align:baseline;" id="TBL-2-19-"> nesting

only +class="td11">

only with the new @@ -1136,10 +1187,10 @@ class="ec-lmvtt-10">\hypersetup class="td11"> -

As an example, the behavior of a particular file could be controlled by: +

As an example, the behavior of a particular file could be controlled by:

-

As seen in the previous example, information entries (pdftitle, pdfauthor, …) should be set after the +

+

As seen in the previous example, information entries (pdftitle, pdfauthor, …) should be set after the package is loaded. Otherwise LaTeX expands the values of these options prematurely. Also LaTeX strips spaces in options. Especially option ‘pdfborder’ requires some care. Curly braces protect the value, if given as package option. They are not necessary in \hypersetup. \usepackage[pdfborder={0 0 0}]{hyperref} \hypersetup{pdfborder=0 0 0} -

-

Some options can be given at any time, but many are restricted: before

+

Some options can be given at any time, but many are restricted: before \begin{document}, only in \usepackage[...]{hyperref}, before first use, etc. -

In the key descriptions that follow, many options do not need a value, as they default to the value +

In the key descriptions that follow, many options do not need a value, as they default to the value true if used. These are the ones classed as ‘boolean’. The values true and false can always be specified, however. -

+

5.1 General options

-

Firstly, the options to specify general behavior and page size. -

+

Firstly, the options to specify general behavior and page size. +

-

+

5.2 Options for destination names

-

Destinations names (also anchor, target or link names) are internal names that identify a position on a +

Destinations names (also anchor, target or link names) are internal names that identify a position on a page in the document. They are used in link targets for inner document links or the bookmarks, for example. -

Usually anchor are set, if

Usually anchor are set, if \refstepcounter is called. Thus there is a counter name and value. Both are used to construct the destination name. By default the counter value follows the counter name separated by a dot. Example for the fourth chapter:

-

chapter.4

-

This scheme is used by: +

This scheme is used by:

-

+

\autoref

-

displays the description label for the reference depending on the counter name. +

displays the description label for the reference depending on the counter name.

-

+

\hyperpage

-

is used by the index to get page links. Page anchor setting (

is used by the index to get page links. Page anchor setting (pageanchor) must not be turned off.

-

It is very important that the destination names are unique, because two destinations must not share +

It is very important that the destination names are unique, because two destinations must not share the same name. The counter value \the<counter> is not always unique for the counter. For example, table and figures can be numbered inside the chapter without having the chapter number in their @@ -1321,7 +1372,7 @@ class="ec-lmvtt-10">table.2.4 is unique because it has used \theHtable that gives 2.4 in this case. -

Often the user do not need to set

Often the user do not need to set \theH<counter>. Defaults for standard cases (chapter, …) are provided. And after hyperref is loaded, new counters with parent counters also define \@addtoreset or \numberwithin of package amsmath are used. -

Usually problems with duplicate destination names can be solved by an appropriate definition of +

Usually problems with duplicate destination names can be solved by an appropriate definition of \theH<counter>. If option hypertexnames is disabled, then a unique artificial number is used instead of @@ -1341,11 +1392,11 @@ class="ec-lmvtt-10">plainpages the page anchors use the arabic form. In both latter cases \hyperpage for index links is affected and might not work properly. -

If an unnumbered entity gets an anchor (starred forms of chapters, sections, …) or

If an unnumbered entity gets an anchor (starred forms of chapters, sections, …) or \phantomsection is used, then the dummy counter name section* and an artificial unique number is used. -

If the final PDF file is going to be merged with another file, than the destination names might clash, +

If the final PDF file is going to be merged with another file, than the destination names might clash, because both documents might contain chapter.1 or page.1. Also \renewcommand*{\HyperDestNameFilter}[1]{\jobname-#1} -

-

In document

+

In document docA the destination name chapter.2 becomes docA-chapter.2. -

Destination names can also be used from the outside in URIs(, if the driver has not removed or +

Destination names can also be used from the outside in URIs(, if the driver has not removed or changed them), for example:

@@ -1376,8 +1427,8 @@ changed them), for example:
 http://somewhere/path/file.pdf#nameddest=chapter.4
 
-

-

However using a number seems unhappy. If another chapter is added before, the number changes. But it is +

+

However using a number seems unhappy. If another chapter is added before, the number changes. But it is very difficult to pass a new name for the destination to the anchor setting process that is usually deep hidden in the internals. The first name of \label after the anchor setting seems a good @@ -1389,8 +1440,8 @@ approximation:   \section{Introduction}   \label{intro} -

-

Option

+

Option destlabel checks for each \label, if there is a new destination name active and replaces the destination name by the label name. Because the destination name is already in use because of the @@ -1412,8 +1463,8 @@ class="ec-lmri-10">all destination names:   \jobname-\HyperDestLabelReplace{#1}% } -

-

The other case that only files prefixed that do not have a corresponding

+

The other case that only files prefixed that do not have a corresponding \label is more complicate, because \HyperDestLabelReplace needs the unmodified destination name as argument. This is solved by an @@ -1437,12 +1488,12 @@ LuaTEX): } \makeatother -

-

With option

+

With option destlabel destinations can also named manually, if the destination is not yet renamed:

-

\HyperDestRename{destinationnewname}

-

Hint: Anchors can also be named and set by

Hint: Anchors can also be named and set by \hypertarget. -

+

-

+

5.3 Configuration options

-

+

boolean @@ -1574,7 +1625,7 @@ class="td11"> boolean @@ -1586,7 +1637,7 @@ class="td11"> boolean +

Allows links to be nested; no drivers currently support this.

@@ -1603,35 +1654,35 @@ class="td11">
true -

In the hypertex driver, the height of links is normally +

In the hypertex driver, the height of links is normally calculated by the driver as simply the base line of contained text; this options forces \special commands to reflect the @@ -1560,7 +1611,7 @@ class="td11"> boolean

both -

This option is in hyperref only used in the dviwindo driver, +

This option is in hyperref only used in the dviwindo driver, in all other cases it doesn’t do anything sensible—it neither allows nor prevents links to be broken. The ocgx2 package checks the state of the boolean.

true -

Determines whether every page is given an implicit anchor +

Determines whether every page is given an implicit anchor at the top left corner. If this is turned off, \printindex will not contain valid hyperlinks.

false -

Allows links to be nested; no drivers currently support this.

-

Note for option

Note for option breaklinks: The correct value is automatically set according to the driver features. It can be overwritten for drivers that do not support broken links. However, at any case, the link area will be wrong and displaced. -

+

5.4 Backend drivers

-

If no driver is specified, the package tries to find a driver in the following order: +

If no driver is specified, the package tries to find a driver in the following order:

  1. -

    Autodetection, some TeX processors can be detected at TeX macro level (pdfTeX, XeTeX, +

    Autodetection, some TeX processors can be detected at TeX macro level (pdfTeX, XeTeX, VTeX).

  2. -

    Option

    Option driverfallback. If this option is set, its value is taken as driver option.

  3. -

    Macro

    Macro \Hy@defaultdriver. The macro takes a driver file name (without file extension).

  4. -

    Package default is

    Package default is hypertex.

-

Many distributions are using a driver file

Many distributions are using a driver file hypertex.cfg that define \Hy@defaultdriver with hdvips. This @@ -1639,9 +1690,9 @@ is recommended because driver dvips provides much more features than hypertex for PDF generation. -

+

class="td01">driverfallback +

Its value is used as driver option

+

if the driver is not given or autodetected.

dvipdfm driver. < class="td01">dvipdfmx @@ -1680,7 +1731,7 @@ class="ec-lmss-10">dvipdfmx driver. < class="td01">dvips dvips driver. class="td01">dvipsone dvipsone driver. class="td01">dviwindo dviwindo Windows previewer. class="td01">hypertex pdftex program. ps2pdf dvips. class="td01">tex4ht VTeX; the PDF and HTML backends are detected class="td01">vtexpdfmark +

For use with XeTeX (using backend for dvipdfm).

@@ -1792,7 +1843,7 @@ class="td01"> class="td01">
-

Its value is used as driver option

-

if the driver is not given or autodetected.

dvipdfm -

Sets up

Sets up hyperref for use with the dvipdfm driver.

-

Sets up

Sets up hyperref for use with the dvipdfmx driver.

-

Sets up

Sets up hyperref for use with the dvips driver.

-

Sets up

Sets up hyperref for use with the dvipsone driver.

-

Sets up

Sets up hyperref for use with the dviwindo Windows previewer.

-

Sets up

Sets up hyperref for use with the HyperTeX-compliant drivers.

latex2html -

Redefines a few macros for compatibility with

Redefines a few macros for compatibility with latex2html.

nativepdf -

An alias for

An alias for dvips

pdfmark -

An alias for

An alias for dvips

pdftex -

Sets up

Sets up hyperref for use with the pdftex program.

-

Redefines a few macros for compatibility with Ghostscript’s PDF writer, +

Redefines a few macros for compatibility with Ghostscript’s PDF writer, otherwise identical to dvips.

-

For use with

For use with TeX4ht

textures -

For use with

For use with Textures

vtex -

For use with MicroPress’

For use with MicroPress’ VTeX; the PDF and HTML backends are detected automatically.

-

For use with

For use with VTeX’s PostScript backend.

xetex -

For use with XeTeX (using backend for dvipdfm).

-

If you use

If you use dviwindo, you may need to redefine the macro \wwwbrowser (the default is -

-

+

+

5.5 Extension options

-

+

extension +

+

Sets encap character for hyperindex

@@ -1948,7 +1999,7 @@ class="td11"> boolean +

Color for normal internal links.

+

Color for anchor text. Ignored by most drivers.

+

Color for bibliographical citations in text.

+

Color for URLs which open local files.

+

Color for Acrobat menu items.

+

Color for run links (launch annotations).

+

Color for linked URLs.

+

Use small caps instead of color for links.

+

Hide links (removing color and border).

@@ -2062,15 +2113,15 @@ class="td11">
text -

Set the file extension (e.g. 

Set the file extension (e.g. dvi) which will be appended to file links created if you use the xr @@ -1838,7 +1889,7 @@ class="ec-lmvtt-10">hyperfigures

boolean -

text false -

Adds ‘backlink’ text to the end of each item in the +

Adds ‘backlink’ text to the end of each item in the bibliography, as a list of section numbers. This can only work properly if there is a blank line after each @@ -1869,7 +1920,7 @@ class="td11"> boolean

false -

Adds ‘backlink’ text to the end of each item in the +

Adds ‘backlink’ text to the end of each item in the bibliography, as a list of page numbers.

boolean true -

Makes the page +

Makes the page numbers of index entries into hyperlinks. Relays on unique page anchors (pageanchor, …) boolean

true -

Makes the footnote marks into hyperlinks to the +

Makes the footnote marks into hyperlinks to the footnote text. Easily broken …

encap -

Sets encap character for hyperindex

text section -

make text (

make text (section), page number (page), both (all) @@ -1926,7 +1977,7 @@ class="td11"> boolean

false -

make page number, not text, be link on TOC, LOF +

make page number, not text, be link on TOC, LOF and LOT

boolean false -

allow links to break over lines by making links over +

allow links to break over lines by making links over multiple lines into PDF links to the same target

false -

Colors the text of links and anchors. The colors +

Colors the text of links and anchors. The colors chosen depend on the the type of link. At present the only types of link distinguished are citations, page references, URLs, local file references, and other @@ -1962,7 +2013,7 @@ class="td11"> color

red -

Color for normal internal links.

color black -

Color for anchor text. Ignored by most drivers.

color green -

Color for bibliographical citations in text.

color cyan -

Color for URLs which open local files.

color red -

Color for Acrobat menu items.

color filecolor -

Color for run links (launch annotations).

color magenta -

Color for linked URLs.

allcolors color -

Set all color options (without border and field +

Set all color options (without border and field options).

boolean false -

Use small caps instead of color for links.

hidelinks -

Hide links (removing color and border).

-

Note that all color names must be defined before use, following the normal system of the standard +

Note that all color names must be defined before use, following the normal system of the standard LaTeX color package. -

+

5.6 PDF-specific display options

-

+

boolean @@ -2116,7 +2167,7 @@ class="ec-lmvtt-10">bookmarksopenlevel +

to specify which ‘toc’ file to mimic

@@ -2173,7 +2224,7 @@ class="td11"> name @@ -2185,7 +2236,7 @@ class="td11"> RGB color +

The color of the box around citations

+

The color of the box around links to files

+

The color of the box around normal links

+

The color of the box around Acrobat menu links

+

The color of the box around links to URLs

+

Color of border around ‘run’ links

+

Set all border color options

true -

A set of Acrobat bookmarks are written, in a +

A set of Acrobat bookmarks are written, in a manner similar to the table of contents, requiring two passes of LaTeX. Some postprocessing of the bookmark file (file extension boolean

false -

If Acrobat bookmarks are requested, show them +

If Acrobat bookmarks are requested, show them with all the subtrees expanded.

parameter -

level (

level (\maxdimen) to which bookmarks are open

boolean false -

If Acrobat bookmarks are requested, include +

If Acrobat bookmarks are requested, include section numbers.

text toc -

to specify which ‘toc’ file to mimic

boolean false -

This option should be used to produce CJK +

This option should be used to produce CJK bookmarks. Package hyperref supports both normal and preprocessed mode of the CJK Acroread itself) support this. Also note that option ‘CJKbookmarks’ cannot be used together with option ‘unicode’. -

No mechanism is provided to +

No mechanism is provided to translate non-Unicode bookmarks to Unicode; for portable PDF documents only Unicode encoding should be used.

/I -

How link buttons behave when selected; /I is +

How link buttons behave when selected; /I is for inverse (the default); the other possibilities are /N (no effect), /O (outline), and /P (inset highlighting).

0 1 0 -

The color of the box around citations

RGB color 0 .5 .5 -

The color of the box around links to files

RGB color 1 0 0 -

The color of the box around normal links

RGB color 1 0 0 -

The color of the box around Acrobat menu links

RGB color 0 1 1 -

The color of the box around links to URLs

RGB color 0 .7 .7 -

Color of border around ‘run’ links

allbordercolors -

Set all border color options

0 0 1 -

The style of box around links; defaults to a box +

The style of box around links; defaults to a box with lines of 1pt thickness, but the colorlinks option resets it to produce no border.

-

The color of link borders used to be specified

The color of link borders used to be specified only as 3 numbers in the range 0..1, giving an RGB color. Since version 6.76a, the usual color specifications of package (x)color can be used if hycolor. -

The bookmark commands are stored in a file called

The bookmark commands are stored in a file called jobname.out. The files is not processed by LaTeX so any markup is passed through. You can postprocess this file as needed; as an aid @@ -2287,13 +2338,13 @@ line

 \let\WriteBookmarks\relax
 
-

-

+

+

5.7 PDF display and information options

-

+

class="td01">baseurl +

Sets the base URL of the PDF document

pdftitle +

Sets the document information Title field

+

Sets the document information Author field

+

Sets the document information Subject field

+

Sets the document information Creator field

+

Sets the document information Keywords field

+

Sets the default PDF ‘view’ for each link

class="td01">pdfstartview +

Set the startup page view

+

Set the startup page view of remote PDF files

class="td01">pdfpagescrop @@ -2501,22 +2552,22 @@ class="ec-lmvtt-10">R2L (right to left) class="td01">pdfdisplaydoctitle +

resize document window to fit document size

+

PDF language identifier (RFC 3066)

+

make PDF viewer’s menu bar visible

class="td01">pdfnumcopies +

number of printed copies

+

set PDF page labels

@@ -2667,11 +2718,11 @@ class="td10"> class="td01">pdfprintarea class="td01">pdfprintclip class="td01">pdfprintpagerange +

set /PrintPageRange of viewer preferences

class="td01">pdftoolbar +

make PDF toolbar visible

class="td01">pdfviewclip class="td01">pdfwindowui +

make PDF user interface elements visible

+

Unicode encoded PDF strings

@@ -2811,11 +2862,11 @@ class="td11">
-

URL

URL

-

Sets the base URL of the PDF document

pdfpagemode -

name

name

empty -

Determines how the file is opening in +

Determines how the file is opening in Acrobat; the possibilities are UseNone, UseOutlines is used.

-

text

text

-

Sets the document information Title field

pdfauthor -

text

text

-

Sets the document information Author field

pdfsubject -

text

text

-

Sets the document information Subject field

pdfcreator -

text

text

-

Sets the document information Creator field

addtopdfcreator -

text

text

-

Adds additional text to the document +

Adds additional text to the document information Creator field

pdfkeywords -

text

text

-

Sets the document information Keywords field

pdftrapped -

name

name

empty -

Sets the document information Trapped entry. +

Sets the document information Trapped entry. Possible values are True, False and Unknown. class="td01">pdfinfo

-

key +

key value list

empty -

Alternative interface for setting the document +

Alternative interface for setting the document information.

pdfview -

name

name

XYZ -

Sets the default PDF ‘view’ for each link

pdfstartpage -

integer

integer

1 -

Determines on which page the PDF file is +

Determines on which page the PDF file is opened. An empty value means, the entry is not set.

-

name

name

Fit -

Set the startup page view

pdfremotestartview -

name

name

Fit -

Set the startup page view of remote PDF files

-

n +

n n n n

-

Sets the default PDF crop box for pages. This +

Sets the default PDF crop box for pages. This should be a set of four numbers

pdfcenterwindow -

boolean

boolean

false -

position the document window in the center +

position the document window in the center of the screen

pdfdirection -

name

name

empty -

direction setting. Possible values:

direction setting. Possible values: L2R (left to right) and R2L (right to left)

-

boolean

boolean

false -

display document title instead of file name in +

display document title instead of file name in title bar

pdfduplex -

name

name

empty -

paper handling option for print +

paper handling option for print dialog. Possible vatues are: Simplex (print single-sided), DuplexFlipLongEdge (duplex and flip on class="td01">pdffitwindow

-

boolean

boolean

false -

resize document window to fit document size

pdflang -

name

name

relax -

PDF language identifier (RFC 3066)

pdfmenubar -

boolean

boolean

true -

make PDF viewer’s menu bar visible

pdfnewwindow -

boolean

boolean

false -

make links that open another PDF file start a +

make links that open another PDF file start a new window

pdfnonfullscreenpagemode -

name

name

empty -

page mode setting on exiting full-screen mode. +

page mode setting on exiting full-screen mode. Possible values are UseNone, UseOutlines, @@ -2587,21 +2638,21 @@ class="ec-lmvtt-10">UseOC

-

integer

integer

empty -

number of printed copies

pdfpagelayout -

name

name

empty -

set layout of PDF pages. Possible values: +

set layout of PDF pages. Possible values: SinglePage, OneColumn, TwoPageRight class="td01">pdfpagelabels

-

boolean

boolean

true -

set PDF page labels

pdfpagetransition -

name

name

empty -

set PDF page transition style. Possible values +

set PDF page transition style. Possible values are Split, Blinds, R, which simply replaces the old page w class="td01">pdfpicktraybypdfsize

-

boolean

boolean

false -

specify whether PDF page size is used to select +

specify whether PDF page size is used to select input paper tray in print dialog

-

name

name

empty -

set /PrintArea of viewer preferences. Possible +

set /PrintArea of viewer preferences. Possible values are MediaBox, CropBox, CropBox

-

name

name

empty -

set /PrintClip of viewer preferences. Possible +

set /PrintClip of viewer preferences. Possible values are MediaBox, CropBox, CropBox

-

n +

n n (n n)*

empty -

set /PrintPageRange of viewer preferences

pdfprintscaling -

name

name

empty -

page scaling option for print dialog (option +

page scaling option for print dialog (option /PrintScaling of viewer preferences, PDF 1.6); valid values are None and AppDefault

-

boolean

boolean

true -

make PDF toolbar visible

pdfviewarea -

name

name

empty -

set /ViewArea of viewer preferences. Possible +

set /ViewArea of viewer preferences. Possible values are MediaBox, CropBox, CropBox

-

name

name

empty -

set /ViewClip of viewer preferences Possible +

set /ViewClip of viewer preferences Possible values are MediaBox, CropBox, CropBox

-

boolean

boolean

true -

make PDF user interface elements visible

unicode -

boolean

boolean

true -

Unicode encoded PDF strings

-

Each link in Acrobat carries its own magnification level, which is set using PDF coordinate space, which +

Each link in Acrobat carries its own magnification level, which is set using PDF coordinate space, which is not the same as TeX’s. The unit is bp and the origin is in the lower left corner. See also \hypercalcbp that is explained on page 59. pdfTeX works by supplying default values for 60. pdfTeX works by supplying default values for XYZ (horizontal × vertical pdfview, pdfstartview and pdfremotestartview parameters. -

+

XYZ +

Fits the page to the window.

+

Fits the width of the page to the window.

+

Fits the height of the page to the window.

+

Fits the page bounding box to the window.

left top zoom -

Sets a coordinate and a zoom factor. If any one +

Sets a coordinate and a zoom factor. If any one is null, the source link value is used. null null Fit

-

Fits the page to the window.

FitH top -

Fits the width of the page to the window.

FitV left -

Fits the height of the page to the window.

FitR left bottom right top -

Fits the rectangle specified by the four +

Fits the rectangle specified by the four coordinates to the window.

FitB -

Fits the page bounding box to the window.

FitBH top -

Fits the width of the page bounding box to +

Fits the width of the page bounding box to the window.

FitBV left -

Fits the height of the page bounding box to +

Fits the height of the page bounding box to the window.

-

The

The pdfpagelayout can be one of the following values. -

+

class="td01">SinglePage +

Displays a single page; advancing flips the page

+

Displays the document in one column; continuous scrolling.

class="td01">
-

Displays a single page; advancing flips the page

OneColumn -

Displays the document in one column; continuous scrolling.

TwoColumnLeft -

Displays the document in two columns, odd-numbered pages to +

Displays the document in two columns, odd-numbered pages to the left.

TwoColumnRight -

Displays the document in two columns, odd-numbered pages to +

Displays the document in two columns, odd-numbered pages to the right.

TwoPageLeft -

Displays two pages, odd-numbered pages to the left (since PDF +

Displays two pages, odd-numbered pages to the left (since PDF 1.5).

TwoPageRight -

Displays two pages, odd-numbered pages to the right (since PDF +

Displays two pages, odd-numbered pages to the right (since PDF 1.5).

-

Finally, the

Finally, the pdfpagetransition can be one of the following values, where /Di stands for direction of motion in degrees, generally in 90Blinds /Dm /V), and /M is for motion, either in (/I) or out (/O). -

+

Blinds +

A box sweeps in or out.

Dissolve +

Two lines sweep across the screen to reveal the new page.

+

Simply replaces the old page with the new one.

Push Cover Fade
/Dm -

Multiple lines distributed evenly across the screen sweep +

Multiple lines distributed evenly across the screen sweep in the same direction to reveal the new page.

Box /M -

A box sweeps in or out.

-

The page image dissolves in a piecemeal fashion to reveal +

The page image dissolves in a piecemeal fashion to reveal the new page.

Glitter /Di -

Similar to Dissolve, except the effect sweeps across the +

Similar to Dissolve, except the effect sweeps across the screen.

Split /Dm /M -

Two lines sweep across the screen to reveal the new page.

Wipe /Di -

A single line sweeps across the screen to reveal the new +

A single line sweeps across the screen to reveal the new page.

R -

Simply replaces the old page with the new one.

Fly /Di /M -

Changes are flown out or in (as specified by /M), in the +

Changes are flown out or in (as specified by /M), in the direction specified by /Di, to or from a location that is offscreen except when /Di is None.

/Di -

The old page slides off the screen while the new page +

The old page slides off the screen while the new page slides in, pushing the old page out in the direction specified by /Di.

/Di -

The new page slides on to the screen in the direction +

The new page slides on to the screen in the direction specified by /Di, covering the old page.

Uncover /Di -

The old page slides off the screen in the direction +

The old page slides off the screen in the direction specified by /Di, uncovering the new page in the direction specified by /Di.

-

The new page gradually becomes visible through the old +

The new page gradually becomes visible through the old one.

-

+

5.8 Option pdfinfo

-

The information entries can be set using

The information entries can be set using pdftitle, pdfsubject, …. Option pdfinfo provides an alternative @@ -3155,15 +3206,15 @@ strings (see PDF specification). Example:   } } -

-

+

+

5.9 Big alphabetical list

-

The following is a complete listing of available options for

The following is a complete listing of available options for hyperref, arranged alphabetically. -

+

allbordercolors +

Set all border color options

+

set color of anchors, ignored by most drivers.

+

do bibliographical back references

+

set base URL for document

+

make bookmarks

+

put section numbers in bookmarks

+

open up bookmark tree

+

level to which bookmarks are open

+

to specify which ‘toc’ file to mimic

+

allow links to break over lines

+

to produce CJK bookmarks

+

color of border around cites

+

color of citation links

+

color links

debug @@ -3315,7 +3366,7 @@ class="ec-lmvtt-10">destlabel draft +

do not do any hyperlinking

+

default if no driver specified or detected

+

to set encap character for hyperindex

+

suffix of linked files

+

color of border around file links

+

color of file links

+

opposite of option draft

+

use small caps instead of color for links

+

Hide links (removing color and border)

+

make figures hyper links

+

set up hyperlinked footnotes

+

set up hyperlinked indices

+

use guessable names for links

+

redefine LaTeX internals

+

color of border around links

+

color of links

+

make text be link on TOC, LOF and LOT

+

color of border around menu links

+

color for menu links

+

use LaTeX-computed names for links

nesting +

allow nesting of links

+

allow to set the name of the next anchor

+

put an anchor on every page

+

backreference by page number

+

text for PDF Author field

+

width of PDF link border

+

border style for links

+

text for PDF Creator field

+

+

direction setting

+

paper handling option for print dialog

+

resize document window to fit document size

+

set highlighting of PDF links

+

text for PDF Keywords field

+

PDF language identifier (RFC 3066)

+

make PDF viewer’s menu bar visible

+

make links that open another PDF

+

file start a new window

+

page mode setting on exiting full-screen mode

+

number of printed copies

+

set PDF page labels

+

set layout of PDF pages

+

set default mode of PDF display

+

set crop size of PDF document

pdfpagetransition +

set PDF page transition style

+

set option for print dialog

+

set /PrintArea of viewer preferences

+

set /PrintClip of viewer preferences

+

set /PrintPageRange of viewer preferences

+

page scaling option for print dialog

+

text for PDF Producer field

+

starting view of remote PDF documents

+

page at which PDF document opens

+

starting view of PDF document

+

text for PDF Subject field

+

text for PDF Title field

+

make PDF toolbar visible

+

PDF ‘view’ when on link traversal

+

set /ViewArea of viewer preferences

+

set /ViewClip of viewer preferences

+

make PDF user interface elements visible

+

do page number anchors as plain Arabic

+

color of border around ‘run’ links

+

color of ‘run’ links

+

set page size by special driver commands

@@ -4024,7 +4075,7 @@ class="ec-lmvtt-10">unicode +

color of border around URL links

+

color of URL links

+

be chatty

-

Set all border color options

allcolors -

Set all color options (without border and field +

Set all color options (without border and field options)

anchorcolor black -

set color of anchors, ignored by most drivers.

backref false -

do bibliographical back references

baseurl empty -

set base URL for document

bookmarks true -

make bookmarks

bookmarksnumbered false -

put section numbers in bookmarks

bookmarksopen false -

open up bookmark tree

bookmarksopenlevel \maxdimen -

level to which bookmarks are open

bookmarkstype toc -

to specify which ‘toc’ file to mimic

breaklinks false -

allow links to break over lines

CJKbookmarks false -

to produce CJK bookmarks

citebordercolor 0 1 0 -

color of border around cites

citecolor green -

color of citation links

colorlinks false -

color links

true -

(

(tex4ht, dviwindo)

false -

provide details of anchors defined; same as +

provide details of anchors defined; same as verbose

false -

destinations are named by the first

destinations are named by the first \label after the anchor creation

false -

do not do any hyperlinking

driverfallback -

default if no driver specified or detected

dvipdfm -

use

use dvipdfm backend

dvipdfmx -

use

use dvipdfmx backend

dvips -

use

use dvips backend

dvipsone -

use

use dvipsone backend

dviwindo -

use

use dviwindo backend

encap -

to set encap character for hyperindex

extension dvi -

suffix of linked files

filebordercolor 0 .5 .5 -

color of border around file links

filecolor cyan -

color of file links

final true -

opposite of option draft

frenchlinks false -

use small caps instead of color for links

hidelinks -

Hide links (removing color and border)

hyperfigures false -

make figures hyper links

hyperfootnotes true -

set up hyperlinked footnotes

hyperindex true -

set up hyperlinked indices

hypertex -

use

use HyperTeX backend

hypertexnames true -

use guessable names for links

implicit true -

redefine LaTeX internals

latex2html -

use

use LaTeX2HTML backend

linkbordercolor 1 0 0 -

color of border around links

linkcolor red -

color of links

linktoc section -

make text be link on TOC, LOF and LOT

linktocpage false -

make page number, not text, be link on TOC, +

make page number, not text, be link on TOC, LOF and LOT

menubordercolor 1 0 0 -

color of border around menu links

menucolor red -

color for menu links

nativepdf false -

an alias for

an alias for dvips

naturalnames false -

use LaTeX-computed names for links

false -

allow nesting of links

next-anchor -

allow to set the name of the next anchor

pageanchor true -

put an anchor on every page

pagebackref false -

backreference by page number

pdfauthor empty -

text for PDF Author field

pdfborder 0 0 1 -

width of PDF link border

0 0 0 -

(

(colorlinks)

pdfborderstyle -

border style for links

pdfcenterwindow false -

position the document window in the center +

position the document window in the center of the screen

pdfcreator LaTeX with -

text for PDF Creator field

hyperref -

pdfdirection empty -

direction setting

pdfdisplaydoctitle false -

display document title instead of file name in +

display document title instead of file name in title bar

pdfduplex empty -

paper handling option for print dialog

pdffitwindow false -

resize document window to fit document size

pdfhighlight /I -

set highlighting of PDF links

pdfinfo empty -

alternative interface for setting document +

alternative interface for setting document information

pdfkeywords empty -

text for PDF Keywords field

pdflang relax -

PDF language identifier (RFC 3066)

pdfmark false -

an alias for

an alias for dvips

pdfmenubar true -

make PDF viewer’s menu bar visible

pdfnewwindow false -

make links that open another PDF

-

file start a new window

pdfnonfullscreenpagemode empty -

page mode setting on exiting full-screen mode

pdfnumcopies empty -

number of printed copies

pdfpagelabels true -

set PDF page labels

pdfpagelayout empty -

set layout of PDF pages

pdfpagemode empty -

set default mode of PDF display

pdfpagescrop empty -

set crop size of PDF document

empty -

set PDF page transition style

pdfpicktraybypdfsize empty -

set option for print dialog

pdfprintarea empty -

set /PrintArea of viewer preferences

pdfprintclip empty -

set /PrintClip of viewer preferences

pdfprintpagerange empty -

set /PrintPageRange of viewer preferences

pdfprintscaling empty -

page scaling option for print dialog

pdfproducer empty -

text for PDF Producer field

pdfremotestartview Fit -

starting view of remote PDF documents

pdfstartpage 1 -

page at which PDF document opens

pdfstartview Fit -

starting view of PDF document

pdfsubject empty -

text for PDF Subject field

pdftex -

use

use pdfTeX backend

pdftitle empty -

text for PDF Title field

pdftoolbar true -

make PDF toolbar visible

pdftrapped empty -

Sets the document information Trapped entry. +

Sets the document information Trapped entry. Possible values are True, False and pdfview

XYZ -

PDF ‘view’ when on link traversal

pdfviewarea empty -

set /ViewArea of viewer preferences

pdfviewclip empty -

set /ViewClip of viewer preferences

pdfwindowui true -

make PDF user interface elements visible

plainpages false -

do page number anchors as plain Arabic

ps2pdf -

use

use ps2pdf backend

psdextra false -

define more short names for PDF string +

define more short names for PDF string commands

raiselinks false -

raise up links (for

raise up links (for HyperTeX backend)

runbordercolor 0 .7 .7 -

color of border around ‘run’ links

runcolor filecolor -

color of ‘run’ links

setpagesize true -

set page size by special driver commands

tex4ht -

use

use TeX4ht backend

textures -

use

use Textures backend

true -

Unicode encoded pdf strings, starting with +

Unicode encoded pdf strings, starting with version v7.00g set by default to true for all engines. It will load a number of definitions in puenc.def. It can be set to false for pdflatex, @@ -4036,7 +4087,7 @@ class="ec-lmvtt-10">urlbordercolor

0 1 1 -

color of border around URL links

urlcolor magenta -

color of URL links

verbose false -

be chatty

vtex -

use

use VTeX backend

xetex -

use

use XeTeX backend

-

+

6 Additional user macros

-

If you need to make references to URLs, or write explicit links, the following low-level user macros are +

If you need to make references to URLs, or write explicit links, the following low-level user macros are provided: -

}{text}
-

The

The text is made a hyperlink to the URL; this must be a full URL (relative to the base URL, if that is defined). The special characters # and % do not need to be escaped in any way (unless the command is used in the argument of another command). -

The optional argument

The optional argument options recognizes the hyperref options pdfremotestartview, pdfnewwindow and the following key value options:

-

+

page:

-

Specifies the start page number of remote PDF documents. First page is

Specifies the start page number of remote PDF documents. First page is 1.

-

+

ismap:

-

Boolean key, if set to

Boolean key, if set to true, the URL should appended by the coordinates as query parameters by the PDF viewer.

-

+

nextactionraw:

-

The value of key

The value of key /Next of action dictionaries, see PDF specification.

-

\url{URL}
-

Similar to

Similar to \href{URLURL}}. Depending on the driver \href also tries to detect the link type. Thus the result can be a url link, file link, … -

\nolinkurl{URL}
-

Write

Write URL in the same way as \url, without creating a hyperlink. -

{URL}
-

A base

A base URL is established, which is prepended to other specified URLs, to make it easier to write portable documents. -

}{text}
-

The link to the image referenced by the URL is inserted, using

The link to the image referenced by the URL is inserted, using text as the anchor. -

For drivers that produce HTML, the image itself is inserted by the browser, with the

For drivers that produce HTML, the image itself is inserted by the browser, with the text being ignored completely. -

}{text}
-

A target area of the document (the

A target area of the document (the text) is marked, and given the name category.name -

}{text}
-

text is made into a link to URL#category.name -

]{text}
-

text is made into a link to the same place as \ref{label} would be linked. -

}{text}
-

}{text}
-

A simple internal link is created with

A simple internal link is created with \hypertarget, with two parameters of an anchor name, and anchor \hyperlink has two arguments, the name class="ec-lmvtt-10">\hypertarget, and the text which be used as the link on the page. -

Note that in HTML parlance, the

Note that in HTML parlance, the \hyperlink command inserts a notional # in front of each link, making it relative to the current testdocument; \href expects a full URL. -

\phantomsection
-

This sets an anchor at this location. It works similar to

This sets an anchor at this location. It works similar to \hypertarget{}{} with an automatically chosen anchor name. Often it is used in conjunction with \addcontentsline for sectionlike things (index, @@ -4332,10 +4383,10 @@ Example: \addcontentsline{toc}{chapter}{\indexname} \printindex -

-

Now the entry in the table of contents (and bookmarks) for the index points to the start of the index page, +

+

Now the entry in the table of contents (and bookmarks) for the index points to the start of the index page, not to a location before this page. -

}{label}
-

This retrieves the anchor or the page anchor from a label in an expandable way. It takes +

This retrieves the anchor or the page anchor from a label in an expandable way. It takes \HyperDestNameFilter into account. It can e.g. be used with the \bookmark from the bookmark @@ -4364,12 +4415,12 @@ package to set a destination to a label:

 \bookmark[dest=\hyperget{anchor}{sec}]{section}
 
-

-

As

+

As pageanchor retrieves the page number from the label it can’t be use together with the option plainpages. -

{currentanchor}{}
-

This retrieves the last anchor that has been set. It too takes

This retrieves the last anchor that has been set. It too takes \HyperDestNameFilter into account. -

\autoref class="ec-lmvtt-10">{label}
-

This is a replacement for the usual

This is a replacement for the usual \ref command that places a contextual label in front of the reference. This gives your users a bigger target to click for hyperlinks (e.g. ‘section 2’ instead of merely the number ‘2’). -

The label is worked out from the context of the original

The label is worked out from the context of the original \label command by hyperref by using the macros listed below (shown with their default values). The macros can be (re)defined in documents using @@ -4405,16 +4456,16 @@ macros listed below (shown with their default values). The macros can be (re)def class="ec-lmvtt-10">\(re)newcommand; note that some of these macros are already defined in the standard document classes. The mixture of lowercase and uppercase initial letters is deliberate and corresponds to the author’s practice. -

For each macro below,

For each macro below, hyperref checks \*autorefname before \*name. For instance, it looks for \figureautorefname before \figurename. -

+

class="td01">Macro +

Figure

+

Table

+

Part

+

Appendix

+

Equation

+

item

+

chapter

+

section

+

subsection

+

subsubsection

+

paragraph

+

footnote

class="td01">\AMSname +

Equation

+

Theorem

+

page

@@ -4535,7 +4586,7 @@ class="td01"> class="td01">
-

Default

\figurename -

Figure

\tablename -

Table

\partname -

Part

\appendixname -

Appendix

\equationname -

Equation

\Itemname -

item

\chaptername -

chapter

\sectionname -

section

\subsectionname -

subsection

\subsubsectionname -

subsubsection

\paragraphname -

paragraph

\Hfootnotename -

footnote

-

Equation

\theoremname -

Theorem

\page -

page

-

Example for a redefinition if

Example for a redefinition if babel is used:

@@ -4546,8 +4597,8 @@ class="ec-lmss-10">babel is used:   \def\subsectionautorefname{Unterkapitel}% } -

-

Hint:

+

Hint: \autoref works via the counter name that the reference is based on. Sometimes \autoref chooses the wrong name, if the counter is used for different things. For example, it happens with @@ -4587,8 +4638,8 @@ We will use \autoref{a} to prove \auto \end{document} -

-

+

{label}
-

It replaces

It replaces \pageref and adds the name for page in front of the page reference. First \pageautorefname is checked before \pagename. -

For instances where you want a reference to use the correct counter, but not to create a +

For instances where you want a reference to use the correct counter, but not to create a link, there are starred forms (these starred forms exist even if hyperref has been loaded with implicit=false): -

\ref*{label}
-

{label}
-

\autoref*{label}
-

{label}
-

A typical use would be to write +

A typical use would be to write

 \hyperref[other]{that nice section (\ref*{other}) we read before}
 
-

-

We want

+

We want \ref*{other} to generate the correct number, but not to form a link, since we do this ourselves with \hyperref. -

}{TeXstring}
-

\pdfstringdef returns a macro containing the PDF string. (Currently this is done globally, but do not rely on it.) All the following tasks, definitions and redefinitions are made in a group to keep them local:

-

In addition, parentheses are protected to avoid the danger of unsafe unbalanced parentheses in +

In addition, parentheses are protected to avoid the danger of unsafe unbalanced parentheses in the PDF string. For further details, see Heiko Oberdiek’s EuroTeX paper distributed with hyperref. -

{NoHyper}…\end{NoHyper}
-

Sometimes we just don’t want the wretched package interfering with us. Define an environment we +

Sometimes we just don’t want the wretched package interfering with us. Define an environment we can put in manually, or include in a style file, which stops the hypertext functions doing anything. This is used, for instance, in the Elsevier classes, to stop hyperref playing havoc in the front matter. -

+

6.1 Bookmark macros

-

+

6.1.1 Setting bookmarks
-

Usually

Usually hyperref automatically adds bookmarks for \section and similar macros. But they can also set manually. -

}{name}
-

creates a bookmark with the specified text and at the given level (default is 0). As name for the +

creates a bookmark with the specified text and at the given level (default is 0). As name for the internal anchor name is used (in conjunction with level). Therefore the name must be unique (similar to \label). -

}{name}
-

creates a bookmark at the current level. -

creates a bookmark at the current level. +

}{name}
-

creates a bookmark one step down in the bookmark hierarchy. Internally the current level is increased +

creates a bookmark one step down in the bookmark hierarchy. Internally the current level is increased by one. -

}{name}
-

creates a bookmark below the current bookmark level. However after the command the current +

creates a bookmark below the current bookmark level. However after the command the current bookmark level has not changed. -

Hint: Package bookmark replaces hyperref’s bookmark organization by a new algorithm:

-

Therefore I recommend using this package. -

+

Different bookmark actions are supported (external file links, URLs, …). +

Therefore I recommend using this package. +

6.1.2 Replacement macros
-

hyperref takes the text for bookmarks from the arguments of commands like \section, which can contain things like math, colors, or font changes, none of which will display in bookmarks as is. -

}{PDFstring}
-

For example, +

For example,

@@ -4869,8 +4920,8 @@ class="ec-lmvtt-10">}  
 }
 \section{\texorpdfstring{\textcolor{red}}{}{Red} Mars}
 
-

-

+

\pdfstringdef executes the hook before it expands the string. Therefore, you can use this hook to perform additional tasks or to disable additional commands. @@ -4882,8 +4933,8 @@ perform additional tasks or to disable additional commands.   \renewcommand{\mycommand}[1]{}% } -

-

However, for disabling commands, an easier way is via

+

However, for disabling commands, an easier way is via \pdfstringdefDisableCommands, which adds its argument to the definition of \pdfstringdefPreHook (‘@’ can here be used as letter in command @@ -4897,11 +4948,11 @@ names):   \let\textcolor\@gobble } -

-

+

+

6.2 Pagelabels

-

{page number format}
-

This allows to change format of the page number shown in the tool bar of a PDF viewer for a specific +

This allows to change format of the page number shown in the tool bar of a PDF viewer for a specific page, for example -

\thispdfpagelabel{Empty Page-\roman{page}} -

The command affects the page on which it is executed, so asynchronous page breaking should be +

The command affects the page on which it is executed, so asynchronous page breaking should be taken into account. It should be used in places where for example \thispagestyle can be use too. -

+

6.3 Utility macros

-

{dimen specification}
-

\hypercalcbp takes a TeX dimen specification and converts it to bp and returns the number without the unit. This is useful for options pdfview, -

-

The origin of the PDF coordinate system is the lower left corner. -

Note, for calculations you need either package

+

The origin of the PDF coordinate system is the lower left corner. +

Note, for calculations you need either package calc or ε-TEX. Nowadays the latter should automatically be enabled for LATEX formats. Users without ε-TEX, please, look in the source documentation hyperref.dtx for further limitations. -

Also

Also \hypercalcbp cannot be used in option specifications of \documentclass and \usepackage, because LATEX expands the option lists of these commands. However package hyperref is not yet loaded and an undefined control sequence error would arise. -

+

7 New Features5

7.1 Option ‘pdflinkmargin’

-

Option ‘pdflinkmargin’ is an experimental option for specifying a link margin, if the driver supports this. +

Option ‘pdflinkmargin’ is an experimental option for specifying a link margin, if the driver supports this. Default is 1 pt for supporting drivers. -

+

-

+

pdfTeX

-

+

  • -

    The link area also depends on the surrounding box. +

    The link area also depends on the surrounding box.

  • -

    Settings have local effect. +

    Settings have local effect.

  • -

    When a page is shipped out, pdfTeX uses the current setting of the link margin for all +

    When a page is shipped out, pdfTeX uses the current setting of the link margin for all links on the page.

-

+

pdfmark

-

+

  • -

    Settings have global effect.

+

Settings have global effect.

-

+

xetex

-

+

  • -

    Settings must be done in the preamble or the first page and then have global effect. +

    Settings must be done in the preamble or the first page and then have global effect. The key inserts the new (x)dvipdfmx special \special{dvipdfmx:config g #1} (with the unit removed).

-

+

Other drivers

-

Unsupported.

-

+

Unsupported. +

7.2 Field option ‘calculatesortkey’

-

Fields with calculated values are calculated in document order by default. If calculated field values +

Fields with calculated values are calculated in document order by default. If calculated field values depend on other calculated fields that appear later in the document, then the correct calculation order can be specified with option ‘calculatesortkey’. Its value is used as key to lexicographically sort the calculated fields. The sort key do not need to be unique. Fields that share the same key are sorted in document order. -

Currently the field option ‘calculatesortkey’ is only supported by the driver for pdfTeX. -

+

Currently the field option ‘calculatesortkey’ is only supported by the driver for pdfTeX. +

7.3 Option ‘next-anchor’

-

This option allows to overwrite the anchor name of the next anchor. This makes it possible to give for +

This option allows to overwrite the anchor name of the next anchor. This makes it possible to give for example the heading of the table of contents an anchor name which can be referenced with a bookmark command. @@ -5045,14 +5096,14 @@ command. \tableofcontents \bookmark[dest=\HyperDestNameFilter{toc},level=section]{\contentsname} -

-

+

+

7.4 Option ‘localanchorname’

-

WhenDeprecated 2022-04-27 v7.00o an anchor is set (e.g. via

WhenDeprecated 2022-04-27 v7.00o an anchor is set (e.g. via \refstepcounter, then the anchor name is globally set to the current anchor name. -

For example: +

For example:

@@ -5060,28 +5111,28 @@ globally set to the current anchor name.
     \begin{equation}\end{equation}
     \label{sec:foobar}
 
-

With the default global setting (localanchorname=false) a reference to ‘sec:foobar’ jumps to the +

With the default global setting (localanchorname=false) a reference to ‘sec:foobar’ jumps to the equation before. With option ‘localanchorname’ the anchor of the equation is forgotten after the environment and the reference ‘sec:foobar’ jumps to the section title. -

Option ‘localanchorname’ is an experimental option, there might be situations, where the anchor +

Option ‘localanchorname’ is an experimental option, there might be situations, where the anchor name is not available as expected. -

The option is deprecated: it makes it difficult for package authors to add targets for links if it is +

The option is deprecated: it makes it difficult for package authors to add targets for links if it is unclear if \@currentHref is set locally or globally. -

+

7.5 Option ‘customdriver’

-

The value of option ‘customdriver’ is the name of an external driver file without extension ‘.def’. The file +

The value of option ‘customdriver’ is the name of an external driver file without extension ‘.def’. The file must have \ProvidesFile with a version date and number that match the date and number of ‘hyperref’, otherwise a warning is given. -

Because the interface, what needs to be defined in the driver, is not well defined and +

Because the interface, what needs to be defined in the driver, is not well defined and quite messy, the option is mainly intended to ease developing, testing, debugging the driver part. -

+

7.6 Option ‘psdextra’

-

LaTeX’s NFSS is used to assist the conversion of arbitrary TeX strings to PDF strings (bookmarks, PDF +

LaTeX’s NFSS is used to assist the conversion of arbitrary TeX strings to PDF strings (bookmarks, PDF information entries). Many math command names (\geq, \notin, ...) are not in control of NFSS, @@ -5095,17 +5146,17 @@ on means that the short names are available. Then \geq can directly be used instead of \textgeq. -

+

7.7 \XeTeXLinkBox

-

When XeTeX generates a link annotation, it does not look at the boxes (as the other drivers), but only +

When XeTeX generates a link annotation, it does not look at the boxes (as the other drivers), but only at the character glyphs. If there are no glyphs (images, rules, ...), then it does not generate a link annotation. Macro \XeTeXLinkBox puts its argument in a box and adds spaces at the lower left and upper right corners. An additional margin can be specified by setting it to the dimen register \XeTeXLinkMargin. The default is 2pt. -

Example: +

Example:

@@ -5122,8 +5173,8 @@ class="ec-lmvtt-10">\XeTeXLinkMargin. The default is 2pt.
     }
     \end{document}
 
-

-

+

+

7.8 \IfHyperBooleanExists and \IfHyperBoolean

@@ -5131,7 +5182,7 @@ class="ec-lmvtt-10">\XeTeXLinkMargin. The default is 2pt.
  \IfHyperBooleanExists{OPTION}{YES}{NO}
 
-

If a hyperref OPTION is a boolean, that means it takes values ‘true’ or ‘false’, then

If a hyperref OPTION is a boolean, that means it takes values ‘true’ or ‘false’, then \IfHyperBooleanExists calls YES, otherwise NO. @@ -5139,23 +5190,23 @@ calls YES, otherwise NO.

  \IfHyperBoolean{OPTION}{YES}{NO}
 
-

Macro

Macro \IfHyperBoolean calls YES, if OPTION exists as boolean and is enabled. Otherwise NO is executed. -

Both macros are expandable. Additionally option ‘stoppedearly’ is available. It is enabled if +

Both macros are expandable. Additionally option ‘stoppedearly’ is available. It is enabled if \MaybeStopEarly or \MaybeStopNow end hyperref prematurely. -

+

7.9 \unichar

-

If a Unicode character is not supported by puenc.def, it can be given by using

If a Unicode character is not supported by puenc.def, it can be given by using \unichar. Its name and syntax is inherited from package ‘ucs’. However it is defined independently for use in hyperref’s \pdfstringdef (that converts arbitrary TeX code to PDF strings or tries to do this). -

Macro

Macro \unichar takes a TeX number as argument, examples for U+263A (WHITE SMILING FACE): @@ -5164,7 +5215,7 @@ FACE):     \unichar{"263A}% hexadecimal notation     \unichar{9786}% decimal notation -

‘"’ must not be a babel shorthand character or otherwise active. Otherwise prefix it with +

‘"’ must not be a babel shorthand character or otherwise active. Otherwise prefix it with \string: @@ -5172,18 +5223,18 @@ class="ec-lmvtt-10">\string:

     \unichar{\string"263A}% converts ‘"’ to ‘"’ with catcode 12 (other)
 
-

Users of (n)german packages or babel options may use

Users of (n)german packages or babel options may use \dq instead:

     \unichar{\dq 263A}% \dq is double quote with catcode 12 (other)
 
-

-

+

+

7.10 \ifpdfstringunicode

-

Some features of the PDF specification needs PDF strings. Examples are bookmarks or the entries in the +

Some features of the PDF specification needs PDF strings. Examples are bookmarks or the entries in the information dictionary. The PDF specification allows two encodings ‘PDFDocEncoding’ (8-bit encoding) and ‘Unicode’ (UTF-16). The user can help using \texorpdfstring to replace complicate TeX constructs @@ -5194,7 +5245,7 @@ class="ec-lmvtt-10">\ifpdfstringunicode. It is only allowed class="ec-lmvtt-10">\texorpdfstring and takes two arguments, the first allows the full range of Unicode. The second is limited to the characters available in PDFDocEncoding. -

As example we take a macro definition for the Vietnamese name of Hàn Thế Thành. Correctly written +

As example we take a macro definition for the Vietnamese name of Hàn Thế Thành. Correctly written it needs some accented characters, one character even with a double accent. Class ‘tugboat.cls’ defines a macro for the typesetted name: @@ -5206,9 +5257,9 @@ macro for the typesetted name:       ~Th\‘anh%     } -

It’s not entirely correct, the second accent over the ‘e’ is not an acute, but a hook. However standard +

It’s not entirely correct, the second accent over the ‘e’ is not an acute, but a hook. However standard LaTeX does not provide such an accent. -

Now we can extend the definition to support hyperref. The first and the last word are already +

Now we can extend the definition to support hyperref. The first and the last word are already supported automatically. Characters with two or more accents are a difficult business in LaTeX, because the NFSS2 macros of the LaTeX kernel do not support more than one accent. Therefore also puenc.def misses support for them. But we can provide it using     % U+1EC3 LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE -

Thus we can put this together: +

Thus we can put this together:

@@ -5230,7 +5281,7 @@ is:
       ~Th\‘anh%
     }
 
-

For PDFDocEncoding (PD1) the variant above has dropped the second accent. Alternatively we could +

For PDFDocEncoding (PD1) the variant above has dropped the second accent. Alternatively we could provide a representation without accents instead of wrong accents: @@ -5249,12 +5300,12 @@ provide a representation without accents instead of wrong accents:       }%     } -

-

+

+

7.11 Customizing index style file with \nohyperpage

-

Since version 2008/08/14 v6.78f. -

For hyperlink support in the index, hyperref inserts

Since version 2008/08/14 v6.78f. +

For hyperlink support in the index, hyperref inserts \hyperpage into the index macros. After processing with Makeindex, \hyperpage analyzes its argument to detect page ranges and page comma @@ -5265,7 +5316,7 @@ lists. However, only the standard settings are supported directly:     delim_r "--"     delim_n ", " -

(See manual page/documentation of Makeindex that explains the keys that can be used in style files for +

(See manual page/documentation of Makeindex that explains the keys that can be used in style files for Makeindex.) Customized versions of delim_r, delim_n, -

(Depending on the typesetting tradition some space “

(Depending on the typesetting tradition some space “\\,” or “~” should be put before the first f inside \nohyperpage.) -

+

7.12 Experimental option ‘ocgcolorlinks’

-

The idea are colored links, when viewed, but printed without colors. This new experimental option +

The idea are colored links, when viewed, but printed without colors. This new experimental option ‘ocgcolorlinks’ uses Optional Content Groups, a feature introduced in PDF 1.5. -

A better implementation which hasn’t the disadvantage to prevent line breaks is in the ocgx2 +

A better implementation which hasn’t the disadvantage to prevent line breaks is in the ocgx2 package. Check its documentation for details how to use it.

-

+

7.13 Option ‘pdfa’

-

The new option ‘pdfa’ tries to avoid violations of PDF/A in code generated by hyperref. However, the +

The new option ‘pdfa’ tries to avoid violations of PDF/A in code generated by hyperref. However, the result is usually not in PDF/A, because many features aren’t controlled by hyperref (XMP metadata, fonts, colors, driver dependend low level stuff, ...). -

Currently, option ‘pdfa’ sets and disables the following items: +

Currently, option ‘pdfa’ sets and disables the following items:

-

The default value of the new option ‘pdfa’ is ‘false’. It influences the loading of the package and +

The default value of the new option ‘pdfa’ is ‘false’. It influences the loading of the package and cannot be changed after hyperref is loaded (\usepackage{hyperref}). -

+

7.14 Option ‘linktoc’ added

-

The new option ‘linktoc’ allows more control which part of an entry in the table of contents is made into +

The new option ‘linktoc’ allows more control which part of an entry in the table of contents is made into a link:

-

+

‘linktoc=all’ (both the section and page part are links) +

7.15 Option ‘pdfnewwindow’ changed

-

Before 6.77b: +

Before 6.77b:

-

Since 6.77b: +

Since 6.77b:

-

Rationale: There is a difference between setting to ‘false’ and an absent entry. In the former case the +

Rationale: There is a difference between setting to ‘false’ and an absent entry. In the former case the new document replaces the old one, in the latter case the PDF viewer application should respect the user preference. -

+

7.16 Flag options for PDF forms

-

PDF form field macros (

PDF form field macros (\TextField, \CheckBox, ...) support boolean flag options. The option name is the lowercase version of the names in the PDF specification (1.7): -

http://www.adobe.com/devnet/pdf/pdf_reference.html -

http://www.adobe.com/devnet/acrobat/pdfs/pdf_reference.pdf -

Options (convert to lowercase) except flags in square brackets: +

Options (convert to lowercase) except flags in square brackets:

-

New option ‘export’ sets the export format of a submit action. Valid values are (upper- or +

New option ‘export’ sets the export format of a submit action. Valid values are (upper- or lowercase):

-

+

PDF (not supported by Acrobat Reader) +

7.17 Option ‘pdfversion’

-

This is an experimental option. It notifies ‘hyperref’ about the intended PDF version. Currently this is +

This is an experimental option. It notifies ‘hyperref’ about the intended PDF version. Currently this is used in code for PDF forms (implementation notes 116 and 122 of PDF spec 1.7). -

Values: 1.2, 1.3, 1.4, 1.5, 1.6, 1.7. Values below 1.2 are not supported, because most drivers expect +

Values: 1.2, 1.3, 1.4, 1.5, 1.6, 1.7. Values below 1.2 are not supported, because most drivers expect higher PDF versions. -

The option must be used early, not after

The option must be used early, not after \usepackage{hyperref}. -

In theory this option should also set the PDF version, but this is not generally supported. +

In theory this option should also set the PDF version, but this is not generally supported.

-

The current PDF version is used as default if this version can be detected (only pdfTeX

Ghostscript: option -dCompatibilityLevel (this is set in ‘ps2pdf12’, ‘ps2pdf13’, ‘ps2pdf14’). +

The current PDF version is used as default if this version can be detected (only pdfTeX 1.10a). Otherwise the lowest version 1.2 is assumed. Thus ‘hyperref’ tries to avoid PDF code that breaks this version, but is free to use ignorable higher PDF features. -

+

7.18 Field option ‘name’

-

Many form objects uses the label argument for several purposes: +

Many form objects uses the label argument for several purposes:

-

Code that is suitable for layouting with TeX can break in the structures of the output format. If option +

As name in HTML structures. +

Code that is suitable for layouting with TeX can break in the structures of the output format. If option ‘name’ is given, then its value is used as name in the different output structures. Thus the value should consist of letters only. -

+

7.19 Option ‘pdfencoding’

-

The PDF format allows two encodings for bookmarks and entries in the information dictionary: +

The PDF format allows two encodings for bookmarks and entries in the information dictionary: PDFDocEncoding and Unicode as UTF-16BE. Option pdfencoding selects between these encodings:

-

All drivers use

All drivers use unicode by default now. If another encoding should be forced, it should be done in hypersetup. -

+

7.20 Color options/package hycolor

-

See documentation of package ‘hycolor’. -

+

See documentation of package ‘hycolor’. +

7.21 Option pdfusetitle

-

If option pdfusetitle is set then hyperref tries to derive the values for pdftitle and pdfauthor +

If option pdfusetitle is set then hyperref tries to derive the values for pdftitle and pdfauthor from \title and \author. An optional argument for \title and \author is supported (class amsart). -

+

7.22 Starred form of \autoref

-

\autoref* generates a reference without link as \ref* or \pageref*. -

+

7.23 Link border style

-

Links can be underlined instead of the default rectangle or options

Links can be underlined instead of the default rectangle or options colorlinks, frenchlinks. This is done by option pdfborderstyle={/S/U/W 1} -

Some remarks: +

Some remarks:

-

+

7.24 Option bookmarksdepth

-

The depth of the bookmarks can be controlled by the new option

The depth of the bookmarks can be controlled by the new option bookmarksdepth. The option acts globally and distinguishes three cases:

-

+

+

7.25 Option pdfescapeform

-

There are many places where arbitrary strings end up as PS or PDF strings. The PS/PDF strings in +

There are many places where arbitrary strings end up as PS or PDF strings. The PS/PDF strings in parentheses form require the protection of some characters, e.g. unmatched left or right parentheses need escaping or the escape character itself (backslash). Since 2006/02/12 v6.75a the PS/PDF driver should do this automatically. However I assume a problem with compatibility, especially regarding the form part where larger amounts of JavaScript code can be present. It would be a pain to remove all the escaping, because an additional escaping layer can falsify the code. -

Therefore a new option pdfescapeform was introduced: +

Therefore a new option pdfescapeform was introduced:

-

+

7.26 Default driver setting

-

(hyperref

(hyperref 6.72s) If no driver is given, hyperref tries its best to guess the most suitable driver. Thus it loads hpdftex, if pdfTeX is detected running in PDF mode. Or it loads the @@ -5733,18 +5784,18 @@ class="ec-lmvtt-10">hyperref.cfg:

     \providecommand*{\Hy@defaultdriver}{hdvips}
 
-

for dvips, or +

for dvips, or

     \providecommand*{\Hy@defaultdriver}{hypertex}
 
-

for the default behaviour of hyperref. -

See also the new option ‘driverfallback’. -

+

for the default behaviour of hyperref. +

See also the new option ‘driverfallback’. +

7.27 Backref entries

-

Alternative interface for formatting of backref entries, example: +

Alternative interface for formatting of backref entries, example:

@@ -5837,11 +5888,11 @@ class="ec-lmvtt-10">hyperref.cfg:
 
 \end{document}
 
-

-

+

+

7.28 \phantomsection

-

Set an anchor at this location. It is often used in conjunction with

Set an anchor at this location. It is often used in conjunction with \addcontentsline for sectionlike things (index, bibliography, preface). \addcontentsline refers to the latest previous location where an anchor is @@ -5854,13 +5905,13 @@ set.   \addcontentsline{toc}{chapter}{\indexname}   \printindex -

-

Now the entry in the table of contents (and bookmarks) for the index points to the start of the index +

+

Now the entry in the table of contents (and bookmarks) for the index points to the start of the index page, not to a location before this page. -

+

7.29 puenc encoding, puenc-greek.def and puenc-extra.def

-

The puenc encoding, puenc-greekbasic.def and puenc-extra.def +

The unicode option loads for the bookmarks puenc.def which contains quite a lot definitions of commands for the bookmarks. As hyperref uses two strategies.

-

+

8 Acrobat-specific behavior

-

If you want to access the menu options of Acrobat Reader or Exchange, the following macro is provided +

If you want to access the menu options of Acrobat Reader or Exchange, the following macro is provided in the appropriate drivers: -

}{text}
-

The

The text is used to create a button which activates the appropriate menuoption. The following table lists the option names you can use—comparison of this with the menus in Acrobat Reader or Exchange will show what they do. Obviously some are only appropriate to Exchange. -

+

-

style="vertical-align:baseline;" id="TBL-44-1-"> class="td01">FileExport +

Properties

@@ -6004,7 +6056,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-9-"> +

About

@@ -6119,18 +6171,18 @@ class="td01"> class="td01">
File -

Open, +

Open, Close, Scan, Save, @@ -5936,7 +5988,7 @@ class="td10"> class="td01">FileImport

-

ImportImage, +

ImportImage, ImportNotes, AcroForm:ImportFDF

-

ExportNotes, +

ExportNotes, AcroForm:ExportFDF

FileDocumentInfo -

GeneralInfo, +

GeneralInfo, OpenInfo, FontsInfo, SecurityInfo, @@ -5962,7 +6014,7 @@ class="td10"> class="td01">FilePreferences

-

GeneralPrefs, +

GeneralPrefs, NotePrefs, FullScreenPrefs, Weblink:Prefs, @@ -5974,7 +6026,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-6-">

Edit -

Undo, +

Undo, Cut, Copy, Paste, @@ -5990,13 +6042,13 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-7-">

-

Properties

EditFields -

AcroForm:Duplicate, +

AcroForm:Duplicate, AcroForm:TabOrder

Document -

Cpt:CapturePages, +

Cpt:CapturePages, AcroForm:Actions, CropPages, RotatePages, @@ -6020,7 +6072,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-10-">

View -

ActualSize, +

ActualSize, FitVisible, FitWidth, FitPage, @@ -6044,7 +6096,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-11-">

Tools -

Hand, +

Hand, ZoomIn, ZoomOut, SelectText, @@ -6066,7 +6118,7 @@ class="td10"> class="td01">ToolsSearch

-

AcroSrch:Query, +

AcroSrch:Query, AcroSrch:Indexes, AcroSrch:Results, AcroSrch:Assist, @@ -6078,7 +6130,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-13-">

Window -

ShowHideToolBar, +

ShowHideToolBar, ShowHideMenuBar, ShowHideClipboard, Cascade, @@ -6089,7 +6141,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-14-">

Help -

HelpUserGuide, +

HelpUserGuide, HelpTutorial, HelpExchange, HelpScan, @@ -6104,7 +6156,7 @@ class="td10"> style="vertical-align:baseline;" id="TBL-44-15-">

Help(Windows) -

About

-

+

9 PDF and HTML forms

-

You must put your fields inside a

You must put your fields inside a Form environment. The environment does some general setups, so should be used only once in a document. Using simply \Form at the begin of the document is possible too. -

There are six macros to prepare fields: +

There are six macros to prepare fields: -

]{label}
-

]{label}
-

}{choices}
-

]{label}
-

]{label}
-

]{label}
-

The way forms and their labels are laid out is determined by: -

The way forms and their labels are laid out is determined by: +

}{field}
-

}{field}
-

}{field}
-

These macros default to #1 #2 -

What is actually shown in the field is determined by: -

These macros default to #1 #2 +

What is actually shown in the field is determined by: +

}{height}
-

}{height}
-

}{height}
-

}{height}
-

\MakeButtonField{text}
-

These macros default to

These macros default to \vbox to #2{\hbox #1{\hfill}\vfill}, except the l to #1; it is used for buttons, and the special \Submit and \Reset macros. -

You may also want to redefine the following macros: +

You may also want to redefine the following macros:

@@ -6339,13 +6391,13 @@ class="ec-lmvtt-10">\Reset macros.
 \def\DefaultHeightofTextMultiline{4\baselineskip}
 \def\DefaultWidthofText{3cm}
 
-

-

+

+

9.1 Forms environment parameters

-

+

action encoding method @@ -6400,16 +6452,16 @@ class="td01">
URL -

The URL that will receive the form data if a

The URL that will receive the form data if a Submit button is included in the form

name -

The encoding for the string set to the URL; FDF-encoding +

The encoding for the string set to the URL; FDF-encoding is usual, and html is the only valid value

name -

Used only when generating HTML; values can be

Used only when generating HTML; values can be post or get

-

+

9.2 Forms optional parameters

-

Note that all colors must be expressed as RGB triples, in the range 0..1 (i.e. 

Note that all colors must be expressed as RGB triples, in the range 0..1 (i.e. color=0 0 0.5) -

+

-

+

10 Defining a new driver

-

A hyperref driver has to provide definitions for eight macros: -

1.

A hyperref driver has to provide definitions for eight macros: +

1. \hyper@anchor -

2.

2. \hyper@link -

3.

3. \hyper@linkfile -

4.

4. \hyper@linkurl -

5.

5. \hyper@anchorstart -

6.

6. \hyper@anchorend -

7.

7. \hyper@linkstart -

8.

8. \hyper@linkend -

The draft option defines the macros as follows +

The draft option defines the macros as follows

@@ -6903,16 +6955,16 @@ class="ec-lmvtt-10">\hyper@linkend
 \let\hyper@linkstart\@gobbletwo
 \let\hyper@linkend\@empty
 
-

-

+

+

11 Special support for other packages

-

Package

Package hyperref aims to cooperate with other packages, but there are several possible sources for conflict, such as

-

The

Packages that do anything serious with sectioning commands and the toc +

The hyperref package is distributed with variants on two useful packages designed to work especially well with it. These are xr and minitoc, which support crossdocument links using \label/\ref mechanisms and per-chapter tables of contents, respectively. -

+

11.1 Package Compatibility

-

Currently only package loading orders are available: -

+

Currently only package loading orders are available: +

11.1.1 algorithm
@@ -6952,11 +7004,11 @@ class="ec-lmvtt-10">\ref mechanisms and per-chapter tables of contents, r   \usepackage{hyperref}   \usepackage[chapter]{algorithm}% eg. -

-

+

+

11.1.2 amsmath
-

The environments equation and eqnarray are not supported too well. For example, there might be +

The environments equation and eqnarray are not supported too well. For example, there might be spacing problems (eqnarray isn’t recommended anyway, see CTAN:info/l2tabu/, the situation for equation is unclear, because nobody is interested in investigating). Consider using the environments that package amsmath provide, e.g. gather for equation. The environment equation can even redefined to use @@ -6968,22 +7020,22 @@ gather:   \let\equation\gather   \let\endequation\endgather -

-

+

+

11.1.3 amsrefs
-

Package loading order: +

Package loading order:

   \usepackage{hyperref}
   \usepackage{amsrefs}
 
-

-

+

+

11.1.4 arydshln, longtable
-

Package longtable must be put before hyperref and arydshln, hyperref after arydshln generates an error, +

Package longtable must be put before hyperref and arydshln, hyperref after arydshln generates an error, thus the resulting package order is then: @@ -6992,16 +7044,16 @@ thus the resulting package order is then:   \usepackage{hyperref}   \usepackage{arydshln} -

-

+

+

11.1.5 babel/magyar.ldf
-

The old version 2005/03/30 v1.4j will not work. You need at least version 1.5, maintained by Péter +

The old version 2005/03/30 v1.4j will not work. You need at least version 1.5, maintained by Péter Szabó, see CTAN:language/hungarian/babel/. -

+

11.1.6 babel/spanish.ldf
-

Babel’s spanish.ldf redefines ‘

Babel’s spanish.ldf redefines ‘\.’ to support ‘\...’. In bookmarks (\pdfstringdef) only ‘\.’ is supported. If ‘\...’ is needed, \texorpdfstring{\...}{\dots} can be used instead. -

+

11.1.7 bibentry
-

Workaround: +

Workaround:

@@ -7031,16 +7083,16 @@ class="ec-lmvtt-10">\texorpdfstring{\...}{\dots} can be use
     \nobibliography{database}
   \endgroup
 
-

-

+

+

11.1.8 bigfoot
-

Hyperref does not support package ‘bigfoot’. And package ‘bigfoot’ does not support hyperref’s footnotes +

Hyperref does not support package ‘bigfoot’. And package ‘bigfoot’ does not support hyperref’s footnotes and disables them (hyperfootnotes=false). -

+

11.1.9 chappg
-

Package ‘chappg’ uses

Package ‘chappg’ uses \@addtoreset that is redefined by ‘hyperref’. The package order is therefore: @@ -7049,11 +7101,11 @@ therefore:   \usepackage{hyperref}   \usepackage{chappg} -

-

+

+

11.1.10 cite
-

This is from Mike Shell: cite.sty cannot currently be used with hyperref. However, I can do a workaround +

This is from Mike Shell: cite.sty cannot currently be used with hyperref. However, I can do a workaround via: @@ -7064,14 +7116,14 @@ via:  \usepackage[hypertex]{hyperref} -

-

so that hyperref will not redefine any of the biblabel stuff - so cite.sty will work as normal - +

+

so that hyperref will not redefine any of the biblabel stuff - so cite.sty will work as normal - although the citations will not be hyperlinked, of course (But this may not be an issue for many people). -

+

11.1.11 count1to
-

Package ‘count1to’ adds several

Package ‘count1to’ adds several \@addtoreset commands that confuse ‘hyperref’. Therefore \theH<...> has to be fixed: @@ -7087,27 +7139,27 @@ has to be fixed:     \renewcommand*{\theHsubparagraph}{\theHparagraph.\arabic{subparagraph}}%   } -

-

+

+

11.1.12 dblaccnt
-

pd1enc.def or puenc.def should be loaded before: +

pd1enc.def or puenc.def should be loaded before:

   \usepackage{hyperref}
   \usepackage{dblaccnt}
 
-

or see entry for

or see entry for vietnam. -

+

11.1.13 easyeqn
-

Not compatible, breaks. -

+

Not compatible, breaks. +

11.1.14 ellipsis
-

This packages redefines

This packages redefines \textellipsis after package hyperref (pd1enc.def/puenc.def should be loaded before): @@ -7116,10 +7168,10 @@ before):   \usepackage{hyperref}   \usepackage{ellipsis} -

-

(this will lead to wrong ellipsis in the bookmarks, so

+

(this will lead to wrong ellipsis in the bookmarks, so \texorpdfstring is needed). -

+

11.1.15 float
@@ -7128,38 +7180,38 @@ class="ec-lmvtt-10">\texorpdfstring is needed).  \usepackage{float}   \usepackage{hyperref} -

+

-

+

Anchor are set at top of the float object, if its style is controlled by float.sty. +

11.1.16 endnotes
-

Unsupported. -

+

Unsupported. +

11.1.17 foiltex
-

Update to version 2008/01/28 v2.1.4b: Since version 6.77a hyperref does not hack into

Update to version 2008/01/28 v2.1.4b: Since version 6.77a hyperref does not hack into \@begindvi, it uses package ‘atbegshi’ instead, that hooks into \shipout. Thus the patch of ‘foils.cls’ regarding hyperref is now obsolete and causes an undefined error message about \@hyperfixhead. This is fixed in FoilTeX 2.1.4b. -

+

11.1.18 footnote
-

This package is not supported, you have to disable hyperref’s footnote support by using option +

This package is not supported, you have to disable hyperref’s footnote support by using option hyperfootnotes=false. -

+

11.1.19 geometry
-

Driver ‘dvipdfm’ and program ‘dvipdfm’ might generate a warning: Sorry. Too late to change page size +

Driver ‘dvipdfm’ and program ‘dvipdfm’ might generate a warning: Sorry. Too late to change page size Then prefer the program ‘dvipdfmx’ or use one of the following workarounds to move the \special of geometry to an earlier location: @@ -7192,24 +7244,24 @@ geometry to an earlier location:     ]{geometry}     \usepackage{hyperref} -

-

+

+

11.1.20 IEEEtran.cls
-

version

version V1.6b (because of \@makecaption, see ChangeLog) -

+

11.1.21 index
-

version

version 1995/09/28 v4.1 (because of \addcontentsline redefinition) -

+

11.1.22 lastpage
-

Compatible. -

+

Compatible. +

11.1.23 linguex
@@ -7218,8 +7270,8 @@ class="ec-lmvtt-10">\addcontentsline redefinition)  \usepackage{hyperref}   \usepackage{linguex} -

-

+

+

11.1.24 ltabptch
@@ -7229,20 +7281,20 @@ class="ec-lmvtt-10">\addcontentsline redefinition)   \usepackage{ltabptch}   \usepackage{hyperref} -

-

+

+

11.1.25 mathenv
-

Unsupported. -

Both ‘mathenv’ and ‘hyperref’ messes around with environment ‘eqnarray’. You can load ‘mathenv’ +

Unsupported. +

Both ‘mathenv’ and ‘hyperref’ messes around with environment ‘eqnarray’. You can load ‘mathenv’ after ‘hyperref’ to avoid an error message. But \label will not work inside environment ‘eqnarray’ properly, for example. -

+

11.1.26 minitoc-hyper
-

This package is obsolete, use the up-to-date original package minitoc instead. -

+

This package is obsolete, use the up-to-date original package minitoc instead. +

11.1.27 multind
@@ -7251,8 +7303,8 @@ properly, for example.  \usepackage{multind}   \usepackage{hyperref} -

-

+

+

11.1.28 natbib
@@ -7261,22 +7313,22 @@ properly, for example.  \usepackage{natbib}   \usepackage{hyperref} -

-

+

+

11.1.29 nomencl
-

Example for introducing links for the page numbers: +

Example for introducing links for the page numbers:

       \renewcommand*{\pagedeclaration}[1]{\unskip, \hyperpage{#1}}
 
-

-

+

+

11.1.30 ntheorem-hyper
-

This package is obsolete, use the up-to-date original package ntheorem instead. -

For equations the following might work: +

This package is obsolete, use the up-to-date original package ntheorem instead. +

For equations the following might work:

@@ -7286,8 +7338,8 @@ properly, for example.
     But the mapping from the equation number to the anchor name
     is not available in general.
 
-

-

+

+

11.1.31 prettyref
@@ -7312,8 +7364,8 @@ properly, for example. %%% example for prettyref %%%        -

-

+

+

11.1.32 setspace
@@ -7322,18 +7374,18 @@ properly, for example.  \usepackage{setspace}   \usepackage{hyperref} -

-

+

+

11.1.33 sidecap
-

Nothing special is needed anymore. -

+

Nothing special is needed anymore. +

11.1.34 subfigure
-

The package is obsolete. Use either

The package is obsolete. Use either subfig or subcaption -

+

11.1.35 titleref
@@ -7343,24 +7395,24 @@ class="ec-lmss-10">subcaption   \usepackage{titleref}% without usetoc   \usepackage{hyperref} -

-

+

+

11.1.36 tabularx
-

Linked footnotes are not supported inside environment ‘tabularx’, because they uses the optional +

Linked footnotes are not supported inside environment ‘tabularx’, because they uses the optional argument of \footnotetext, see section ‘Limitations’. Before version 2011/09/28 6.82i hyperref had disabled footnotes entirely by ‘hyperfootnotes=false’. -

+

11.1.37 titlesec
-

nameref supports titlesec, but hyperref does not (unsolved is the anchor setting, missing with unnumbered section, perhaps problems with page breaks with numbered ones). -

+

11.1.38 ucs/utf8x.def
-

The first time a multibyte UTF8 sequence is called, it does some calculations and stores the result in a +

The first time a multibyte UTF8 sequence is called, it does some calculations and stores the result in a macro for speeding up the next calls of that UTF8 sequence. However this makes the first call non-expandable and will break if used in information entries or bookmarks. Package ucs offers @@ -7376,16 +7428,16 @@ class="ec-lmvtt-10">\PreloadUnicodePage to solve this:     \PrerenderUnicode{^^c3^^b6}% or \PrerenderUnicodePage{1}     \hypersetup{pdftitle={Umlaut example: ^^c3^^b6}} -

The notation with two carets avoids trouble with 8-bit bytes for the README file, you can use the +

The notation with two carets avoids trouble with 8-bit bytes for the README file, you can use the characters directly. -

Note: utf8 is now the default in LaTeX and

Note: utf8 is now the default in LaTeX and ucs is no longer recommended. -

+

11.1.39 varioref
-

There are too many problems with varioref. Nobody has time to sort them out. Therefore this package is +

There are too many problems with varioref. Nobody has time to sort them out. Therefore this package is now unsupported. -

Perhaps you are lucky and some of the features of varioref works with the following loading +

Perhaps you are lucky and some of the features of varioref works with the following loading order: @@ -7394,24 +7446,24 @@ order:     \usepackage{varioref}     \usepackage{hyperref} -

-

Also some babel versions can be problematic. For example, 2005/05/21 v3.8g contains a patch for +

+

Also some babel versions can be problematic. For example, 2005/05/21 v3.8g contains a patch for varioref that breaks the hyperref support for varioref. -

Also unsupported: +

Also unsupported:

-

+

11.1.40 verse
-

Version 2005/08/22 v2.22 contains support for hyperref. -

For older versions see example from de.comp.text.tex (2005/08/11, slightly modified): +

Version 2005/08/22 v2.22 contains support for hyperref. +

For older versions see example from de.comp.text.tex (2005/08/11, slightly modified):

@@ -7456,8 +7508,8 @@ class="ec-lmvtt-10">\vpageref[]{...} On the same page a pre
 
   \end{document}
 
-

-

+

+

11.1.41 vietnam
@@ -7468,20 +7520,20 @@ class="ec-lmvtt-10">\vpageref[]{...} On the same page a pre   \usepackage{vietnam}   \usepackage{hyperref} -

-

+

+

11.1.42 XeTeX
-

Default for the encoding of bookmarks is

Default for the encoding of bookmarks is pdfencoding=unicode. That means the strings are always treated as unicode strings. If auto or pdfdoc is forced it applies only if the string restricts to the printable ASCII set, The reason is that the \special does not support PDFDocEncoding. -

In older versions hyperref contained special conversion code from UTF-16BE back to UTF-8 in a +

In older versions hyperref contained special conversion code from UTF-16BE back to UTF-8 in a number of places for xetex to avoid the xdvipdfmx warning -

Failed to convert input string to UTF16... -

This is no longer needed with a current xdvipdfmx, so this code has been removed. +

This is no longer needed with a current xdvipdfmx, so this code has been removed. \csname HyPsd@XeTeXBigCharstrue\endcsname should no longer be used. -

+

12 Limitations6

12.1 Wrapped/broken link support

-

Only few drivers support automatically wrapped/broken links, e.g. pdftex, dvipdfm, hypertex. Other +

Only few drivers support automatically wrapped/broken links, e.g. pdftex, dvipdfm, hypertex. Other drivers lack this feature, e.g. dvips, dvipsone. -

Workarounds: +

Workarounds:

-

+

12.2 Links across pages

-

In general they have problems: +

In general they have problems:

-

+

12.3 Footnotes

-

LaTeX allows the separation of the footnote mark and the footnote text (

LaTeX allows the separation of the footnote mark and the footnote text (\footnotemark, \footnotetext). This interface might be enough for visual typesetting. But the relation between @@ -7557,14 +7609,14 @@ Thus the implementation of hyperref does not support the optional argument of \footnotemark and \footnotetext. -

+

13 Hints7

13.1 Spaces in option values

-

Unhappily LaTeX strips spaces from options if they are given in

Unhappily LaTeX strips spaces from options if they are given in \documentclass or \usepackage (or \RequirePackage), e.g.:

     \usepackage[pdfborder=0 0 1]{hyperref}
 
-

Package hyperref now gets +

Package hyperref now gets

     pdfborder=001
 
-

and the result is an invalid PDF file. As workaround braces can be used: +

and the result is an invalid PDF file. As workaround braces can be used:

     \usepackage[pdfborder={0 0 1}]{hyperref}
 
-

Some options can also be given in

Some options can also be given in \hypersetup

     \hypersetup{pdfborder=0 0 1}
 
-

In

In \hypersetup the options are directly processed as key value options (see package keyval) without space stripping in the value part. -

Alternatively, LaTeX’s option handling system can be adapted to key value options by one of the +

Alternatively, LaTeX’s option handling system can be adapted to key value options by one of the packages kvoptions-patch (from project kvoptions) or xkvltxp (from project xsetkeys). -

+

13.2 Index with makeindex

-

+

+

13.3 Warning "bookmark level for unknown <foobar> defaults to 0"

-

Getting rid of it: +

Getting rid of it:

@@ -7683,16 +7735,16 @@ class="ec-lmvtt-10">"bookmark level for unknown <foobar> defaults
 \providecommand*{\toclevel@<foobar>}{0}
 \makeatother
 
-

-

+

+

13.4 Link anchors in figures

-

The caption command increments the counter and here is the place where hyperref set the corresponding +

The caption command increments the counter and here is the place where hyperref set the corresponding anchor. Unhappily the caption is set below the figure, so the figure is not visible if a link jumps to a figure. In this case, try package hypcap that implements a method to circumvent the problem. -

+

13.5 Additional unicode characters in bookmarks and pdf information entries:

@@ -7701,14 +7753,14 @@ problem. \documentclass[pdftex]{article} \usepackage[unicode]{hyperref} -

-

Support for additional unicode characters: -

Example:

+

Support for additional unicode characters: +

Example: \.{a} and \d{a} -

1. Get a list with unicode data, eg: -

http://www.unicode.org/Public/UNIDATA/UnicodeData.txt -

2. Identify the characters (

1. Get a list with unicode data, eg: +

http://www.unicode.org/Public/UNIDATA/UnicodeData.txt +

2. Identify the characters (\.{a}, \d{a}): @@ -7717,9 +7769,9 @@ class="ec-lmvtt-10">\d{a}):     0227;LATIN SMALL LETTER A WITH DOT ABOVE;...     1EA1;LATIN SMALL LETTER A WITH DOT BELOW;... -

-

3. Calculate the octal code: -

The first characters of the line in the file are hex values, convert each byte and prepend them with a +

+

3. Calculate the octal code: +

The first characters of the line in the file are hex values, convert each byte and prepend them with a backslash. (This will go into the PDF file.) @@ -7727,9 +7779,9 @@ backslash. (This will go into the PDF file.)     0227 -> \002\047     1EA1 -> \036\241 -

-

4. Transform into a form understood by hyperref: -

Hyperref must know where the first byte starts, this is marked by

+

4. Transform into a form understood by hyperref: +

Hyperref must know where the first byte starts, this is marked by 9 (8 and 9 cannot occur in octal numbers): @@ -7738,8 +7790,8 @@ numbers):     \002\047 -> \9002\047     \036\241 -> \9036\241 -

-

Optional:

+

Optional: 8 is used for abbreviations: @@ -7748,8 +7800,8 @@ class="ec-lmvtt-10">8 is used for abbreviations:     \9002\047 -> \82\047 -

-

5. Declare the character with LaTeX: +

+

5. Declare the character with LaTeX:

@@ -7761,11 +7813,11 @@ class="ec-lmvtt-10">8 is used for abbreviations:
 \end{document}
       
 
-

-

+

+

13.6 Footnotes

-

The footnote support is rather limited. It is beyond the scope to use

The footnote support is rather limited. It is beyond the scope to use \footnotemark and \footnotetext out of order or reusing -

+

-

+

13.7 Subordinate counters

-

Some counters do not have unique values and require the value of other counters to be unique. For +

Some counters do not have unique values and require the value of other counters to be unique. For example, sections or figures might be numbered within chapters or \newtheorem is used with an optional counter argument. Internally LaTeX uses \@addtoreset to catch this situation. Also \numberwithin of package amsmath is caught by hyperref. -

However, if the definition of subordinate counters take place before hyperref is loaded, the old +

However, if the definition of subordinate counters take place before hyperref is loaded, the old meaning of \@addtoreset is called without hyperref’s additions. Then the companion counter macro \theH<counter> can be redefined accordingly. Or move the definition of subordinate counters after hyperref is loaded. -

Example for

Example for \newtheorem, problematic case: @@ -7851,14 +7903,14 @@ class="ec-lmvtt-10">\newtheorem, problematic case:     \newtheorem{corA}{CorollaryA}[section]     \usepackage{hyperref} -

Solution a) +

Solution a)

     \usepackage{hyperref}
     \newtheorem{corA}{CorollaryA}[section}
 
-

Solution b) +

Solution b)

@@ -7866,11 +7918,11 @@ class="ec-lmvtt-10">\newtheorem, problematic case:
     \usepackage{hyperref}
     \newcommand*{\theHcorA}{\theHsection.\number\value{corA}}
 
-

-

+

+

14 History and acknowledgments

-

The original authors of

The original authors of hyperbasics.tex and hypertex.sty, from which this package descends, are Tanmoy Bhattacharya and Thorsten Ohl. Package

Tanmoy found a great many of the bugs, and (even better) often provided fixes, which has +

Tanmoy found a great many of the bugs, and (even better) often provided fixes, which has made the package more robust. The days spent on RevTeX are entirely due to him! The investigations of Bill Moss into the later versions including native PDF support uncovered a good many bugs, and his testing is appreciated. Hans Hagen provided a lot of insight into PDF. -

Berthold Horn provided help, encouragement and sponsorship for the

Berthold Horn provided help, encouragement and sponsorship for the dvipsone and dviwindo drivers. Sergey Lesenko provided the changes needed for hyper package (developed in parallel with hyperref) showed me solutions for some problems. Hopefully the two packages will combine one day. -

The forms creation section owes a great deal to: T. V. Raman, for encouragement, support and +

The forms creation section owes a great deal to: T. V. Raman, for encouragement, support and ideas; Thomas Merz, whose book Web Publishing with Acrobat/PDF provided crucial insights; D. P. Story, whose detailed article about pdfmarks and forms solved many practical problems; and Hans Hagen, who explained how to do it in pdftex. -

Steve Peter recreated the manual source in July 2003 after it had been lost. -

Especial extra thanks to David Carlisle for the

Steve Peter recreated the manual source in July 2003 after it had been lost. +

Especial extra thanks to David Carlisle for the backref module, the ps2pdf and dviwindo support, frequent general rewrites of my bad code, and for working on changes to the xr package to suit @@ -7919,61 +7971,61 @@ class="ec-lmss-10">hyperref.

15 GNU Free Documentation License

-

Version 1.2, November 2002 -

Copyright

Version 1.2, November 2002 +

Copyright © 2000,2001,2002 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. -

+

Preamble

-

The purpose of this License is to make a manual, textbook, or other functional and useful document +

The purpose of this License is to make a manual, textbook, or other functional and useful document “free” in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. -

This License is a kind of “copyleft”, which means that derivative works of the document must +

This License is a kind of “copyleft”, which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. -

We have designed this License in order to use it for manuals for free software, because free software +

We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. -

+

15.1 Applicability and definitions

-

This License applies to any manual or other work, in any medium, that contains a notice placed by +

This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The “Document”, below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as “you”. You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. -

A “Modified Version” of the Document means any work containing the Document or a +

A “Modified Version” of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. -

A “Secondary Section” is a named appendix or a front-matter section of the Document that deals +

A “Secondary Section” is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document’s overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. -

The “Invariant Sections” are certain Secondary Sections whose titles are designated, as being those of +

The “Invariant Sections” are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. -

The “Cover Texts” are certain short passages of text that are listed, as Front-Cover Texts or +

The “Cover Texts” are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. -

A “Transparent” copy of the Document means a machine-readable copy, represented in a format +

A “Transparent” copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or @@ -7982,7 +8034,7 @@ otherwise Transparent file format whose markup, or absence of markup, has been a discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not “Transparent” is called “Opaque”. -

Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo +

Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include @@ -7990,41 +8042,41 @@ proprietary formats that can be read and edited only by proprietary word process or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. -

The “Title Page” means, for a printed book, the title page itself, plus such following pages as are +

The “Title Page” means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, “Title Page” means the text near the most prominent appearance of the work’s title, preceding the beginning of the body of the text. -

A section “Entitled XYZ” means a named subunit of the Document whose title either is precisely +

A section “Entitled XYZ” means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as “Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” of such a section when you modify the Document means that it remains a section “Entitled XYZ” according to this definition. -

The Document may include Warranty Disclaimers next to the notice which states that this +

The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. -

+

15.2 Verbatim copying

-

You may copy and distribute the Document in any medium, either commercially or noncommercially, +

You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the -copies you make or distribute. However, you may accept compensation in exchange for copies. If you -distribute a large enough number of copies you must also follow the conditions in section 15.3 -. -

You may also lend copies, under the same conditions stated above, and you may publicly display +copies you make or distribute. However, you may accept compensation in exchange for copies. +If you distribute a large enough number of copies you must also follow the conditions in +section 15.3. +

You may also lend copies, under the same conditions stated above, and you may publicly display copies. -

+

15.3 Copying in quantity

-

If you publish printed copies (or copies in media that commonly have printed covers) of the Document, +

If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document’s license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly @@ -8033,10 +8085,10 @@ words of the title equally prominent and visible. You may add other material on addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. -

If the required texts for either cover are too voluminous to fit legibly, you should put the first ones +

If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. -

If you publish or distribute Opaque copies of the Document numbering more than 100, you must +

If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free @@ -8045,31 +8097,31 @@ begin distribution of Opaque copies in quantity, to ensure that this Transparent remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. -

It is requested, but not required, that you contact the authors of the Document well before +

It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. -

+

15.4 Modifications

-

You may copy and distribute a Modified Version of the Document under the conditions of sections 

You may copy and distribute a Modified Version of the Document under the conditions of sections 15.2 and 15.3 above, provided that you release the Modified Version under precisely this License, with the +href="#x1-12400015.3">15.3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: -

+

  1. -

    Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, +

    Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.

  2. -

    List on the Title Page, as authors, one or more persons or entities responsible for authorship +

    List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. @@ -8077,35 +8129,35 @@ Version:

  3. -

    State on the Title page the name of the publisher of the Modified Version, as the publisher. +

    State on the Title page the name of the publisher of the Modified Version, as the publisher.

  4. -

    Preserve all the copyright notices of the Document. +

    Preserve all the copyright notices of the Document.

  5. -

    Add an appropriate copyright notice for your modifications adjacent to the other copyright +

    Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.

  6. -

    Include, immediately after the copyright notices, a license notice giving the public permission +

    Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.

  7. -

    Preserve in that license notice the full lists of Invariant Sections and required Cover Texts +

    Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document’s license notice.

  8. -

    Include an unaltered copy of this License. +

    Include an unaltered copy of this License.

  9. -

    Preserve the section Entitled “History”, Preserve its Title, and add to it an item stating at +

    Preserve the section Entitled “History”, Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled “History” in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item @@ -8113,7 +8165,7 @@ Version:

  10. -

    Preserve the network location, if any, given in the Document for public access to a +

    Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the “History” section. You may omit a network location for a work that was published at least four years before the @@ -8123,98 +8175,98 @@ Version:

  11. -

    For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Title of the +

    For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.

  12. -

    Preserve all the Invariant Sections of the Document, unaltered in their text and in their +

    Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.

  13. -

    Delete any section Entitled “Endorsements”. Such a section may not be included in the +

    Delete any section Entitled “Endorsements”. Such a section may not be included in the Modified Version.

  14. -

    Do not retitle any existing section to be Entitled “Endorsements” or to conflict in title with +

    Do not retitle any existing section to be Entitled “Endorsements” or to conflict in title with any Invariant Section.

  15. -

    Preserve any Warranty Disclaimers. +

    Preserve any Warranty Disclaimers.

-

If the Modified Version includes new front-matter sections or appendices that qualify as Secondary +

If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version’s license notice. These titles must be distinct from any other section titles. -

You may add a section Entitled “Endorsements”, provided it contains nothing but endorsements of +

You may add a section Entitled “Endorsements”, provided it contains nothing but endorsements of your Modified Version by various parties–for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. -

You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as +

You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. -

The author(s) and publisher(s) of the Document do not by this License give permission to use their +

The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. -

+

15.5 Combining documents

-

You may combine the Document with other documents released under this License, under the terms +

You may combine the Document with other documents released under this License, under the terms defined in section 15.4 above for modified versions, provided that you include in the combination all of +href="#x1-12500015.4">15.4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. -

The combined work need only contain one copy of this License, and multiple identical Invariant +

The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. -

In the combination, you must combine any sections Entitled “History” in the various original +

In the combination, you must combine any sections Entitled “History” in the various original documents, forming one section Entitled “History”; likewise combine any sections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You must delete all sections Entitled “Endorsements”. -

+

15.6 Collections of documents

-

You may make a collection consisting of the Document and other documents released under this License, +

You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. -

You may extract a single document from such a collection, and distribute it individually under this +

You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. -

+

15.7 Aggregation with independent works

-

A compilation of the Document or its derivatives with other separate and independent documents or +

A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an “aggregate” if the copyright resulting from the compilation is not used to limit the legal rights of the compilation’s users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. -

If the Cover Text requirement of section 15.3 is applicable to these copies of the Document, then if +

If the Cover Text requirement of section 15.3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document’s Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. -

+

15.8 Translation

-

Translation is considered a kind of modification, so you may distribute translations of the Document +

Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 15.4 . Replacing Invariant Sections with translations requires special +href="#x1-12500015.4">15.4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of @@ -8223,53 +8275,53 @@ provided that you also include the original English version of this License and versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. -

If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “History”, the +

If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “History”, the requirement (section 15.4 ) to Preserve its Title (section 15.1 ) will typically require changing the actual +href="#x1-12500015.4">15.4) to Preserve its Title (section 15.1) will typically require changing the actual title. -

+

15.9 Termination

-

You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under +

You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. -

+

15.10 Future revisions of this license

-

The Free Software Foundation may publish new, revised versions of the GNU Free Documentation +

The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/. -

Each version of the License is given a distinguishing version number. If the Document specifies that a +

Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License “or any later version” applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. -

+

Addendum: how to use this license for your documents

-

To use this License in a document you have written, include a copy of the License in the document and +

To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: -

+

-

Copyright

Copyright © YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.

-

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the “with...Texts.” +

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the “with...Texts.” line with this: -

with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and +

with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. -

If you have Invariant Sections without Cover Texts, or some other combination of the three, merge +

If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. -

If your document contains nontrivial examples of program code, we recommend releasing these +

If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software. diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf b/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf index 3ffbe3e714..7d28450f78 100644 Binary files a/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf and b/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf differ diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc.tex b/macros/latex/contrib/hyperref/doc/hyperref-doc.tex index fe44eb889a..e9019cc988 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc.tex +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc.tex @@ -4,7 +4,7 @@ % Copyright (C) 2003 Steve Peter and Karl Berry % Copyright (C) 2006-2012 Heiko Oberdiek. % Copyright (C) 2017-2019 David Carlisle Ulrike Fischer -% Copyright (C) 2019-2020 The LaTeX3 Project +% Copyright (C) 2019-2023 The LaTeX3 Project % % Permission is granted to copy, distribute and/or modify this document % under the terms of the GNU Free Documentation License, Version 1.1 or @@ -166,7 +166,7 @@ } \makeatother \title{Hypertext marks in \hologo{LaTeX}: a manual for \xpackage{hyperref}} -\date{2022-11-13 v7.00u} +\date{2023-02-07 v7.00v} \begin{document} @@ -537,6 +537,27 @@ Check the \xpackage{nameref} documentation about a way to suppress these patches \item \emph{All} those redefinitions can be suppressed by defining \cs{hyper@nopatch@footnote}. Be aware that this can suppress links but also make unwanted links appear. \end{itemize} +\item[amsmath tags] hyperref redefines two internal commands of amsmath + related the \cs{tag} command to add an anchor. This code can be + suppressed by defining \cs{hyper@nopatch@amsmath@tag}. (This normally + makes no sense in packages but will probably be needed when math + environments are changed to allow tagging.) + +\item[counters] hyperref patches the kernel command \cs{@definecounter}, + \cs{@newctr}, \cs{@addtoreset} and the amsmath command \cs{numberwithin} + to ensure that for every counter the correct \cs{theHcounter} + representation is created or reset. This code can be suppressed by + defining \cs{hyper@nopatch@counter}. (This normally makes no sense in + packages but will probably be needed when kernel commands are changed + to allow tagging.) + +\item[math environments] hyperref patches \cs{equation}/\cs{endequation}, \cs{eqnarray}, + \cs{endeqnarray}. This code can be suppressed by + defining \cs{hyper@nopatch@mathenv}. + +\item[table of contents] hyperref redefines \cs{contentsline} to be able to add links to +toc entries. It redefines \cs{addcontentsline} to create the bookmarks and pass the +destination names to the toc entries. This code can be suppressed by defining \cs{hyper@nopatch@toc}. \end{description} \section{Package options} @@ -2494,7 +2515,7 @@ Now the entry in the table of contents (and bookmarks) for the index points to the start of the index page, not to a location before this page. -\subsection{puenc encoding, puenc-greek.def and puenc-extra.def} +\subsection{puenc encoding, puenc-greekbasic.def and puenc-extra.def} The \texttt{unicode} option loads for the bookmarks \texttt{puenc.def} which contains quite a lot definitions of commands for the bookmarks. @@ -2507,7 +2528,7 @@ To reduce the impact \xpackage{hyperref} uses two strategies. The commands for the cyrillic block if \cs{CYRDZE} is defined, greek if \cs{textBeta} is defined, and hebrew if \cs{hebdalet} is defined. -The greek block is in an extra file, \texttt{puenc-greek.def}, which can +The greek block is in an extra file, \texttt{puenc-greekbasic.def}, which can be loaded manually if needed. \item Other commands are moved to an extra file \texttt{puenc-extra.def} diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc2.html b/macros/latex/contrib/hyperref/doc/hyperref-doc2.html index de84837593..c9fa9e4df3 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc2.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc2.html @@ -12,7 +12,8 @@ >

diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc3.html b/macros/latex/contrib/hyperref/doc/hyperref-doc3.html index f8d275997d..516b3b2573 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc3.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc3.html @@ -12,7 +12,8 @@ >

2 2This is borrowed from an article by Arthur Smith.

diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc4.html b/macros/latex/contrib/hyperref/doc/hyperref-doc4.html index 061ad1f381..7e3e6a54eb 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc4.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc4.html @@ -12,7 +12,8 @@ >

3 3Make sure you turn off the partial font downloading supported by dvips and

4 4But work has started to reduce the number of redefinition and so the dependencies on the loading order.

diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc6.html b/macros/latex/contrib/hyperref/doc/hyperref-doc6.html index 949ee1903a..86b6169f82 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc6.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc6.html @@ -12,7 +12,8 @@ >
5 5This section moved from the README file, needs more integration into the manual
diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc7.html b/macros/latex/contrib/hyperref/doc/hyperref-doc7.html index c43b481adc..97b0248da7 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc7.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc7.html @@ -12,7 +12,8 @@ >
6 6This section moved from the README file, needs more integration into the manual
diff --git a/macros/latex/contrib/hyperref/doc/hyperref-doc8.html b/macros/latex/contrib/hyperref/doc/hyperref-doc8.html index 26eaf60158..ec67959b8a 100644 --- a/macros/latex/contrib/hyperref/doc/hyperref-doc8.html +++ b/macros/latex/contrib/hyperref/doc/hyperref-doc8.html @@ -12,7 +12,8 @@ >
7 7This section moved from the README file, needs more integration into the manual
diff --git a/macros/latex/contrib/hyperref/doc/hyperref-linktarget.pdf b/macros/latex/contrib/hyperref/doc/hyperref-linktarget.pdf index e9de52c516..c654567c8b 100644 Binary files a/macros/latex/contrib/hyperref/doc/hyperref-linktarget.pdf and b/macros/latex/contrib/hyperref/doc/hyperref-linktarget.pdf differ diff --git a/macros/latex/contrib/hyperref/doc/hyperref.pdf b/macros/latex/contrib/hyperref/doc/hyperref.pdf index 7eca5a7272..2f67c1643d 100644 Binary files a/macros/latex/contrib/hyperref/doc/hyperref.pdf and b/macros/latex/contrib/hyperref/doc/hyperref.pdf differ diff --git a/macros/latex/contrib/hyperref/doc/nameref.pdf b/macros/latex/contrib/hyperref/doc/nameref.pdf index 591097484e..c8af996d26 100644 Binary files a/macros/latex/contrib/hyperref/doc/nameref.pdf and b/macros/latex/contrib/hyperref/doc/nameref.pdf differ diff --git a/macros/latex/contrib/hyperref/hluatex.dtx b/macros/latex/contrib/hyperref/hluatex.dtx index 4a4eb9af12..2100c5b44a 100644 --- a/macros/latex/contrib/hyperref/hluatex.dtx +++ b/macros/latex/contrib/hyperref/hluatex.dtx @@ -1,10 +1,10 @@ % \iffalse % Source File: hluatex.dtx -% 2022-11-13 v7.00u +% 2023-02-07 v7.00v % % Copyright % 2016-2019 Oberdiek Package Support Group -% 2019-2020 The LaTeX Project +% 2019-2023 The LaTeX Project % https://github.com/latex3/hyperref/issues%% % % Derived from hpdftex.def @@ -31,7 +31,7 @@ % % \begin{macrocode} %<*luatex> -%% 2022-11-13 v7.00u +%% 2023-02-07 v7.00v %% force unicode encoding, see issue #101 %% code mostly copied from hxetex.def \HyPsd@LoadUnicode diff --git a/macros/latex/contrib/hyperref/hyperref-linktarget.dtx b/macros/latex/contrib/hyperref/hyperref-linktarget.dtx index 5d6799a206..bae10fd259 100644 --- a/macros/latex/contrib/hyperref/hyperref-linktarget.dtx +++ b/macros/latex/contrib/hyperref/hyperref-linktarget.dtx @@ -2,7 +2,7 @@ % %% File: hyperref-linktarget.dtx % -% Copyright (C) 2022-2022 The LaTeX Project +% Copyright (C) 2022-2023 The LaTeX Project % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Version 2022-11-13 v7.00u} +% \date{Version 2023-02-07 v7.00v} % % \maketitle % \begin{documentation} @@ -381,8 +381,8 @@ \ProvidesExplPackage{hyperref-linktarget}{2022-06-20}{v7.00s} {Making targets, destinations and anchors -- module of hyperref} % -% \end{macrocode} %\ExplSyntaxOn +% \end{macrocode} % \subsection{Variables} % \begin{macrocode} %<*package> @@ -577,8 +577,8 @@ % \begin{macrocode} % %<@@=>. -% \end{macrocode} %\ExplSyntaxOff +% \end{macrocode} %\end{implementation} % \Finale \endinput diff --git a/macros/latex/contrib/hyperref/hyperref-patches.dtx b/macros/latex/contrib/hyperref/hyperref-patches.dtx index b7c0f828e3..525eaafcd5 100644 --- a/macros/latex/contrib/hyperref/hyperref-patches.dtx +++ b/macros/latex/contrib/hyperref/hyperref-patches.dtx @@ -5,7 +5,7 @@ %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek, %% 2001-2015 Heiko Oberdiek. %% 2016-2019 Oberdiek Package Support Group -%% 2019-2022 LaTeX Project +%% 2019-2023 LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. @@ -55,7 +55,7 @@ % }^^A % } % -% \date{Version 2022-11-13 v7.00u} +% \date{Version 2023-02-07 v7.00v} % % \maketitle % \begin{documentation} diff --git a/macros/latex/contrib/hyperref/hyperref.dtx b/macros/latex/contrib/hyperref/hyperref.dtx index bc8d936c81..33c8fa12a0 100644 --- a/macros/latex/contrib/hyperref/hyperref.dtx +++ b/macros/latex/contrib/hyperref/hyperref.dtx @@ -4,7 +4,7 @@ % 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek, % 2001-2015 Heiko Oberdiek. % 2016-2019 Oberdiek Package Support Group -% 2019-2022 LaTeX Project +% 2019-2023 LaTeX Project % https://github.com/latex3/hyperref/issues % % This file is part of the `Hyperref Bundle'. @@ -52,7 +52,7 @@ %\ProvidesFile{puvnenc.def} %\ProvidesFile{puarenc.def} %\ProvidesFile{psdextra.def} -% [2022-11-13 v7.00u % +% [2023-02-07 v7.00v % % Hypertext links for LaTeX] % Dummy hyperref (SR)] % Hyperref documentation driver file] @@ -1038,6 +1038,7 @@ % % \cs{MakeUppercase} and \cs{MakeLowercase} do not work by expansion in % legacy code but if the expl3 code is available we can handle them. +% If babel is used we can also make use of the language. % % \begin{macro}{\MakeUppercaseUnsupportedInPdfStrings} % \begin{macro}{\MakeLowercaseUnsupportedInPdfStrings} @@ -1047,6 +1048,21 @@ { \def\MakeUppercaseUnsupportedInPdfStrings#1{\use:e {\text_uppercase:n {#1}}} \def\MakeLowercaseUnsupportedInPdfStrings#1{\use:e {\text_lowercase:n {#1}}} + \AddToHook{package/babel/after} + { + \def\MakeUppercaseUnsupportedInPdfStrings#1 + {\use:e + {\exp_args:Ne + \text_uppercase:nn{\localeinfo*{tag.bcp47}}{#1} + } + } + \def\MakeLowercaseUnsupportedInPdfStrings#1 + {\use:e + {\exp_args:Ne + \text_lowercase:nn{\localeinfo*{tag.bcp47}}{#1} + } + } + } } \ExplSyntaxOff % \end{macrocode} @@ -10407,13 +10423,6 @@ % \begin{macro}{\hyper@refstepcounter} % \begin{macrocode} \def\hyper@refstepcounter#1{% - \edef\This@name{#1}% - \ifx\This@name\name@of@eq - \@ifundefined{theHequation}{% - \make@stripped@name{\theequation}% - \let\theHequation\newname - }{}% - \fi \HyCnt@ProvideTheHCounter{#1}% \hyper@makecurrent{#1}% \ifmeasuring@ @@ -10790,6 +10799,8 @@ % The exception is that we move the equation incrementation inside % the math environment to avoid specials outside and a wrong vertical % spacing of equation environments. +% This and more math related patches can be suppressed with +% |\hyper@nopatch@mathenv| % \begin{macrocode} \let\new@refstepcounter\refstepcounter \let\H@equation\equation @@ -10797,52 +10808,50 @@ % \end{macrocode} % % \begin{macrocode} -\@ifpackageloaded{amsmath}{% - \long\def\Hy@temp{% - \incr@eqnum - \mathdisplay@push - \st@rredfalse \global\@eqnswtrue - \mathdisplay{equation}% - }% - \ifx\Hy@temp\equation - \expandafter\ifx\csname if@fleqn\expandafter\endcsname - \csname iftrue\endcsname - \else - \long\def\equation{% - \mathdisplay@push - \st@rredfalse \global\@eqnswtrue - \mathdisplay{equation}% - \incr@eqnum - }% +\@ifundefined{hyper@nopatch@mathenv}{% + \@ifpackageloaded{amsmath}{% + \long\def\Hy@temp{% + \incr@eqnum + \mathdisplay@push + \st@rredfalse \global\@eqnswtrue + \mathdisplay{equation}% + }% + \ifx\Hy@temp\equation + \expandafter\ifx\csname if@fleqn\expandafter\endcsname + \csname iftrue\endcsname + \else + \long\def\equation{% + \mathdisplay@push + \st@rredfalse \global\@eqnswtrue + \mathdisplay{equation}% + \incr@eqnum + }% + \fi \fi - \fi -}{% - \def\equation{% - \let\refstepcounter\H@refstepcounter - \H@equation - \@ifundefined{theHequation}{% - \make@stripped@name{\theequation}% - \let\theHequation\newname - }{}% - \hyper@makecurrent{equation}% + }{% + \def\equation{% + \let\refstepcounter\H@refstepcounter + \H@equation + \hyper@makecurrent{equation}% % \end{macrocode} % \cs{mathopen} is needed in case the equation starts with % an unary minus, for example. % \begin{macrocode} - \mathopen{% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}% + \mathopen{% + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}% + }% + \let\refstepcounter\new@refstepcounter }% - \let\refstepcounter\new@refstepcounter - }% - \def\endequation{% - \ifx\Hy@raisedlink\ltx@empty - \hyper@anchorend - \else - \mathclose{\Hy@raisedlink{\hyper@anchorend}}% - \fi - \H@endequation - }% -} + \def\endequation{% + \ifx\Hy@raisedlink\ltx@empty + \hyper@anchorend + \else + \mathclose{\Hy@raisedlink{\hyper@anchorend}}% + \fi + \H@endequation + }% + } +}{} % \end{macrocode} % My goodness, why can't \LaTeX{} be consistent? Why is |\eqnarray| % set up differently from other objects? @@ -10856,37 +10865,35 @@ \@eqnstarfalse \let\H@eqnarray\eqnarray \let\H@endeqnarray\endeqnarray -\def\eqnarray{% - \let\Hy@reserved@a\relax - \def\@currentHref{}% - \H@eqnarray - \if@eqnstar - \else - \ifx\\\@currentHref\\% +\@ifundefined{hyper@nopatch@mathenv}{% + \def\eqnarray{% + \let\Hy@reserved@a\relax + \def\@currentHref{}% + \H@eqnarray + \if@eqnstar \else - \@ifundefined{theHequation}{% - \make@stripped@name{\theequation}% - \let\theHequation\newname - }{}% - \hyper@makecurrent{equation}% - \mathopen{% - \Hy@raisedlink{% - \hyper@anchorstart{\@currentHref}\hyper@anchorend + \ifx\\\@currentHref\\% + \else + \hyper@makecurrent{equation}% + \mathopen{% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% }% - }% + \fi \fi - \fi -} -\def\endeqnarray{% - \H@endeqnarray -} + } + \def\endeqnarray{% + \H@endeqnarray + } +}{} % \end{macrocode} % This is quite heavy-handed, but it works for now. If its an |eqnarray*| % we need to disable the hyperref actions. There may well be a cleaner % way to trap this. Bill Moss found this. % \begin{macrocode} \@namedef{eqnarray*}{% - \def\@eqncr{\nonumber\@seqncr}\@eqnstartrue\eqnarray + \protected\def\@eqncr{\nonumber\@seqncr}\@eqnstartrue\eqnarray } \@namedef{endeqnarray*}{% \nonumber\endeqnarray\@eqnstarfalse @@ -10901,10 +10908,6 @@ \def\subeqnarray{% \let\Hy@reserved@a\relax \H@subeqnarray - \@ifundefined{theHequation}{% - \make@stripped@name{\theequation}% - \let\theHequation\newname - }{}% \hyper@makecurrent{equation}% \hyper@anchorstart{\@currentHref}{}\hyper@anchorend }% @@ -10939,15 +10942,11 @@ % % Support for amsmath's \texttt{subequations}: % \begin{macrocode} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname subequations\endcsname\relax -\else +\ifcsname subequations\endcsname \let\HyOrg@subequations\subequations \def\subequations{% \stepcounter{equation}% - \protected@edef\theHparentequation{% - \@ifundefined{theHequation}\theequation\theHequation - }% + \protected@edef\theHparentequation{\theHequation}% \addtocounter{equation}{-1}% \HyOrg@subequations \def\theHequation{\theHparentequation\alph{equation}}% @@ -11962,56 +11961,58 @@ % \end{macrocode} % % \begin{macrocode} -\def\addcontentsline#1#2#3{% toc extension, type, tag - \begingroup - \let\label\@gobble - \ifx\@currentHref\@empty - \Hy@Warning{% - No destination for bookmark of \string\addcontentsline,% - \MessageBreak destination is added% - }% - \phantomsection - \fi - \expandafter\ifx\csname toclevel@#2\endcsname\relax - \begingroup - \def\Hy@tempa{#1}% - \ifx\Hy@tempa\Hy@bookmarkstype - \Hy@WarningNoLine{% - bookmark level for unknown #2 defaults to 0% - }% - \else - \Hy@Info{bookmark level for unknown #2 defaults to 0}% - \fi - \endgroup - \expandafter\gdef\csname toclevel@#2\endcsname{0}% - \fi - \edef\Hy@toclevel{\csname toclevel@#2\endcsname}% - \Hy@writebookmark{\csname the#2\endcsname}% - {#3}% - {\@currentHref}% - {\Hy@toclevel}% - {#1}% - \ifHy@verbose - \begingroup - \def\Hy@tempa{#3}% - \@onelevel@sanitize\Hy@tempa - \let\temp@online\on@line - \let\on@line\@empty - \Hy@Info{% - bookmark\temp@online:\MessageBreak - thecounter {\csname the#2\endcsname}\MessageBreak - text {\Hy@tempa}\MessageBreak - reference {\@currentHref}\MessageBreak - toclevel {\Hy@toclevel}\MessageBreak - type {#1}% +\@ifundefined{hyper@nopatch@toc}{% + \def\addcontentsline#1#2#3{% toc extension, type, tag + \begingroup + \let\label\@gobble + \ifx\@currentHref\@empty + \Hy@Warning{% + No destination for bookmark of \string\addcontentsline,% + \MessageBreak destination is added% }% - \endgroup - \fi - \addtocontents{#1}{% - \protect\contentsline{#2}{#3}{\thepage}{\@currentHref}\protected@file@percent - }% - \endgroup -} + \phantomsection + \fi + \expandafter\ifx\csname toclevel@#2\endcsname\relax + \begingroup + \def\Hy@tempa{#1}% + \ifx\Hy@tempa\Hy@bookmarkstype + \Hy@WarningNoLine{% + bookmark level for unknown #2 defaults to 0% + }% + \else + \Hy@Info{bookmark level for unknown #2 defaults to 0}% + \fi + \endgroup + \expandafter\gdef\csname toclevel@#2\endcsname{0}% + \fi + \edef\Hy@toclevel{\csname toclevel@#2\endcsname}% + \Hy@writebookmark{\csname the#2\endcsname}% + {#3}% + {\@currentHref}% + {\Hy@toclevel}% + {#1}% + \ifHy@verbose + \begingroup + \def\Hy@tempa{#3}% + \@onelevel@sanitize\Hy@tempa + \let\temp@online\on@line + \let\on@line\@empty + \Hy@Info{% + bookmark\temp@online:\MessageBreak + thecounter {\csname the#2\endcsname}\MessageBreak + text {\Hy@tempa}\MessageBreak + reference {\@currentHref}\MessageBreak + toclevel {\Hy@toclevel}\MessageBreak + type {#1}% + }% + \endgroup + \fi + \addtocontents{#1}{% + \protect\contentsline{#2}{#3}{\thepage}{\@currentHref}\protected@file@percent + }% + \endgroup + } +}{} % \end{macrocode} % \begin{macro}{\contentsline} % The page number might be empty. In this case the link for the @@ -12024,46 +12025,48 @@ \protected\def\Hy@toclinkstart{\hyper@linkstart{link}{\Hy@tocdestname}} \protected\def\Hy@toclinkend{\hyper@linkend} -\def\contentsline#1#2#3#4{% - \begingroup - \Hy@safe@activestrue - \edef\x{\endgroup - \def\noexpand\Hy@tocdestname{#4}% - }\x - \ifx\Hy@tocdestname\ltx@empty - \csname l@#1\endcsname{#2}{#3}% - \else - \ifcase\Hy@linktoc % none +\@ifundefined{hyper@nopatch@toc}{% + \def\contentsline#1#2#3#4{% + \begingroup + \Hy@safe@activestrue + \edef\x{\endgroup + \def\noexpand\Hy@tocdestname{#4}% + }\x + \ifx\Hy@tocdestname\ltx@empty \csname l@#1\endcsname{#2}{#3}% - \or % section - \csname l@#1\endcsname{% - \Hy@toclinkstart{#2}\Hy@toclinkend - }{#3}% - \or % page - \def\Hy@temp{#3}% - \ifx\Hy@temp\ltx@empty + \else + \ifcase\Hy@linktoc % none \csname l@#1\endcsname{#2}{#3}% - \else - \csname l@#1\endcsname{{#2}}{% - \Hy@toclinkstart{#3}\Hy@toclinkend - }% - \fi - \else % all - \def\Hy@temp{#3}% - \ifx\Hy@temp\ltx@empty + \or % section \csname l@#1\endcsname{% \Hy@toclinkstart{#2}\Hy@toclinkend - }{}% - \else - \csname l@#1\endcsname{% - \Hy@toclinkstart{#2}\Hy@toclinkend - }{% - \Hy@toclinkstart{#3}\Hy@toclinkend - }% + }{#3}% + \or % page + \def\Hy@temp{#3}% + \ifx\Hy@temp\ltx@empty + \csname l@#1\endcsname{#2}{#3}% + \else + \csname l@#1\endcsname{{#2}}{% + \Hy@toclinkstart{#3}\Hy@toclinkend + }% + \fi + \else % all + \def\Hy@temp{#3}% + \ifx\Hy@temp\ltx@empty + \csname l@#1\endcsname{% + \Hy@toclinkstart{#2}\Hy@toclinkend + }{}% + \else + \csname l@#1\endcsname{% + \Hy@toclinkstart{#2}\Hy@toclinkend + }{% + \Hy@toclinkstart{#3}\Hy@toclinkend + }% + \fi \fi \fi - \fi -} + } +}{} % \end{macrocode} % \end{macro} % @@ -12084,22 +12087,28 @@ % we are going to intercept this. Sigh. Do it at the level where % new counters are defined. % \begin{macrocode} -\let\H@definecounter\@definecounter -\def\@definecounter#1{% - \H@definecounter{#1}% - \expandafter\gdef\csname theH#1\endcsname{\arabic{#1}}% -} +\@ifundefined{hyper@nopatch@counter} + { + \let\H@definecounter\@definecounter + \def\@definecounter#1{% + \H@definecounter{#1}% + \expandafter\gdef\csname theH#1\endcsname{\arabic{#1}}% + } + }{} % \end{macrocode} % But what if they have used the optional argument to e.g. |\newtheorem| % to determine when the numbering is reset? OK, we'll trap that too. % \begin{macrocode} -\let\H@newctr\@newctr -\def\@newctr#1[#2]{% - \H@newctr#1[{#2}]% - \expandafter\gdef\csname theH#1\endcsname{% - \csname the\@ifundefined{theH#2}{}{H}#2\endcsname.\arabic{#1}% - }% -} +\@ifundefined{hyper@nopatch@counter} + { + \let\H@newctr\@newctr + \def\@newctr#1[#2]{% + \H@newctr#1[{#2}]% + \expandafter\gdef\csname theH#1\endcsname{% + \csname the\@ifundefined{theH#2}{}{H}#2\endcsname.\arabic{#1}% + }% + } + }{} % \end{macrocode} % \section{AMS\LaTeX\ compatibility}\label{ams} % Oh, no, they don't use anything as simple as |\refstepcounter| @@ -12110,44 +12119,36 @@ % up. They'll change all the code again anyway, I expect (SR). % % Version 6.77p uses a patch by Ross Moore. +% +% If |\hyper@nopatch@amsmath@tag| is defined we don't patch but assume +% that kernel code adds anchors to equations. % \begin{macrocode} -\@ifpackageloaded{amsmath}{% - \def\Hy@make@anchor{% - \Hy@MakeCurrentHrefAuto{AMS}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% - }% - \def\Hy@make@df@tag@@#1{% - \gdef\df@tag{% - \maketag@@@{\Hy@make@anchor#1}% - \def\@currentlabel{#1}% - }% - }% - \def\Hy@make@df@tag@@@#1{% - \gdef\df@tag{% - \tagform@{\Hy@make@anchor#1}% - \toks@\@xp{\p@equation{#1}}% - \edef\@currentlabel{\the\toks@}% - }% - }% - \let\HyOrg@make@df@tag@@\make@df@tag@@ - \let\HyOrg@make@df@tag@@@\make@df@tag@@@ - \let\make@df@tag@@\Hy@make@df@tag@@ - \let\make@df@tag@@@\Hy@make@df@tag@@@ -}{} -% \end{macrocode} -% Only play with |\seteqlebal| if we are using pdftex. Other drivers -% cause problems; requested by Michael Downes (AMS). -% \begin{macrocode} -\@ifpackagewith{hyperref}{pdftex}{% - \let\H@seteqlabel\@seteqlabel - \def\@seteqlabel#1{% - \H@seteqlabel{#1}% - \xdef\@currentHref{AMS.\the\Hy@linkcounter}% - \Hy@raisedlink{% - \hyper@anchorstart{\@currentHref}\hyper@anchorend - }% - }% -}{} +\@ifundefined{hyper@nopatch@amsmath@tag} + {% + \@ifpackageloaded{amsmath}{% + \def\Hy@make@anchor{% + \Hy@MakeCurrentHrefAuto{AMS}% + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + }% + \def\Hy@make@df@tag@@#1{% + \gdef\df@tag{% + \maketag@@@{\Hy@make@anchor#1}% + \def\@currentlabel{#1}% + }% + }% + \def\Hy@make@df@tag@@@#1{% + \gdef\df@tag{% + \tagform@{\Hy@make@anchor#1}% + \toks@\@xp{\p@equation{#1}}% + \edef\@currentlabel{\the\toks@}% + }% + }% + \let\HyOrg@make@df@tag@@\make@df@tag@@ + \let\HyOrg@make@df@tag@@@\make@df@tag@@@ + \let\make@df@tag@@\Hy@make@df@tag@@ + \let\make@df@tag@@@\Hy@make@df@tag@@@ + }{} + }{} % \end{macrocode} % This code I simply cannot remember what I was trying to achieve. % The final result seems to do nothing anyway. @@ -12170,15 +12171,18 @@ % \cs{theHcounter} is redefined in order to add the % parent counter. % \begin{macrocode} -\let\HyOrg@addtoreset\@addtoreset -\def\@addtoreset#1#2{% - \HyOrg@addtoreset{#1}{#2}% - \expandafter\xdef\csname theH#1\endcsname{% - \expandafter\noexpand - \csname the\@ifundefined{theH#2}{}H#2\endcsname - .\noexpand\the\noexpand\value{#1}% - }% -} +\@ifundefined{hyper@nopatch@counter} + { + \let\HyOrg@addtoreset\@addtoreset + \def\@addtoreset#1#2{% + \HyOrg@addtoreset{#1}{#2}% + \expandafter\xdef\csname theH#1\endcsname{% + \expandafter\noexpand + \csname the\@ifundefined{theH#2}{}H#2\endcsname + .\noexpand\the\noexpand\value{#1}% + }% + } + }{} % \end{macrocode} % % \begin{macro}{\numberwithin} @@ -12200,23 +12204,26 @@ }% % %<*packageEnd> -\@ifpackageloaded{amsmath}{% - \renewcommand*{\numberwithin}[3][\arabic]{% - \@ifundefined{c@#2}{\@nocounterr{#2}}{% - \@ifundefined{c@#3}{\@nocnterr{#3}}{% - \HyOrg@addtoreset{#2}{#3}% - \@xp\xdef\csname the#2\endcsname{% - \@xp\@nx\csname the#3\endcsname .\@nx#1{#2}% - }% - \@xp\xdef\csname theH#2\endcsname{% - \@xp\@nx - \csname the\@ifundefined{theH#3}{}H#3\endcsname - .\@nx#1{#2}% - }% - }% - }% - }% -}{} +\@ifundefined{hyper@nopatch@counter} + { + \@ifpackageloaded{amsmath}{% + \renewcommand*{\numberwithin}[3][\arabic]{% + \@ifundefined{c@#2}{\@nocounterr{#2}}{% + \@ifundefined{c@#3}{\@nocnterr{#3}}{% + \HyOrg@addtoreset{#2}{#3}% + \@xp\xdef\csname the#2\endcsname{% + \@xp\@nx\csname the#3\endcsname .\@nx#1{#2}% + }% + \@xp\xdef\csname theH#2\endcsname{% + \@xp\@nx + \csname the\@ifundefined{theH#3}{}H#3\endcsname + .\@nx#1{#2}% + }% + }% + }% + }% + }{} + }{} % \end{macrocode} % \end{macro} % diff --git a/macros/latex/contrib/hyperref/hyperref.ins b/macros/latex/contrib/hyperref/hyperref.ins index bbe33cf313..263d0ef7c0 100644 --- a/macros/latex/contrib/hyperref/hyperref.ins +++ b/macros/latex/contrib/hyperref/hyperref.ins @@ -7,7 +7,7 @@ %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek %% 2001-2015 Heiko Oberdiek %% 2016-2019 Oberdiek Package Support Group -%% 2019-2022 LaTeX Project +%% 2019-2023 LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. diff --git a/macros/latex/contrib/hyperref/minitoc-hyper.sty b/macros/latex/contrib/hyperref/minitoc-hyper.sty index 9efb3a3ebd..548e08601c 100644 --- a/macros/latex/contrib/hyperref/minitoc-hyper.sty +++ b/macros/latex/contrib/hyperref/minitoc-hyper.sty @@ -1,4 +1,4 @@ -% Copyright 2020 The LaTeX Project +% Copyright 2020-2023 The LaTeX Project % Licence LPPL: https://www.latex-project.org/lppl/lppl-1-3c.txt \ProvidesPackage{minitoc-hyper}[2020/01/14] \PackageWarningNoLine{minitoc-hyper}{% diff --git a/macros/latex/contrib/hyperref/nameref.dtx b/macros/latex/contrib/hyperref/nameref.dtx index e2b9624c01..2baa4bb114 100644 --- a/macros/latex/contrib/hyperref/nameref.dtx +++ b/macros/latex/contrib/hyperref/nameref.dtx @@ -4,7 +4,7 @@ %% 2000 Sebastian Rahtz, Heiko Oberdiek %% 2001-2012 Heiko Oberdiek %% 2016-2019 Oberdiek Package Suport Group -%% 2019-2022 The LaTeX Project +%% 2019-2023 The LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. diff --git a/macros/latex/contrib/hyperref/ntheorem-hyper.sty b/macros/latex/contrib/hyperref/ntheorem-hyper.sty index dcdd59167e..9ec91e80d7 100644 --- a/macros/latex/contrib/hyperref/ntheorem-hyper.sty +++ b/macros/latex/contrib/hyperref/ntheorem-hyper.sty @@ -1,4 +1,4 @@ -% Copyright 2021 The LaTeX Project +% Copyright 2021-2023 The LaTeX Project % Licence LPPL: https://www.latex-project.org/lppl/lppl-1-3c.txt \ProvidesPackage{ntheorem-hyper}[2021/02/07] \PackageWarningNoLine{ntheorem-hyper}{% diff --git a/macros/latex/contrib/hyperref/xr-hyper.sty b/macros/latex/contrib/hyperref/xr-hyper.sty index 9bed6dae69..af4dcd646a 100644 --- a/macros/latex/contrib/hyperref/xr-hyper.sty +++ b/macros/latex/contrib/hyperref/xr-hyper.sty @@ -1,6 +1,6 @@ %% xr-hyper package (beta release) -%% Copyright (C) 1993-2022 David Carlisle +%% Copyright (C) 1993-2023 David Carlisle %% This is a modified version of the xr package from the Standard LaTeX %% tools distribution. It has some internal changes to cooperate with @@ -61,7 +61,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xr-hyper} - [2022-11-13 v7.00u eXternal References (DPC)] + [2023-02-07 v7.00v eXternal References (DPC)] \def\externaldocument{\@testopt\XR@cite{}} \let\externalcitedocument\externaldocument diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf index 4a221bb676..5bc213607f 100644 Binary files a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf and b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf differ diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex index 59bb65280f..3d4e3e9240 100644 --- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex +++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex @@ -4,11 +4,11 @@ % arara: lualatex: {shell: yes, synctex: no, interaction: batchmode} % arara: lualatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)') -\documentclass{article} -\def\PLversion{2.1.9} -\def\PLdate{4 Février 2023} -\usepackage[pythontex]{ProfLycee} -\usepackage{mathtools} +\documentclass[a4paper,french,11pt]{article} +\def\PLversion{2.5.0} +\def\PLdate{8 Février 2023} +\usepackage{ProfLycee} +\useproflyclib{piton,minted,pythontex} \usepackage{lualatex-math} \usepackage{luatexbase} \usepackage[math-style=french,bold-style=ISO]{fourier-otf} @@ -20,6 +20,7 @@ \sisetup{locale=FR} \usepackage{fancyvrb} \usepackage{fancyhdr} +\usepackage{tabularray} \usepackage{multicol} %fancy \fancyhf{} @@ -29,7 +30,22 @@ \rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}} \usepackage{graphics} -\usepackage{hvlogos} +\usepackage{hologo} +\providecommand\tikzlogo{Ti\textit{k}Z} +\providecommand\TeXLive{\TeX{}Live\xspace} +\providecommand\PSTricks{\textsf{PSTricks}\xspace} +\let\pstricks\PSTricks +\let\TikZ\tikzlogo +\newcommand\TableauDocumentation{% + \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}} + {\huge \LaTeX} & & & & &\\ + & {\huge \hologo{pdfLaTeX}} & & & & \\ + & & {\huge \hologo{LuaLaTeX}} & & & \\ + & & & {\huge \TikZ} & & \\ + & & & & {\huge \TeXLive} & \\ + & & & & & {\huge \hologo{MiKTeX}} \\ + \end{tblr} +} \usepackage{simplekv} \usepackage{menukeys} \let\tab\relax @@ -45,7 +61,7 @@ \hypersetup{pdfborder=0 0 0} \usepackage{geometry} \geometry{margin=1.5cm} -\usepackage[french]{babel} +\usepackage{babel} \usepackage{newverbs} \newverbcommand{\pverb}{\color{purple}}{} \newverbcommand{\rverb}{\color{red}}{} @@ -71,6 +87,16 @@ } } +\tcbset{vignettelib/.style={% + fontupper={\vphantom{pf}\footnotesize\ttfamily}, + vignettes,% + colframe=ForestGreen,coltitle=white,colback=white,% + overlay={\begin{tcbclipinterior}% + \fill[fill=green!25]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{ForestGreen}{\scalebox{0.85}[0.75]{\textbf{LIB}}}}} ($(interior.north west)+(5pt,0pt)$);% + \end{tcbclipinterior}} + } +} + \tcbset{vignetteMaJ/.style={% fontupper={\vphantom{pf}\footnotesize\ttfamily}, vignettes,% @@ -107,6 +133,11 @@ {\tcbox[vignetteMaJ]{#1}\xspace}% } +%petite vignette màj +\newcommand\clib[1]{% + {\tcbox[vignettelib]{#1}\xspace}% +} + %gestion de la fenêtre v2 directement dans le tikzpicture \tikzset{% xmin/.store in=\xmin,xmin/.default=-5,xmin=-5, @@ -206,12 +237,12 @@ \thispagestyle{empty} -{\sffamily{\bfseries Résumé} : Quelques commandes pour faciliter l'utilisation de \LaTeX{} pour les enseignants de mathématiques en lycée.} +{\sffamily{\bfseries Résumé} : Quelques commandes pour faciliter l'utilisation de \LaTeX{} pour les mathématiques, au lycée.} \medskip {\small\noindent% -{\deblst} résoudre, de manière approchée, des équations \\ +{\deblst} résoudre, de manière approchée, des équations\\ {\deblst} tracer \textit{facilement} des repères/grilles/courbes\\ {\deblst} tracer des courbes \textit{lisses} avec gestion des extrema et des dérivées\\ {\deblst} simuler une fenêtre de logiciel de calcul formel, une console d'exécution \\ @@ -225,7 +256,6 @@ {\deblst} travailler sur les statistiques à deux variables (algébriques et graphiques) \\ {\deblst} convertir entre bin/dec/hex avec détails \\ {\deblst} présenter un calcul de PGCD \\ -%{\deblst} créer un pixelart avec correction éventuelle \\ {\deblst} effectuer des calculs de probas (lois binomiale, exponentielle, de Poisson, normale) \\ {\deblst} créer des arbres de probas \og classiques \fg \\ {\deblst} générer des listes d'entiers aléatoires (avec ou sans répétitions)\\ @@ -236,7 +266,7 @@ \hfill{}\textsl{Merci à Anne pour ses retours et sa relecture !} -\hfill{}\textsl{Merci à Christophe pour ses retours et ses éclairages !} +\hfill{}\textsl{Merci à Christophe et Denis pour leurs retours et éclairages !} \hfill{}\textsl{Merci aux membres du groupe \faFacebook{} du \og Coin \LaTeX{} \fg{} pour leur aide et leurs idées !} @@ -246,14 +276,7 @@ \medskip -\begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily\LARGE}} - {\LaTeX} & & & & &\\ - & {\pdfLaTeX} & & & & \\ - & & {\LuaLaTeX} & & & \\ - & & & {\TikZ} & & \\ - & & & & {\TeXLive} & \\ - & & & & & {\MiKTeX} \\ -\end{tblr} +\TableauDocumentation \medskip @@ -285,7 +308,7 @@ On peut le voir comme un (maigre) complément à \ctex{ProfCollege}, et je préc \medskip -Il se charge, dans le préambule, par \ctex{\textbackslash usepackage\{ProfLycee\}}. Il charge quelques {packages} utiles, mais j'ai fait le choix de laisser l'utilisateur gérer ses autres {packages}, comme notamment \ctex{amssymb} qui peut poser souci en fonction de la \textit{position} de son chargement. +Il se charge, dans le préambule, par \ctex{\textbackslash usepackage\{ProfLycee\}}. Il charge des {packages} utiles, mais j'ai fait le choix de laisser l'utilisateur gérer ses autres {packages}, comme notamment \ctex{amssymb} qui peut poser souci en fonction de la \textit{position} de son chargement. L'utilisateur est libre de charger ses autres {packages} utiles et habituels, ainsi que ses \textsf{polices} et \textsf{encodages} habituels ! \end{codeidee} @@ -296,10 +319,10 @@ Le {package} \ctex{ProfLycee} charge les {packages} : \begin{itemize} \item \ctex{xcolor} avec les options \textsf{[table,svgnames]} ; \item \ctex{tikz}, \ctex{pgf}, \ctex{pgffor} ; + \item \ctex{tcolorbox} avec l'option \textsf{[most]} ; \item \ctex{xparse}, \ctex{xstring}, \ctex{simplekv}, \ctex{xinttools} ; \item \ctex{listofitems}, \ctex{xintexpr} , \ctex{xintbinhex}, \ctex{xintgcd} ; - \item \ctex{tabularray}, \ctex{fontawesome5}, \ctex{tcolorbox}, \ctex{randomlist}, \ctex{fancyvrb}, \ctex{csvsimple} ; - \item \ctex{piton} (uniquement si compilation en \LuaLaTeX{} !) et \ctex{pythontex}. + \item \ctex{tabularray}, \ctex{fontawesome5}, \ctex{randomlist}, \ctex{fancyvrb}. \end{itemize} \end{codeinfo} @@ -315,7 +338,6 @@ J'ai utilisé les {packages} de C. Tellechea, je vous conseille d'aller jeter un \usepackage{ProfLycee} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[french]{babel} ... \end{codetex} @@ -324,55 +346,49 @@ J'ai utilisé les {packages} de C. Tellechea, je vous conseille d'aller jeter un \documentclass{article} \usepackage{ProfLycee} \usepackage{fontspec} -\usepackage[french]{babel} ... \end{codetex} -\subsection{Options du package} +\subsection{Librairies, option du package}\label{librairies} \begin{codeattention} -\cmaj{2.0.0} Une compilation \textsf{shell-escape} est recommandée pour l'utilisation de \ctex{ProfLycee}, notamment pour le package \ctex{minted} et la coloration syntaxique de code. - -Cependant, si vous ne \underline{souhaitez pas} charger (et utiliser) \ctex{minted} vous pouvez charger le package \ctex{ProfLycee} avec l'option \Cle{nonshellescape}. +\cmaj{2.5.0} Le package fonctionne désormais avec un système de \clib{librairies}, qui utilisent et chargent des packages spécifiques, avec des compilations particulières, donc l'utilisateur utilisera un système de chargement similaire à celui de \textsf{tcolorbox} ou \textsf{tikz}, dans le préambule, et une fois le package appelé. \end{codeattention} \begin{codetex}[listing only] -... -\usepackage[nonshellescape]{ProfLycee} -%package et librairie non chargés -... +\usepackage{ProfLycee} +\useproflyclib{...,...} \end{codetex} -\begin{codeattention} -\cmaj{2.1.0} Le package\ctex{pythontex} nécessitant une chaîne de compilation particulière, j'ai décidé de le mettre en \textit{option}. - -Pour utiliser le package \ctex{pythontex} et utiliser les commandes qui lui sont liées, il faut désormais charger \ctex{ProfLycee} avec l'option \Cle{pythontex}. -\end{codeattention} +\begin{codeinfo} +Les librairies disponibles seront indiquées dans les sections spécifiques. Pour le moment, il existe : -\begin{codetex}[listing only] -... -\usepackage[pythontex]{ProfLycee} -... -\end{codetex} +\begin{itemize} + \item \clib{piton} (page \pageref{pythonpiton}) ; + \item \clib{minted} (page \pageref{pytminted}) ; + \item \clib{pythontex} (page \pageref{pythontex}). +\end{itemize} +\end{codeinfo} \begin{codeinfo} -En compilant (notamment avec les packages \ctex{minted} et \ctex{pythontex}) on peut spécifier des répertoires particuliers pour les (ou des) fichiers auxiliaires. +En compilant (notamment avec les librairies \clib{minted} et \clib{pythontex}) on peut spécifier des répertoires particuliers pour les (ou des) fichiers auxiliaires. -Avec l'option \Cle{build}, l'utilisateur a la possibilité de placer les fichiers temporaires de \ctex{minted} et \ctex{pythontex} dans un répertoire \menu{build} du répertoire courant. +Avec l'option \Cle{build}, l'utilisateur a la possibilité de placer les fichiers temporaires de \clib{minted} et \clib{pythontex} dans un répertoire \menu{build} du répertoire courant. \smallskip -Dans ce cas il vaut mieux créer au préalable le répertoire \menu{build} avant de compiler un fichier ! +Dans ce cas il faut créer au préalable le répertoire \menu{build} avant de compiler un fichier, pour éviter toute erreur ! \end{codeinfo} \begin{codetex}[listing only] ... \usepackage[build]{ProfLycee} +\useproflyclib{...} ... \end{codetex} \begin{codeinfo} -Les options précédentes sont cumulables, et, pour info, elles conditionnent le chargement des {packages} avec les options : +L'option \Cle{build} charge certains packages (librairies \clib{minted} et \clib{pythontex}) avec les options : \begin{itemize} \item \ctex{\textbackslash setpythontexoutputdir\{./build/pythontex-files-\textbackslash jobname\}} @@ -380,38 +396,31 @@ Les options précédentes sont cumulables, et, pour info, elles conditionnent le \end{itemize} \end{codeinfo} -\begin{codetex}[listing only] -... -%chargement de ProfLycee sans minted, et avec pythontex -\usepackage[pythontex,nonshellescape]{ProfLycee} -... -\end{codetex} - \pagebreak \section{Compléments} -\subsection{Changements à partir de la version 2 !!} - -\begin{codeattention} -\cmaj{2.0.0} Pour des raisons pratiques, les commandes et environnements disponibles dans \ctex{ProfLycee} ont été renommés, pour utiliser des noms plus génériques et explicites. - -La nomenclature des \Cle{clés} a été également revue, avec -- dans la grande majorité des cas -- une majuscule en début. - -\smallskip - -Je préfère faire ces ajustements tant que le package est assez \textit{jeune} ! -\end{codeattention} - -\begin{codeattention} -\cmaj{2.0.0} L'ancienne version (qui ne sera mise à jour !!) du package \ctex{ProfLycee} est toutefois encore disponible, pour une migration en douceur, elle est désormais accessible sous le nom \ctex{ProfLycee-old}, et la documentation est également encore disponible. -\end{codeattention} - -\begin{codetex}[listing only] -... -\usepackage[options]{ProfLycee-old} %nouveautés non disponibles par contre... -... -\end{codetex} +%\subsection{Changements à partir de la version 2 !!} +% +%\begin{codeattention} +%\cmaj{2.0.0} Pour des raisons pratiques, les commandes et environnements disponibles dans \ctex{ProfLycee} ont été renommés, pour utiliser des noms plus génériques et explicites. +% +%La nomenclature des \Cle{clés} a été également revue, avec -- dans la grande majorité des cas -- une majuscule en début. +% +%\smallskip +% +%Je préfère faire ces ajustements tant que le package est assez \textit{jeune} ! +%\end{codeattention} +% +%\begin{codeattention} +%\cmaj{2.0.0} L'ancienne version (qui ne sera mise à jour !!) du package \ctex{ProfLycee} est toutefois encore disponible, pour une migration en douceur, elle est désormais accessible sous le nom \ctex{ProfLycee-old}, et la documentation est également encore disponible. +%\end{codeattention} +% +%\begin{codetex}[listing only] +%... +%\usepackage[options]{ProfLycee-old} %nouveautés non disponibles par contre... +%... +%\end{codetex} \subsection{Le système de \og clés/options \fg} @@ -423,7 +432,7 @@ L'idée est de conserver -- autant que faire se peut -- l'idée de \Cle{Clés} q \item définies (en majorité) par défaut pour chaque commande. \end{itemize} -Pour certaines commandes, le système de \Cle{Clés} pose quelques soucis, de ce fait le fonctionnement est plus \textit{basique} avec un système d'\textsf{arguments} \textit{optionnels} (entre \textsf{[\ldots]}) ou \textit{obligatoires} (entre \textsf{\{\ldots\}}). +Pour certaines commandes, le système de \Cle{Clés} pose quelques soucis, de ce fait le fonctionnement est plus \textit{basique} avec un système d'\textsf{arguments} \textit{optionnels} (souvent entre \textsf{[\ldots]}) ou \textit{obligatoires} (souvent entre \textsf{\{\ldots\}}). \smallskip @@ -470,8 +479,6 @@ Les \textsf{clés} ou \textsf{options} seront présentées dans des \textsf{boî À noter que certaines commandes disponibles sont liées à un environnement \ctex{tikzpicture}, elles ne sont pas autonomes mais permettent de conserver -- en parallèle -- toute commande liée à \TikZ{} ! \end{codeinfo} -\pagebreak - \subsection{Compilateur(s)} \begin{codeinfo} @@ -479,18 +486,15 @@ Le package \ctex{ProfLycee} est compatible avec les compilateurs classiques : \t \smallskip -En ce qui concerne les codes \textsf{python}, il faudra : +En ce qui concerne les codes \textsf{librairies}, il faudra : \begin{itemize} - \item compiler en chaîne \textsf{(xxx)latex + pythontex + (xxx)latex} pour les environnements avec \ctex{pythontex} ; - \item compiler avec \textsf{shell-escape} (ou \textsf{write18}) pour les environnements avec \ctex{minted}. + \item \clib{pythontex} : compiler en chaîne \textsf{(xxx)latex + pythontex + (xxx)latex} ; + \item \clib{minted} : compiler avec \textsf{shell-escape} (ou \textsf{write18}) ; + \item \clib{piton} : compiler en \hologo{LuaLaTeX} et \textsf{shell-escape} (ou \textsf{write18}). \end{itemize} \end{codeinfo} -\begin{codeattention} -Certains commandes ou environnements nécessitent une compilation spécifique, qui sera indiquée clairement dans la documentation ! -\end{codeattention} - \subsection{Problèmes éventuels\ldots} \begin{codeinfo} @@ -511,8 +515,6 @@ En dehors de cela, ce sont des tests multiples et variés qui permettront de dé \vfill -%\hfill{\Huge $\leftrightsquigarrow$ Bonne(s) découverte(s) $\leftrightsquigarrow$}\hfill~ - \hfill\tikz \draw (0,0) node[above right=0pt,inner sep=0pt,outer sep=0pt,rotate=25,scale=4] {$\leftrightsquigarrow$ Bonne(s) découverte(s) $\leftrightsquigarrow$} ;\hfill~ \vfill @@ -556,7 +558,7 @@ Elles sont présentées de manière \textit{succincte}, mais elles sont présent \TangenteTikz[options]{liste} %schémas pour le signe affine/trinôme, dans un environnement tikz -\MiniSchemaSignes(*)[clés] +\MiniSchemaSignes(*)[clés] \MiniSchemaSignesTkzTab[options]{numligne}[échelle][décalage horizontal] \end{codetex} @@ -567,12 +569,13 @@ Elles sont présentées de manière \textit{succincte}, mais elles sont présent %présentation de code Python \begin{CodePythonLst}(*)[largeur]{commandes tcbox}...\end{CodePythonLst} +%:=librairie piton \begin{CodePiton}[options]...\end{CodePiton} -\begin{CodePythontex}[options]...\end{CodePythontex} %avec l'option [pythontex] -\begin{CodePythonMinted}(*)[largeur][options]...\end{CodePythonMinted} - -%console Python avec l'option [pythontex] +%:=librairie pythontex +\begin{CodePythontex}[options]...\end{CodePythontex} \begin{ConsolePythontex}[options]...\end{ConsolePythontex} +%:=librairie minted +\begin{CodePythonMinted}(*)[largeur][options]...\end{CodePythonMinted} %présentation de pseudocode \begin{PseudoCode}(*)[largeur][options]...\end{PseudoCode} @@ -856,7 +859,9 @@ On s'intéresse à $g(x)=\num{1,5}$ avec $g(x)=\ln(x)$. On s'intéresse à $g(x)=\num{1,5}$ avec $g(x)=\ln(x)$ sur l'intervalle $\left[3;5\right]$. \ResolutionApprochee[Intervalle=3:5]{log(x)=1.5}[SolLn] -\SolutionTVI[Balayage,Stretch=1.5,va={\SolLnd},vb={\SolLne},NomFct=g,Precision=4,NomSol={x_0}]{log(x)}{1.5}. +\SolutionTVI% + [Balayage,Stretch=1.5,va={\SolLnd},vb={\SolLne}, + NomFct=g,Precision=4,NomSol={x_0}]{log(x)}{1.5}. \end{codetex} \begin{codeinfo} @@ -975,7 +980,7 @@ on obtient le tableau de valeurs suivant : \begin{tabular}{c|c} $n$ & $u_n$ \\ \hline 1 & 2 \\ - \xintFor* #1 in {\xintSeq{2}{8}} \do {#1 & \CalculTermeRecurrence[No=1,UNo=2,N=#1]{1+(1+x**2)/(1+x)} \\} + \xintFor* #1 in {\xintSeq{2}{7}} \do {#1 & \CalculTermeRecurrence[No=1,UNo=2,N=#1]{1+(1+x**2)/(1+x)} \\} \end{tabular}\\ \SolutionSeuil[Precision=4,No=1,UNo=2,Simple]{1+(1+x**2)/(1+x)}{10} (Ainsi $u_n > 10$ à partir de $n=\the\CompteurSeuil$) @@ -1626,7 +1631,7 @@ On obtient le résultat suivant (avec les éléments rajoutés utiles à la comp \begin{codeidee} L'idée est d'obtenir une commande pour tracer (en \TikZ) un petit schéma pour \textit{visualiser} le signe d'une fonction affine ou d'un trinôme. -Le code est très largement inspiré de celui du package \ctex{tnsana} même si la philosophie est légèrement différente. +Le code est largement inspiré de celui du package \ctex{tnsana} même si la philosophie est un peu différente. \smallskip @@ -1645,9 +1650,7 @@ Comme pour les autres commandes \TikZ, l'idée est de laisser la possibilité à \begin{codetex}[listing only] \begin{tikzpicture}[] - ... \MiniSchemaSignes[clés] - ... \end{tikzpicture} \end{codetex} @@ -1662,7 +1665,7 @@ Comme pour les autres commandes \TikZ, l'idée est de laisser la possibilité à \smallskip -Le premier argument, \textit{optionnel} et entre \ctex{[...]}, contient les \Cle{Clés} sont disponibles pour cette commande : +Le premier argument, \textit{optionnel} et entre \textsf{[...]}, contient les \Cle{Clés} sont disponibles pour cette commande : \begin{itemize} \item la clé \Cle{Code} qui permet de définir le type d'expression (voir en-dessous) ;\hfill{}défaut \Cle{da+} @@ -1673,7 +1676,7 @@ Le premier argument, \textit{optionnel} et entre \ctex{[...]}, contient les \Cle \item un booléen \Cle{Cadre} qui affiche un cadre autour du schéma.\hfill{}défaut \Cle{true} \end{itemize} -Le second argument, \textit{optionnel} et entre \ctex{<...>}, permet de spécifier (pour la commande \textit{étoilée}), des options à passer à l'environnement \ctex{tikzpicture}. +Le second argument, \textit{optionnel} et entre \textsf{<...>}, permet de spécifier (pour la commande \textit{étoilée}), des options à passer à l'environnement \ctex{tikzpicture}. \end{codecles} \begin{codecles} @@ -1840,7 +1843,7 @@ Plusieurs \Cle{arguments} (optionnels) sont disponibles : \item la clé \Cle{No} qui est l'indice initial ;\hfill{}défaut \Cle{0} \item la clé \Cle{Uno} qui est la valeur du terme initial ;\hfill{}défaut \Cle{vide} \item la clé \Cle{Nb} qui est le nombre de termes à construire ;\hfill{}défaut \Cle{5} - \item la clé \Cle{PosLabel} qui correspond au placement des labels par rapport à l'axe des abscisses ;\hfill{}défaut \Cle{below} + \item la clé \Cle{PosLabel} qui est le placement des labels par rapport à l'axe $(Ox)$ ;\hfill{}défaut \Cle{below} \item la clé \Cle{DecalLabel} qui correspond au décalage des labels par rapport aux abscisses ;\hfill{}défaut \Cle{6pt} \item la clé \Cle{TailleLabel} qui correspond à la taille des labels ;\hfill{}défaut \Cle{small} \item un booléen \Cle{AffTermes} qui permet d'afficher les termes de la suite sur l'axe $(Ox)$.\hfill{}défaut \Cle{true} @@ -2294,7 +2297,15 @@ def trace_parabole_tableaux(): \subsection{Introduction} \begin{codeinfo} -\cmaj{2.0.0} Le package \ctex{piton} (compatible uniquement avec une compilation en \LuaLaTeX{} !) permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. +\cmaj{2.5.0} Cette section nécessite de charger la \textsf{librairie} \clib{piton} dans le préambule. +\end{codeinfo} + +\begin{codetex}[listing only] +\useproflyclib{piton} +\end{codetex} + +\begin{codeinfo} +\cmaj{2.0.0} La \textsf{librairie} \clib{piton} (qui charge \ctex{piton}, est compatible uniquement avec \hologo{LuaLaTeX} !) permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. \smallskip @@ -2302,17 +2313,17 @@ En \textit{partenariat} avec \ctex{tcolorbox}, on peut avoir une présentation d \smallskip -\cmaj{2.0.2} Depuis la version \ctex{0.95} du package \ctex{piton}, \Cle{left-margin=auto} est disponible et activée dans \ctex{ProfLycee}. +\cmaj{2.0.2} Depuis la version \ctex{0.95} de \ctex{piton}, \Cle{left-margin=auto} est disponible et activée dans \ctex{ProfLycee}. -\cmaj{2.1.2} Depuis la version \ctex{0.99} du package \ctex{piton}, \Cle{break-lines} est disponible et activée dans \ctex{ProfLycee}. +\cmaj{2.1.2} Depuis la version \ctex{0.99} de \ctex{piton}, \Cle{break-lines} est disponible et activée dans \ctex{ProfLycee}. -\cmaj{2.1.3} Depuis la version \ctex{1.0} du package \ctex{piton}, \Cle{tabs-auto-gobble} est disponible et activée dans \ctex{ProfLycee}. +\cmaj{2.1.3} Depuis la version \ctex{1.0} de \ctex{piton}, \Cle{tabs-auto-gobble} est disponible et activée dans \ctex{ProfLycee}. \end{codeinfo} \begin{codeattention} -Le package \ctex{piton} nécessite donc obligatoirement l’emploi de \LuaLaTeX{} ! +Le package \ctex{piton} nécessite donc obligatoirement l’emploi de \hologo{LuaLaTeX} ! -\cmaj{2.0.1} Ce package n'est chargé que si la compilation détectée est en \LuaLaTeX{} ! +\cmaj{2.0.1} Ce package n'est chargé que si la compilation détectée est en \hologo{LuaLaTeX} ! \end{codeattention} \subsection{Présentation de code Python} @@ -2320,7 +2331,6 @@ Le package \ctex{piton} nécessite donc obligatoirement l’emploi de \LuaLaTeX{ \begin{codetex}[listing only] \begin{CodePiton}[options] ... -... \end{CodePiton} \end{codetex} @@ -2333,7 +2343,7 @@ Plusieurs \Cle{clés} sont disponibles : \begin{itemize} \item la clé booléenne \Cle{Lignes} pour afficher ou non les numéros de lignes ; \hfill{}défaut \Cle{true} - \item \cmaj{2.1.3} la clé booléenne \Cle{Gobble} pour activer les options liées au \textsf{gobble} (v1.0 du package !) ; \hfill{}défaut \Cle{true} + \item \cmaj{2.1.3} la clé booléenne \Cle{Gobble} pour activer les options liées au \textsf{gobble} ; \hfill{}défaut \Cle{true} \item la clé \Cle{Largeur} qui correspond à la largeur de la \ctex{tcbox} ; \hfill{}défaut \Cle{\textbackslash linewidth} \item la clé \Cle{TaillePolice} pour la taille des caractères ; \hfill{}défaut \Cle{\textbackslash footnotesize} \item la clé \Cle{Alignement} qui paramètre l'alignement de la \ctex{tcbox}. \hfill{}défaut \Cle{center} @@ -2366,34 +2376,21 @@ def arctan(x,n=10): \end{CodePiton} \end{codesortie} -\pagebreak - \begin{codetex}[listing only] -\begin{CodePiton}[Lignes=false,Largeur=15cm] -#sans numéro, de largeur 15cm -def f(x) : - return x**2 -\end{CodePiton} - \begin{CodePiton}[Alignement=flush right,Largeur=13cm] -#avec numéros, de largeur 13cm, aligné à droite def f(x) : return x**2 \end{CodePiton} \begin{CodePiton}[Alignement=flush left,Largeur=11cm] -#avec numéros, de largeur 11cm, aligné à gauche def f(x) : return x**2 \end{CodePiton} -Avec des indentations d'environnement : - -\begin{itemize} +\begin{itemize} %Avec des indentations d'environnement : \item On essaye avec un \texttt{itemize} : - \begin{CodePiton}[Largeur=7cm] - #avec numéros, de largeur 7cm, centré + \begin{CodePiton}[Largeur=9cm] def f(x) : return x**2 \end{CodePiton} @@ -2401,12 +2398,6 @@ Avec des indentations d'environnement : \end{codetex} \begin{codesortie} -\begin{CodePiton}[Lignes=false,Largeur=15cm] -#sans numéro, de largeur 15cm -def f(x) : - return x**2 -\end{CodePiton} - \begin{CodePiton}[Alignement=flush right,Largeur=13cm] #avec numéros, de largeur 13cm, aligné à droite def f(x) : @@ -2422,8 +2413,8 @@ def f(x) : \begin{itemize} \item On essaye avec un \texttt{itemize} : - \begin{CodePiton}[Largeur=7cm] - #avec numéros, de largeur 7cm, centré + \begin{CodePiton}[Largeur=9cm] + #avec numéros, de largeur 9cm, centré def f(x) : return x**2 \end{CodePiton} @@ -2434,10 +2425,23 @@ def f(x) : \section{Code \& Console Python, via les packages Pythontex ou Minted} +\subsection{Librairies} + +\begin{codeinfo} +\cmaj{2.5.0} Cette section nécessite de charger les librairies \clib{minted} et/ou \clib{pythontex} dans le préambule. +\end{codeinfo} + +\begin{codetex}[listing only] +\useproflyclib{minted} +\useproflyclib{pythontex} +%ou +\useproflyclib{minted,pythontex} +\end{codetex} + \subsection{Introduction} \begin{codeidee} -Le {package} \ctex{pythontex} permet d'insérer et d'exécuter du code Python. On peut : +\cmaj{2.5.0} La \textsf{librairie} \clib{pythontex} permet d'insérer et d'exécuter du code Python. On peut : \begin{itemize} \item présenter du code Python ; @@ -2449,8 +2453,6 @@ Le {package} \ctex{pythontex} permet d'insérer et d'exécuter du code Python. O \begin{codeattention} \textbf{Attention : }il faut dans ce cas une compilation en plusieurs étapes, comme par exemple \textsf{pdflatex puis pythontex puis pdflatex} ! -\cmaj{2.1.0} Il faut de plus penser à charger le package avec l'option \Cle{pythontex}. - Voir par exemple \url{http://lesmathsduyeti.fr/fr/informatique/latex/pythontex/} ! \end{codeattention} @@ -2520,6 +2522,8 @@ Comme précédemment, des \Cle{Clés} qui permettent de \textit{légèrement} mo \begin{codeinfo} Pour celles et ceux qui ne sont pas à l'aise avec le {package} \ctex{pythontex} et notamment sa spécificité pour compiler, il existe le {package} \ctex{minted} qui permet de présenter du code, et notamment Python. + +\cmaj{2.5.0} C'est donc la \textsf{librairie} \clib{minted} qu'il faudra charger. \end{codeinfo} \begin{codeattention} @@ -2537,8 +2541,8 @@ Plusieurs \Cle{arguments} (optionnels) sont disponibles : \begin{itemize} \item la version \textit{étoilée} qui permet de ne pas afficher les numéros de lignes ; - \item le premier argument optionnel concerne la \Cle{largeur} de la \ctex{tcbox} ;\hfill{}défaut \Cle{12cm} - \item le second argument optionnel concerne les \Cle{options} de la \ctex{tcbox} en \textit{langage tcolorbox}.\hfill{}défaut \Cle{vide} + \item le 1\up{er} argument \textit{optionnel} concerne la \Cle{largeur} de la \ctex{tcbox} ;\hfill{}défaut \Cle{12cm} + \item le 2\up{nd} argument \textit{optionnel} concerne les \Cle{options} de la \ctex{tcbox} en \textit{langage tcbox}.\hfill{}défaut \Cle{vide} \end{itemize} \end{codecles} @@ -2577,11 +2581,9 @@ Plusieurs \Cle{arguments} (optionnels) sont disponibles : \subsection{Console d'exécution Python} \begin{codeidee} -\ctex{pythontex} permet également de \textit{simuler} (en exécutant également !) du code python dans une \textit{console}. +\ctex{pythontex} permet également de \textit{simuler} (en exécutant également !) du code python dans une \textit{console}, avec la \textsf{librairie} \clib{pythontex} du coup ! C'est l'environnement \ctex{ConsolePythontex} qui permet de le faire. - -\cmaj{2.1.0} Il ne faut donc pas oublier de charger le package \ctex{ProfLycee} avec l'option \Cle{pythontex}. \end{codeidee} \begin{codetex}[listing only] @@ -3444,7 +3446,7 @@ L'idée est que cette macro calcule et stocke les paramètres dans des variables \item en calculs \textit{purs} ; \item dans un environnement \TikZ{} via \textsf{pgfplots} ou bien en \textit{natif} ; \item dans un environnement \PSTricks{} ; - \item dans un environnement \METAPOST{} (à vérifier quand même) ; + \item dans un environnement \hologo{METAPOST} (à vérifier quand même) ; \item \ldots \end{itemize} \end{codeidee} @@ -3860,14 +3862,14 @@ Cette commande permet de tracer une grille principale et/ou une grille secondair \begin{codetex}[listing only] \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \GrilleTikz \end{tikzpicture} ~~ \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \GrilleTikz[Affp=false][][orange,densely dotted] @@ -3877,14 +3879,14 @@ Cette commande permet de tracer une grille principale et/ou une grille secondair \begin{codesortie} \hfill~ \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \GrilleTikz \end{tikzpicture} ~~ \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \GrilleTikz[Affp=false][][orange,densely dotted] @@ -3929,14 +3931,14 @@ Cette commande permet de tracer les axes, avec des \Cle{clés} : \begin{codesortie} \hfill~ \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \AxesTikz \end{tikzpicture} ~~ \begin{tikzpicture}% - [x=0.35cm,y=0.07cm,% + [x=0.3cm,y=0.06cm,% Ox=1992,xmin=1992,xmax=2012,xgrille=2,xgrilles=1,% Oy=1640,ymin=1640,ymax=1730,ygrille=10,ygrilles=5] \AxesTikz% @@ -4030,7 +4032,7 @@ Il existe, de manière marginale, quelques commandes complémentaires qui ne ser % \PLorigine[] %\end{codetex} -\subsection{Interactions avec PLreglin} +\subsection{Interactions avec CalculsRegLin} \begin{codetex}[listing only] %...code tikz @@ -4094,8 +4096,8 @@ Cette commande permet de rajouter le point moyen du nuage, calculé par la comma \item \Cle{Taille}, taille du point moyen ; \hfill~défaut \Cle{4pt} \item \Cle{Couleur}, couleur du point moyen ; \hfill~défaut \Cle{red} \item \Cle{Style} parmi \Cle{o} (rond) ou \Cle{x} (croix) ou \Cle{+} (plus) ; \hfill~défaut \Cle{o} - \item \Cle{xg}, abscisse du point moyen, récupérable via \ctex{PLRegLin} ; \hfill~défaut \Cle{\textbackslash{}LXmoy} - \item \Cle{yg}, ordonnée du point moyen, récupérable via \ctex{PLRegLin} ; \hfill~défaut \Cle{\textbackslash{}LYmoy} + \item \Cle{xg}, abscisse du point moyen, récupérable via \ctex{CalculsRegLin} ; \hfill~défaut \Cle{\textbackslash{}LXmoy} + \item \Cle{yg}, ordonnée du point moyen, récupérable via \ctex{CalculsRegLin} ; \hfill~défaut \Cle{\textbackslash{}LYmoy} \item \Cle{Nom}, label du point moyen ; \hfill~défaut \Cle{G} \item \Cle{Pos} qui est la position du label par rapport au point ; \hfill~défaut \Cle{above} \item \Cle{Decal} qui est l'éloignement de la position du label par rapport au point ; \hfill~défaut \Cle{0pt} @@ -4971,6 +4973,7 @@ Peu de paramétrage pour ces commandes qui permettent de calculer $A_n^p$ et $C_ \begin{itemize} \item les versions étoilées ne formatent pas le résultat grâce à \ctex{\textbackslash num} de \ctex{sinuitx} ; + \item le booléen \Cle{Notation} pour avoir la notation au début ; \hfill~défaut \Cle{false} \item le booléen \Cle{Formule} permet de présenter la formule avant le résultat ; \hfill~défaut \Cle{false} \item le premier argument, \textit{obligatoire}, est la valeur de $p$ ; \item le second argument, \textit{obligatoire}, est la valeur de $n$. @@ -4978,19 +4981,21 @@ Peu de paramétrage pour ces commandes qui permettent de calculer $A_n^p$ et $C_ \end{codecles} \begin{codetex}[] -On a $A_{20}^3=\Arrangement*{3}{20}$ en non formaté, et $A_{20}^3=\Arrangement{3}{20}$ en formaté. +On a $A_{20}^3=\Arrangement*{3}{20}$ en non formaté, +et $\Arrangement[Notation]{3}{20}$ en formaté avec la notation au début. \end{codetex} \begin{codetex}[] -On a $C_{20}^3=\Combinaison*{3}{20}$ en non formaté, et $C_{20}^3=\Combinaison{3}{20}$ en formaté. +On a $\displaystyle\binom{20}{3}=\Combinaison*{3}{20}$ en non formaté,~ +et $\displaystyle\Combinaison[Notation]{3}{20}$ en formaté avec la notation au début. \end{codetex} \begin{codetex}[] -On a $A_{20}^3=\Arrangement[Formule]{3}{20}$. +On a $\displaystyle\Arrangement[Notation,Formule]{3}{20}$. \end{codetex} \begin{codetex}[] -On a $C_{20}^3=\displaystyle\Combinaison[Formule]{3}{20}$. +On a $\displaystyle\Combinaison[NotationAncien,Formule]{3}{20}$. %ancienne notation FR \end{codetex} \newpage @@ -6217,6 +6222,10 @@ La grille, créée en \TikZ, est portée par le rectangle de \og coins \fg{} $(0 \part{Historique} +{\small \bverb|v 2.5.0|~:~~~~Système de \textsf{librairies} pour certains packages/commandes (page \pageref{librairies}) + +{\small \bverb|v 2.2.0|~:~~~~Ajout d'une clé \Cle{Notation} pour les arrangements et combinaisons (page \pageref{combinatoire}) + {\small \bverb|v 2.1.9|~:~~~~Correction d'un bug (et ajout d'une version étoilée) pour les petits schémas \og de signe \fg{} (page \pageref{aidesigne}) {\small \bverb|v 2.1.8|~:~~~~Suppression des commandes de PixelArt, désormais dans le package \textsf{PixelArtTikz} @@ -6257,13 +6266,13 @@ La grille, créée en \TikZ, est portée par le rectangle de \og coins \fg{} $(0 {\small \bverb|v 2.0.2|~:~~~~Option \textsf{left-margin=auto} pour le package \textsf{piton} (page \pageref{pythonpiton}) -{\small \bverb|v 2.0.1|~:~~~~Chargement du package \textsf{piton} uniquement si compilation en \LuaLaTeX{} (page \pageref{pythonpiton}) +{\small \bverb|v 2.0.1|~:~~~~Chargement du package \textsf{piton} uniquement si compilation en \hologo{LuaLaTeX} (page \pageref{pythonpiton}) {\small \bverb|v 2.0.0|~:~~~~Refonte du code source avec modification des commandes, et de la documentation} \hrulefill -{\small \bverb|v 1.3.7|~:~~~~Commandes pour du code python via piton, en compilation \LuaLaTeX{} (page \pageref{pythonpiton}) +{\small \bverb|v 1.3.7|~:~~~~Commandes pour du code python via piton, en compilation \hologo{LuaLaTeX} (page \pageref{pythonpiton}) {\small \bverb| |~:~~~~Corrections et modifications mineures de la documentation diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty index f8a0b9f0aa..c65512f9e3 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}[2023/02/04 2.1.9 Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee}[2023/02/08 2.5.0 Aide pour l'utilisation de LaTeX en lycee] +% 2.5.0 Passage à des libraires via \useproflyclib +% 2.2.0 Ajout de clés [Notation] pour les arrangements et combinaisons % 2.1.9 Correction d'un bug avec les MiniSchémas + version étoilée % 2.1.8 Suppression des pixelarts, désormais dans le package "PixelArtTikz" ! % 2.1.7 Option booléenne Math pour les figures pave/tetraèdre @@ -23,55 +25,10 @@ % 2.0.2 Ajout de l'option auto-margin sur piton % 2.0.1 Chargement de piton uniquement si lua... % 2.0.0 Refonte des commandes, des options, et de la documentation !!! -% ------------------------------------------------------------------ -% 1.3.7 Ajout d'un environnement simplifié pour du code python via piton -% 1.3.6 Ajout d'un "générateur" de trinômes (ou mise en forme basique) -% 1.3.5 Correction de bugs sur les calculs de probas (loi géométrique) -% 1.3.4 Ajout des calculs de probas geométriques et hypergeometriques + petits schémas probas -% 1.3.3 Ajout de commandes pour des arbres de probas classiques, en tikz -% 1.3.2 Correction d'une commande liée à la conversion bintohex (suppression clé trait) -% 1.3.1 Ajout d'une option pour ne pas afficher les bords des cases en pixelart -% 1.3.0 Ajout d'une commande pour mettre en forme une conversion depuis la base 10 -% 1.2.9 Correction d'une incompatibilité avec simplekv (clés vides...) -% 1.2.8 Correction de l'oubli d'une librairie tikz et remise en forme de la documentation -% 1.2.7 Calculs de probas pour des lois classiques -% 1.2.6 Ajout d'un environnement tikz pour des sudomaths personnalisés -% 1.2.5 Ajout d'une commande pour des boites à moustaches, en tikz -% 1.2.4 Correction de quelques bugs mineurs, et mise à jour de la doc -% 1.2.3 Ajout d'un environnement simplifié pour du code python -% 1.2.2 Ajouts de commandes pour des stats à 2 variables -% 1.2.1 Amélioration de la gestion du csv pour les pixelart -% 1.2 Correction d'un méchant bug avec pixelart, erf... -% 1.1.9 Commande pour du pixelart en tikz (avec option csvii pour compatibilité) -% 1.1.8 Ajout d'un style mainlevee pour tikz -% 1.1.7 Ajout de commandes pour des conversions bin/dec/hex -% 1.1.6 Ajout d'une commande pour déterminer les paramètres d'un régression linéaire par moindres carrés -% 1.1.5 Ajout de commandes pour "visualiser" le signe de ax+b ou de ax2+bx+c (cf tnsana !) -% 1.1.4 Ajout d'une commande cercletrigoPL pour, en \TikZ, créer facilement un cercle trigo avec options -% 1.1.3 Ajout d'une commande ensemble pour créer un ensemble à partir d'une liste -% 1.1.2 Modifs mineures -% 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) -% 1.0.6 Option [nominted] pour éviter de charger minted & nettoyage amssymb -% 1.0.5 Environnement code python avec minted -% 1.0.4 Environnement pour simuler terminal windows & linux -% 1.0.3 Environnement pour présenter du pseudocode -% 1.0.2 Environnement pour présenter du code python (avec pythontex) -% 1.0.1 Modif mineure du chargement de xcolor (compatibilité avec d'autres packages notamment...) -% 1.0 Version initiale %------Option(s) -\newif\if@nonshellescape \@nonshellescapefalse -\DeclareOption{nonshellescape}{\@nonshellescapetrue} \newif\if@build \@buildfalse \DeclareOption{build}{\@buildtrue} -\newif\if@pythontex \@pythontexfalse -\DeclareOption{pythontex}{\@pythontextrue} -%\newif\if@csvii \@csviifalse -%\DeclareOption{csvii}{\@csviitrue} \DeclareOption*{} \ProcessOptions\relax @@ -82,7 +39,6 @@ \RequirePackage{tkz-tab} \RequirePackage{pgf,pgffor} \RequirePackage{ifthen} -%\RequirePackage{xparse} \RequirePackage{xkeyval} \RequirePackage{xstring} \RequirePackage{xintexpr} @@ -92,25 +48,18 @@ \RequirePackage{simplekv} \RequirePackage{listofitems} \RequirePackage{tabularray} -%\RequirePackage{hvlogos} \RequirePackage{hologo} \RequirePackage{fancyvrb} \RequirePackage{siunitx} %test avec v3 \sisetup{% locale=FR,output-decimal-marker={,},% - mode = match, propagate-math-font = true,% - reset-math-version = false, reset-text-family = false,% - reset-text-series = false, reset-text-shape = false,% - text-family-to-math = true, text-series-to-math = true,% - group-minimum-digits=4% + mode=match,propagate-math-font=true,% + reset-math-version=false,reset-text-family=false,% + reset-text-series=false,reset-text-shape=false,% + text-family-to-math=true,text-series-to-math=true,% + group-minimum-digits=4 }% \RequirePackage{fontawesome5} -%\if@csvii -% \RequirePackage[legacy]{csvsimple} -%\else -% \RequirePackage{expl3} -% \RequirePackage[l3]{csvsimple} -%\fi %librairies tikz \usetikzlibrary{calc} \usetikzlibrary{decorations} @@ -125,28 +74,35 @@ %divers \RequirePackage{iftex} -%python -\if@pythontex - \RequirePackage[gobble=auto]{pythontex} - \setpythontexlistingenv{pythont} %pour ne pas télescoper lstlistings (?) - \if@build - \setpythontexoutputdir{./build/pythontex-files-\jobname} %essai de modif pythontex répertoire build - \fi -\fi - -%shellescape -\if@nonshellescape - %on ne charge pas minted et la librairie tcbox -\else - \if@build - %on charge minted avec le répertoire build - \RequirePackage[outputdir=build]{minted} - \fi - %on charge minted via la librairie tcbox - \tcbuselibrary{minted} -\fi +%%------LIBRAIRIES/BIBIOTHÈQUES +\newcommand\useproflyclib[1]{%ajout d'une commande "librairie" pour charger des modules + \IfSubStr{#1}{piton}% + {% + \input{proflycee-tools-piton.tex} + }% + {}% + \IfSubStr{#1}{minted}% + {% + \if@build + \RequirePackage[outputdir=build]{minted} %on charge minted avec le répertoire build + \fi + \tcbuselibrary{minted} %on charge minted via la librairie tcbox + \input{proflycee-tools-minted.tex} + }% + {}% + \IfSubStr{#1}{pythontex}% + {% + \RequirePackage[gobble=auto]{pythontex} + \setpythontexlistingenv{pythont} %pour ne pas télescoper lstlistings (?) + \if@build + \setpythontexoutputdir{./build/pythontex-files-\jobname} %essai de modif pythontex répertoire build + \fi + \input{proflycee-tools-pythontex.tex} + }% + {}% +} -%-----------PRESENTATIONDECODES-------------- +%%------PRESENTATIONDECODES \NewTCBListing{PresentationCode}{ O{ForestGreen} m }{% sharp corners=downhill,enhanced,arc=12pt,skin=bicolor,% colback=#1!5!white,colframe=#1!75!black,colbacklower=White,% @@ -163,9 +119,9 @@ #2 } -%---------------SPLINES---------------------- -%------commande utile pour extraire des infos d'une liste -\newcommand\extractcoeff[2]{% #1=liste & #2=numero +%%------SPLINES +%commande utile pour extraire des infos d'une liste +\newcommand\extractcoeff[2]{%1=liste,2=numero \setsepchar{§}% \readlist*\lcoeffs{#1} \ifnum \lcoeffslen=1 @@ -179,7 +135,7 @@ \fi } -%------splines en tikz avec ..controls +%splines en tikz avec ..controls \defKV[spline]{% Epaisseur=\def\SPLepaisseur{#1},% Couleur=\def\SPLcouleur{#1},% @@ -244,7 +200,7 @@ {} } -%------tangente(s) en TikZ, avec point/dérivée ou liste points/dérivées +%tangente(s) en TikZ, avec point/dérivée ou liste points/dérivées \defKV[tgte]{% Epaisseur=\def\TGTepaisseur{#1},% Couleur=\def\TGTcouleur{#1},% @@ -274,7 +230,7 @@ \draw[line width=\TGTepaisseur,\TGTcouleur,domain=\TGTDEB:\TGTFIN,\TGTstyle] plot (\x,{\fprimea*(\x-\xa)+\ya}) ;% } -%----------------FENÊTRE CALCUL FORMEL +%%------FENÊTRE CALCUL FORMEL \newcommand\CFchap{\textasciicircum} \newcounter{CFnum} %def des clés @@ -305,7 +261,7 @@ \useKVdefault[paramfenxcas]% \setKV[paramfenxcas]{#1}% on paramètres les nouvelles clés et on les simplifie } -%def des clés + \defKV[paramlgxcas]{% HautCmd=\def\CFhle{#1},% HautRes=\def\CFhlr{#1} @@ -379,163 +335,7 @@ {} } -\if@pythontex -%=========CONSOLEPYTHON=========== OK !! -\defKV[envpythonconsole]{% - Largeur=\def\CSPYlargeur{#1},% - Centre=\testboolKV{#1} - {\def\hookcenterpre{\begin{center}}\def\hookcenterpost{\end{center}}} - {\def\hookcenterpre{\begin{flushleft}}\def\hookcenterpost{\end{flushleft}}},% - TaillePolice=\def\CSPYfonte{#1},% - EspacementVertical=\def\CSPYstretch{#1} -} - -\setKVdefault[envpythonconsole]{% - Largeur=\linewidth,% - Centre=true,% - Label=true,% - TaillePolice=\footnotesize,% - EspacementVertical=1 -} - -\newenvironment{ConsolePythontex}[1][]{% - \useKVdefault[envpythonconsole]% - \setKV[envpythonconsole]{#1}% on paramètres les nouvelles clés et on les simplifie - \VerbatimEnvironment - \hookcenterpre - \begin{minipage}{\CSPYlargeur} - \ifboolKV[envpythonconsole]{Label}%si label - {\begin{pyconsole}[][% - framesep=3mm,frame=single,fontsize=\CSPYfonte,framerule=1pt,rulecolor=\color{ForestGreen},label={[\scriptsize Début de la console python]\scriptsize Fin de la console python},baselinestretch=\CSPYstretch]}% - {\begin{pyconsole}[][% - framesep=3mm,frame=single,fontsize=\CSPYfonte,framerule=1pt,rulecolor=\color{ForestGreen},baselinestretch=\CSPYstretch]} - } - { - \end{pyconsole} - \end{minipage} - \hookcenterpost -} - -%=========CODEPYTHONTEX=========== OK!! -\defKV[envpythonverb]{% - Largeur=\def\CODPYlargeur{#1},% - TaillePolice=\def\CODPYfonte{#1},% - EspacementVertical=\def\CODPYstretch{#1},% - Centre=\testboolKV{#1} - {\def\verbcenterpre{\begin{center}}\def\verbcenterpost{\end{center}}} - {\def\verbcenterpre{}\def\verbcenterpost{}} -} - -\setKVdefault[envpythonverb]{% - Largeur=\linewidth,% - Centre=true,% - Lignes=true,% - TaillePolice=\footnotesize,% - EspacementVertical=1 -} - -\tcbset{stylepythontex/.style={% - enhanced,boxrule=1.25pt,% - sharp corners=downhill,arc=12pt, - before skip=12pt,after skip=12pt,% - top=10pt,bottom=1mm,rightupper=4pt,%leftupper=25pt, - attach boxed title to top right={yshift=-\tcboxedtitleheight}, - boxed title style={ - size=small,colback=ForestGreen!25,boxrule=1.25pt, - colframe=Green,boxsep=1.25pt, - sharp corners=downhill, - arc=12pt, - top=2pt,bottom=1pt,left=6pt,right=6pt - }, - fonttitle=\color{ForestGreen}\itshape\ttfamily\footnotesize, - title={\scriptsize\faPython}\:Code Python\vphantom{p}, - watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50, - } -} - -\tcbset{stylepythonnolineos/.style={% - stylepythontex,leftupper=10pt, - colframe=Green,colback=ForestGreen!5,% -% fontlower=\small,% - before upper=\renewcommand\theFancyVerbLine{\scriptsize\ttfamily\color{Gray}\arabic{FancyVerbLine}} - } -} - -\tcbset{stylepythonlineos/.style={% - stylepythontex,leftupper=25pt, - colframe=Green,colback=ForestGreen!5,% -% fontlower=\small,% - before upper=\renewcommand\theFancyVerbLine{\scriptsize\ttfamily\color{Gray}\arabic{FancyVerbLine}} - } -} - -\newtcolorbox{tcpythontexcode}[1][\linewidth]{% - width=#1,stylepythonlineos -} - -\newtcolorbox{tcpythontexcodeno}[1][\linewidth]{% - width=#1,stylepythonnolineos -} - -\newenvironment{CodePythontex}[1][]{% - \useKVdefault[envpythonverb]% - \setKV[envpythonverb]{#1}% on paramètres les nouvelles clés et on les simplifie - \VerbatimEnvironment - \verbcenterpre - \ifboolKV[envpythonverb]{Lignes}%si lignes=true - {\begin{tcpythontexcode}[\CODPYlargeur]} - {\begin{tcpythontexcodeno}[\CODPYlargeur]} - \ifboolKV[envpythonverb]{Lignes}%si lignes=true - {\begin{pyverbatim}[][fontsize=\CODPYfonte,numbers=left,numbersep=10pt,commandchars=\\\{\},mathescape,baselinestretch=\CODPYstretch]} - {\begin{pyverbatim}[][numbers=none,numbersep=0pt,fontsize=\CODPYfonte,commandchars=\\\{\},mathescape,baselinestretch=\CODPYstretch]} - } - { - \end{pyverbatim} - \ifboolKV[envpythonverb]{Lignes}%si lignes=true - {\end{tcpythontexcode}} - {\end{tcpythontexcodeno}} - \verbcenterpost -} -\fi - -%=========PYTHONMINTED========= OK !! -\tcbset{pytmintedno/.style={% - listing engine=minted,minted style=colorful, - minted language=python,listing only, - minted options={tabsize=4,fontsize=\footnotesize,autogobble}, - } -} - -\tcbset{pytminted/.style={% - listing engine=minted,minted style=colorful, - minted language=python,listing only, - minted options={tabsize=4,fontsize=\footnotesize,autogobble,xleftmargin=16pt,linenos,numbersep=10pt}, - } -} - -\DeclareTCBListing{CodePythonMinted}{ s O{12cm} O{} }{% étoilée sans numéro, taille puis options... - \IfBooleanTF{#1}{pytmintedno}{pytminted}, - enhanced,width=#2,#3, - colframe=Green,colback=ForestGreen!5,% - boxrule=1.25pt, - sharp corners=downhill,arc=12pt, - before skip=12pt,after skip=12pt,% - leftupper=8pt,top=10pt,bottom=4pt,rightupper=4pt,% - attach boxed title to top right={yshift=-\tcboxedtitleheight}, - boxed title style={ - size=small,colback=ForestGreen!25,boxrule=1.25pt, - colframe=Green,boxsep=1.25pt, - sharp corners=downhill, - arc=12pt, - top=2pt,bottom=1pt,left=6pt,right=6pt - }, - fonttitle=\color{ForestGreen}\itshape\ttfamily\footnotesize, - title={\scriptsize\faPython}\:Code Python\vphantom{y}, - watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50, - before upper=\renewcommand{\theFancyVerbLine}{\scriptsize\ttfamily\color{Green}\arabic{FancyVerbLine}} -} - -%=======STYLE ALGO LST========= OK ! +%%------STYLE ALGO LST \ifluatex \tcbuselibrary{listings} \lstdefinelanguage{langnat}{% @@ -586,7 +386,7 @@ } \fi -%=======PYTHONLISTINGS========= OK !! +%%------PYTHONLISTINGS \tcbset{stylepythonlst/.style={% enhanced,boxrule=1.25pt,% leftupper=10pt, @@ -629,63 +429,10 @@ \NewTCBInputListing{\CodePythonLstFichier}{ s O{\linewidth} m m }{ \IfBooleanTF{#1}{stylepythonlstnolineos}{stylepythonlstlineos}, width=#2,#3, - listing file={#4}} - -%=========PYTHONPITON========== OK !! -\defKV[envpiton]{% - Largeur=\def\CODPITlargeur{#1},% - Alignement=\def\CODPITalign{#1},% - TaillePolice=\def\CODPITfonte{#1} -} - -\setKVdefault[envpiton]{% - Largeur=\linewidth,% - Alignement=center,% - Lignes=true,% - Gobble=true,% - TaillePolice=\footnotesize + listing file={#4} } -\tcbset{stylepiton/.style={% - enhanced,boxrule=1.25pt,% - sharp corners=downhill,arc=12pt, - before skip=12pt,after skip=12pt,% - top=10pt,bottom=1mm,rightupper=4pt,%leftupper=25pt, - attach boxed title to top right={yshift=-\tcboxedtitleheight}, - boxed title style={ - size=small,colback=ForestGreen!25,boxrule=1.25pt, - colframe=Green,boxsep=1.25pt, - sharp corners=downhill, - arc=12pt, - top=2pt,bottom=1pt,left=6pt,right=6pt - }, - fonttitle=\color{ForestGreen}\itshape\ttfamily\footnotesize, - title={\scriptsize\faPython}\:Code Python\vphantom{p}, - watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50, - } -} - -\ifluatex - \RequirePackage{piton} - \NewPitonEnvironment{CodePiton}{ O{} }% - {% - \useKVdefault[envpiton]% - \setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie - \ifboolKV[envpiton]{Lignes}%si lignes=true - {\PitonOptions{left-margin=auto,all-line-numbers}}% - {}% - \ifboolKV[envpiton]{Gobble}%si gobble=true - {\PitonOptions{tabs-auto-gobble}}% - {}% - \PitonOptions{break-lines,indent-broken-lines}% - \begin{tcolorbox}[stylepiton,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign] - }% - {% - \end{tcolorbox}% - }% -\fi - -%=========PSEUDOCODE=========== OK !! +%%------PSEUDOCODE %language pseudocode listings \lstdefinestyle{pseudocodePL}{% language=langnat, @@ -768,7 +515,7 @@ } } -%============FakeTerm=========== OK !! +%%------FakeTerm %couleurs (inspirées par termsim !) \definecolor{PLmpurple}{RGB}{48,10,36} \definecolor{PLmgray}{RGB}{70,72,67} @@ -912,14 +659,14 @@ width=#1,#3 } -%============CartoucheCapytale========= OK !! +%%------CartoucheCapytale \definecolor{vertcapyt}{rgb}{0.0,0.5,0.0} %\definecolor{vertcapyt}{HTML}{008000} \DeclareTotalTCBox{\CartoucheCapytale}{ s O{} m } {enhanced,size=fbox,on line,arc=3pt,colback=vertcapyt,colframe=vertcapyt,fontupper=\IfBooleanTF{#1}{\ttfamily}{\sffamily}\bfseries,colupper=white}% {#3#2~{\scriptsize\faLink}} -%============PaveDroitTikZ============= OK !! +%%------PaveDroitTikZ \defKV[paramspave]{% Largeur=\xdef\PFPaveLg{#1},% Profondeur=\xdef\PFPavePf{#1},% @@ -990,7 +737,7 @@ (\PaveD)--(\PaveH) ;} } -%============TétraèdreTikZ============= OK !! +%%------TétraèdreTikZ \defKV[paramstetra]{% Largeur=\xdef\PFTetraLg{#1},% Profondeur=\xdef\PFTetraPf{#1},% @@ -1040,7 +787,7 @@ {\draw[dashed,\PFTetraThick] (\TetraA)--(\TetraC) ;} } -%============EnsembleList============== OK !! +%%------EnsembleList \defKV[kvensemble]{% Sep=\def\PLenssep{#1},% Option=\def\PLensopt{#1} @@ -1056,11 +803,11 @@ \useKVdefault[kvensemble]% \setKV[kvensemble]{#1}% \ifboolKV[kvensemble]{Mathpunct}% - {\left\lbrace \PLensopt{} \mathpunct{} \StrSubstitute{#2}{/}{\mathpunct{}{\PLenssep}\mathpunct{}} \mathpunct{} \right\rbrace}% + {\left\lbrace \PLensopt{} \mathpunct{} \StrSubstitute{#2}{/}{\mathpunct{}{\PLenssep}\mathpunct{}} \right\rbrace}% {\left\lbrace \PLensopt{} \StrSubstitute{#2}{/}{{\PLenssep}} \right\rbrace} } -%===============SimplFrac============== OK !! +%%------SimplFrac \DeclareDocumentCommand\ConversionFraction{ O{} m }{% argument optionnel [d ou t] puis argument mandataire {calcul ou fraction} \def\calculargument{\xintPRaw{\xintIrr{\xinteval{#2}}}}%on calcule et on transforme en A/B \IfSubStr{\calculargument}{/}%on teste si le symbole / apparaît @@ -1075,7 +822,7 @@ }% } -%================CabWeb================ OK !! +%%------CabWeb \defKV[webrecurr]{% Fct=\def\PLRecurfct{#1},% Nom=\def\PLRecurnom{#1},% @@ -1097,7 +844,6 @@ TailleLabel=\small } -%\newcommand\recurr[1][]{% \NewDocumentCommand\ToileRecurrence{ O{} O{thick,color=magenta} O{dotted} }{ % +