texlive[50339] Master/texmf-dist: sectionbreak (11mar19)
commits+karl at tug.org
commits+karl at tug.org
Mon Mar 11 23:01:59 CET 2019
Revision: 50339
http://tug.org/svn/texlive?view=revision&revision=50339
Author: karl
Date: 2019-03-11 23:01:59 +0100 (Mon, 11 Mar 2019)
Log Message:
-----------
sectionbreak (11mar19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/sectionbreak/README.md
trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf
trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex
trunk/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty
Modified: trunk/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md 2019-03-11 22:01:25 UTC (rev 50338)
+++ trunk/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md 2019-03-11 22:01:59 UTC (rev 50339)
@@ -1,3 +1,9 @@
+- 2019/03/11 version 0.1d
+ - fix for the Microtype error in the frozen TL 2018
+- 2019/02/07
+ - fixed `Inconsolata` font name in the documentation
+ - added `skip` option
+ - added `disable` option
- 2018/01/03 version 0.1c
- added copyright and version info to the `sectionbreak.sty` file
- fixed small errors in the documentation
Modified: trunk/Master/texmf-dist/doc/latex/sectionbreak/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sectionbreak/README.md 2019-03-11 22:01:25 UTC (rev 50338)
+++ trunk/Master/texmf-dist/doc/latex/sectionbreak/README.md 2019-03-11 22:01:59 UTC (rev 50339)
@@ -9,6 +9,10 @@
There are several package options:
+`disable`
+
+: disable section break printing.
+
`mark`
: characters printed in the center of the section break. It is space by default, common value might be `***` for example.
@@ -25,6 +29,10 @@
: Similar to `preskip`, but it is a space printed after the section mark.
+`skip`
+
+: Set both `preskip` and `postskip` to the same value.
+
`style`
: LaTeX commands for font style change, like `\bfseries`, for example.
Modified: trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex 2019-03-11 22:01:25 UTC (rev 50338)
+++ trunk/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex 2019-03-11 22:01:59 UTC (rev 50339)
@@ -6,10 +6,12 @@
\usepackage[asterism]{sectionbreak}
\usepackage[definitionLists=true,hybrid=true]{markdown}
\usepackage{fontspec}
+\usepackage{luatexbase} % because of Microtype error: https://tex.stackexchange.com/a/476742/2891
\usepackage{microtype}
\usepackage{hyperref}
+\usepackage{lipsum}
\setmainfont{TeX Gyre Schola}
-\setmonofont{Inconsolata}[Scale=MatchLowercase]
+\setmonofont{Inconsolatazi4}[Scale=MatchLowercase]
\ifdefined\version\else\def\version{undefined}\fi
\ifdefined\gitdate\else\def\gitdate{undefined}\fi
\begin{document}
Modified: trunk/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty 2019-03-11 22:01:25 UTC (rev 50338)
+++ trunk/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty 2019-03-11 22:01:59 UTC (rev 50339)
@@ -1,15 +1,39 @@
% This is file sectionbreak.sty
%% (c) 2017--2018 Michal Hoftich
-\ProvidesPackage{sectionbreak}[2018-01-03 v0.1c (Michal Hoftich)]
-\usepackage{kvoptions}
-\DeclareStringOption[2em]{preskip}
-\DeclareStringOption[2em]{postskip}
+\ProvidesPackage{sectionbreak}[2019-03-11 v0.1d (Michal Hoftich)]
+\RequirePackage{kvoptions}
+\DeclareStringOption[\relax]{preskip}
+\DeclareStringOption[\relax]{postskip}
+\DeclareStringOption[\relax]{skip}
\DeclareStringOption[\relax]{style}
\DeclareStringOption[~]{mark}
\DeclareBoolOption{asterism}
+\DeclareBoolOption{disable}
\ProcessKeyvalOptions*
+% the skip option can be used to set both preskip and postskip
+
+\if\sectionbreak at skip\relax\else%
+ % set skips only if the options haven't been used
+ \if\sectionbreak at preskip\relax%
+ \def\sectionbreak at preskip{\sectionbreak at skip}%
+ \fi%
+ \if\sectionbreak at postskip\relax%
+ \def\sectionbreak at postskip{\sectionbreak at skip}%
+ \fi%
+\fi
+
+% add default value for preskip
+\if\sectionbreak at preskip\relax%
+ \def\sectionbreak at preskip{2em}%
+\fi
+
+% add default value for postskip
+\if\sectionbreak at postskip\relax%
+ \def\sectionbreak at postskip{2em}%
+\fi
+
\newdimen\asterism at width
% asterism is character which consists of three asterisks layed out as a triangel
\newcommand\asterism{%
@@ -43,4 +67,9 @@
\sectionbreakmark{\asterism}
\fi
+% disable the section break in the document with the `disable` option
+\ifsectionbreak at disable%
+ \renewcommand\sectionbreak[1][]{}%
+\fi
+
\endinput
More information about the tex-live-commits
mailing list