summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty
blob: 66f404dfd348edec77797fad7e948a50b3898549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bezierplot}[2018/04/12 bezierplot]
\RequirePackage{xparse}
\RequirePackage{iftex}
\ifLuaTeX
 \directlua{require("bezierplot")}
 \DeclareExpandableDocumentCommand{\xbezierplot}{O{-5} O{5} O{-5} O{5} m}{%
  \directlua{tex.sprint(bezierplot("#5",#1,#2,#3,#4))}
  }
\else
 \let\xpandblinpt\@@input
 \DeclareExpandableDocumentCommand{\xbezierplot}{O{-5} O{5} O{-5} O{5} m}{%
  \xpandblinpt|"bezierplot '#5' #1 #2 #3 #4"
 }
\fi
\providecommand\bezierplot{\romannumeral`\^^@\xbezierplot}
\endinput