Modify PMOS definition in CircuiTikz
up vote
4
down vote
favorite
I'm trying to modify the pmos definition in circuitikz as per this answer but I cannot get the document to compile. I am using Overleaf V2 and I get this error. MWE: documentclass{article} usepackage{tikz} usepackage{circuitikz} makeatletter pgfcircdeclaremos{pmos}{ anchor{S}{ northeast } anchor{source}{ northeast } anchor{D}{ northeast pgf@y=-pgf@y } anchor{drain}{ northeast pgf@y=-pgf@y } }{% pgfpathmoveto{pgfpoint{pgf@circ@res@right}{pgf@circ@res@up}} pgfpathlineto{pgfpoint{pgf@circ@res@right} {pgfkeysvalueof{/tikz/circuitikz/tripoles/pmos/gate height}pgf@circ@res@up}}