From f160c5eb0e0ad64a045468874f9824dd6994a389 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Sep 2020 21:19:32 +0000 Subject: multicolrule (17sep20) git-svn-id: svn://tug.org/texlive/trunk@56366 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/multicolrule/mcrule-examples.pdf | Bin 50874 -> 61063 bytes .../doc/latex/multicolrule/mcrule-examples.tex | 27 +++++++++++++++++++-- .../doc/latex/multicolrule/multicolrule.pdf | Bin 561243 -> 519743 bytes 3 files changed, 25 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.pdf b/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.pdf index 7a4237a86ec..8ec88d4bae4 100644 Binary files a/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.pdf and b/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.pdf differ diff --git a/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.tex b/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.tex index 3796b78e320..4d00ba53bb5 100644 --- a/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.tex +++ b/Master/texmf-dist/doc/latex/multicolrule/mcrule-examples.tex @@ -8,7 +8,7 @@ \usepackage{bbding} \usepackage{pgfornament} \usepackage{bidi} -\usetikzlibrary{calc} +\usetikzlibrary{math,calc} \setlength{\columnsep}{24pt} \setlength{\columnseprule}{.5pt} \begin{document} @@ -164,7 +164,7 @@ for instructions on how to set them in your own documents. \lipsum[1-2] \end{multicols} -\begin{multicols}{2}[Custom line with horizontal lines flush with vertical rule] +\begin{multicols}{2}[Custom line with horizontal lines flush with vertical rule\footnote{Based on an answer to tex.stackexchange question 47828}] \SetMCRule{color=gray,width=0.4pt, expand=2pt, custom-line={ \coordinate (TOPLEFT) at ($(TOP)-(\columnwidth+.5\columnsep,\columnseprule)$); \coordinate (TOPRIGHT) at ($(TOP)+(\columnwidth+.5\columnsep,-\columnseprule)$); @@ -175,6 +175,29 @@ for instructions on how to set them in your own documents. \lipsum[1-2] \end{multicols} +\setlength{\columnsep}{2in} + +\begin{multicols}{2}[Notepad image between two columns\footnote{Based on an answer to tex.stackexchange question 522305}] + \SetMCRule{color=blue!10,width=2pt, custom-line={ + \tikzmath {coordinate \t, \b; + \t = (TOP)-(.45\columnsep,0); + integer \r, \s; + \r = \ty / 16; + \s = \ty - \r*16; + \t = (\t)-(0,.5*\s); + \b = (\t)+(.9\columnsep,-\r*16); + } + \draw [line width=\columnseprule] + (\t) -- ++(.9\columnsep,0) -- (\b) -- ++(-.9\columnsep,0) -- cycle; + \foreach \fila in {1,...,\r} + { + \draw [line width=\columnseprule] + ($(\t)-(0,\fila*16pt)$) -- ++(0.90\columnsep,0); + } + }} + \lipsum[1-2] +\end{multicols} + \subsection*{Extended Rules} \setlength{\columnsep}{24pt} diff --git a/Master/texmf-dist/doc/latex/multicolrule/multicolrule.pdf b/Master/texmf-dist/doc/latex/multicolrule/multicolrule.pdf index 9571400c979..acb3d123be5 100644 Binary files a/Master/texmf-dist/doc/latex/multicolrule/multicolrule.pdf and b/Master/texmf-dist/doc/latex/multicolrule/multicolrule.pdf differ -- cgit v1.2.3