Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeling Blocks will create a solid line #7

Closed
omegahh opened this issue Dec 26, 2018 · 3 comments
Closed

Labeling Blocks will create a solid line #7

omegahh opened this issue Dec 26, 2018 · 3 comments

Comments

@omegahh
Copy link

omegahh commented Dec 26, 2018

I tried to let the Box block's edges be invisible via fill=\fill, draw=\fill in Box.sty.

Actually, It only let edges AH, AD, DE, CD, EF and HE invisible.

Finally I found that \path (b) edge ["\bf\xlabel"', midway] (c); created a solid line in BC, so do AB and CF.

I have no idea to fix this and I don't know why the solid lines emerged though no pic action acted in above code.

Furthermore, I want customize the style of draw line, but nothing changes after I put thin into "box" style setting.

@omegahh
Copy link
Author

omegahh commented Dec 26, 2018

My latex environment is Mactex 2017, does it matter?

@HarisIqbal88
Copy link
Owner

HarisIqbal88 commented Dec 26, 2018

I tried to let the Box block's edges be invisible via fill=\fill, draw=\fill in Box.sty.

It does not make the edge invisible, it makes it the same colour as the fill. This is not important if opacity is high, but try with a low opacity and you get your edges visible.

Finally I found that \path (b) edge ["\bf\xlabel"', midway] (c); created a solid line in BC, so do AB and CF.

Yes, in my code every edge that is there to create a label(except for caption) also creates a line.

I don't know why the solid lines emerged though no pic action acted in above code.

As far as I understand, it is the default behaviour of the edge which you will notice if you run the code below. If you want to remove edges, I can think of 2 ways:

\documentclass[border=15pt, multi, tikz]{standalone}
\usetikzlibrary{quotes}

\begin{document}
\begin{tikzpicture}
% With Visible Edge 
\path (0,0,0) edge["Some text 1."',pos=0.5,text width=50,text centered] (4,0,0); 
% With edge opacity=0
\path (0,1,0) edge["Some text 2."',pos=0.5,text width=50,text centered, opacity=0, text opacity=1] (4,1,0); 
% With edge between 1 node
\path (0,2,0) edge["Some text 3."',text width=50,text centered] (0,2,0);
 
\end{tikzpicture}
\end{document}

@omegahh
Copy link
Author

omegahh commented Dec 27, 2018

Yes, your replies help me a lot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants