pgf

    3熱度

    2回答

    我想用宏創建我的樹,但是我沒有得到我想要的結果。下面是一個小例子: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \newcommand{\LeafNode}[1]{% child {node {#1}} } \newcommand{\InnerNode}[3]{% child

    15熱度

    2回答

    我試圖在我的圖上劃一條水平線。線的Y座標應位於點a和b之間(a低於b)。該行的左右端點位於tikzpicture的邊界框上。以下是我現在如何使用路口算子: \coordinate (h0) at ($(a.north)!0.5!(b.south)$); \draw (h0 -| current bounding box.west) -- (h0 -| current bounding box.e