CTeX-org / forum

A temporarily alternate forum of `bbs.ctex.org`
https://t.me/chinesetex
Apache License 2.0
211 stars 16 forks source link

3.1版编译后的幻灯片不正常 #331

Open Intel80686 opened 3 weeks ago

Intel80686 commented 3 weeks ago

检查清单

操作系统

windows 10

TeX 发行版

3.1

描述问题

3.1版编译后变成一般的pdf文件,不是幻灯片格式

最小工作示例(MWE)

\documentclass[a4paper]{article} \usepackage[screen,panelright,gray,paneltoc,sectionbreak]{pdfscreen}%缺省状态为Blue,学术报告推荐采用"gray"。 \usepackage{multimedia} \usepackage{tabls} \usepackage{amsmath} \usepackage{xspace,colortbl} \usepackage[indentfirst]{titlesec} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{CJK} \usepackage{pause} % loads also color.sty \usepackage{color} \usepackage{times} \usepackage{type1cm} \usepackage{background} \usepackage{geometry} \usepackage{hyperref} \usepackage[display]{texpower} \usepackage{hypbmsec} \usepackage{manfnt} \usepackage{esvect} \parindent30pt \renewcommand{\baselinestretch}{1.5} \margins{15mm}{15mm}{15mm}{15mm} %定义页边的空白尺寸,\margins{left}{right}{top}{bottom}。 \screensize{180mm}{240mm} %定义屏幕尺寸,\screensize{height}{width},通常为180mm240mm。 \overlay{Overlays/overlay\theslideoverlay} %多种overlay图形切换。注释该行,将得到无框SLIDE效果。 \paneloverlay{Overlays/but.pdf} %加入导航面板.pdf。 \urlid{202.116.32.4} %主页链接。 \def\pfill{\vskip8pt} %导航面板项目行行距。 \titleformat{\section}[block]{\fontfamily{phv}\fontseries{b}\selectfont% \CJKfamily{hei}\Huge}{% \fontfamily{phv}\fontseries{b}\fontsize{0.9em}{0.3em}\selectfont \color{section1}\thesection% }{0.3em}% {\color{section1}} \titleformat{\subsection}[hang]{\color{section2}\CJKfamily{li}\huge} {\LARGE \thesubsection}{0.5em}{}{} \titlespacing{\subsection}{0pt}{0.5ex plus .1ex minus .2ex}{\wordsep} \newcommand\ENfont[6]{\bgroup% \fontfamily{#1}\fontseries{#2}\fontshape{#3}\fontsize{#4}{#4}% \selectfont\color{#5}{#6}\egroup} \newcommand\CNfont[4]{\bgroup% \fontsize{#1}{#1}\selectfont% \color{#2}{\CJKfamily{#3}#4}\egroup} \newcommand\pkg[1]{\bgroup\fontfamily{phv}\selectfont{#1}\egroup} \newcommand\env[1]{\bgroup\fontfamily{phv}\fontshape{it}\selectfont% \color{blue}#1\egroup} \newcommand\pdflatex{\textsf{pdf\LaTeX}} \newcommand\cjk{\bgroup\fontfamily{phv}\selectfont{CJK}\egroup} \newcommand\cct{\bgroup\fontfamily{phv}\selectfont{CCT}\egroup} \hypersetup{CJKbookmarks=true} \newcommand{\song}{\CJKfamily{song}} % 宋体 (Windows自带simsun.ttf) \newcommand{\fs}{\CJKfamily{fs}} % 仿宋体 (Windows自带simfs.ttf) \newcommand{\kai}{\CJKfamily{kai}} % 楷体 (Windows自带simkai.ttf) \newcommand{\hei}{\CJKfamily{hei}} % 黑体 (Windows自带simhei.ttf) \newcommand{\li}{\CJKfamily{li}} % 隶书 (Windows自带simli.ttf) \newcommand{\you}{\CJKfamily{you}} % 幼圆 (Windows自带simyou.ttf) \newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\yichu}{\fontsize{32pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaoyihao}{\fontsize{24pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\erhao}{\fontsize{21pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont} % 字号设置

\begin{document} \begin{CJK*}{GBK}{hei} %用汉字,定义”黑体“为文档字体。 \CJKtilde \paneltitlepagename{\begin{CJK}{GBK}{hei}\liuhao 标页\end{CJK}} \panlabstractname{\begin{CJK}{GBK}{hei}\liuhao 摘页\end{CJK}} \panelcontentsname{\begin{CJK}{GBK}{hei}\liuhao 目页\end{CJK}} \panelfullscreenname{\begin{CJK}{GBK}{hei}\liuhao 全~屏~显~示\end{CJK}} \panelhomepagename{\begin{CJK}{GBK}{hei}\liuhao 访~问~主~页\end{CJK}} \panelgobackname{\begin{CJK}{GBK}{hei}\liuhao 返~~~~回\end{CJK}} \panelclosename{\begin{CJK}{GBK}{hei}\liuhao 关~~~~闭\end{CJK}} \panelquitname{\begin{CJK}{GBK}{hei}\liuhao 退~~~~出\end{CJK}} \panelpagename{\begin{CJK}{GBK}{hei}\liuhao 第\end{CJK}} \panelofname{\begin{CJK}{GBK}{hei}\liuhao 页~共\end{CJK}} \panelofnamep{\begin{CJK}{GBK}{hei}\liuhao 页\end{CJK}}

\begin{slide} \CJKfamily{kai}\color{blue}\yihao \begin{center} {\color{blue} \chuhao \CJKfamily{li}结构化学基础} \end{center} \vskip 0.5cm

\begin{itemize} \item [\begin{footnotesize}\dbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.00,1.00}{~~~\hyperlink{method}{量子力学基础知识}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{atom}{原子结构和性质}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{molecular}{共价键和双原子分子的结构化学}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{group}{分子的对称性和点群}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{molec}{多原子分子中的化学键}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{luo}{配位化合物的结构和性质}}} \end{itemize} \end{slide}

\begin{slide} \hypertarget{method}{} \CJKfamily{kai}\color{blue}\yihao \vskip -1.5cm \section{\color{blue}\li 量子力学基础知识}\label{method}

 \ref{sec11}\color{blue}\hyperlink{sec11}{\ 微观粒子的运动特征}

 \ref{sec12}\color{blue}\hyperlink{sec12}{\ 量子力学的基本假设}

 \ref{sec13}\color{blue}\hyperlink{sec13}{\ 箱中粒子的\ Schr\"{o}dinger 方程及其解}

\end{slide}

\begin{slide} \hypertarget{sec11}{} \CJKfamily{kai}\color{blue}\yihao \subsection{\color{blue}\li 微观粒子的运动特征}\label{sec11} \begin{itemize} \item [\begin{footnotesize}\dbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.00,1.00}{~~~\hyperlink{chap111}{黑体辐射和能量量子化}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap112}{光电效应和光子学说}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap113}{实物粒子的波粒二象性}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap114}{不确定度关系}}} \end{itemize} \end{slide}

