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

请问如何更改min封面页图片和透明度 #177

Closed
astridwang76 opened this issue Jan 6, 2025 · 4 comments
Closed

请问如何更改min封面页图片和透明度 #177

astridwang76 opened this issue Jan 6, 2025 · 4 comments
Labels
type/question [Transferred] Go to Discussions

Comments

@astridwang76
Copy link

我如下几个问题:
1.如果使用max主题,如何使封面页背景透明度高一些
2.使用min主题,如何将背景点阵改成自定义图片(线稿之类的)
谢谢大家🙏

@LogCreative LogCreative added the type/question [Transferred] Go to Discussions label Jan 6, 2025
@LogCreative
Copy link
Contributor

1.如果使用max主题,如何使封面页背景透明度高一些

max主题此处属于背景头图,可以直接使用 \titlegraphic{\sjtubg[opacity=0.1]} 或修改下面代码调低透明度:

\defbeamertemplate*{sjtutitlegraphic}{max}{\sjtubg[opacity=0.2]}

2.使用min主题,如何将背景点阵改成自定义图片(线稿之类的)

min主题此处采用的是程式化生成的印记矩阵,在代码中具体位置如下:

SJTUBeamer/sjtucover.sty

Lines 140 to 142 in 579b4c1

\stamparray{20pt}
{(-0.2*\the\paperwidth,-1*\the\paperheight)}
{(1*\the\paperwidth, 0.2*\the\paperheight)}

可以替换成 \node at (水平位置, 垂直位置) {\includegraphics[width=宽度]{bg.png}} 设置成你自己的图片。

@astridwang76
Copy link
Author

谢谢作者的回复。
1.max透明度我两处都改成0.1,无变化
2.min背景替换成了如下代码(底图标准16:9),但并没有在封面页显示,现在是空白背景的效果
\node at (1\paperwidth, 1\paperheight) {\includegraphics[width=\paperwidth, height=\paperheight]{vi/sipacover.png}};

@LogCreative
Copy link
Contributor

LogCreative commented Jan 7, 2025

1.max透明度我两处都改成0.1,无变化

部分阅读器存在该问题,可以换一个阅读器试一下:#97

2.min背景替换成了如下代码(底图标准16:9),但并没有在封面页显示,现在是空白背景的效果

尝试使用

\node [below right] at (0,0.12\paperheight) {\includegraphics[width=\paperwidth,height=\paperheight]{vi/sjtu-vi-sjtuphoto.jpg}};

@astridwang76
Copy link
Author

已成功解决。谢谢作者!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question [Transferred] Go to Discussions
Projects
None yet
Development

No branches or pull requests

2 participants