summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-11 22:01:59 +0000
committerKarl Berry <karl@freefriends.org>2019-03-11 22:01:59 +0000
commit73fc8f1428dc92eee4f0fc4f3f8b8b5f163be79d (patch)
treec08163f93134c40fa0fa0b0c5db1a5a86a8e930c
parent4e23992233ebab05b200a616b19c4347bf2b8ce9 (diff)
sectionbreak (11mar19)
git-svn-id: svn://tug.org/texlive/trunk@50339 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md6
-rw-r--r--Master/texmf-dist/doc/latex/sectionbreak/README.md8
-rw-r--r--Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdfbin39755 -> 49309 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex4
-rw-r--r--Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty37
5 files changed, 50 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md b/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md
index 81d8057eee4..95eb430a5a0 100644
--- a/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/sectionbreak/CHANGELOG.md
@@ -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
diff --git a/Master/texmf-dist/doc/latex/sectionbreak/README.md b/Master/texmf-dist/doc/latex/sectionbreak/README.md
index 1f6d851df28..b7b6348f8e6 100644
--- a/Master/texmf-dist/doc/latex/sectionbreak/README.md
+++ b/Master/texmf-dist/doc/latex/sectionbreak/README.md
@@ -9,6 +9,10 @@ books to signal changes in a story, like changes in time, location, etc.
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 @@ There are several package options:
: 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.
diff --git a/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf b/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf
index 5fbc8f8846f..0cea528aeb7 100644
--- a/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf
+++ b/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex b/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex
index fced44203f0..dfef080af66 100644
--- a/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex
+++ b/Master/texmf-dist/doc/latex/sectionbreak/sectionbreak-doc.tex
@@ -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}
diff --git a/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty b/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty
index e2131c290c2..28b653b7882 100644
--- a/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty
+++ b/Master/texmf-dist/tex/latex/sectionbreak/sectionbreak.sty
@@ -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@skip\relax\else%
+ % set skips only if the options haven't been used
+ \if\sectionbreak@preskip\relax%
+ \def\sectionbreak@preskip{\sectionbreak@skip}%
+ \fi%
+ \if\sectionbreak@postskip\relax%
+ \def\sectionbreak@postskip{\sectionbreak@skip}%
+ \fi%
+\fi
+
+% add default value for preskip
+\if\sectionbreak@preskip\relax%
+ \def\sectionbreak@preskip{2em}%
+\fi
+
+% add default value for postskip
+\if\sectionbreak@postskip\relax%
+ \def\sectionbreak@postskip{2em}%
+\fi
+
\newdimen\asterism@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@disable%
+ \renewcommand\sectionbreak[1][]{}%
+\fi
+
\endinput