pdfscreen 方程标签显示不正确

pdfscreen 方程标签显示不正确

使用 pdfscreen 包的幻灯片中的方程引用标签没有像往常一样显示,它显示为 Eqn (2equation.0.2) 而不是 Eqn (2)。...有人可以帮忙吗?谢谢。

\RequirePackage[2019/01/01]{latexrelease}
\documentclass{article}
\usepackage{graphicx,color}
\usepackage{pause}
\renewcommand{\rmdefault}{ppl} % rm
\linespread{1.0}        % Palatino needs more leading
\usepackage[scaled]{helvet} % ss
\usepackage{courier} % tt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\normalfont
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
%\RequirePackage{inputenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{mathtools}
\usepackage{vwcol}
\usepackage{xcolor}
\usepackage[thicklines]{cancel}
\renewcommand{\CancelColor}{\color{red}}
\usepackage{setspace}  %for {\setstretch{1.0}  }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[pdftex,screen,nopanel]{pdfscreen}
\margins{0.25in}{0.25in}{0.25in}{0.25in} %left,right,top,bot
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bottombuttons
\screensize{6.25in}{8in}  % 8 in for slide; 9 in for printing
\notesname{Notes:}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\overlay{overlay1}

\begin{slide}\large\color{black}
\begin{equation}
\label{6_2} q_u = qN_qS_qd_q + \frac{1}{2}\gamma B N_\gamma
S_\gamma d_\gamma
\end{equation}

\underline{Solution}:

Given that $\phi = 39^o$ in the absence of any other experimental data, for minimum ult. dynamic bearing capacity
\[ \phi_{dy} = \phi - 2^o = 39 - 2 = 37^o \]

From eqn (\ref{6_2})
\begin{eqnarray*}
q_u &=& qN_qS_qd_q + \frac{1}{2}\gamma B N_\gamma S_\gamma d_\gamma \\
q &=& \gamma D_f = (18)(1) = 18\;\text{kN/m}^2
\end{eqnarray*}

\end{slide}

\end{document}

在此处输入图片描述

答案1

这是一个修复

% \RequirePackage[2019/01/01]{latexrelease}
\documentclass{article}
\usepackage{graphicx,color}
\usepackage{pause}
\renewcommand{\rmdefault}{ppl} % rm
\linespread{1.0}        % Palatino needs more leading
\usepackage[scaled]{helvet} % ss
\usepackage{courier} % tt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\normalfont
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
%\RequirePackage{inputenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{mathtools}
\usepackage{vwcol}
\usepackage{xcolor}
\usepackage[thicklines]{cancel}
\renewcommand{\CancelColor}{\color{red}}
\usepackage{setspace}  %for {\setstretch{1.0}  }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[pdftex,screen,nopanel]{pdfscreen}
\margins{0.25in}{0.25in}{0.25in}{0.25in} %left,right,top,bot
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bottombuttons
\screensize{6.25in}{8in}  % 8 in for slide; 9 in for printing
\notesname{Notes:}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{regexpatch}
\makeatletter
\xpatchcmd*\@Overlay@Hook{\put(\strip@pt\@tempdima,\strip@pt\@tempdima)}
{\put(\strip@pt\@tempdima,\strip@pt\dimexpr.5\paperheight)}{}{}
\makeatother

\begin{document}
    \overlay{overlay1}
    
    \begin{slide}\large\color{black}
        \begin{equation}
            \label{6_2} q_u = qN_qS_qd_q + \frac{1}{2}\gamma B N_\gamma
            S_\gamma d_\gamma
        \end{equation}
        
        \underline{Solution}:
        
        Given that $\phi = 39^o$ in the absence of any other experimental data, for minimum ult. dynamic bearing capacity
        \[ \phi_{dy} = \phi - 2^o = 39 - 2 = 37^o \]
        
        From eqn (\ref{6_2})
        \begin{eqnarray*}
            q_u &=& qN_qS_qd_q + \frac{1}{2}\gamma B N_\gamma S_\gamma d_\gamma \\
            q &=& \gamma D_f = (18)(1) = 18\;\text{kN/m}^2
        \end{eqnarray*}
        
    \end{slide}
    
\end{document}

在此处输入图片描述

相关内容