olsak / OpTeX

OpTeX - LuaTeX format with extended Plain TeX macros
http://petr.olsak.net/optex/
35 stars 13 forks source link

Add basic TikZ compatibility layer #63

Closed vlasakm closed 3 years ago

vlasakm commented 3 years ago

This is notably incomplete, because a similar pgf.opm would be needed for completeness. This should however suffice for regular usage.

vlasakm commented 3 years ago

This can be used as a test:

\fontfam[lm]
\load[tikz]

% From PGF manual, section 17.13.2 "Referencing the Current Page Node - Absolute Positioning"
\tikzpicture [remember picture,overlay]
\draw [line width=1mm,opacity=.25] (current page.center) circle (3cm);
\endtikzpicture

\bye
olsak commented 3 years ago

I used your code, thank you.