I have a beamer(LaTeX) file containing many \begin{frame}
lines. I want to debug the code to viewing the output of its. The pdf output shows frame number. When I try to change a specific numbered frame in source I have to give more time to find out that frame as there is no fame numbering in source code.
So, I want to give frame number as comment in each \begin{frame}
as \begin{frame}%frame_no
when it is not commented yet.
But, I don't want to write this each time when I add a frame and calculate the number. I want to make this autonomous such that when I press :w
or any user command it add the frame number.
Sample file -
\documentclass[usenames,dvipsnames]{beamer}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{listings}
\usepackage{algpseudocode}
\usefonttheme[onlymath]{serif}
\usepackage{amsmath}
\usetheme{Madrid}
\algnewcommand\algorithmicinput{\textbf{Input:}}
\algnewcommand\algorithmicoutput{\textbf{Output:}}
\algnewcommand\algorithmicinitialization{\textbf{Initialize:}}
\algnewcommand\Input{\item[\algorithmicinput]}%
\algnewcommand\Output{\item[\algorithmicoutput]}%
\algnewcommand\Initialize{\item[\algorithmicinitialization]}%
\logo{%
\includegraphics[width=1cm,height=1.5cm,keepaspectratio]{Image/DUlogo}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{Image/GNR.png}%
}
\begin{document}
\title{Cross-Layer Resource Allocation With Elastic Service Scaling in Cloud Radio Access Network}
\author[alhelal \& Jobayed Ullah]{
\parbox{2.5cm}{
\centering Md.Al-Helal\\Roll:SH-51}\hspace{1cm}
\parbox{2.5cm}{
{\centering Jobayed Ullah\\Roll:EK-107}}
}
\institute[CSEDU]{Computer Science \& Engineering\\CSEDU}
\date{February 25, 2018}
\begin{frame}
\maketitle
\end{frame}
\title{Cross-Layer Resource Allocation With Elastic Service Scaling in Cloud Radio Access Network}
\author{Jianhua Tang\\ Wee Pen Tay\\ Tony Q. S. Quek}
\institute{IEEE Transactions on Wireless Communications, vol 14, no. 9}
\date{September 2015}
\begin{frame}
\maketitle
\end{frame}
\author{alhelal \& Jobayed Ullah}
\institute{CSEDU}
\begin{frame}
\maketitle
\end{frame}
\end{document}