texlive[58255] Master: mindflow (10mar21)

commits+karl at tug.org commits+karl at tug.org
Wed Mar 10 23:20:23 CET 2021


Revision: 58255
          http://tug.org/svn/texlive?view=revision&revision=58255
Author:   karl
Date:     2021-03-10 23:20:23 +0100 (Wed, 10 Mar 2021)
Log Message:
-----------
mindflow (10mar21)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/mindflow/
    trunk/Master/texmf-dist/doc/latex/mindflow/README.md
    trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
    trunk/Master/texmf-dist/source/latex/mindflow/
    trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx
    trunk/Master/texmf-dist/source/latex/mindflow/mindflow.ins
    trunk/Master/texmf-dist/tex/latex/mindflow/
    trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
    trunk/Master/tlpkg/tlpsrc/mindflow.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/mindflow/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mindflow/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/mindflow/README.md	2021-03-10 22:20:23 UTC (rev 58255)
@@ -0,0 +1,15 @@
+# The mindflow package
+
+This package provides an environment that is separated from the main text and
+has its own line numbers, for writing ideas or annotations.
+
+# License
+
+This file may be distributed and/or modified under the conditions of the LaTeX
+Project Public License, either version 1.3 of this license or (at your option)
+any later version.  The latest version of this license is in:
+
+   http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of LaTeX version
+2005/12/01 or later.


Property changes on: trunk/Master/texmf-dist/doc/latex/mindflow/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf	2021-03-10 22:19:48 UTC (rev 58254)
+++ trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf	2021-03-10 22:20:23 UTC (rev 58255)

