summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mindflow
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-12 23:03:24 +0000
committerKarl Berry <karl@freefriends.org>2021-03-12 23:03:24 +0000
commitc7a6ddbdf2fbce5333cf3052b2a94de9e31db193 (patch)
tree5bd218b3803634d126beaba0fbe5f14146bdef41 /Master/texmf-dist/tex/latex/mindflow
parentc2a74d4c38b7749e5100b884bdf2468404743945 (diff)
mindflow (12mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58304 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mindflow')
-rw-r--r--Master/texmf-dist/tex/latex/mindflow/mindflow.sty21
1 files changed, 10 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/mindflow/mindflow.sty b/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
index 4417c90b56f..13f8f51f2ee 100644
--- a/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
+++ b/Master/texmf-dist/tex/latex/mindflow/mindflow.sty
@@ -9,18 +9,15 @@
%% 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.
-%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mindflow}
- [2021/03/11 Mindflow environment]
+ [2021/03/12 Mindflow environment]
\RequirePackage{kvoptions}
@@ -55,6 +52,8 @@
\newcommand{\mindflowNumFont}{\normalfont\scriptsize\ttfamily}
\newcommand{\mindflowLeft}{*}
\newcommand{\mindflowRight}{*}
+\newlength{\mindflowLineHeight}
+\setlength{\mindflowLineHeight}{0.4pt}
%%================================
%% The mindflow environment
@@ -67,9 +66,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%
@@ -86,8 +85,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}%
@@ -110,8 +109,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
\endinput