diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-27 21:28:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-27 21:28:32 +0000 |
commit | 68700a3e635abab0e7d277732ecb441c16e6eeec (patch) | |
tree | e2a5827e8e616c5340290a999d76e142b7474a08 /Master/texmf-dist/source/xelatex | |
parent | f3698c03eee48d2f81a7d3e2ee689d6c9d503e06 (diff) |
bidi (27apr15)
git-svn-id: svn://tug.org/texlive/trunk@37080 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 55 |
1 files changed, 43 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx index 3ec5e48861e..c4dd0eb9fba 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx +++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx @@ -5,7 +5,7 @@ %<*readme> ___________________ The bidi package -v17 +v17.1 This package provides a convenient interface for typesetting bidirectional texts in Plain TeX and LaTeX, using XeTeX engine. @@ -25,7 +25,7 @@ a minimal working example showing the issue, and always choose the appropriate label for your query (i.e. if you are reporting any bugs, choose `Bug' label). -Current version release date: 2015/04/25 +Current version release date: 2015/04/27 ___________________ Vafa Khalighi @@ -319,7 +319,7 @@ by Vafa Khalighi. %\changes{v13.9}{2013/09/23}{Added implementaion of the package.} % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\ %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt] -%\large Documentation for \textcolor{blue!65!black}{version 17}} +%\large Documentation for \textcolor{blue!65!black}{version 17.1}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -330,7 +330,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} % %\Large -%Documentation for \textcolor{blue!65!black}{version 17}} +%Documentation for \textcolor{blue!65!black}{version 17.1}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -381,7 +381,7 @@ by Vafa Khalighi. %* %* Copyright (c) 2009--2015 Vafa Khalighi %* -%* 2015/04/25, v17 +%* 2015/04/27, v17.1 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -1138,7 +1138,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{44308} +%% \CheckSum{44326} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -2760,8 +2760,8 @@ by Vafa Khalighi. % \subsection{\textsf{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2015/04/25} -\def\bidiversion{v17} +\def\bididate{2015/04/27} +\def\bidiversion{v17.1} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -2883,7 +2883,7 @@ Bidirectional typesetting in plain TeX and LaTeX] %\fi % \subsection{\textsf{bidi.tex}} % \begin{macrocode} -\def\bididate{2015/04/25} +\def\bididate{2015/04/27} \def\bidiversion{v0.2} \catcode`@=11 \let \protect \relax @@ -6447,7 +6447,33 @@ bidi implementation of tufte title] % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bidipoem}% -[2014/04/25 v0.8 Environments for typesetting Persian traditional and modern poems] +[2014/04/27 v0.9 Environments for typesetting Persian traditional and modern poems] + +% Usage: +% +% \Setversedim #1#2 % define the layout (within a group): +% #1 = length of both half-verses +% #2 = separation distance = length of a connection, if present +% Variant: +% \Setversedim #1[#2]#3 % for half-verses of unequal length +% #1 = length of first (=right) half-verse +% #2 = length of second (=left) half-verse +% #3 = separation distance = length of a connection, if present +% +% \traditionalhalfverses #1#2 % typeset two separated half-verses +% #1 = text of first (=right) half-verse +% #2 = text of second (=left) half-verse +% Variant: +% \traditionalhalfverses #1[#2]#3 % typeset two connected half-verses +% #1 = text of first (=right) half-verse +% #2 = text of connection +% #3 = text of second (=left) half-verse +% +% Alternative (if preferred): +% +% \traditionalconnverses #1#2#3 % = \traditionalhalfverses #1[#2]#3 + + \newcommand*{\bidipoem@spreadbox}[2]{\hbox to #1{#2}} % define the layout, verses will be centered @@ -6478,8 +6504,13 @@ bidi implementation of tufte title] \par } % macro for two half verses -\newcommand*{\traditionalhalfverses}[2]{% normal case -\traditionalconnverses {#1}{\hfill}{#2}} +\newcommand*{\traditionalhalfverses}[2]{% optional parameter? +\ifx [#2\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[}% +\else\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[\hfill]{#2}}\fi% +\bidipoem@half@verses@next} + +\def \bidipoem@half@verses #1[#2]#3{% first[mid]second +\traditionalconnverses {#1}{#2}{#3}} {\catcode`\^^M=\active % these lines must end with % |