summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mindflow
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-12 23:00:30 +0000
committerKarl Berry <karl@freefriends.org>2021-03-12 23:00:30 +0000
commit15e97ead7ce9d07e5ea84991ab069142a61f03e4 (patch)
treee2a3d8c57e24fbed5ccbe1f2257fed978cd3c9c5 /Master/texmf-dist/tex/latex/mindflow
parent1db23bcff288c7facf4492441aa44a69b6cfb4ad (diff)
mindflow (12mar21)
git-svn-id: svn://tug.org/texlive/trunk@58297 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