texlive[59137] Master/texmf-dist: mindflow (8may21)
commits+karl at tug.org
commits+karl at tug.org
Sat May 8 23:07:46 CEST 2021
Revision: 59137
http://tug.org/svn/texlive?view=revision&revision=59137
Author: karl
Date: 2021-05-08 23:07:46 +0200 (Sat, 08 May 2021)
Log Message:
-----------
mindflow (8may21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx
trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
Modified: trunk/Master/texmf-dist/doc/latex/mindflow/mindflow.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx 2021-05-08 21:07:31 UTC (rev 59136)
+++ trunk/Master/texmf-dist/source/latex/mindflow/mindflow.dtx 2021-05-08 21:07:46 UTC (rev 59137)
@@ -18,7 +18,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{mindflow}
%<*package>
- [2021/03/17 Mindflow environment]
+ [2021/05/07 Mindflow environment]
%</package>
%
%<*driver>
@@ -25,13 +25,17 @@
\documentclass{article}
\usepackage{doc}
\usepackage[a4paper,top=1.2in,bottom=1.2in,left=1.6in,right=1.2in]{geometry}
+\usepackage{titlesec}
+\titleformat{\section}{\large\scshape\centering}{\thesection.}{.5em}{}
+\titleformat{\subsection}{\large}{\thesubsection}{.5em}{}
\usepackage{titling}
\setlength{\droptitle}{-.5in}
+\usepackage{enumitem}
+\setlist{noitemsep}
+\usepackage{mathpazo,newpxtext}
+\useosf
\PassOptionsToPackage{mathlines}{lineno}
\usepackage[linenumber,rightmarker]{mindflow}
-\usepackage{enumitem}
-\setlist{noitemsep}
-\usepackage{newpxtext}
\usepackage{blindtext}
\usepackage{parskip}
\EnableCrossrefs
@@ -43,7 +47,7 @@
%</driver>
% \fi
%
-% \CheckSum{186}
+% \CheckSum{197}
%
% \GetFileInfo{mindflow.dtx}
%
@@ -71,15 +75,22 @@
%
% \section{Usage}
%
+% \subsection{Initialization}
% Simply load the package with
% \begin{verbatim}
% \usepackage{mindflow}
% \end{verbatim}
-% \vspace{-.5\baselineskip}
-% By default, it has no line numbers or markers. You can use the following options:
%
+% \vspace{-\baselineskip}
+% There are a few options available, which are listed in the next subsection.
+%
+% \subsection{Options}
+% By default, the environment has no line numbers or markers. You can use the following options:
+%
% \begin{tabular}{ll}
-% \verb|linenumber| & Enable line numbers\\
+% \verb|linenumber| & Same as \verb|leftlinenumber|\\
+% \verb|leftlinenumber| & Enable left line numbers\\
+% \verb|rightlinenumber| & Enable right 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|incolumn| or \verb|twocolumn| & The separation line would fit in the column \\&(\emph{automatically applied in two-column documents})\\
@@ -86,7 +97,7 @@
% \verb|off| & Hide all the \verb|mindflow| environments
% \end{tabular}
%
-% \DescribeEnv{mindflow}
+% \DescribeEnv{\{mindflow\}}
% Then you can use the \verb|mindflow| environment as
% \begin{verbatim}
% \begin{mindflow}
@@ -93,7 +104,9 @@
% ...
% \end{mindflow}
% \end{verbatim}
+% \vspace{-\baselineskip}
%
+% \subsection{About the line numbers}
% \linenumbers
%
% You can also add line numbers to the other part of your document in the usual
@@ -104,9 +117,10 @@
% Line numbers within the \textsf{mindflow} environments are independent from
% those of the main text.
% \end{mindflow}
-% (\emph{I recommend that you put an empty line before and after the mindflow
-% environments. This way, your paragraph structure won't get changed when you
-% use the }\verb|off|\emph{ option.})
+% (\emph{I recommend that you put an empty line before and after the mindflow
+% environments, i.e.~make the \emph{\textsf{mindflow}} environment a paragraph
+% of its own. This way, your paragraph structure won't get changed when you use
+% the} \verb|off|\emph{ option.})
%
% \nolinenumbers
%
@@ -162,7 +176,8 @@
% 8\% for the line numbers.
%
% \section{An example}
-% With option \verb|linenumber, leftmarker, rightmarker| and the following settings:
+% With option \verb|leftlinenumber, rightlinenumber, leftmarker, rightmarker| and the
+% following settings:
% \begin{verbatim}
% \colorlet{mindflowLine}{green!50!black}
% \colorlet{mindflowText}{blue!50!cyan}
@@ -169,10 +184,10 @@
% \colorlet{mindflowNum}{red!50!orange}
% \colorlet{mindflowMarker}{orange}
% \renewcommand{\mindflowTextFont}{\normalfont\footnotesize\sffamily\itshape}
-% \renewcommand{\mindflowNumFont}{\normalfont\small\footnotesize\sffamily}
+% \renewcommand{\mindflowNumFont}{\normalfont\small\footnotesize\ttfamily}
% \renewcommand{\mindflowMarkerFont}{\normalfont\footnotesize\sffamily}
% \renewcommand{\mindflowLeft}{\hspace{1em}\(\succ\)}
-% \renewcommand{\mindflowRight}{\(\prec\)}
+% \renewcommand{\mindflowRight}{\(\prec\)\hspace{1em}}
% \setlength{\mindflowLineHeight}{1pt}
% \end{verbatim}
% \vspace{-.5\baselineskip}
@@ -179,6 +194,7 @@
% One gets:
% \makeatletter
% \@mindflow at leftmarkertrue
+% \@mindflow at rightlinenumbertrue
% \makeatother
% \colorlet{mindflowLine}{green!50!black}
% \colorlet{mindflowText}{blue!50!cyan}
@@ -185,10 +201,10 @@
% \colorlet{mindflowNum}{red!50!orange}
% \colorlet{mindflowMarker}{orange}
% \renewcommand{\mindflowTextFont}{\normalfont\footnotesize\sffamily\itshape}
-% \renewcommand{\mindflowNumFont}{\normalfont\small\footnotesize\sffamily}
+% \renewcommand{\mindflowNumFont}{\normalfont\small\footnotesize\ttfamily}
% \renewcommand{\mindflowMarkerFont}{\normalfont\footnotesize\sffamily}
% \renewcommand{\mindflowLeft}{\hspace{1em}\(\succ\)}
-% \renewcommand{\mindflowRight}{\(\prec\)}
+% \renewcommand{\mindflowRight}{\(\prec\)\hspace{1em}}
% \setlength{\mindflowLineHeight}{1pt}
% \begin{mindflow}
% \blindtext
@@ -205,12 +221,14 @@
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
-\DeclareBoolOption[false]{twocolumn} % Two column
-\DeclareBoolOption[false]{incolumn} % Separation line fits in the column
+\DeclareBoolOption[false]{off} % Turn off mindflow
+\DeclareBoolOption[false]{leftmarker} % Left marker
+\DeclareBoolOption[false]{rightmarker} % Right marker
+\DeclareBoolOption[false]{linenumber} % Left line numbers
+\DeclareBoolOption[false]{leftlinenumber} % Left line numbers
+\DeclareBoolOption[false]{rightlinenumber} % Right line numbers
+\DeclareBoolOption[false]{twocolumn} % Two column
+\DeclareBoolOption[false]{incolumn} % Separation line fits in the column
\ProcessKeyvalOptions*\relax
@@ -217,6 +235,9 @@
\if at mindflow@twocolumn
\@mindflow at incolumntrue
\fi
+\if at mindflow@linenumber
+ \@mindflow at leftlinenumbertrue
+\fi
%%================================
%% Initialization
@@ -242,7 +263,6 @@
%% The mindflow environment
%%================================
\newif\ifLNturnsON
-
\newcommand*{\mfSepLine}{%
\parskip=0pt
\LNturnsONfalse%
@@ -251,7 +271,8 @@
\if at mindflow@incolumn%
\makebox[\linewidth]{\rule{\linewidth}{\mindflowLineHeight}}%
\else%
- \hspace*{-\paperwidth}\makebox[\linewidth]{\rule{4\paperwidth}{\mindflowLineHeight}}%
+ \hspace*{-\paperwidth}%
+ \makebox[\linewidth]{\rule{4\paperwidth}{\mindflowLineHeight}}%
\fi%
\nopagebreak\par%
\ifLNturnsON\linenumbers\fi%
@@ -277,7 +298,7 @@
\linenumbers%
\renewcommand\makeLineNumber{%
\hss%
- \if at mindflow@linenumber%
+ \if at mindflow@leftlinenumber%
\mindflowNumFont\color{mindflowNum}\LineNumber\hspace{1em}%
\fi%
\color{mindflowMarker}%
@@ -284,9 +305,15 @@
\if at mindflow@leftmarker%
\mindflowMarkerFont\mindflowLeft\hspace{1em}%
\fi%
- \if at mindflow@rightmarker%
- \rlap{\hskip\textwidth\hspace{1em}\mindflowRight}%
- \fi%
+ \rlap{\hskip\textwidth%
+ \if at mindflow@rightmarker%
+ \hspace{1em}\mindflowRight%
+ \fi%
+ \if at mindflow@rightlinenumber%
+ \hspace{1em}%
+ \mindflowNumFont\color{mindflowNum}\LineNumber%
+ \fi%
+ }%
}%
}
{%
@@ -304,8 +331,8 @@
\newcommand*\linenomathpatch[1]{%
\cspreto{#1}{\linenomath}%
\cspreto{#1*}{\linenomath}%
- \cspreto{end#1}{\endlinenomath}%
- \cspreto{end#1*}{\endlinenomath}%
+ \csappto{end#1}{\endlinenomath}%
+ \csappto{end#1*}{\endlinenomath}%
}
\newcommand*\linenomathpatchAMS[1]{%
\cspreto{#1}{\linenomathAMS}%
Modified: trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty 2021-05-08 21:07:31 UTC (rev 59136)
+++ trunk/Master/texmf-dist/tex/latex/mindflow/mindflow.sty 2021-05-08 21:07:46 UTC (rev 59137)
@@ -17,18 +17,20 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mindflow}
- [2021/03/17 Mindflow environment]
+ [2021/05/07 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
-\DeclareBoolOption[false]{twocolumn} % Two column
-\DeclareBoolOption[false]{incolumn} % Separation line fits in the column
+\DeclareBoolOption[false]{off} % Turn off mindflow
+\DeclareBoolOption[false]{leftmarker} % Left marker
+\DeclareBoolOption[false]{rightmarker} % Right marker
+\DeclareBoolOption[false]{linenumber} % Left line numbers
+\DeclareBoolOption[false]{leftlinenumber} % Left line numbers
+\DeclareBoolOption[false]{rightlinenumber} % Right line numbers
+\DeclareBoolOption[false]{twocolumn} % Two column
+\DeclareBoolOption[false]{incolumn} % Separation line fits in the column
\ProcessKeyvalOptions*\relax
@@ -35,6 +37,9 @@
\if at mindflow@twocolumn
\@mindflow at incolumntrue
\fi
+\if at mindflow@linenumber
+ \@mindflow at leftlinenumbertrue
+\fi
%%================================
%% Initialization
@@ -60,7 +65,6 @@
%% The mindflow environment
%%================================
\newif\ifLNturnsON
-
\newcommand*{\mfSepLine}{%
\parskip=0pt
\LNturnsONfalse%
@@ -69,7 +73,8 @@
\if at mindflow@incolumn%
\makebox[\linewidth]{\rule{\linewidth}{\mindflowLineHeight}}%
\else%
- \hspace*{-\paperwidth}\makebox[\linewidth]{\rule{4\paperwidth}{\mindflowLineHeight}}%
+ \hspace*{-\paperwidth}%
+ \makebox[\linewidth]{\rule{4\paperwidth}{\mindflowLineHeight}}%
\fi%
\nopagebreak\par%
\ifLNturnsON\linenumbers\fi%
@@ -95,7 +100,7 @@
\linenumbers%
\renewcommand\makeLineNumber{%
\hss%
- \if at mindflow@linenumber%
+ \if at mindflow@leftlinenumber%
\mindflowNumFont\color{mindflowNum}\LineNumber\hspace{1em}%
\fi%
\color{mindflowMarker}%
@@ -102,9 +107,15 @@
\if at mindflow@leftmarker%
\mindflowMarkerFont\mindflowLeft\hspace{1em}%
\fi%
- \if at mindflow@rightmarker%
- \rlap{\hskip\textwidth\hspace{1em}\mindflowRight}%
- \fi%
+ \rlap{\hskip\textwidth%
+ \if at mindflow@rightmarker%
+ \hspace{1em}\mindflowRight%
+ \fi%
+ \if at mindflow@rightlinenumber%
+ \hspace{1em}%
+ \mindflowNumFont\color{mindflowNum}\LineNumber%
+ \fi%
+ }%
}%
}
{%
@@ -122,8 +133,8 @@
\newcommand*\linenomathpatch[1]{%
\cspreto{#1}{\linenomath}%
\cspreto{#1*}{\linenomath}%
- \cspreto{end#1}{\endlinenomath}%
- \cspreto{end#1*}{\endlinenomath}%
+ \csappto{end#1}{\endlinenomath}%
+ \csappto{end#1*}{\endlinenomath}%
}
\newcommand*\linenomathpatchAMS[1]{%
\cspreto{#1}{\linenomathAMS}%
More information about the tex-live-commits
mailing list.