summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-28 21:30:13 +0000
committerKarl Berry <karl@freefriends.org>2023-04-28 21:30:13 +0000
commit6ba8df2b0978026d18617cd2ddc0982a5fdacae4 (patch)
tree5314346ba7b0e38d10245b5e0df170c96c398b9b /Master
parentfe40bf9586caa7b745ec222963f554b77fc12d41 (diff)
pgf-spectra (28apr23)
git-svn-id: svn://tug.org/texlive/trunk@66961 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-spectra/README24
-rw-r--r--Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdfbin2383926 -> 2384961 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex12
-rw-r--r--Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex2
-rw-r--r--Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty8
5 files changed, 32 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-spectra/README b/Master/texmf-dist/doc/latex/pgf-spectra/README
index 7787d2883c9..3f4fef79e28 100644
--- a/Master/texmf-dist/doc/latex/pgf-spectra/README
+++ b/Master/texmf-dist/doc/latex/pgf-spectra/README
@@ -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 @@ The drawing is made with the TikZ package and is based in the pst-spectra extens
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) ***
diff --git a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf
index 724d67d9d38..e003e00f809 100644
--- a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf
+++ b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex
index c76b081853d..16616704042 100644
--- a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex
+++ b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual.tex
@@ -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 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision},
\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 @@ pdfproducer = {pdfeTeX-1.\the\pdftexversion\pdftexrevision},
\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 library implements a command that allows the user to extract the spectral l
\\ 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}%
diff --git a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
index 6d4a5052805..8487334d358 100644
--- a/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
+++ b/Master/texmf-dist/doc/latex/pgf-spectra/pgf-spectraManual_defs.tex
@@ -61,7 +61,7 @@
{\if@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}{\{}}%
diff --git a/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty b/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty
index e04320b7ff3..308c9bcc780 100644
--- a/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty
+++ b/Master/texmf-dist/tex/latex/pgf-spectra/pgf-spectra.sty
@@ -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@DATASET{1}}%
\DeclareOption{NIST}{\input{pgf-spectra.data.NIST.tex}\xdef\pgfspectra@DATASET{0}}%
@@ -98,7 +99,7 @@ axis ticks/.store in=\pgfspectra@axisticks,% NEW v2.0.0
axis ticks/.default=0,% NEW v2.0.0
axis label text/.get=\pgfspectra@axislabeltxt,% NEW v3.0.0
axis label text/.store in=\pgfspectra@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@axislabelposition,% NEW v3.0.0
axis label position/.store in=\pgfspectra@axislabelposition,% NEW v3.0.0
axis label position/.default=center,% NEW v3.0.0
@@ -633,7 +634,8 @@ precision=1,unit={}% NEW v3.0.0 (for data library)
\edef\pgfspectra@currentxshift{0pt}%
\fi\fi\fi%
{\pgfspectra@axisfont\selectfont\pgfmathparse{ceil(4/3*height("()"))}\xdef\pgfspectra@axisfont@ht{\pgfmathresult pt}}%
- \fill[\pgfspectra@back] (-2.5*\@pgfspectra@axis@height,-2.5*\@pgfspectra@axis@height) rectangle ++(\pgfspectra@width+5*\@pgfspectra@axis@height,-\pgfspectra@axisfont@ht-4pt);
+ \fill[\pgfspectra@axiscolor] (-2.5*\@pgfspectra@axis@height,-2.5*\@pgfspectra@axis@height) rectangle %
+ ++(\pgfspectra@width+5*\@pgfspectra@axis@height,-\pgfspectra@axisfont@ht-4pt);%
\node[\pgfspectra@currentpos,\pgfspectra@axisfontcolor,font=\pgfspectra@axisfont,inner ysep=2pt,inner xsep=1pt] at ([xshift=\pgfspectra@currentxshift]\pgfspectra@currentx,-2.5*\@pgfspectra@axis@height) {\pgfspectra@axislabeltxt};%
\fi%
}%