texlive[66961] Master/texmf-dist: pgf-spectra (28apr23)
commits+karl at tug.org
commits+karl at tug.org
Fri Apr 28 23:30:13 CEST 2023
Revision: 66961
http://tug.org/svn/texlive?view=revision&revision=66961
Author: karl
Date: 2023-04-28 23:30:13 +0200 (Fri, 28 Apr 2023)
Log Message:
-----------
pgf-spectra (28apr23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/pgf-spectra/README
trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf
trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex
trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
trunk/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty
Modified: trunk/Master/texmf-dist/doc/latex/pgf-spectra/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-spectra/README 2023-04-28 21:29:55 UTC (rev 66960)
+++ trunk/Master/texmf-dist/doc/latex/pgf-spectra/README 2023-04-28 21:30:13 UTC (rev 66961)
@@ -1,4 +1,4 @@
-This is pgf-spectra, version 3.0.0 (25/04/2023).
+This is pgf-spectra, version 3.0.1 (27/04/2023).
This package provides the \pgfspectra[<options>] command which draws continuous and emission or absorption spectra for 98 elements and their ions.
It was developed mainly for the writing of my own documentation and exams sheets supporting directly PDF output format.
@@ -6,7 +6,9 @@
It also allows the user to draw a spectrum with their own personal data.
The lines data extends from Extreme UV to Near IR (from 10 to 4000 nanometers).
It is possible to redshift the lines of a spectrum, by directly entering the redshift value or the velocity and the angle to compute the redshift value.
-This package also provides color conversion (correlated color temperature), shadings for use with TikZ and/or PGFPLOTS, color maps for use with PGFPLOTS, displaying the spectral lines in a table and exporting the lines data files.
+Spectral lines data can be presented in a table or exported to a file.
+This package also provides color conversion (correlated color temperature), shadings for use with TikZ and/or PGFPLOTS, color maps for use with PGFPLOTS,
+displaying the spectral lines in a table and exporting the lines data files.
____________________________________________________________
** Requirements: TikZ package.
@@ -16,15 +18,18 @@
** Licence: released under the LaTeX Project Public License v1.3 or later, see http://www.latex-project.org/lppl.txt
____________________________________________________________
+*** v3.0.1 (27/04/2023) ***
+Fixed a small bug dealing with the 'axis label'/'axis label text' background color, which occurred when setting a visible background with the 'back' key, e.g.,
+\pgfspectra[element=H,axis label text={wavenumber in nanometer},back=visible50]
+
*** v3.0.0 (25/04/2023) ***
-In the \pgfspectra command, syntax for the key 'lines' has been updated: it is now possible to specify a continuous range using 'start wavelength to end wavelength', for instance, 'lines={380 to 500}' or 'lines={380 to 500,633}' or 'lines={633,555,380 to 500}'.
+In the \pgfspectra command, syntax for the key 'lines' has been updated: it is now possible to specify a continuous range using 'start wavelength to end
+wavelength', for instance, 'lines={380 to 500}' or 'lines={380 to 500,633}' or 'lines={633,555,380 to 500}'.
New keys for \pgfspectra:
- axis label
- axis label text
- axis label position
-Updated key syntax for \pgfspectra:
-- lines
New command:
- \usepgfspectralibrary (loads pgf-spectra libraries)
New library 'data' to load spectral lines data, display it in a table or export it to a file. This library provides the commands:
@@ -40,8 +45,13 @@
Previous versions
*** v2.2.0 (21/02/2023) ***
-LSE data renormalized to lower values within TeX capabilities. This prevents 'Dimension too large' errors and subsequent errors in spectrum drawing when using the 'relative intensity' key.
-Added maximum intensities in IR, visible an UV ranges for both data sources (NIST and LSE). Now, when using the 'relative intensity' key, the interval of wavelengths is detected and the respective maximum intensity is used. For example, if the spectrum is within the visible range, say between 400 and 700 nanometers, the maximum visible intensity will be used. The same is true for ranges only in IR or UV ranges. But, if the spectrum to be drawn is in more than one region - for example, from 300 to 1000 or from 400 to 1000 or from 300 to 700 nanometers - the maximum intensity that will be used is defined as the maximum intensity of all data.
+LSE data renormalized to lower values within TeX capabilities. This prevents 'Dimension too large' errors and subsequent errors in spectrum drawing when
+using the 'relative intensity' key.
+Added maximum intensities in IR, visible an UV ranges for both data sources (NIST and LSE). Now, when using the 'relative intensity' key, the interval of
+wavelengths is detected and the respective maximum intensity is used. For example, if the spectrum is within the visible range, say between 400 and 700
+nanometers, the maximum visible intensity will be used. The same is true for ranges only in IR or UV ranges. But, if the spectrum to be drawn is in more
+than one region - for example, from 300 to 1000 or from 400 to 1000 or from 300 to 700 nanometers - the maximum intensity that will be used is defined
+as the maximum intensity of all data.
Fixed some typos in the manual.
*** v2.1.2 (03/07/2021) ***
Modified: trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex 2023-04-28 21:29:55 UTC (rev 66960)
+++ trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex 2023-04-28 21:30:13 UTC (rev 66961)
@@ -20,12 +20,12 @@
\setlength{\parindent}{0pt}
\setlength{\oddsidemargin}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\version{3.0.0}%
+\def\version{3.0.1}%
\def\inversion#1{#1}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[pdfstartview={ },colorlinks=true, linkcolor=black!50!green, citecolor=gray, urlcolor=teal, hyperindex, plainpages=false,bookmarksopenlevel=1,bookmarksopen=true]{hyperref}%
\hypersetup{%Start options on pdf
-pdftitle = {Manual for pgf-spectra (v\inversion{2.2.0})},%
+pdftitle = {Manual for pgf-spectra (v\inversion{3.0.1})},%
pdfsubject = {Emission and absorption lines of the elements},%
pdfkeywords = {Draw the spectrum of elements in a simple way via pgf/TikZ environment. It's possible to draw a desired spectrum, continuous or discrete.},%
pdfauthor = {\textcopyright Hugo Gomes},%
@@ -97,6 +97,11 @@
\vfill\vfill\vfill\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{What's new}
+\vspace{-32pt}\ \subsection*{}{\normalfont\large\bfseries\raisebox{1.25pt}{$\mathbf{\blacktriangleright}$}\ In version 3.0.1}%
+\addcontentsline{toc}{subsection}{In version 3.0.1}%
+\begin{itemize}
+\item Fixed a small bug dealing with the \red{axis label}/\red{axis label text} background color, which occurred when setting a \textit{visible background} with the \red{back} key, e.g.:\\ \resizebox{\linewidth}{\height}{\bs{pgfspectra}\lp\red{element=H,axis label text=\{wavenumber in nanometer\},back=visible50}\rp}
+\end{itemize}
\vspace{-32pt}\ \subsection*{}{\normalfont\large\bfseries\raisebox{1.25pt}{$\mathbf{\blacktriangleright}$}\ In version 3.0.0}%
\addcontentsline{toc}{subsection}{In version 3.0.0}%
\begin{itemize}
@@ -112,7 +117,7 @@
\begin{itemize}
\item\txtcomname{pgfspectradata} to load the desired data.
\item\txtcomname{pgfspectratable} displays loaded data in a table.
-\item\txtcomname{pgfspectrawrite} write loaded data to a file.
+\item\txtcomname{pgfspectrawrite} writes loaded data to a file.
\end{itemize}
\item Some commands from previous versions have been moved to new libraries:
\begin{itemize}
@@ -726,6 +731,7 @@
\\ This command also shares the \red{charge}, \red{Imin}, \red{redshift}, \red{begin} and \red{end} keys with \mbox{\txtspec}, but has its own \red{precision} and \red{unit} keys.
\\ \bs{pgfspectradata} does not produce any \textit{visible} output, but it does the \textit{work} needed by \bs{pgfspectratable} and \bs{pgfspectrawrite} commands. The optional \red{name of data set} argument makes that \textit{name} available for use with \mbox{\bs{pgfspectratable}} or \bs{pgfspectrawrite}.
\\ [4pt]See \hyperlink{commandpgfspectratable}{utilization of \bs{pgfspectratable}} and \hyperlink{commandpgfspectrawrite}{utilization of \bs{pgfspectrawrite}} for examples of the application of this command.
+\vspace{-10pt}%
\subsubsection*{}{\pgfspectralibsubsubsection{The options for \tmpName}}%
\addcontentsline{toc}{subsubsection}{\texorpdfstring{The options for \tmpName}{The options for \textbackslash pgfspectradata}}%
\label{command:pgfspectradata:options}%
Modified: trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex 2023-04-28 21:29:55 UTC (rev 66960)
+++ trunk/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex 2023-04-28 21:30:13 UTC (rev 66961)
@@ -61,7 +61,7 @@
{\if at restonecol\onecolumn\else\clearpage\fi}%
\makeatother%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\pgfspectraMnewinversion#1{new in v#1}%
+\def\pgfspectraMnewinversion#1{\textit{\textcolor{blue}{(new in v#1)}}}%
\def\pgfspectraMchangedinversion#1{changed in v#1}%
\def\bs#1{\textcolor{blue!50!black}{\textbackslash#1}}%
\def\lb{\textcolor{blue!50!black}{\{}}%
Modified: trunk/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty 2023-04-28 21:29:55 UTC (rev 66960)
+++ trunk/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty 2023-04-28 21:30:13 UTC (rev 66961)
@@ -6,9 +6,10 @@
% Hugo Gomes @ 03/07/2021 (v2.1.2)
% Hugo Gomes @ 21/02/2023 (v2.2.0)
% Hugo Gomes @ 25/04/2023 (v3.0.0)
+% Hugo Gomes @ 27/04/2023 (v3.0.1)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}%
-\ProvidesPackage{pgf-spectra}[25/04/2023 pgf-spectra v3.0.0]%
+\ProvidesPackage{pgf-spectra}[27/04/2023 pgf-spectra v3.0.1]%
\RequirePackage{tikz}%
\DeclareOption{LSE}{\input{pgf-spectra.data.LSE.tex}\xdef\pgfspectra at DATASET{1}}%
\DeclareOption{NIST}{\input{pgf-spectra.data.NIST.tex}\xdef\pgfspectra at DATASET{0}}%
@@ -98,7 +99,7 @@
axis ticks/.default=0,% NEW v2.0.0
axis label text/.get=\pgfspectra at axislabeltxt,% NEW v3.0.0
axis label text/.store in=\pgfspectra at axislabeltxt,% NEW v3.0.0
-axis label text/.default={},% NEW v2.3.0
+axis label text/.default={},% NEW v3.0.0
axis label position/.get=\pgfspectra at axislabelposition,% NEW v3.0.0
axis label position/.store in=\pgfspectra at axislabelposition,% NEW v3.0.0
axis label position/.default=center,% NEW v3.0.0
@@ -633,7 +634,8 @@
\edef\pgfspectra at currentxshift{0pt}%
\fi\fi\fi%
{\pgfspectra at axisfont\selectfont\pgfmathparse{ceil(4/3*height("()"))}\xdef\pgfspectra at axisfont@ht{\pgfmathresult pt}}%
- \fill[\pgfspectra at back] (-2.5*\@pgfspectra at axis@height,-2.5*\@pgfspectra at axis@height) rectangle ++(\pgfspectra at width+5*\@pgfspectra at axis@height,-\pgfspectra at axisfont@ht-4pt);
+ \fill[\pgfspectra at axiscolor] (-2.5*\@pgfspectra at axis@height,-2.5*\@pgfspectra at axis@height) rectangle %
+ ++(\pgfspectra at width+5*\@pgfspectra at axis@height,-\pgfspectra at axisfont@ht-4pt);%
\node[\pgfspectra at currentpos,\pgfspectra at axisfontcolor,font=\pgfspectra at axisfont,inner ysep=2pt,inner xsep=1pt] at ([xshift=\pgfspectra at currentxshift]\pgfspectra at currentx,-2.5*\@pgfspectra at axis@height) {\pgfspectra at axislabeltxt};%
\fi%
}%
More information about the tex-live-commits
mailing list.