final double lgth2 = arrow.isInverted() ? length*2 : 0.;
path.add(new SVGPathSegMoveto(lgth2, 0., false));
path.add(new SVGPathSegLineto(-length+lgth2, width/2., false));
path.add(new SVGPathSegLineto(-length+inset+lgth2, 0., false));
path.add(new SVGPathSegLineto(-length+lgth2, -width/2., false));
path.add(new SVGPathSegClosePath());
path.add(new SVGPathSegMoveto(-length+lgth2, 0., false));
path.add(new SVGPathSegLineto(-length*2+lgth2, width/2., false));
path.add(new SVGPathSegLineto(-length*2+inset+lgth2, 0., false));
path.add(new SVGPathSegLineto(-length*2+lgth2, -width/2., false));
path.add(new SVGPathSegClosePath());
marker.appendChild(arrowSVG);
arrowSVG.setAttribute(LNamespace.LATEXDRAW_NAMESPACE+':'+LNamespace.XML_ARROW_SIZE_NUM, String.valueOf(arrow.getArrowSizeNum()));
arrowSVG.setAttribute(SVGAttributes.SVG_FILL, CSSColors.INSTANCE.getColorName(isShadow ? shape.getShadowCol() : shape.getLineColour(), true));
arrowSVG.setAttribute(SVGAttributes.SVG_D, path.toString());