Skip to content

Commit

Permalink
Release v2.6 to CTAN
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasBora committed Feb 20, 2024
1 parent c9aae9f commit 763ee38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified doc/robust-externalize.pdf
Binary file not shown.
8 changes: 5 additions & 3 deletions doc/robust-externalize.tex
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{\Large\bfseries Cache anything (\tikzname, tikz-cd, python…),\\in a robust, efficient and pure way.}

\vspace{1em}
{Léo Colisson \quad Version 2.5+unstable}\\[3mm]
{Léo Colisson \quad Version 2.6}\\[3mm]
{\href{https://github.com/leo-colisson/robust-externalize}{\texttt{github.com/leo-colisson/robust-externalize}}}
\end{center}

Expand Down Expand Up @@ -2074,10 +2074,12 @@ \subsubsection{Setting a value to a placeholder}
do not remove leading spaces, python
\end{verbatim}
Since |remove leading spaces if not disabled| is enabled by default on python, it is therefore fine to indent your python code like in:
\begin{codeAndResult}
\begin{CacheMeCode}{python print code and result}
for i in range(3):
print(f"Hello {i}")
\end{CacheMeCode}
\end{codeAndResult}
\end{pgfmanualentry}

\begin{pgfmanualentry}
Expand Down Expand Up @@ -3944,7 +3946,7 @@ \subsubsection{Python}
\end{CacheMeCode}
\end{codeAndResult}
\textbf{Importantly: you do not want to indent the whole content of CacheMeCode, or the spaces will also appear in the final code.}
Note that if you use a version before 2.6, you cannot indent further the python code (i.e.\ the first line must not start with any space). This is fixed in 2.6 with the addition of |remove leading spaces if not disabled| in the python preset by default, that will remove automatically any unnecessary indentation. If you use automatic indentation in your text editor, you might also like to use |remove spaces until| so that automatically indenting your whole document does not ruin the indentation of the python code.
You can also generate some images. This code will produce the image in \cref{fig:pythonGeneratedImage2}:
\begin{codeexample}[code only]
Expand Down Expand Up @@ -4909,7 +4911,7 @@ \section{TODO and known bugs:}
\section{Changelog}
\begin{itemize}
\item v2.6 (current master branch, not yet released):
\item v2.6:
\begin{itemize}
\item Added |\lenToCmNoUnit|
\item Added |\placeholderPrependAllLines| and alike
Expand Down
2 changes: 1 addition & 1 deletion robust-externalize.sty
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\ProvidesPackage{robust-externalize}[2.5+unstable Cache anything (tikz, latex, python) in a robust, efficient and pure way.]
\ProvidesPackage{robust-externalize}[2.6 Cache anything (tikz, latex, python) in a robust, efficient and pure way.]
% todo:
% change order argument replace from list, it is hard to read this way

Expand Down

0 comments on commit 763ee38

Please sign in to comment.