Property changes on: trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx	2021-03-10 22:20:23 UTC (rev 58255)
@@ -0,0 +1,206 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2021 by Jinwen XU 
+% -------------------------------
+% 
+% This file may be distributed and/or modified under the conditions of the LaTeX
+% Project Public License, either version 1.3 of this license or (at your option)
+% any later version. The latest version of this license is in:
+%
+%    http://www.latex-project.org/lppl.txt
+%
+% and version 1.3 or later is part of all distributions of LaTeX version
+% 2005/12/01 or later.
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{mindflow.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}
+%<package>\ProvidesPackage{mindflow}
+%<*package>
+    [2021/03/09 Mindflow environment]
+%</package>
+%
+%<*driver>
+\documentclass{article}
+\usepackage{doc}
+\usepackage[a4paper,margin=1.8in]{geometry}
+\usepackage{titling}
+\setlength{\droptitle}{-.5in}
+\usepackage[linenumber,rightmarker]{mindflow}
+\usepackage{enumitem}
+\setlist{noitemsep}
+\usepackage{newpxtext}
+\usepackage{parskip}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\begin{document}
+  \DocInput{mindflow.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{0}
+%
+% \GetFileInfo{mindflow.dtx}
+%
+%
+% \title{The {\normalfont\textsf{mindflow}} package}
+% \author{\scshape Jinwen Xu}
+% \date{\filedate}
+%
+% \maketitle
+%
+% \section{Introduction}
+%
+% The \textsf{mindflow} package provides you a way to write your ideas,
+% annotations or writing plans. For example (with option
+% \verb|linenumber| and \verb|rightmarker|):
+% \begin{mindflow}
+%     What to write next:
+%     \begin{itemize}
+%         \item usage;
+%         \item some internal macros;
+%         \item the complete code.
+%     \end{itemize}
+% \end{mindflow}
+%
+% \section{Usage}
+%
+% Simply load the package with \verb|\usepackage{mindflow}|. By default
+% it has no line numbers or markers. You can use the following options:
+%
+% \begin{tabular}{ll}
+%     \verb|linenumber| & Enable line numbers\\
+%     \verb|leftmarker| & Enable left marker, by default it is a ``\verb|*|''\\
+%     \verb|rightmarker| & Enable right marker, by default it is a ``\verb|*|''\\
+%     \verb|off| & Hide all the \verb|mindflow| environments
+% \end{tabular}
+%
+% \DescribeEnv{mindflow}
+% Then you can use the mindflow environment as
+% \begin{verbatim}
+%   \begin{mindflow}
+%       ...
+%   \end{mindflow}
+% \end{verbatim}
+%
+% \section{Some technical details}
+%
+% \DescribeMacro{\mindflowFont}
+% \DescribeMacro{\mindflowNumFont}
+% The font for texts and line numbers within the \verb|mindflow|
+% environments can be specified by redefining \verb|\mindflowFont| and
+% \verb|\mindflowNumFont|. By default they are defined as:
+% \begin{verbatim}
+%   \newcommand{\mindflowFont}{\normalfont\footnotesize}
+%   \newcommand{\mindflowNumFont}{\normalfont\scriptsize\ttfamily}
+% \end{verbatim}
+% \DescribeMacro{\mindflowLeft}
+% \DescribeMacro{\mindflowRight}
+% The left and right marker can be changed by redefining
+% \verb|\mindflowLeft| and \verb|\mindflowRight|. Both have the default
+% value as ``\verb|*|''.
+%
+% And finally, the color of \verb|mindflow| environments is called
+% \verb|mindflow|. By default, it is the current text color with opacity
+% 30\%.
+%
+% \StopEventually{}
+%
+% \section{Implementation}
+% Below is the complete source code of this package.
+%
+%    \begin{macrocode}
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{%
+    family = @mindflow,
+    prefix = @mindflow@
+}
+\DeclareBoolOption[false]{off}           % Turn off mindflow
+\DeclareBoolOption[false]{leftmarker}    % Left marker
+\DeclareBoolOption[false]{rightmarker}   % Right marker
+\DeclareBoolOption[false]{linenumber}    % Line numbers
+
+\ProcessKeyvalOptions*\relax
+
+%%================================
+%% Initialization
+%%================================
+\newcommand{\mindflowFont}{\normalfont\footnotesize}
+\newcommand{\mindflowNumFont}{\normalfont\scriptsize\ttfamily}
+
+\RequirePackage{lineno}
+\RequirePackage{xcolor}
+
+\colorlet{mfSavedColor}{.}
+\colorlet{mindflow}{mfSavedColor!30}
+
+\newcommand{\mindflowLeft}{%
+  \if at mindflow@leftmarker%
+    {*}%
+  \fi%
+}
+\newcommand{\mindflowRight}{%
+  \if at mindflow@rightmarker%
+    {*}%
+  \fi%
+}
+
+%%================================
+%% The mindflow environment
+%%================================
+\newif\ifLNturnsON
+
+\newcommand*{\mfSepLine}{%
+  \parskip=0pt
+  \LNturnsONfalse%
+  \ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
+  \par\noindent\nopagebreak%
+  \makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}%
+  \nopagebreak\par%
+  \ifLNturnsON\linenumbers\fi%
+}
+
+\newcounter{recordLN}
+\newcounter{mfLN}
+\setcounter{mfLN}{1}
+
+\if at mindflow@off
+  \RequirePackage{verbatim}
+  \let\mindflow=\comment
+  \let\endmindflow=\endcomment
+\else
+  \newenvironment{mindflow}
+  {%
+    \setcounter{recordLN}{\value{linenumber}}
+    \setcounter{linenumber}{\value{mfLN}}
+    \LNturnsONfalse%
+    \ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
+    \mindflowFont\color{mindflow}%
+    \mfSepLine%
+    \linenumbers%
+    \renewcommand\makeLineNumber{%
+      \hss\color{mindflow!25}%
+      \if at mindflow@linenumber%
+      \mindflowNumFont\LineNumber~%
+      \fi%
+      \mindflowLeft\hspace{1em}\rlap{\hskip\textwidth\hspace{1em}\mindflowRight}%
+    }%
+  }
+  {%
+    \par%
+    \vspace{-.5\baselineskip}\mfSepLine%
+    \ifLNturnsON\linenumbers\fi%
+    \setcounter{mfLN}{\value{linenumber}}
+    \setcounter{linenumber}{\value{recordLN}}
+  }
+\fi
+%    \end{macrocode}
+%
+% \Finale
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/mindflow/mindflow.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/mindflow/mindflow.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/mindflow/mindflow.ins	2021-03-10 22:20:23 UTC (rev 58255)
@@ -0,0 +1,54 @@
+%%
+%% Copyright (C) 2021 by Jinwen XU
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3 of this license
+%% or (at your option) any later version.  The latest version of this
+%% license is in:
+%% 
+%%    http://www.latex-project.org/lppl.txt
+%% 
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%%
+
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+
+\usedir{tex/latex/mindflow}
+
+\preamble
+
+Copyright (C) 2021 by Jinwen XU
+
+This file may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, either version 1.3 of this license
+or (at your option) any later version.  The latest version of this
+license is in:
+
+   http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of LaTeX version
+2005/12/01 or later.
+
+\endpreamble
+
+\generate{\file{mindflow.sty}{\from{mindflow.dtx}{package}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{*                                                           *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX:                    *}
+\Msg{*                                                           *}
+\Msg{*     mindflow.sty                                          *}
+\Msg{*                                                           *}
+\Msg{* To produce the documentation run the file mindflow.dtx    *}
+\Msg{* through LaTeX.                                            *}
+\Msg{*                                                           *}
+\Msg{* Happy TeXing!                                             *}
+\Msg{*                                                           *}
+\Msg{*************************************************************}
+
+\endbatchfile

Added: trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty	2021-03-10 22:20:23 UTC (rev 58255)
@@ -0,0 +1,110 @@
+%%
+%% This is file `mindflow.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mindflow.dtx  (with options: `package')
+%% 
+%% Copyright (C) 2021 by Jinwen XU
+%% 
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3 of this license
+%% or (at your option) any later version.  The latest version of this
+%% license is in:
+%% 
+%%    http://www.latex-project.org/lppl.txt
+%% 
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{mindflow}
+    [2021/03/09 Mindflow environment]
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{%
+    family = @mindflow,
+    prefix = @mindflow@
+}
+\DeclareBoolOption[false]{off}           % Turn off mindflow
+\DeclareBoolOption[false]{leftmarker}    % Left marker
+\DeclareBoolOption[false]{rightmarker}   % Right marker
+\DeclareBoolOption[false]{linenumber}    % Line numbers
+
+\ProcessKeyvalOptions*\relax
+
+%%================================
+%% Initialization
+%%================================
+\newcommand{\mindflowFont}{\normalfont\footnotesize}
+\newcommand{\mindflowNumFont}{\normalfont\scriptsize\ttfamily}
+
+\RequirePackage{lineno}
+\RequirePackage{xcolor}
+
+\colorlet{mfSavedColor}{.}
+\colorlet{mindflow}{mfSavedColor!30}
+
+\newcommand{\mindflowLeft}{%
+  \if at mindflow@leftmarker%
+    {*}%
+  \fi%
+}
+\newcommand{\mindflowRight}{%
+  \if at mindflow@rightmarker%
+    {*}%
+  \fi%
+}
+
+%%================================
+%% The mindflow environment
+%%================================
+\newif\ifLNturnsON
+
+\newcommand*{\mfSepLine}{%
+  \parskip=0pt
+  \LNturnsONfalse%
+  \ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
+  \par\noindent\nopagebreak%
+  \makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}%
+  \nopagebreak\par%
+  \ifLNturnsON\linenumbers\fi%
+}
+
+\newcounter{recordLN}
+\newcounter{mfLN}
+\setcounter{mfLN}{1}
+
+\if at mindflow@off
+  \RequirePackage{verbatim}
+  \let\mindflow=\comment
+  \let\endmindflow=\endcomment
+\else
+  \newenvironment{mindflow}
+  {%
+    \setcounter{recordLN}{\value{linenumber}}
+    \setcounter{linenumber}{\value{mfLN}}
+    \LNturnsONfalse%
+    \ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
+    \mindflowFont\color{mindflow}%
+    \mfSepLine%
+    \linenumbers%
+    \renewcommand\makeLineNumber{%
+      \hss\color{mindflow!25}%
+      \if at mindflow@linenumber%
+      \mindflowNumFont\LineNumber~%
+      \fi%
+      \mindflowLeft\hspace{1em}\rlap{\hskip\textwidth\hspace{1em}\mindflowRight}%
+    }%
+  }
+  {%
+    \par%
+    \vspace{-.5\baselineskip}\mfSepLine%
+    \ifLNturnsON\linenumbers\fi%
+    \setcounter{mfLN}{\value{linenumber}}
+    \setcounter{linenumber}{\value{recordLN}}
+  }
+\fi
+\endinput
+%%
+%% End of file `mindflow.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2021-03-10 22:19:48 UTC (rev 58254)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2021-03-10 22:20:23 UTC (rev 58255)
@@ -507,7 +507,7 @@
     mgltex mhchem
     mhequ miama mi-solns
     microtype microtype-de midnight midpage miller milog milsymb
-    minibox minidocument minifp minipage-marginpar
+    mindflow minibox minidocument minifp minipage-marginpar
     miniplot minitoc minorrevision
     minted mintspirit minutes mismath missaali
     mkgrkindex mkjobtexmf mkpattern mkpic

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2021-03-10 22:19:48 UTC (rev 58254)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2021-03-10 22:20:23 UTC (rev 58255)
@@ -782,6 +782,7 @@
 depend mftinc
 depend mi-solns
 depend midpage
+depend mindflow
 depend minibox
 depend minidocument
 depend minifp

Added: trunk/Master/tlpkg/tlpsrc/mindflow.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.