summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty42
1 files changed, 40 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty b/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty
index 613202fe5c4..b50f647a839 100644
--- a/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty
+++ b/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty
@@ -13,7 +13,7 @@
%%
%%
\ProvidesFile{novel-TextMacros.sty}%
-[2017/03/01 v1.0.6 LaTeX file (text macros usable within document body)]
+[2017/03/05 v1.0.6a LaTeX file (text macros usable within document body)]
%%
@@ -65,6 +65,7 @@
% \stake inserts zero-width rule, 1pt thick, as placeholder.
% \color and \textcolor (from package xcolor) have been modified to ensure black, or grayscale when permitted.
% \squeeze{} and \crush{} for emergency text adjustment.
+% \bunchofspaces for inserting a pile of actual text space characters in one place.
%% The following useful commands are from core code, or other pre-loaded packages.
@@ -356,7 +357,7 @@
%
%%
% Environment toc (alternative table of contents):
-% optional argument: additional vspace after each \tocitem entry.
+% optional argument: additional vspace (\nbs) after each \tocitem entry.
% required: LR margin increase, to narrow the table (0pt = full textwidth).
\newlength\@tocnumwid
\newlength\@tocskip
@@ -368,6 +369,8 @@
\global\@tocnumwid=\@tocnumwid%
\setlength\@tocskip{#1\nbs}%
\global\@tocskip=\@tocskip%
+ \strut\bunchofspaces\par%
+ \vspace{-\nbs}%
}{%
\endgroup\end{adjustwidth}\par%
}%
@@ -522,6 +525,41 @@
%%
+%% Ensures that actual space characters are present on each numbered page.
+%% Some PDF software cannot accurately extract text, without seeing the space.
+\gdef\bunchofspaces{%
+ \smash{%
+ {\chapterfont%
+ \char"20%
+ \rlap{\emph{\char"20}}%
+ \rlap{\textbf{\char"20}}%
+ \rlap{\textbf{\emph{\char"20}}}%
+ }%
+ {\subchfont%
+ \rlap{\char"20}%
+ \rlap{\emph{\char"20}}%
+ \rlap{\textbf{\char"20}}%
+ \rlap{\textbf{\emph{\char"20}}}%
+ }%
+ {\headfont%
+ \rlap{\char"20}%
+ \rlap{\emph{\char"20}}%
+ \rlap{\textbf{\char"20}}%
+ \rlap{\textbf{\emph{\char"20}}}%
+ }%
+ \rmfamily{%
+ \rlap{\char"20}%
+ \rlap{\emph{\char"20}}%
+ \rlap{\textbf{\char"20}}%
+ \rlap{\textbf{\emph{\char"20}}}%
+ }%
+ {\decofont\rlap{\char"20}}%
+ }%
+}%
+%% end \bunchofspaces
+\gdef\specialblankline{\strut\bunchofspaces\par}
+%%
+
%%
%% End of file `novel-TextMacros.sty'.