diff options
Diffstat (limited to 'macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex')
-rw-r--r-- | macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex b/macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex index ca6d4511e1..b721cb848d 100644 --- a/macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex +++ b/macros/latex/contrib/pynotebook/doc/pynotebook-doc.tex @@ -33,8 +33,8 @@ \usepackage[margin=2cm]{geometry} \setlength{\parindent}{0pt} -\def\TPversion{0.1.1} -\def\TPdate{19/02/2024} +\def\TPversion{0.1.3} +\def\TPdate{30/03/2024} \sethlcolor{lightgray!25} \NewDocumentCommand\ShowCode{ m }{% @@ -189,6 +189,10 @@ Recommencer [o/n] ? n \section{History} +\verb|v0.1.3|~:~~~~Modification with \texttt{gobble} (for \textsf{piton}) + +\verb|v0.1.2|~:~~~~Enhancements with \texttt{gobble} (for \textsf{piton}) + \verb|v0.1.1|~:~~~~New block \textsf{In/Out} with \textsf{piton/pyluatex} (tks to F. Pantigny) \verb|v0.1.0|~:~~~~Initial version @@ -474,25 +478,37 @@ The package provides environments : \end{itemize} \begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] -\begin{NotebookPitonIn}(*)[options tcbox]{<width>} +\begin{NotebookPitonRaw}[options tcbox]{width}<gobble options> +<code> +\end{NotebookPitonRaw} +\end{codehigh} + +\begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] +\begin{NotebookPitonMarkdown}[options tcbox]{width} +<code> +\end{NotebookPitonMarkdown} +\end{codehigh} + +\begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] +\begin{NotebookPitonIn}(*)[options tcbox]{width}<gobble options> <code> \end{NotebookPitonIn} \end{codehigh} \begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] -\begin{NotebookPitonOut}(*)[options tcbox]{<width>} +\begin{NotebookPitonOut}(*)[options tcbox]{width}<gobble options> <code> \end{NotebookPitonOut} \end{codehigh} \begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] -\begin{NotebookPitonInOut}(*)[options tcbox]{<width>} +\begin{NotebookPitonInOut}(*)[options tcbox]{width}<gobble options> <code> \end{NotebookPitonInOut} \end{codehigh} \begin{codehigh}[language=latex/latex2,style/main=cyan!10,style/code=cyan!10] -\begin{NotebookPitonConsole}[options tcbox]{<width>} +\begin{NotebookPitonConsole}[options tcbox]{width}<gobble options> <code> \end{NotebookPitonConsole} \end{codehigh} @@ -501,6 +517,18 @@ The starred versions removes the counter, and don't display it. The blocks with \textit{header} (\texttt{In/Out}) are automatically numbered, and the global style is fixed. +\smallskip + +\texttt{gobble options} are given within \textsf{piton} syntax : + +\begin{itemize} + \item \texttt{auto-gobble} ; + \item \texttt{env-gobble} ; + \item \texttt{gobble=xx} ; + \item \texttt{tabs-auto-gobble} ; + \item a mix of them. +\end{itemize} + \subsection{Examples} Due to the necessary usage of \hologo{LuaLaTeX} and \textsf{--shell-escape}, examples are given in a separate file. |