Redian新闻
>
How to write text into the background?
avatar
How to write text into the background?# TeX - TeX电子排版系统
t*i
1
I want to write text "DRAFT" on every page of my draft, usually very big and
gray colored and run cross one whole page from the left bottom to upper
right.
Can someone enlighten me with sample code? Thanks.
avatar
t*i
3
Now I have been able to define a new command \BackgroundText so that I can
put teh desired text in gray into the background. However, how to have it
automatically written once for every page? Currently, I have to call the
command every time I need it.
\usepackage{color, fancybox}
\definecolor{LightGray}{gray}{0.85}
\newcommand{\BackgroundText}{%
\boxput{\rotatebox{45}{\scalebox{5.5}{%
\textcolor{LightGray}{DRAFT}}}}
}

and

【在 t**i 的大作中提到】
: I want to write text "DRAFT" on every page of my draft, usually very big and
: gray colored and run cross one whole page from the left bottom to upper
: right.
: Can someone enlighten me with sample code? Thanks.

avatar
t*i
4
FIXED!
\usepackage{eso-pic}
\usepackage{color}
\AddToShipoutPicture{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{45}{\textsf{\textbf{\textcolor[gray]{0.90}{DRAFT}}}}}}%
}
}

【在 t**i 的大作中提到】
: Now I have been able to define a new command \BackgroundText so that I can
: put teh desired text in gray into the background. However, how to have it
: automatically written once for every page? Currently, I have to call the
: command every time I need it.
: \usepackage{color, fancybox}
: \definecolor{LightGray}{gray}{0.85}
: \newcommand{\BackgroundText}{%
: \boxput{\rotatebox{45}{\scalebox{5.5}{%
: \textcolor{LightGray}{DRAFT}}}}
: }

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。