I know how to make a block diagram in TikZ. With \node[block] ...
, one can make rectangular blocks:
block/.style = {draw, fill=blue!20, rectangle,
minimum height=3em, minimum width=6em}
I would like to include triangular blocks in a block diagram. These represent a gain, i.e. a multiplication by a constant. So far, I only found this information about changing the block
shape. But as a gain is common block diagram component, there should be a fast and easy way.
isosceles triagle
orregular polygon
shapes.block
is not a standard shape. How is it defined? You can use theshapes.geometric
library for the shapes Zarko mentioned. Please provide a minimal working example.\usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \tikzset{block/.style = {draw, fill=blue!20, rectangle, minimum height=3em, minimum width=6em}, mytriangle/.style = {draw, fill=blue!20, isosceles triangle, node distance=1cm}, }
Both comments helped me equally. As you were the first contributer, I invite you to reformulate your comment as an answer, so I can accept it.