0

I'm try to implement this solution to my document. On TexStudio, it works well however on Overleaf it doesn't compile. It complains about inconsistent { and } after tracing my code I noticed one of my { is being ignored see picture below.

enter image description here

In line 89, the { after \pgfkeysvalueof is being ignored and causing compilation errors. The same applies in line 90.

Paul Gessler
  • 29,607
  • 2
    This is because the code checker isn't a full LaTeX parser, so it doesn't know that \begin{scope} and \end{scope} are actually matched properly based on the usage of the TikZ keys. You can disable code check for portions of code that are problematic: https://www.overleaf.com/learn/how-to/Code_Check#Disabling_Code_Check_for_part_of_a_file – Paul Gessler Sep 09 '20 at 18:10

1 Answers1

1

As suggested by Paul, I was able to disable code checking for the problematic segment of code.