summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mindflow
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-03-13 03:01:14 +0000
committerNorbert Preining <norbert@preining.info>2021-03-13 03:01:14 +0000
commit2a899339df4bb55e3aa0d5b7a4975b1743341e17 (patch)
tree4d26b328e10b82678abc4bd31726e8b2548eed42 /macros/latex/contrib/mindflow
parentcf09e33d4f54e872c7090def0ad41b06fb559cdb (diff)
CTAN sync 202103130301
Diffstat (limited to 'macros/latex/contrib/mindflow')
-rw-r--r--macros/latex/contrib/mindflow/mindflow.dtx45
-rw-r--r--macros/latex/contrib/mindflow/mindflow.ins10
-rw-r--r--macros/latex/contrib/mindflow/mindflow.pdfbin154231 -> 168685 bytes
3 files changed, 27 insertions, 28 deletions
diff --git a/macros/latex/contrib/mindflow/mindflow.dtx b/macros/latex/contrib/mindflow/mindflow.dtx
index 9f7e2adc98..43fadef53e 100644
--- a/macros/latex/contrib/mindflow/mindflow.dtx
+++ b/macros/latex/contrib/mindflow/mindflow.dtx
@@ -4,14 +4,11 @@
% -------------------------------
%
% 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)
+% Project Public License, either version 1.3c 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
@@ -21,7 +18,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{mindflow}
%<*package>
- [2021/03/11 Mindflow environment]
+ [2021/03/12 Mindflow environment]
%</package>
%
%<*driver>
@@ -45,7 +42,7 @@
%</driver>
% \fi
%
-% \CheckSum{119}
+% \CheckSum{125}
%
% \GetFileInfo{mindflow.dtx}
%
@@ -114,6 +111,10 @@
% \verb|\mindflowLeft| and \verb|\mindflowRight|. Both have the default
% value as ``\verb|*|''.
%
+% \DescribeMacro{\mindflowLineHeight}
+% The height of the separation line is a length macro named \verb|\mindflowLineHeight|,
+% with default value \verb|0.4pt|. You can change this with \verb|\setlength|.
+%
% And finally, the color for texts and line numbers within the \verb|mindflow|
% environments are called \verb|mindflowText| and \verb|mindflowNum|,
% respectively. By default, they have the same color as the context, with
@@ -122,23 +123,25 @@
% \section{An example}
% With option \verb|linenumber, leftmarker, rightmarker| and the following settings:
% \begin{verbatim}
-% \colorlet{mindflowText}{blue!50!cyan}
-% \colorlet{mindflowNum}{blue!50!cyan}
-% \renewcommand{\mindflowTextFont}{\footnotesize\sffamily}
-% \renewcommand{\mindflowNumFont}{\footnotesize\sffamily}
+% \colorlet{mindflowText}{blue!50!cyan!80}
+% \colorlet{mindflowNum}{blue!50!cyan!80}
+% \renewcommand{\mindflowTextFont}{\normalfont\footnotesize\sffamily\itshape}
+% \renewcommand{\mindflowNumFont}{\normalfont\footnotesize\sffamily}
% \renewcommand{\mindflowLeft}{\hspace{1em}\(\succ\)}
% \renewcommand{\mindflowRight}{\(\prec\)}
+% \setlength{\mindflowLineHeight}{1pt}
% \end{verbatim}
% One gets:
% \makeatletter
% \@mindflow@leftmarkertrue
% \makeatother
-% \colorlet{mindflowText}{blue!50!cyan}
-% \colorlet{mindflowNum}{blue!50!cyan}
-% \renewcommand{\mindflowTextFont}{\footnotesize\sffamily}
-% \renewcommand{\mindflowNumFont}{\footnotesize\sffamily}
+% \colorlet{mindflowText}{blue!50!cyan!80}
+% \colorlet{mindflowNum}{blue!50!cyan!80}
+% \renewcommand{\mindflowTextFont}{\normalfont\footnotesize\sffamily\itshape}
+% \renewcommand{\mindflowNumFont}{\normalfont\footnotesize\sffamily}
% \renewcommand{\mindflowLeft}{\hspace{1em}\(\succ\)}
% \renewcommand{\mindflowRight}{\(\prec\)}
+% \setlength{\mindflowLineHeight}{1pt}
% \begin{mindflow}
% \blindtext
% \end{mindflow}
@@ -181,6 +184,8 @@
\newcommand{\mindflowNumFont}{\normalfont\scriptsize\ttfamily}
\newcommand{\mindflowLeft}{*}
\newcommand{\mindflowRight}{*}
+\newlength{\mindflowLineHeight}
+\setlength{\mindflowLineHeight}{0.4pt}
%%================================
%% The mindflow environment
@@ -193,9 +198,9 @@
\ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
\par\noindent\nopagebreak%
\if@mindflow@incolumn%
- \makebox[\linewidth]{\rule{\linewidth}{0.4pt}}%
+ \makebox[\linewidth]{\rule{\linewidth}{\mindflowLineHeight}}%
\else%
- \hspace*{-\paperwidth}\makebox[\linewidth]{\rule{4\paperwidth}{0.4pt}}%
+ \hspace*{-\paperwidth}\makebox[\linewidth]{\rule{4\paperwidth}{\mindflowLineHeight}}%
\fi%
\nopagebreak\par%
\ifLNturnsON\linenumbers\fi%
@@ -212,8 +217,8 @@
\else
\newenvironment{mindflow}
{%
- \setcounter{recordLN}{\value{linenumber}}
- \setcounter{linenumber}{\value{mfLN}}
+ \setcounter{recordLN}{\value{linenumber}}%
+ \setcounter{linenumber}{\value{mfLN}}%
\LNturnsONfalse%
\ifLineNumbers\LNturnsONtrue\fi\nolinenumbers%
\mindflowTextFont\color{mindflowText}%
@@ -236,8 +241,8 @@
\par%
\vspace{-.5\baselineskip}\mfSepLine%
\ifLNturnsON\linenumbers\fi%
- \setcounter{mfLN}{\value{linenumber}}
- \setcounter{linenumber}{\value{recordLN}}
+ \setcounter{mfLN}{\value{linenumber}}%
+ \setcounter{linenumber}{\value{recordLN}}%
}
\fi
% \end{macrocode}
diff --git a/macros/latex/contrib/mindflow/mindflow.ins b/macros/latex/contrib/mindflow/mindflow.ins
index fdc7beb6d7..ca666a6c65 100644
--- a/macros/latex/contrib/mindflow/mindflow.ins
+++ b/macros/latex/contrib/mindflow/mindflow.ins
@@ -2,14 +2,11 @@
%% 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
+%% the LaTeX Project Public License, either version 1.3c 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
@@ -23,15 +20,12 @@
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
+the LaTeX Project Public License, either version 1.3c 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}}}
diff --git a/macros/latex/contrib/mindflow/mindflow.pdf b/macros/latex/contrib/mindflow/mindflow.pdf
index ba0e113416..b9448dbd48 100644
--- a/macros/latex/contrib/mindflow/mindflow.pdf
+++ b/macros/latex/contrib/mindflow/mindflow.pdf
Binary files differ