# ----------------------------------------------------------------------------- # cadcube.cwl # Copyright (c) 2026 Jannik Svenson <94602613+janniksvenson@users.noreply.github.com> # # This work may be distributed and/or modified under the # conditions of the LaTeX Project Public License, either version 1.3c # of this license or (at your option) any later version. # The latest version of this license is in # https://www.latex-project.org/lppl.txt # and version 1.3c or later is part of all distributions of LaTeX # version 2008 or later. # # This work has the LPPL maintenance status `author-maintained'. # The Current Maintainer of this work is Jannik Svenson. # This work consists of the files cadcube.sty, cadcube.tex, cadcube.pdf, cadcube.cwl, README.md, and the examples/ directory. # ----------------------------------------------------------------------------- #include:tikz #include:xcolor # User-facing commands \cadcube \cadcube[options%keyvals] \cadcubeoverlay{content} \cadcubeoverlay[options%keyvals]{content} \cadcubeset{options%keyvals} #keyvals:\cadcube,\cadcubeoverlay,\cadcubeset # Presets preset=#cartesian,cartesian-uvw,cylindrical,spherical,planar,polar # Views & Camera view=#iso,iso+++,iso+-+,iso--+,iso-++,iso+--,iso++-,iso-+-,iso---,iso+x+y,dimetric,dimetric+++,trimetric,trimetric+++,cabinet,cabinet+++,cavalier,cavalier+++,military,military+++,+x,-x,+y,-y,+z,-z,xy,xz,yz,cam,cam(%,%,%),oblique,oblique(%,%,%,%),free up=#x,y,z,+x,+y,+z,-x,-y,-z cam phi=% cam theta=% cam roll=% obl v=% obl alpha=% obl axis=#x,y,z,-x,-y,-z obl roll=% left handed#true,false # Placement & Sizing size=% location=#north,south,east,west,north east,north west,south east,south west,center,(%,%) margin=% margin X=% margin Y=% # Visibility Toggles show axes#true,false show planes#true,false show shape#true,false show labels#true,false show face labels#true,false show negative axes#true,false show arrow tips#true,false show vector tips#true,false pie slice#true,false grayscale#true,false label math mode#true,false # Geometry & Shapes shape=#cube,square,disk,cylinder,sphere,none shape scale=% plane scale=% flat scale=% arc radius=% axes type=#3D,2D,cylindrical,spherical,polar # Background background color=% background shape=#circle,rectangle,rounded background margin=% background margin X=% background margin Y=% background corner radius=% # Arrows & Vectors arrow length=% arrow line width=% arrow tip=% arrow tip style=% arrow tip length=% arrow tip width=% arrow tip scale=% inner axis style={%} outer axis style={%} # Labels & Typography labels={%} label X=% label Y=% label Z=% label pos=#end,mid label font=% label font size=% font size=% label scale=% label inner sep=% label flat sep=% flat gap=% # Face Labels faces={%<+X,+Y,+Z%>} faces all={%<+X,-X,+Y,-Y,+Z,-Z%>} face text +X=% face text -X=% face text +Y=% face text -Y=% face text +Z=% face text -Z=% face label font=% face font size=% face label font size=% face label scale=% face label inner sep=% face label col=% # Colors & Opacity col X=% col Y=% col Z=% col plane XY=% col plane XZ=% col plane YZ=% col shape edge=% marker col=% opacity axes=% opacity negative axes=% opacity front=% opacity back=% opacity planes=% darken mix=% #endkeyvals