summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/multicolrule/mcrule-examples.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-05 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2019-10-05 03:01:15 +0000
commit72c9345e5bafe708888bf65448a81d1aee8275ed (patch)
treea1a99929b3d7307572844833f09ad7ba5ad1405d /macros/latex/contrib/multicolrule/mcrule-examples.tex
parent9d9c04e14d0da9dd7829d0ec896aabfd50414fd8 (diff)
CTAN sync 201910050301
Diffstat (limited to 'macros/latex/contrib/multicolrule/mcrule-examples.tex')
-rw-r--r--macros/latex/contrib/multicolrule/mcrule-examples.tex55
1 files changed, 44 insertions, 11 deletions
diff --git a/macros/latex/contrib/multicolrule/mcrule-examples.tex b/macros/latex/contrib/multicolrule/mcrule-examples.tex
index ea5991c54e..3796b78e32 100644
--- a/macros/latex/contrib/multicolrule/mcrule-examples.tex
+++ b/macros/latex/contrib/multicolrule/mcrule-examples.tex
@@ -2,17 +2,19 @@
\documentclass{article}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{fontspec}
-\usepackage[tikz]{multicolrule}[2018/12/31]
+\usepackage[tikz]{multicolrule}[2019/10/01]
\usepackage{lipsum}
+\usepackage{fancyvrb}
\usepackage{bbding}
\usepackage{pgfornament}
\usepackage{bidi}
+\usetikzlibrary{calc}
\setlength{\columnsep}{24pt}
\setlength{\columnseprule}{.5pt}
\begin{document}
\section*{Style Gallery}
-This file gives brief examples covering all the defined line styles and
+This file gives brief examples covering all defined line styles and
other functions available in \texttt{multicolrule}. See the documentation
for instructions on how to set them in your own documents.
@@ -157,13 +159,22 @@ for instructions on how to set them in your own documents.
\lipsum[1-2]
\end{multicols}
-\setlength{\columnsep}{50pt}
-\begin{multicols}{2}[Custom Line (color gray, 4 repeats), just because we can]
+\begin{multicols}{2}[Custom line that is too wide for the separator]
\SetMCRule{color=gray,repeat=4,repeat-distance=4pt,width=1pt,custom-line={\path (TOP) to [ornament=88] (BOT);}}
\lipsum[1-2]
\end{multicols}
-\newpage
+\begin{multicols}{2}[Custom line with horizontal lines flush with vertical rule]
+ \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)$);
+ \coordinate (BOTLEFT) at ($(BOT)-(\columnwidth+.5\columnsep,-\columnseprule)$);
+ \coordinate (BOTRIGHT) at ($(BOT)+(\columnwidth+.5\columnsep,\columnseprule)$);
+ \draw[line width=\columnseprule] (TOPLEFT) -- (TOPRIGHT)
+ (TOP) -- (BOT) (BOTLEFT) -- (BOTRIGHT);}}
+ \lipsum[1-2]
+\end{multicols}
+
\subsection*{Extended Rules}
\setlength{\columnsep}{24pt}
@@ -177,16 +188,32 @@ for instructions on how to set them in your own documents.
\lipsum[1]
\end{multicols}
-\begin{multicols}{2}[Dashed -- shrink both 16pt]
- \SetMCRule{line-style=dashed,extend-top=-16pt,extend-bot=-16pt}
+\begin{multicols}{2}[Dashed -- expand -8pt]
+ \SetMCRule{line-style=dashed,expand=-8pt}
+ \lipsum[1]
+\end{multicols}
+
+\begin{multicols}{2}[Dots -- expand 8pt]
+ \SetMCRule{line-style=dots,expand=8pt}
\lipsum[1]
\end{multicols}
-\begin{multicols}{2}[Extend-Fill with extend-reserve]
+\begin{multicols}{2}[Dots -- shift 16pt]
+ \SetMCRule{line-style=dots,shift=16pt}
+ \lipsum[1-2]
+\end{multicols}
+
+\begin{multicols}{2}[Extend-fill with extend-reserve]
\SetMCRule{line-style=solid,extend-fill,extend-reserve=\baselineskip}
- \lipsum[1-5]
+ \lipsum[1-2]
+\end{multicols}
+And something at the end to show the reserved space.
+
+\begin{multicols}{2}[Strut with extend-fill + extend-reserve]
+ \SetMCRule{line-style=strut,extend-fill,extend-reserve=\baselineskip}
+ \lipsum[1-3]
\end{multicols}
-And something at the end to show the reserved space
+This text is here to show the effect of the strut used as a separator above.
\subsection*{Patterns}
@@ -194,7 +221,7 @@ And something at the end to show the reserved space
\DeclareMCRulePattern{right-hand}{custom-tile={\HandRight}{8pt}{8pt}}
\DeclareMCRulePattern{shrinking}{line-style=solid,color=blue,extend-top=-16pt}
\begin{multicols}{3}[Alternating Patterns]
- \SetMCRule{patterns={right-hand,left-hand}}
+ \SetMCRule{patterns={left-hand,right-hand}}
\lipsum[1-3]
\end{multicols}
@@ -225,6 +252,12 @@ And something at the end to show the reserved space
\lipsum[1-2]
\end{multicols}
+\DeclareMCRulePattern{invisible}{width=thin,line-style=strut}
+\SetMCRule{patterns={left-hand,invisible,right-hand}}
+\begin{multicols}{4}[Invisible middle divider with strut]
+ \raggedcolumns
+ \lipsum[1-2]
+\end{multicols}
\DeclareMCRulePattern{blue-double}{width=thick,line-style=solid,color=blue,double=3pt}
\DeclareMCRulePattern{orange-triple}{width=thick,line-style=solid,color=orange,triple=3pt}