% This file:
%   http://anggtwu.net/LATEX/2024-2-defs-toc.tex.html
%   http://anggtwu.net/LATEX/2024-2-defs-toc.tex
%          (find-angg "LATEX/2024-2-defs-toc.tex")
% Author: Eduardo Ochs <eduardoochs@gmail.com>
%
% (defun e () (interactive) (find-angg "LATEX/2024-2-defs-toc.tex"))

% Based on:
%   (c2m241introp 2 "defs-toclines")
%   (c2m241introa   "defs-toclines")
% Used by:
%   (c2m242introp 2 "defs-toclines")
%   (c2m242introa   "defs-toclines")

% (find-es "tex" "hyperref-hyperlink")
\def\linktopage#1#2{\hyperlink{page.#1}{#2}}
\def\mytocslide#1#2#3{\par\linktopage{#1}{#3} \dotfill \; \linktopage{#3}{#3}}

\def\toclineslidetex  #1#2{\par     \linktopage{#2}{#1} \dotfill \linktopage{#2}{#2}}
\def\toclineslidenttex#1#2{\par \;\;\linktopage{#2}{#1} \dotfill \linktopage{#2}{#2}}
\def\toclineslidelua  #1#2{\directlua{
    toclines:add {style="slide",   body=[=[#1]=], page=#2}
  }}
\def\toclineslidentlua#1#2{\directlua{
    toclines:add {style="slident", body=[=[#1]=], page=#2}
  }}
\def\SLIDE#1{
  \par{\bf #1}\par
  \toclineslidelua{#1}{\thepage}
}
\def\SLIDENT#1{
  \toclineslidentlua{#1}{\thepage}
}
\def\addslide#1#2{\SLIDE{#2}}



% Local Variables:
% coding:  utf-8-unix
% End:
