% (find-LATEX "2024-1-C3-anim-rp1.tex")
% (defun c () (interactive) (find-LATEXsh "lualatex -record 2024-1-C3-anim-rp1.tex" :end))
% (defun C () (interactive) (find-LATEXsh "lualatex 2024-1-C3-anim-rp1.tex" "Success!!!"))
% (defun D () (interactive) (find-pdf-page      "~/LATEX/2024-1-C3-anim-rp1.pdf"))
% (defun d () (interactive) (find-pdftools-page "~/LATEX/2024-1-C3-anim-rp1.pdf"))
% (defun e () (interactive) (find-LATEX "2024-1-C3-anim-rp1.tex"))
% (defun o () (interactive) (find-LATEX "2024-1-C3-anim-rp1.tex"))
% (defun u () (interactive) (find-latex-upload-links "2024-1-C3-anim-rp1"))
% (defun v () (interactive) (find-2a '(e) '(d)))
% (defun d0 () (interactive) (find-ebuffer "2024-1-C3-anim-rp1.pdf"))
% (defun cv () (interactive) (C) (ee-kill-this-buffer) (v) (g))
%          (code-eec-LATEX "2024-1-C3-anim-rp1")
% (find-pdf-page   "~/LATEX/2024-1-C3-anim-rp1.pdf")
% (find-sh0 "cp -v  ~/LATEX/2024-1-C3-anim-rp1.pdf /tmp/")
% (find-sh0 "cp -v  ~/LATEX/2024-1-C3-anim-rp1.pdf /tmp/pen/")
%     (find-xournalpp "/tmp/2024-1-C3-anim-rp1.pdf")
%   file:///home/edrx/LATEX/2024-1-C3-anim-rp1.pdf
%               file:///tmp/2024-1-C3-anim-rp1.pdf
%           file:///tmp/pen/2024-1-C3-anim-rp1.pdf
%  http://anggtwu.net/LATEX/2024-1-C3-anim-rp1.pdf
% (find-LATEX "2019.mk")
% (find-Deps1-links "Caepro5 Piecewise2 Maxima2")
% (find-Deps1-cps   "Caepro5 Piecewise2 Maxima2")
% (find-Deps1-anggs "Caepro5 Piecewise2 Maxima2")
% (find-MM-aula-links "2024-1-C3-anim-rp1" "3" "c3m241rp1" "c2rp1")

% «.defs»		(to "defs")
% «.defs-T-and-B»	(to "defs-T-and-B")
% «.defs-caepro»	(to "defs-caepro")
% «.defs-pict2e»	(to "defs-pict2e")
% «.defs-maxima»	(to "defs-maxima")
% «.defs-Und2D2»	(to "defs-Und2D2")
% «.title»		(to "title")
% «.links»		(to "links")
% «.make-gif»		(to "make-gif")



\documentclass[oneside,12pt]{article}
\usepackage[colorlinks,citecolor=DarkRed,urlcolor=DarkRed]{hyperref} % (find-es "tex" "hyperref")
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pict2e}
\usepackage[x11names,svgnames]{xcolor} % (find-es "tex" "xcolor")
\usepackage{colorweb}                  % (find-es "tex" "colorweb")
%\usepackage{tikz}
%
% (find-dn6 "preamble6.lua" "preamble0")
%\usepackage{proof}   % For derivation trees ("%:" lines)
%\input diagxy        % For 2D diagrams ("%D" lines)
%\xyoption{curve}     % For the ".curve=" feature in 2D diagrams
%
\usepackage{edrx21}               % (find-LATEX "edrx21.sty")
\input edrxaccents.tex            % (find-LATEX "edrxaccents.tex")
\input edrx21chars.tex            % (find-LATEX "edrx21chars.tex")
\input edrxheadfoot.tex           % (find-LATEX "edrxheadfoot.tex")
\input edrxgac2.tex               % (find-LATEX "edrxgac2.tex")
%
% (find-es "tex" "geometry")
\usepackage[%a6paper, landscape,
            paperwidth=135mm,
            paperheight=125mm,
            top=1.5cm, bottom=.25cm, left=1cm, right=1cm, includefoot
           ]{geometry}
