我想在命令中添加一些文本,\AddToShipoutPictureBG
所需的输出会以红色打印在图片上。我该怎么做?
我试过使用Foot left \hfill \page \hfill Foot right
,但是不行。第二个问题是Foot left
没有按照规则居中。
平均能量损失
\documentclass[11pt,twocolumn,landscape,footinclude=false]{scrbook}
\usepackage{eso-pic}
\usepackage{eso-pic,rotating,xcolor}
\AddToShipoutPictureBG{\AtPageLowerLeft{%
\rule{\dimexpr
0.8cm-2pt}{\paperheight}}
\AtPageLowerLeft{\color{white}\sffamily\rotatebox{90}{Foot left}}
}
\begin{document}
Test
\end{document}
答案1
下面的代码运行良好。
\documentclass[11pt,twocolumn,landscape,footinclude=false]{scrbook}
\usepackage{eso-pic}
\usepackage{eso-pic,rotating,xcolor}
\AddToShipoutPictureBG{\AtPageLowerLeft{%
\rule{\dimexpr
0.8cm-2pt}{\paperheight}}
\AtPageLowerLeft{\hspace{0.1cm}
\color{white}\sffamily\rotatebox{90}{\parbox{\paperheight}{\quad Foot left \hfill 1 \hfill Foot right h\quad\:}}}
}
\begin{document}
Test
\end{document}