Examples of using latex in cocalc
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\@writefile{toc}{\contentsline {section}{\numberline {1}Inline Sage, code blocks}{1}{section.1}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Plotting}{2}{section.2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Plotting (combinatorial) graphs with TikZ}{7}{subsection.2.1}}
\newlabel{sec:plotting-graphs-with}{{2.1}{7}{Plotting (combinatorial) graphs with TikZ}{subsection.2.1}{}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Plotting (combinatorial) graphs with TikZ}{7}{subsection.2.2}}
\newlabel{sec:plotting-graphs-with}{{2.2}{7}{Plotting (combinatorial) graphs with TikZ}{subsection.2.2}{}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}3D plotting}{7}{subsection.2.3}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Pausing SageT\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\spacefactor \@m {}}{10}{section.3}}
\newlabel{sec:pausing-sagetex}{{3}{10}{Pausing Sage\TeX }{section.3}{}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Make Sage write your \LaTeX {} for you}{10}{section.4}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Include doctest-like examples in your document}{11}{section.5}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Plotting functions in Ti\emph {k}Z with SageT\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\spacefactor \@m {}}{13}{section.6}}
\@writefile{toc}{\contentsline {section}{\numberline {7}The \texttt {sagecommandline} environment}{13}{section.7}}
\newlabel{diagonal}{{12}{14}{The \texttt {sagecommandline} environment}{lstnumber.-9.12}{}}
\newlabel{anotherlabel}{{13}{14}{The \texttt {sagecommandline} environment}{lstnumber.-10.13}{}}