\clearpage \end{CJK*} \end{document}

链接

其他信息

sc0.pdf

附件

\documentclass[a4paper]{article} \usepackage[screen,panelright,gray,paneltoc,sectionbreak]{pdfscreen}%缺省状态为Blue,学术报告推荐采用"gray"。 \usepackage{multimedia} \usepackage{tabls} \usepackage{amsmath} \usepackage{xspace,colortbl} \usepackage[indentfirst]{titlesec} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{CJK} \usepackage{pause} % loads also color.sty \usepackage{color} \usepackage{times} \usepackage{type1cm} \usepackage{background} \usepackage{geometry} \usepackage{hyperref} \usepackage[display]{texpower} \usepackage{hypbmsec} \usepackage{manfnt} \usepackage{esvect} \parindent30pt \renewcommand{\baselinestretch}{1.5} \margins{15mm}{15mm}{15mm}{15mm} %定义页边的空白尺寸,\margins{left}{right}{top}{bottom}。 \screensize{180mm}{240mm} %定义屏幕尺寸,\screensize{height}{width},通常为180mm240mm。 \overlay{Overlays/overlay\theslideoverlay} %多种overlay图形切换。注释该行,将得到无框SLIDE效果。 \paneloverlay{Overlays/but.pdf} %加入导航面板.pdf。 \urlid{202.116.32.4} %主页链接。 \def\pfill{\vskip8pt} %导航面板项目行行距。 \titleformat{\section}[block]{\fontfamily{phv}\fontseries{b}\selectfont% \CJKfamily{hei}\Huge}{% \fontfamily{phv}\fontseries{b}\fontsize{0.9em}{0.3em}\selectfont \color{section1}\thesection% }{0.3em}% {\color{section1}} \titleformat{\subsection}[hang]{\color{section2}\CJKfamily{li}\huge} {\LARGE \thesubsection}{0.5em}{}{} \titlespacing{\subsection}{0pt}{0.5ex plus .1ex minus .2ex}{\wordsep} \newcommand\ENfont[6]{\bgroup% \fontfamily{#1}\fontseries{#2}\fontshape{#3}\fontsize{#4}{#4}% \selectfont\color{#5}{#6}\egroup} \newcommand\CNfont[4]{\bgroup% \fontsize{#1}{#1}\selectfont% \color{#2}{\CJKfamily{#3}#4}\egroup} \newcommand\pkg[1]{\bgroup\fontfamily{phv}\selectfont{#1}\egroup} \newcommand\env[1]{\bgroup\fontfamily{phv}\fontshape{it}\selectfont% \color{blue}#1\egroup} \newcommand\pdflatex{\textsf{pdf\LaTeX}} \newcommand\cjk{\bgroup\fontfamily{phv}\selectfont{CJK}\egroup} \newcommand\cct{\bgroup\fontfamily{phv}\selectfont{CCT}\egroup} \hypersetup{CJKbookmarks=true} \newcommand{\song}{\CJKfamily{song}} % 宋体 (Windows自带simsun.ttf) \newcommand{\fs}{\CJKfamily{fs}} % 仿宋体 (Windows自带simfs.ttf) \newcommand{\kai}{\CJKfamily{kai}} % 楷体 (Windows自带simkai.ttf) \newcommand{\hei}{\CJKfamily{hei}} % 黑体 (Windows自带simhei.ttf) \newcommand{\li}{\CJKfamily{li}} % 隶书 (Windows自带simli.ttf) \newcommand{\you}{\CJKfamily{you}} % 幼圆 (Windows自带simyou.ttf) \newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\yichu}{\fontsize{32pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaoyihao}{\fontsize{24pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\erhao}{\fontsize{21pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont} % 字号设置 \newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont} % 字号设置

\begin{document} \begin{CJK*}{GBK}{hei} %用汉字,定义”黑体“为文档字体。 \CJKtilde \paneltitlepagename{\begin{CJK}{GBK}{hei}\liuhao 标页\end{CJK}} \panlabstractname{\begin{CJK}{GBK}{hei}\liuhao 摘页\end{CJK}} \panelcontentsname{\begin{CJK}{GBK}{hei}\liuhao 目页\end{CJK}} \panelfullscreenname{\begin{CJK}{GBK}{hei}\liuhao 全~屏~显~示\end{CJK}} \panelhomepagename{\begin{CJK}{GBK}{hei}\liuhao 访~问~主~页\end{CJK}} \panelgobackname{\begin{CJK}{GBK}{hei}\liuhao 返~~~~回\end{CJK}} \panelclosename{\begin{CJK}{GBK}{hei}\liuhao 关~~~~闭\end{CJK}} \panelquitname{\begin{CJK}{GBK}{hei}\liuhao 退~~~~出\end{CJK}} \panelpagename{\begin{CJK}{GBK}{hei}\liuhao 第\end{CJK}} \panelofname{\begin{CJK}{GBK}{hei}\liuhao 页~共\end{CJK}} \panelofnamep{\begin{CJK}{GBK}{hei}\liuhao 页\end{CJK}}

\begin{slide} \CJKfamily{kai}\color{blue}\yihao \begin{center} {\color{blue} \chuhao \CJKfamily{li}结构化学基础} \end{center} \vskip 0.5cm

\begin{itemize} \item [\begin{footnotesize}\dbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.00,1.00}{~~~\hyperlink{method}{量子力学基础知识}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{atom}{原子结构和性质}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{molecular}{共价键和双原子分子的结构化学}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{group}{分子的对称性和点群}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{molec}{多原子分子中的化学键}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{luo}{配位化合物的结构和性质}}} \end{itemize} \end{slide}

\begin{slide} \hypertarget{method}{} \CJKfamily{kai}\color{blue}\yihao \vskip -1.5cm \section{\color{blue}\li 量子力学基础知识}\label{method}

 \ref{sec11}\color{blue}\hyperlink{sec11}{\ 微观粒子的运动特征}

 \ref{sec12}\color{blue}\hyperlink{sec12}{\ 量子力学的基本假设}

 \ref{sec13}\color{blue}\hyperlink{sec13}{\ 箱中粒子的\ Schr\"{o}dinger 方程及其解}

\end{slide}

\begin{slide} \hypertarget{sec11}{} \CJKfamily{kai}\color{blue}\yihao \subsection{\color{blue}\li 微观粒子的运动特征}\label{sec11} \begin{itemize} \item [\begin{footnotesize}\dbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.00,1.00}{~~~\hyperlink{chap111}{黑体辐射和能量量子化}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap112}{光电效应和光子学说}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap113}{实物粒子的波粒二象性}}} \item [\begin{footnotesize}\lhdbend \end{footnotesize}]\raisebox{-1ex}{\textcolor[rgb] {0.00,0.40,0.29}{~~~\hyperlink{chap114}{不确定度关系}}} \end{itemize} \end{slide}

\clearpage \end{CJK*} \end{document}

Harry-Chen commented 3 weeks ago

请使用代码块粘贴代码,以防格式错误。

Intel80686 commented 3 weeks ago

谢谢 Chen 先生回复。这幻灯片是根据平林先生的模板做的,很早以前的模板,这模板还有一个名为 Overlays 的目录和几个 sty 文件,上面的代码要结合这些文件才能编译。不知道怎样上传这些文件。