%
\begin{document}

% «defs»  (to ".defs")
% (find-LATEX "edrx21defs.tex" "colors")
% (find-LATEX "edrx21.sty")

\def\drafturl{http://anggtwu.net/LATEX/2024-1-C3.pdf}
\def\drafturl{http://anggtwu.net/2024.1-C3.html}
\def\draftfooter{\tiny \href{\drafturl}{\jobname{}} \ColorBrown{\shorttoday{} \hours}}

% (find-LATEX "2024-1-C2-carro.tex" "defs-caepro")
% (find-LATEX "2024-1-C2-carro.tex" "defs-pict2e")

\catcode`\^^J=10
\directlua{dofile "dednat6load.lua"}  % (find-LATEX "dednat6load.lua")

% «defs-T-and-B»  (to ".defs-T-and-B")
\long\def\ColorDarkOrange#1{{\color{orange!90!black}#1}}
\def\T(Total: #1 pts){{\bf(Total: #1)}}
\def\T(Total: #1 pts){{\bf(Total: #1 pts)}}
\def\T(Total: #1 pts){\ColorRed{\bf(Total: #1 pts)}}
\def\B       (#1 pts){\ColorDarkOrange{\bf(#1 pts)}}

% «defs-caepro»  (to ".defs-caepro")
%L dofile "Caepro5.lua"              -- (find-angg "LUA/Caepro5.lua" "LaTeX")
\def\Caurl   #1{\expr{Caurl("#1")}}
\def\Cahref#1#2{\href{\Caurl{#1}}{#2}}
\def\Ca      #1{\Cahref{#1}{#1}}

% «defs-pict2e»  (to ".defs-pict2e")
%L dofile "Piecewise2.lua"           -- (find-LATEX "Piecewise2.lua")
%L --dofile "Escadas1.lua"           -- (find-LATEX "Escadas1.lua")
\def\pictgridstyle{\color{GrayPale}\linethickness{0.3pt}}
\def\pictaxesstyle{\linethickness{0.5pt}}
\def\pictnaxesstyle{\color{GrayPale}\linethickness{0.5pt}}
\celllower=2.5pt

% «defs-maxima»  (to ".defs-maxima")
%L dofile "Maxima2.lua"              -- (find-angg "LUA/Maxima2.lua")
\pu

% «defs-Und2D2»  (to ".defs-Und2D2")
% (tinp 1 "defs-Und2D2")
% (tina   "defs-Und2D2")
%L dofile "Und2D2.lua"               -- (find-angg "LUA/Und2D2.lua")
\pu



%  _____ _ _   _                               
% |_   _(_) |_| | ___   _ __   __ _  __ _  ___ 
%   | | | | __| |/ _ \ | '_ \ / _` |/ _` |/ _ \
%   | | | | |_| |  __/ | |_) | (_| | (_| |  __/
%   |_| |_|\__|_|\___| | .__/ \__,_|\__, |\___|
%                      |_|          |___/      
%
% «title»  (to ".title")
% (c3m241rp1p 1 "title")
% (c3m241rp1a   "title")

%\thispagestyle{empty}
%
%\begin{center}
%
%\vspace*{1.2cm}
%
%{\bf \Large Cálculo 3 - 2024.1}
%
%\bsk
%
%Aula 15: animação sobre retas parametrizadas
%
%\bsk
%
%Eduardo Ochs - RCN/PURO/UFF
%
%\url{http://anggtwu.net/2024.1-C3.html}
%
%\end{center}

\newpage

% «links»  (to ".links")
% (c3m241rp1p 2 "links")
% (c3m241rp1a   "links")

%{\bf Links}
%
%\scalebox{0.6}{\def\colwidth{9cm}\firstcol{
%}\anothercol{
%}}

\newpage

%L bigstr = [=[
%L f(t    ) = \_\_  + ((t    - \_\_ )/ \_\_)·\_\_   
%L   -----    -----     -----  -----  -----  -----  
%L   \g{A}    \g{B}     \g{C}  \g{D}  \g{E}  \g{F}
%L --------            --------------
%L \g{G}                \g{H}
%L                    ----------------------
%L                    \g{I}
%L                    ----------------------------
%L                    \g{J}                         
%L            ------------------------------------
%L            \g{K}                         
%L ]=]
%L ut = GrUD.from(bigstr):addallbars():totex()
%L ut2 = format("\\sa{fig-1}{%s}", ut)
%L output(ut2)
\pu

%L bigstr = [=[
%L f(t    ) = \_\_  + ((t    - \_\_ )/ \_\_)·\_\_   
%L   -----    -----     -----  -----  -----  -----  
%L   \g{a}    \g{b}     \g{c}  \g{d}  \g{e}  \g{f}
%L --------            --------------
%L \g{g}                \g{h}
%L                    ----------------------
%L                    \g{i}
%L                    ----------------------------
%L                    \g{j}                         
%L            ------------------------------------
%L            \g{k}                         
%L ]=]
%L ut = GrUD.from(bigstr):addallbars():totex()
%L ut2 = format("\\sa{fig-2}{%s}", ut)
%L output(ut2)
\pu

\def\und#1#2{\underbrace{\mathstrut#1}_{\textstyle\mathstrut#2}}
\def\g#1{\ga{#1}}

\def\FIG{ \newpage $\ga{fig-1}$ }
\def\FIG{
  \newpage
  $\scalebox{1.0}{$\begin{array}{l}
     \ga{fig-1} \\\\[-2pt]
     \ga{fig-2} \\
    \end{array}
   $}
  $
}

     \sa{A}{12}    \sa{G}{34}
     \sa{a}{12+23} \sa{g}{34+56}

\FIG \sa{C}{12}
\FIG \sa{K}{34}
\FIG \sa{D}{12}
\FIG \sa{H}{0}
\FIG \sa{I}{0}
\FIG \sa{J}{0}
\FIG \sa{B}{34}
\FIG 

     \sa{b}{34}
\FIG \sa{c}{12+23}
\FIG \sa{d}{12}
\FIG \sa{k}{34+56}
\FIG \sa{h}{23}
\FIG \sa{e}{23}
\FIG \sa{i}{1}
\FIG \sa{f}{56}
\FIG \sa{j}{56}
\FIG 

\GenericWarning{Success:}{Success!!!}  % Used by `M-x cv'

\end{document}


% «make-gif»  (to ".make-gif")
% (c3m241rp1p 1 "make-gif")
% (c3m241rp1a   "make-gif")
% (find-es "imagemagick" "pdf-to-animated-gif")

 (eepitch-shell)
 (eepitch-kill)
 (eepitch-shell)
convert -alpha deactivate -verbose -delay 50 -loop 0 -density 200 \
    ~/LATEX/2024-1-C3-anim-rp1.pdf \
    ~/LATEX/2024-1-C3-anim-rp1.gif
laf ~/LATEX/2024-1-C3-anim-rp1.gif

# (find-cp-angg-links "2024-1-C3-anim-rp1.gif" "~/LATEX/" "LATEX/")
cd ~/LATEX/
scp 2024-1-C3-anim-rp1.gif $LINP/LATEX/
scp 2024-1-C3-anim-rp1.gif $LINS/LATEX/

# http://anggtwu.net/LATEX/2024-1-C3-anim-rp1.gif

% file:///tmp/2024-1-C3-anim-rp1.gif
% file:///home/edrx/LATEX/2024-1-C3-anim-rp1.gif


% Local Variables:
% coding: utf-8-unix
% ee-tla: "c2rp1"
% ee-tla: "c3m241rp1"
% End:
