texlive[71987] Master/texmf-dist: pgf-periodictable (7aug24)
commits+karl at tug.org
commits+karl at tug.org
Wed Aug 7 22:06:07 CEST 2024
Revision: 71987
https://tug.org/svn/texlive?view=revision&revision=71987
Author: karl
Date: 2024-08-07 22:06:07 +0200 (Wed, 07 Aug 2024)
Log Message:
-----------
pgf-periodictable (7aug24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/pgf-periodictable/README
trunk/Master/texmf-dist/doc/latex/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex
trunk/Master/texmf-dist/doc/latex/pgf-periodictable/pgf-PeriodicTableManual.pdf
trunk/Master/texmf-dist/tex/latex/pgf-periodictable/pgf-PeriodicTable.sty
Modified: trunk/Master/texmf-dist/doc/latex/pgf-periodictable/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-periodictable/README 2024-08-07 20:05:49 UTC (rev 71986)
+++ trunk/Master/texmf-dist/doc/latex/pgf-periodictable/README 2024-08-07 20:06:07 UTC (rev 71987)
@@ -1,4 +1,4 @@
-This is pgf-PeriodicTable, version 2.1.2 (2024/08/01).
+This is pgf-PeriodicTable, version 2.1.3 (2024/08/07).
The purpose of this package is to provide the Periodic Table of Elements in
a simple way. It relies on pgf/TikZ to offer a full or partial periodic table with
@@ -22,6 +22,10 @@
Major changes:
+*** v2.1.3 (07/08/2024) ***
+The engine's detection mechanism (pdfLaTeX, LuaLaTeX or XeTeX) has been changed to prevent erroneous detection when the packages 'hyperref' or 'bookmark' are loaded and the document is compiled with LuaLaTeX - in this case, pgf-PeriodicTable disturbs the selection of the document font.
+Fixed an issue with the Chemical Symbol color when a non-rgb color is used, such as cyan or yellow , which are defined in the xcolor package using the cmyk model (when loaded without options).
+
*** v2.1.2 (01/08/2024) ***
Fixed incorrect Spanish translations of some element names.
Minor code improvements to eliminate runtime warnings («LaTeX Font Warning: Font shape `TU/TeXGyreHeros(0)/l/n' undefined» or «Missing character: There is no m (U+006D) in font nullfont!» ... )
Modified: trunk/Master/texmf-dist/doc/latex/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex 2024-08-07 20:05:49 UTC (rev 71986)
+++ trunk/Master/texmf-dist/doc/latex/pgf-periodictable/manualfiles/pgfPTmanual.macros.tex 2024-08-07 20:06:07 UTC (rev 71987)
@@ -1,5 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definitions for pgf-PeriodicTable Manual
+% Hugo Gomes @ 07/08/2024 v2.1.3
% Hugo Gomes @ 01/08/2024 v2.1.2
% Hugo Gomes @ 07/07/2024 v2.1.1
% Hugo Gomes @ 03/04/2024 v2.1.0a
@@ -8,13 +9,12 @@
% Hugo Gomes @ 20/02/2023 v2.0.0
% Hugo Gomes @ 08/11/2022 v1.0.1
% Hugo Gomes @ 10/10/2022 v1.0.0
-\def\pgfPTversion{2.1.2}%
+\def\pgfPTversion{2.1.3}%
\def\pgfPTnewinversion#1{new in v#1}%
\def\pgfPTchangedinversion#1{changed in v#1}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[ansinew]{inputenc}
-\renewcommand{\rmdefault}{ecverdana}
-\renewcommand{\normalfont}{}
+\usepackage{verdana}
%
\addtolength{\textwidth}{3.5cm}
\addtolength{\textheight}{2.5cm}
@@ -52,22 +52,21 @@
}%End options on pdf
\usepackage{fancyhdr}
\usepackage{lastpage}
-\mylastpage{-1}%
\renewcommand{\headrulewidth}{0.4pt}%
\renewcommand{\footrulewidth}{0.4pt}%
\addtolength{\headheight}{25pt}%
\fancypagestyle{pgfPTManual}{%
\fancyhf{} % clear all header and footer fields
-\fancyhead[R]{\usefont{T1}{verdana}{m}{n}\nouppercase{\leftmark}}%
-\fancyhead[L]{\usefont{T1}{verdana}{m}{n}\color{blue!70!black}pgf-PeriodicTable \pgfPTversion}%
-\fancyfoot[R]{\usefont{T1}{verdana}{m}{n}\textbf{\thepage\ of \pageref{LastPage}}}%
+\fancyhead[R]{\usefont{T1}{vna}{m}{n}\nouppercase{\leftmark}}%
+\fancyhead[L]{\color{blue!70!black}pgf-PeriodicTable \pgfPTversion}%
+\fancyfoot[R]{\usefont{T1}{vna}{m}{n}\textbf{\thepage\ of \pageref{LastPage}}}%
\fancyfoot[L]{\ }}%
\fancypagestyle{plain}{%
\addtolength{\textwidth}{3.5cm}%
\fancyhf{} % clear all header and footer fields
-\fancyhead[R]{\usefont{T1}{verdana}{m}{n}\nouppercase{\leftmark}}%
-\fancyhead[L]{\usefont{T1}{verdana}{m}{n}\color{blue!70!black}pgf-PeriodicTable \pgfPTversion}%
-\fancyfoot[R]{\usefont{T1}{verdana}{m}{n}\textbf{\thepage\ of \pageref{LastPage}}}%
+\fancyhead[R]{\usefont{T1}{vna}{m}{n}\nouppercase{\leftmark}}%
+\fancyhead[L]{\color{blue!70!black}pgf-PeriodicTable \pgfPTversion}%
+\fancyfoot[R]{\usefont{T1}{vna}{m}{n}\textbf{\thepage\ of \pageref{LastPage}}}%
\fancyfoot[L]{\ }}%
\usepackage{amsfonts}
\usepackage{amssymb}
Modified: trunk/Master/texmf-dist/doc/latex/pgf-periodictable/pgf-PeriodicTableManual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/pgf-periodictable/pgf-PeriodicTable.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-periodictable/pgf-PeriodicTable.sty 2024-08-07 20:05:49 UTC (rev 71986)
+++ trunk/Master/texmf-dist/tex/latex/pgf-periodictable/pgf-PeriodicTable.sty 2024-08-07 20:06:07 UTC (rev 71987)
@@ -1,4 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Hugo Gomes @ 07/08/2024 v2.1.3
% Hugo Gomes @ 01/08/2024 v2.1.2
% Hugo Gomes @ 07/07/2024 v2.1.1
% Hugo Gomes @ 03/04/2024 v2.1.0a
@@ -9,7 +10,7 @@
% Hugo Gomes @ 10/10/2022 v1.0.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}%
-\ProvidesPackage{pgf-PeriodicTable}[01/08/2024 pgf-PeriodicTable v2.1.2]%%
+\ProvidesPackage{pgf-PeriodicTable}[07/08/2024 pgf-PeriodicTable v2.1.3]%%
\RequirePackage{tikz}%
\usetikzlibrary{fadings}%
\tikzfading[name=aumentax, left color=transparent!80, right color=transparent!1]%
@@ -18,11 +19,19 @@
\tikzfading[name=diminuiy, bottom color=transparent!80, top color=transparent!1]%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% check the engine and load font packages
-\ifx\pdfliteral\undefined\relax% XeLaTeX or LuaLaTeX
-\RequirePackage{fontspec}[2020/02/03]\edef\pgfPT at fontspec{1}%
-\else% pdfLaTeX
-\RequirePackage[T1]{fontenc}\edef\pgfPT at fontspec{0}%
-\fi%
+% changed in v2.1.3
+% pdfLaTeX --------------------------------------------------
+\ifx\pdftexversion\undefined\else%
+\RequirePackage[T1]{fontenc}\edef\pgfPT at fontspec{0}\edef\pgfPT at engine{0}%
+\fi% -----------------------------------------------------------
+% LuaLaTeX --------------------------------------------------
+\ifx\directlua\undefined\else%
+\RequirePackage{fontspec}[2020/02/03]\edef\pgfPT at fontspec{1}\edef\pgfPT at engine{1}%
+\fi% -----------------------------------------------------------
+% XeLaTeX ---------------------------------------------------
+\ifx\XeTeXrevision\undefined\else%
+\RequirePackage{fontspec}[2020/02/03]\edef\pgfPT at fontspec{1}\edef\pgfPT at engine{2}%
+\fi% -----------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ifs to user language and list of user translations available
\newif\ifpgfPT at user@lang\pgfPT at user@langfalse%
@@ -3085,15 +3094,14 @@
% renders text via pdfliteral: -------------
% #1 outline width width #2 txt #3 #4 #5 rgb stroke color #6 #7 #8 rgb fill color -----------
% #9 txt render mode (0 - fill 1 - stroke 2 - fill then stroke ---------
-\ifx\pdfliteral\undefined\relax%
-\ifx\pdfextension\undefined\relax% XeLaTeX
-\def\pgfPT at lt[#1](#2)(#3,#4,#5)(#6,#7,#8)(#9){\special{pdf:literal direct #1 w #3 #4 #5 RG #6 #7 #8 rg #9 Tr}#2\special{pdf:literal direct 0 0 0 rg 1 w 0 Tr}}%
-\else% LuaLaTeX
-\protected\def\pdfliteral{\pdfextension literal}
+% changed in v2.1.3
+\ifcase\pgfPT at engine\relax% pdfLaTeX
\def\pgfPT at lt[#1](#2)(#3,#4,#5)(#6,#7,#8)(#9){\pdfliteral direct {#1 w #3 #4 #5 RG #6 #7 #8 rg #9 Tr}{#2}\pdfliteral direct {0 0 0 rg 1 w 0 Tr}}%
-\fi%
-\else% pdfLaTeX
+\or% LuaLaTeX
+\protected\def\pdfliteral{\pdfextension literal}%
\def\pgfPT at lt[#1](#2)(#3,#4,#5)(#6,#7,#8)(#9){\pdfliteral direct {#1 w #3 #4 #5 RG #6 #7 #8 rg #9 Tr}{#2}\pdfliteral direct {0 0 0 rg 1 w 0 Tr}}%
+\or% XeLaTeX
+\def\pgfPT at lt[#1](#2)(#3,#4,#5)(#6,#7,#8)(#9){\special{pdf:literal direct #1 w #3 #4 #5 RG #6 #7 #8 rg #9 Tr}#2\special{pdf:literal direct 0 0 0 rg 1 w 0 Tr}}%
\fi%
% END !! \pgfPT at lt --------------------------------------------------------------------------------
%
@@ -3104,9 +3112,10 @@
% auxiliary macros to set the rgb components of one color ---------------------------------------
% with use of \extractcolorspecs from xcolor package ---------------------------------------------
% each component is stored in \pgfPT@\xABr, g or b\xBB & \xABs or f\xBB -------------------------------------
-\def\pgfPT at extract@rgb at stroke#1{\extractcolorspecs{#1}{\pgfPTcolmodel}{\pgfPTcolinfo}\expandafter\pgfPT at set@rgb at stroke\pgfPTcolinfo\relax}%
+% v3.1.3: added conversion of the color to rgb :: \colorlet{#1}[rgb]{#1}
+\def\pgfPT at extract@rgb at stroke#1{\colorlet{#1}[rgb]{#1}\extractcolorspecs{#1}{\pgfPTcolmodel}{\pgfPTcolinfo}\expandafter\pgfPT at set@rgb at stroke\pgfPTcolinfo\relax}%
\def\pgfPT at set@rgb at stroke#1,#2,#3\relax{\def\pgfPT at rs{#1}\def\pgfPT at gs{#2}\def\pgfPT at bs{#3}}%
-\def\pgfPT at extract@rgb at fill#1{\extractcolorspecs{#1}{\pgfPTcolmodel}{\pgfPTcolinfo}\expandafter\pgfPT at set@rgb at fill\pgfPTcolinfo\relax}%
+\def\pgfPT at extract@rgb at fill#1{\colorlet{#1}[rgb]{#1}\extractcolorspecs{#1}{\pgfPTcolmodel}{\pgfPTcolinfo}\expandafter\pgfPT at set@rgb at fill\pgfPTcolinfo\relax}%
\def\pgfPT at set@rgb at fill#1,#2,#3\relax{\def\pgfPT at rf{#1}\def\pgfPT at gf{#2}\def\pgfPT at bf{#3}}%
% END !! \pgfPT@\xABcolor macros\xBB ------------------------------------------------------------------
%
More information about the tex-live-commits
mailing list.