blob: c3d0963de2a9e728ccf9686ec1e70b0f8cca0231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
% Linus Romer, published 2018 under LPPL Version 1.3c
% version 1.5 2024-03-31
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bezierplot}[2024/03/21 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
|