From 5d714d9476cbb90b125ff14a9d764ad90bb7c2ed Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 24 Sep 2021 03:01:47 +0000 Subject: CTAN sync 202109240301 --- .../contrib/glossaries/glossary2glossaries.html | 252 +++++++++++---------- 1 file changed, 137 insertions(+), 115 deletions(-) (limited to 'macros/latex/contrib/glossaries/glossary2glossaries.html') diff --git a/macros/latex/contrib/glossaries/glossary2glossaries.html b/macros/latex/contrib/glossaries/glossary2glossaries.html index 409159bbde..08942de272 100644 --- a/macros/latex/contrib/glossaries/glossary2glossaries.html +++ b/macros/latex/contrib/glossaries/glossary2glossaries.html @@ -6,8 +6,8 @@ > - - + + @@ -60,15 +60,19 @@ p.indent{text-indent:0;} p + p{margin-top:1em;} p + div, p + pre {margin-top:1em;} div + p, pre + p {margin-top:1em;} +a { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; hyphens: auto; } @media print {div.crosslinks {visibility:hidden;}} a img { border-top: 0; border-left: 0; border-right: 0; } center { margin-top:1em; margin-bottom:1em; } td center { margin-top:0em; margin-bottom:0em; } .Canvas { position:relative; } img.math{vertical-align:middle;} +div.par-math-display, div.math-display{text-align:center;} li p.indent { text-indent: 0em } li p:first-child{ margin-top:0em; } +li p:first-child{ margin-bottom; } li p:last-child, li div:last-child { margin-bottom:0.5em; } +li p:first-child{ margin-bottom:0; } li p~ul:last-child, li p~ol:last-child{ margin-bottom:0.5em; } .enumerate1 {list-style-type:decimal;} .enumerate2 {list-style-type:lower-alpha;} @@ -82,7 +86,7 @@ div.obeylines-v p { margin-top:0; margin-bottom:0; } td.displaylines {text-align:center; white-space:nowrap;} .centerline {text-align:center;} .rightline {text-align:right;} -div.verbatim {font-family: monospace,monospace; white-space: nowrap; text-align:left; clear:both; } +pre.verbatim {font-family: monospace,monospace; text-align:left; clear:both; } .fbox {padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } div.fbox {display:table} div.center div.fbox {text-align:center; clear:both; padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } @@ -144,6 +148,7 @@ table.pmatrix {width:100%;} span.bar-css {text-decoration:overline;} img.cdots{vertical-align:middle;} .partToc a, .partToc, .likepartToc a, .likepartToc {line-height: 200%; font-weight:bold; font-size:110%;} +.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc, .appendixToc a, .appendixToc {line-height: 200%; font-weight:bold;} .index-item, .index-subitem, .index-subsubitem {display:block} div.caption {text-indent:-2em; margin-left:3em; margin-right:1em; text-align:left;} div.caption span.id{font-weight: bold; white-space: nowrap; } @@ -152,16 +157,15 @@ p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } .paragraphHead, .likeparagraphHead { margin-top:2em; font-weight: bold;} .subparagraphHead, .likesubparagraphHead { font-weight: bold;} -.quote {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; margin-right:1em; text-align:justify;} .verse{white-space:nowrap; margin-left:2em} div.maketitle {text-align:center;} h2.titleHead{text-align:center;} div.maketitle{ margin-bottom: 2em; } div.author, div.date {text-align:center;} div.thanks{text-align:left; margin-left:10%; font-size:85%; font-style:italic; } -.quotation {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; } -.abstract p {margin-left:5%; margin-right:5%;} +div.abstract p {margin-left:5%; margin-right:5%;} div.abstract {width:100%;} +.abstracttitle{text-align:center;margin-bottom:1em;} .warningsymbol { color: red; font-weight: bold;} div.important { border : solid red; } div.verbatim { font-family: monospace; white-space: nowrap; text-align:left; clear:both; padding-top: 2ex; padding-bottom: 2ex;} @@ -192,7 +196,7 @@ class="cmr-17">Upgrading from the glossary package to the class="cmr-17">glossaries package

Nicola L.C. Talbot

2020-03-19

+class="cmr-12">2021-09-20

-
-

-

Abstract

-

The purpose of this document is to provide advice if you want to +

+Abstract +

+

