HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.74k stars 2.84k forks source link

Captioning the box will create a black dot only shown on Windows #8

Closed omegahh closed 5 years ago

omegahh commented 5 years ago

Hi, @HarisIqbal88

I am back again 😸 ! I found that labeling a caption will make a black dot by the following code. Though it's invisible on my Mac OS and Ubuntu, I found it when I open the pdf on Windows, using Adobe reader exactly.

\path (\LastEastx/2,-\y/2,+\z/2) + (0,-25pt) coordinate (cap) 
        edge ["\textcolor{black}{ \bf \caption}"',captionlabel](cap) ; %Block caption/pic object label

I am wondering that the way you make labels by adding a edge, but the tutorials in TiKz always use node, which seems malfunctioned in your repo. (Maybe I use the node syntax wrongly)

default

HarisIqbal88 commented 5 years ago

Hi, I was not aware of this behaviour. Also, there is no particular reason to use this way of creating labels. You can use node or other options mentioned in #7

martinlindstrom commented 2 years ago

Hi @HarisIqbal88 and cheers for a lovely package, it has saved me much headache drawing neural networks.

I also see the black dot with Texmaker (PDFLaTeX) on Ubuntu when I am not using a caption for a Box. I found that if you comment out the following three lines from Box.sty the problem disappears.

\tikzstyle{captionlabel}=[text width=15*\LastEastx/\scale,text centered]
\path (\LastEastx/2,-\y/2,+\z/2) + (0,-25pt) coordinate (cap) edge "\textcolor{black}{ \bf \caption}"',captionlabel ; %Block caption/pic object label