From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 macros/luatex/latex/bezierplot/bezierplot.sty | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 macros/luatex/latex/bezierplot/bezierplot.sty

(limited to 'macros/luatex/latex/bezierplot/bezierplot.sty')

diff --git a/macros/luatex/latex/bezierplot/bezierplot.sty b/macros/luatex/latex/bezierplot/bezierplot.sty
new file mode 100644
index 0000000000..94be30b4dc
--- /dev/null
+++ b/macros/luatex/latex/bezierplot/bezierplot.sty
@@ -0,0 +1,17 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bezierplot}[2019/06/18 bezierplot]
+\RequirePackage{xparse}
+\RequirePackage{iftex}
+\ifLuaTeX
+ \directlua{require("bezierplot")}
+ \DeclareExpandableDocumentCommand{\xbezierplot}{O{-5} O{5} O{-5} O{5} O{0} O{tikz} m}{%
+  \directlua{tex.sprint(bezierplot("#7","#1","#2","#3","#4","#5","#6"))}
+  }
+\else
+ \let\xpandblinpt\@@input
+ \DeclareExpandableDocumentCommand{\xbezierplot}{O{-5} O{5} O{-5} O{5} O{0} O{tikz} m}{%
+  \xpandblinpt|"bezierplot '#7' '#1' '#2' '#3' '#4' '#5' '#6'"
+ }
+\fi
+\providecommand\bezierplot{\romannumeral`\^^@\xbezierplot}
+\endinput
\ No newline at end of file
-- 
cgit v1.2.3