The purpose of this document is to provide advice if you want to convert convert a LaTeX document from using the obsolete glossary package to +class="cmr-9">a LaTeX document from using the obsolete glossary package to the the replacement replacement glossaries package.

@@ -225,53 +228,53 @@ class="cmr-9">package.

Contents

@@ -291,17 +294,25 @@ class="cmss-10">glossaries package:

-
  • you don’t need to remember to escape +

    you don’t need to remember to escape makeindex’s special characters as this is done internally; -

  • -
  • hierarchical entries and homographs are +

  • +
  • +

    hierarchical entries and homographs are supported;2 -

  • -
  • there is better support for cross-referencing glossary entries; -
  • -
  • acronyms are just another glossary term which helps to maintain consistency; -
  • -
  • different acronym styles are supported. +

  • +
  • +

    there is better support for cross-referencing glossary entries; +

  • +
  • +

    acronyms are just another glossary term which helps to maintain consistency; +

  • +
  • +

    different acronym styles are supported. +

  • + + +

    glossaries package options

    1.

    -
    +
     \newglossarytype[nlg]{notation}{not}{ntn}[style=long,header]
    - 
    \newcommand{\notationname}{Index of Notation} -
    +\newcommand{\notationname}{Index of Notation} +

    You will need to replace the above two lines with:

    -
    +
     \newglossary[nlg]{notation}{not}{ntn}{Index of Notation}
    -
    +

    in the preamble and

    -
    +
     \setglossarystyle{longheader}
    -
    +

    immediately prior to displaying this glossary. Alternatively, you can specify the style using the style -

    +

    Note that the glossary title is no longer specified using \ -

    +
     \makeglossary
    - 
    \makeacronym -
    +\makeacronym +

    then you should replace both lines with the single line:

    -
    +
     \makeglossaries
    -
    +

    @@ -704,7 +724,8 @@ only used \glossary
    , then see §6.4 §??sec:csglossary \glossary.

    Substitute all instances of @@ -789,19 +810,19 @@ internally. For example, if your document contains the following:

    -
    +
     \storeglosentry{card}{name={$"|\mathcal{S}"|$},
    - 
    description={The cardinality of the set $\mathcal{S}$}} -
    +description={The cardinality of the set $\mathcal{S}$}} +

    then you will need to replace it with:

    -
    +
     \newglossaryentry{card}{name={$|\mathcal{S}|$},
    - 
    description={The cardinality of the set $\mathcal{S}$}} -
    +description={The cardinality of the set $\mathcal{S}$}} +

    The format}
    The mapping from ⟨old options⟩ to ⟨new options⟩ is the same as that given
    new options⟩ is the same as that given +§6.1 -§??sec:useglosentry \useglosentry.

    @@ -1108,27 +1130,27 @@ class="cmtt-10">\newacronym -

    +pattern recognition technique} +

    Then you would need to first set the style:

    -
    +
     \setacronymstyle{long-short-desc}
    -
    +

    and change the acronym definition to:

    -
    +
     \newacronym[description=Statistical pattern recognition
    - 
    technique]{svm}{SVM}{Support Vector Machine} -
    +technique]{svm}{SVM}{Support Vector Machine} +

    You can then reference the acronym using any of the new referencing commands, such as \glsglossary -

    +


    @@ -1227,11 +1249,11 @@ class="cmss-10">glossaries -
    +
     

    \oldacronym{SVM}{Support Vector Machine}{description=Statistical

    pattern recognition technique} -

    +


    @@ -1568,36 +1590,36 @@ say:

    -
    +
     \printglossary
    - 
    \printglossary[acronym] -
    +\printglossary[acronym] +

    or

    -
    +
     \printglossary
    - 
    \printacronym -
    +\printacronym +

    then you will need to replace this with either

    -
    +
     \printglossaries
    -
    +

    or

    -
    +
     \printglossary
    - 
    \printglossary[type=\acronymtype] -
    +\printglossary[type=\acronymtype] +

    The glossary package allows you to specify a short title (for the table of contents @@ -1618,9 +1640,9 @@ class="cmtt-10">notation, and you had defined

    -
    +
     \newcommand{\shortnotationname}{Notation}
    -
    +

    then you would need to use the toctitle key: @@ -1628,9 +1650,9 @@ class="cmss-10">toctitle -

    +

    The glossaries package will ignore \shortnotationname