eso-pic の背景にある Rotatebox は scrbook ではページ全体を回転しますが、pdfLaTeX では回転しません

eso-pic の背景にある Rotatebox は scrbook ではページ全体を回転しますが、pdfLaTeX では回転しません

パッケージを使用して、eso-picドキュメント ( -class) の背景にドラフト サインを作成していますscrbook。サインはページ上で 45° 回転しています。すべて正常に動作します。TeXLiveKileを と共に使用しますSuse 12.3

ドキュメントにとTikZが必要なので、 ( ) -> ( ) -> ( ) を使用して PDF を作成します。pgfplotsLaTeXlatex -shell-escape -interaction=nonstopmode '%source'DVItoPSdvips -o '%S.ps' '%S.dvi'PStoPDFps2pdf '%S.ps' '%S.pdf'

今度は、各ページの左側にドラフト著作権通知を追加で挿入する必要があります。 元のドラフト シンボルと同じ方法で作成します。 ただし、各\part{title}タイトル ページは PDF ビューアーで横長モードになります。 これは、MWE をpdfLaTeX( pdflatex -interaction=nonstopmode '%source') でコンパイルすると発生しません。 の場合も発生しませんscrreprt

結果LateXは次のとおりです。 LaTeX の結果:

結果はpdfLaTeX次のとおりです。

pdfLaTeX 結果:

-packageを使用すると、rotating同様の動作が見られました。このスレッド@Mico によると、graphicxパッケージは dvips と一緒に使用することを意図しておらず、PDF 形式を直接生成する TeX エンジン/形式でのみ使用する必要があるとのことです。ここでもこれが問題なのでしょうか? スレッドで言及されている回避策は私のケースでは機能しません。これを修正する他の方法はありますか?

\documentclass[openany]{scrbook}

\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{type1cm,eso-pic}
\usepackage{xcolor}

\makeatletter
\AddToShipoutPicture{%
\setlength{\@tempdimb}{.5\paperwidth}%
\setlength{\@tempdimc}{.5\paperheight}%
\setlength{\unitlength}{1pt}%
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
% Draft
%\makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}% <- it doesn't happen here
%{\fontsize{3cm}{3cm}\selectfont{Draft}}}}%
% Copyright
\makebox(-500,-0){\rotatebox{90}{\textcolor[gray]{0.75}% <- it does here
{\fontsize{0.7cm}{0.7cm}\selectfont{Draft \textcopyright Copyright \the\year{} - Copyright owner}}}}
}%
}
\makeatother

\begin{document}

\part{Part 1}

\chapter{Chapter 1}

\section{Section 1}

\lipsum[1-2]

\section{Section 2}

\lipsum[1-2]

\chapter{Chapter 2}

\lipsum[1-4]

\part{Part 2}

\chapter{Chapter 1}

\lipsum[1-6]

\chapter{Chapter 2}

\lipsum[1-6]

\end{document}

答え1

@Ulrike Fischer のおかげで、これがうまくいきました:ps2pdf -dAutoRotatePages=/None '%S.ps' '%S.pdf'

関連情報