From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 .../examples/4-reledpar_columns_alignment.tex      | 129 +++++++++++++++++++++
 1 file changed, 129 insertions(+)
 create mode 100644 macros/latex/contrib/reledmac/examples/4-reledpar_columns_alignment.tex

(limited to 'macros/latex/contrib/reledmac/examples/4-reledpar_columns_alignment.tex')

diff --git a/macros/latex/contrib/reledmac/examples/4-reledpar_columns_alignment.tex b/macros/latex/contrib/reledmac/examples/4-reledpar_columns_alignment.tex
new file mode 100644
index 0000000000..db79d0dcb5
--- /dev/null
+++ b/macros/latex/contrib/reledmac/examples/4-reledpar_columns_alignment.tex
@@ -0,0 +1,129 @@
+\documentclass{article}
+\usepackage[osf,p]{libertinus}
+\usepackage{microtype}
+\usepackage[pdfusetitle,hidelinks]{hyperref}
+\usepackage[english]{babel}
+\usepackage[showframe]{geometry}
+
+\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}
+\usepackage{reledpar}
+
+\linenummargin{left}
+\setlength{\Lcolwidth}{.44\textwidth}
+\setlength{\Rcolwidth}{.44\textwidth}
+\setlength{\columnrulewidth}{0.4pt}
+
+\begin{document}
+
+
+\title{\texttt{\textbackslash Columns} alignment}
+\date{}
+\maketitle
+\begin{abstract}
+This file provides example of setting the alignment of \texttt{\textbackslash{}Columns} on the page: right (default), left or center.
+
+The column are 0.44\texttt{\textbackslash{}textwidth}, and we use \texttt{\textbackslash{}columnsposition}.
+
+We also provide a last example, showing how we can manipulate space between colons, by redefining \texttt{\textbackslash{}beforecolumnseparator} and \texttt{\textbackslash{}aftercolumnseparator}.
+\end{abstract}
+
+
+\section{Right (default)}
+
+\columnsposition{R}
+\begin{pairs}
+
+\begin{Leftside}
+\beginnumbering
+\pstart
+Left side left side left side left side left side left side left side left side left side left side 
+\pend
+\endnumbering
+\end{Leftside}
+
+\begin{Rightside}
+\beginnumbering
+\pstart
+Right side right side right side right side right side right side right side right side right side right side 
+\pend
+\endnumbering
+\end{Rightside}
+\end{pairs}
+\Columns
+
+\section{Left}
+\columnsposition{L}
+
+\begin{pairs}
+
+\begin{Leftside}
+\beginnumbering
+\pstart
+Left side left side left side left side left side left side left side left side left side left side 
+\pend
+\endnumbering
+\end{Leftside}
+
+\begin{Rightside}
+\beginnumbering
+\pstart
+Right side right side right side right side right side right side right side right side right side right side 
+\pend
+\endnumbering
+\end{Rightside}
+\end{pairs}
+\Columns
+
+\section{Center}
+
+\columnsposition{C}
+\begin{pairs}
+
+\begin{Leftside}
+\beginnumbering
+\pstart
+Left side left side left side left side left side left side left side left side left side left side 
+\pend
+\endnumbering
+\end{Leftside}
+
+\begin{Rightside}
+\beginnumbering
+\pstart
+Right side right side right side right side right side right side right side right side right side right side 
+\pend
+\endnumbering
+\end{Rightside}
+\end{pairs}
+\Columns
+
+\section{Center, setting space between columns}
+
+Now, we set the spaces between columns, to have all the line occupied.
+
+\setlength{\beforecolumnseparator}{0.06\textwidth}
+\setlength{\aftercolumnseparator}{0.06\textwidth}
+
+\vspace{\baselineskip}
+
+\begin{pairs}
+
+\begin{Leftside}
+\beginnumbering
+\pstart
+Left side left side left side left side left side left side left side left side left side left side 
+\pend
+\endnumbering
+\end{Leftside}
+
+\begin{Rightside}
+\beginnumbering
+\pstart
+Right side right side right side right side right side right side right side right side right side right side 
+\pend
+\endnumbering
+\end{Rightside}
+\end{pairs}
+\Columns
+
+\end{document}
\ No newline at end of file
-- 
cgit v1.2.3

