powerdot 在 smartboard papersize 中产生垂直时钟

powerdot 在 smartboard papersize 中产生垂直时钟

我正在尝试编译一个仅包含标题的基本页面。

我已经通过全局选项添加了时钟。

当我在“屏幕”纸张尺寸的{present,landscape}设置中对其进行编译时,一切都很好。

然而,当以“智能板”纸张尺寸编译时,它会产生垂直时钟。

在编译过程中,我按此顺序执行 latex > dvips > ps2pdf。

我该如何修复它?

我在下面添加了最少的非工作代码。

\documentclass[paper=smartboard, style=horatio, orient=landscape, size=17pt, clock]{powerdot}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\title{Title}
\author{Author}
\date{Date}

\begin{document}
\maketitle
\end{document}

答案1

这看起来像是 中的一个错误powerdot。在定位时钟的代码中,有一个方向检查( 中的第 653 行powerdot.cls),它错误地导致时钟根据设置旋转smartboard

您可以使用软件包修补该行,xpatch以将使用该选项的文件的旋转设置为 0 度smartboard

梅威瑟:

\documentclass[paper=smartboard, style=horatio, orient=landscape, size=17pt, clock]{powerdot}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\pd@sl@de}{\ifnum\pd@orient=\z@ 90\else 0\fi}{\ifnum\pd@orient=\z@ 0\else 0\fi}{}{}
\makeatother
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\title{Title}
\author{Author}
\date{Date}

\begin{document}
\maketitle
\end{document}

结果:

在此处输入图片描述

相关内容