summaryrefslogtreecommitdiff
path: root/macros/luatex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-21 03:01:39 +0000
committerNorbert Preining <norbert@preining.info>2023-07-21 03:01:39 +0000
commita35bc42b331499fa2a8242f46a0ea88ff681249f (patch)
tree64ada492172faeda1e67e1c3d81bd74fef8926d1 /macros/luatex
parent16b3f7ad411e343f19c82febffd51601bbe90d3f (diff)
CTAN sync 202307210301
Diffstat (limited to 'macros/luatex')
-rw-r--r--macros/luatex/latex/luaplot/README.txt6
-rw-r--r--macros/luatex/latex/luaplot/luaplot.pdfbin147449 -> 147672 bytes
-rw-r--r--macros/luatex/latex/luaplot/luaplot.sty6
-rw-r--r--macros/luatex/latex/luaplot/luaplot.tex27
4 files changed, 24 insertions, 15 deletions
diff --git a/macros/luatex/latex/luaplot/README.txt b/macros/luatex/latex/luaplot/README.txt
index 9c3cf8a38b..fd7337a128 100644
--- a/macros/luatex/latex/luaplot/README.txt
+++ b/macros/luatex/latex/luaplot/README.txt
@@ -1,3 +1,9 @@
+# The luaplot package
+
+# version 1.4
+
+# Authors: Chetan Shirore and Ajit Kumar
+
# Introduction
The luaplot package is developed using Lua to plot graphs of real-valued functions of a real variable in LaTeX. It is developed with the MetaPost system and luamplib and luacode packages. It provides an easy way for plotting graphs of standard mathematical functions. There is no particular environment in the package for plotting graphs. It also works inside floating environments of LaTeX like tables and figures. The compilation time to plot several graphs in LaTeX using the luaplot package is significantly less with LuaLaTeX engine.
diff --git a/macros/luatex/latex/luaplot/luaplot.pdf b/macros/luatex/latex/luaplot/luaplot.pdf
index 1378aa6e29..0befb7166d 100644
--- a/macros/luatex/latex/luaplot/luaplot.pdf
+++ b/macros/luatex/latex/luaplot/luaplot.pdf
Binary files differ
diff --git a/macros/luatex/latex/luaplot/luaplot.sty b/macros/luatex/latex/luaplot/luaplot.sty
index b148c5bdfe..db1b5e1aea 100644
--- a/macros/luatex/latex/luaplot/luaplot.sty
+++ b/macros/luatex/latex/luaplot/luaplot.sty
@@ -1,9 +1,9 @@
% luaplot package
-% version 1.3
+% version 1.4
% Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt.
%Authors: Chetan Shirore and Ajit Kumar
-\ProvidesPackage{luaplot}[1.3]
+\ProvidesPackage{luaplot}[1.4]
\RequirePackage{xkeyval}
\RequirePackage{luacode}
\RequirePackage{tikz}
@@ -110,7 +110,7 @@ for subexp in string.gmatch(\luastring{#2}, '([^,]+)') do
end
local colortbl={}
local countclr = 1
-for funcolor in string.gmatch(\mop@eight, '[^,]*') do
+for funcolor in string.gmatch(\mop@eight, '[^;]*') do
if funcolor == nil or funcolor=='' then funcolor='black' end
colortbl[countclr] = funcolor
countclr = countclr + 1
diff --git a/macros/luatex/latex/luaplot/luaplot.tex b/macros/luatex/latex/luaplot/luaplot.tex
index a0defde6b6..03928af99f 100644
--- a/macros/luatex/latex/luaplot/luaplot.tex
+++ b/macros/luatex/latex/luaplot/luaplot.tex
@@ -102,7 +102,7 @@ withpen<pen expression> | dashed<picture expression>
\begin{lstlisting}[caption={[]}]
clr
\end{lstlisting}
- & Specifies colors for plotting. Colors for different curves are to be given in curly braces separated by comma. The default color is black. Colors can be specified in a variety of ways. Standard colours can be specified by using names such as ``red", ``blue", ``green" etcetera. The RGB format (r,g,b) can also be used. The custom colors can be defined in different ways and can be used with the package. \\
+ & Specifies colors for plotting. Colors for different curves are to be given in curly braces separated by semicolon. The default color is black. Colors can be specified in a variety of ways. Standard colours can be specified by using names such as ``red"; ``blue"; ``green" etcetera. The RGB format (r,g,b) can also be used. \\
\midrule
\begin{lstlisting}[caption={[]}]
plotoptions
@@ -150,30 +150,33 @@ Table \ref{tbl:luaplotex} illustrates plotting graphs of functions with the \ver
xmin=-1, xmax=11,
ymin=-2, ymax=2,
plotpts=1000,
- clr={ 'red, blue' }
+ clr={ 'red; blue' }
]{cos(x),sin(x)}
\end{lstlisting} & \newline \luaplot[
xmin=-1, xmax=11,
ymin=-2, ymax=2,
plotpts=1000,
- clr={ 'red, blue' }
+ clr={ 'red; blue' }
]{cos(x),sin(x)} \\ \midrule
\begin{lstlisting}[caption={[]}]
\luaplot[
-clr={ 'red, blue, green' },
-xmin=-10,xmax=10]
+clr={ 'red; green;
+ (0.58,0.2,0.62)' },
+xmin=-10,xmax=10,
+ymin=-10,ymax=10]
{x^3,-x^3,x}
-\end{lstlisting} & \newline \luaplot[
-clr={ 'red, blue, green' },
-xmin=-10,xmax=10]
+\end{lstlisting} & \newline
+\luaplot[
+clr={ 'red; green; (0.58,0.2,0.62)' },
+xmin=-10,xmax=10,ymin=-10,ymax=10]
{x^3,-x^3,x} \\ \midrule
\begin{lstlisting}[caption={[]}]
\luaplot[xmin=-5,xmax=5,
-clr={'red, blue'}]
+clr={'red; blue'}]
{(2*(x^2)-1)/(x^2-1),1/x}
\end{lstlisting} & \newline \luaplot[xmin=-5,xmax=5,
-clr={'red, blue'}]
+clr={'red; blue'}]
{(2*(x^2)-1)/(x^2-1),1/x} \\
\bottomrule \\
\caption{Plotting graphs with the luaplot command}
@@ -189,7 +192,7 @@ xmax=20,
plotpts=300,
hor='6cm',
ver='5cm',
-clr={'red, blue'},
+clr={'red; blue'},
plotsty={'dashed evenly'},
plotoptions={
[[
@@ -213,7 +216,7 @@ xmax=20,
plotpts=300,
hor='6cm',
ver='5cm',
-clr={'red,blue'},
+clr={'red; blue'},
plotsty={'dashed evenly'},
plotoptions={
[[