Skip to content
Discussion options

You must be logged in to vote

Like this?

#import "@preview/cetz:0.3.1": canvas, draw
#import draw: line, content, circle, rect, bezier, set-style

#set page(width: auto, height: auto, margin: 3pt)

#canvas({
  set-style(content: (frame: "rect", stroke: none),
            mark: (offset: .1))
  
  // Define spacing constants
  let node-spacing = 2
  let layer-spacing = 2
  let vertical-spacing = 1.3

  // Input nodes
  let y1 = 6
  let y_dots_1 = y1 - vertical-spacing
  let yj = y_dots_1 - vertical-spacing
  let y_dots_2 = yj - vertical-spacing
  let yn = y_dots_2 - vertical-spacing
  let arrow_style = (end: "stealth", fill: black, scale: 0.7)

  // First column (input vectors)
  content((0, y1), $arrow(e)_1$, name: "ar…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@janosh
Comment options

@janosh
Comment options

@johannes-wolf
Comment options

@brynhum
Comment options

@johannes-wolf
Comment options

Answer selected by janosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants