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

centered depth label #115

Open
matthijsvk opened this issue Aug 11, 2021 · 4 comments
Open

centered depth label #115

matthijsvk opened this issue Aug 11, 2021 · 4 comments

Comments

@matthijsvk
Copy link

matthijsvk commented Aug 11, 2021

Hi,

the overleaf examples don't produce the images in the github page.
Specifically the z-label is at the bottom, not at the center of the weight tensors.

image

@matthijsvk
Copy link
Author

I found the solution.
In layers/RightBandedBox.sty, change line 63 from this:
\tikzstyle{depthlabel}=[pos=0,text width=14*\z,text centered,sloped]
to:
\tikzstyle{depthlabel}=[pos=0,text width=14*\z,text centered,sloped,midway]

You can do the same in Box.sty

@matthijsvk
Copy link
Author

Though this can cause overlap of the z-label and subsequent layers; it would be handy to have a parameter we can set to choose where the z-label goes

@AlexandreBourrieau
Copy link

Not work for me by editing layers/RightBandedBox.sty
Any other suggestion ??
Thanks !

@2243108785
Copy link

图片中的标题想居中要修改layers文件夹下的Box.sty和RightBandedBox.sty里的pos(从0改到0.5)
45行 \tikzstyle{depthlabel}=[pos=0.5,text width=14*\z,text centered,sloped]
63行 \tikzstyle{depthlabel}=[pos=0.5,text width=14*\z,text centered,sloped]

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

3 participants