ftsrg / ingraph

Incremental view maintenance for openCypher graph queries.
http://docs.inf.mit.bme.hu/ingraph/
Eclipse Public License 1.0
48 stars 10 forks source link

Join symbols do not work in LaTeX caption #348

Closed szarnyasg closed 5 years ago

szarnyasg commented 6 years ago

The latest tikz-based join symbols result in an error when used for table captions.

szarnyasg commented 5 years ago

It seems that the trouble is that LaTeX indexes figure captions. The solution is to add an additional custom caption as \caption[...]{...}.

A placeholder also works:

\caption[]{Social network example represented graphically, formally, and as nested relations. $\join$}

image

marci543 commented 5 years ago

Another solution is to use \DeclareRobustCommand for the TikZ-based commands. This solution works for captions, but not for chapter titles. You can use the short title in this case: \chapter[Short for TOC]{Long description with $\join$}

marci543 commented 5 years ago

Another solution for PDF bookmarks: \DeclareRobustCommand{\TikzStuff}{\texorpdfstring{\tikz\node{pgf};}{replacement text}}