TransWikia.com

Dimension too large/Arithmetic overflow with three (very simple) strands

TeX - LaTeX Asked on January 19, 2021

I’m trying to draw a very simple braid diagram, and the below code "half successfully" builds a PDF with the desired output (but only just before the compilation stops from the below error), but I can’t use this code in any actual document since it always terminates with Dimension too large and Arithmetic overflow errors at end{knot}. Deleting one or two of the strands seems to make it compile fine (it depends which ones, it seems like).

  1. Why does this error happen?
  2. How can I fix it? (Really preferably using the knots package).

documentclass{article}
usepackage{tikz}
usetikzlibrary{knots}
begin{document}

  begin{tikzpicture}
    node at (0,0) {$bullet$};
    node at (1,0) {$bullet$};
    node at (1.5,0) {$bullet$};
    begin{knot}
      strand (1,0) to (0,-3);
      strand (1.5,0) to (0.5,-3);
      strand (0,0) to (1.5,-3);
    end{knot}
    node at (0,-3) {$bullet$};
    node at (0.5,-3) {$bullet$};
    node at (1.5,-3) {$bullet$};
  end{tikzpicture}

end{document}

One Answer

Not a full answer to my question, but the following code works fine for me (with no errors) (thanks to this tweet). I can use this to get the diagram I want, but I still have no idea what's causing the error in the first place, and would like to know...


begin{tikzpicture}[knot gap=7]
  draw[knot] (1,0) to (0,-3);
  draw[knot] (1.5,0) to (0.5,-3);
  draw[knot] (0,0) to (1.5,-3);
  node at (0,0) {$bullet$};
  node at (1,0) {$bullet$};
  node at (1.5,0) {$bullet$};
  node at (0,-3) {$bullet$};
  node at (0.5,-3) {$bullet$};
  node at (1.5,-3) {$bullet$};
end{tikzpicture}

Answered by Tim on January 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP