diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-08 23:07:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-08 23:07:14 +0000 |
commit | 923c59fcdff0b3f2a5ade27687660858ddc68f3c (patch) | |
tree | 887207a132971cc1efd76203ae77de299d66c68b /Master/texmf-dist/tex/xelatex | |
parent | b762ba1368a8785e9f6832f1186588171e168a0a (diff) |
unisugar (8may11)
git-svn-id: svn://tug.org/texlive/trunk@22357 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/unisugar/unisugar.sty | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/xelatex/unisugar/unisugar.sty b/Master/texmf-dist/tex/xelatex/unisugar/unisugar.sty index bed0ef99de5..2c1de5b4627 100644 --- a/Master/texmf-dist/tex/xelatex/unisugar/unisugar.sty +++ b/Master/texmf-dist/tex/xelatex/unisugar/unisugar.sty @@ -11,11 +11,11 @@ % The Current Maintainer of this work is Yossi Gil % % This work consists of the files unisugar.tex and unisugar.sty and the derived -% unisugar.pdf +% file unisugar.pdf \NeedsTeXFormat{LaTeX2e} -\newcommand\date@unisugar{2011/02/22} -\newcommand\version@unisugar{V 0.91} +\newcommand\date@unisugar{2011/05/07} +\newcommand\version@unisugar{V 0.92} \newcommand\author@unisugar{Yossi Gil} \newcommand\mail@unisugar{yogi@cs.technion.ac.il} \newcommand\signature@unisugar{% @@ -24,7 +24,7 @@ } \ProvidesPackage{unisugar}[\date@unisugar{} \signature@unisugar: - Selected Unicode characters (⌘, ␣, •, ⏎, ¶, and §) + Selected Unicode characters (e.g., ⌘, ␣, •, ⏎, ¶, and §) employed in some very common LaTeX commands. ] @@ -59,27 +59,32 @@ \ifxetex \relax \else - \PackageWarning{You should be LaTeXing your file with "xelatex \jobname" to enjoy this package fully} + \PackageWarning{You should be LaTeXing your file with "xelatex \jobname" + to enjoy this package fully} \endinput \fi % ⌘: U+2318 PLACE OF INTEREST SIGN (also command key), is used as a direction -% neutral escape character. Makes it possible to write to use the command key +% neutral escape character. Makes it possible to use the command key % character as a command prefix. Useful in particular with right-to-left texts, -% in which the familiar backslash may be a bit confusing. +% in which the familiar, yet directionally non-neutral, backslash may be a bit confusing. \catcode"2318=11 \edef\⌘{⌘} \catcode"2318=0 % ␣: U+2423 OPEN BOX, a visual space is allowed as a legitimate character in % control sequences, whereby eliminating the need for ugly juxtaposing of words. -⌘catcode"2423=11 -⌘edef\␣{␣} -⌘catcode"2423=11 +\catcode"2423=11 +\edef\␣{␣} + + +% …: U+2026 HORIZONTAL ELLIPSIS, will serve as a sugar nickname for \ldots. +⌘catcode"2026=⌘active +⌘newcommand…{⌘ldots} % •: U+2022 BULLET (black small circle), a sugared alias for ⌘item. ⌘catcode"2022=11 -⌘edef\•{•} +⌘edef⌘•{•} ⌘catcode"2022=⌘active ⌘newcommand•{⌘item} @@ -121,8 +126,6 @@ }% } - - % §: U+00A7 SECTION SIGN, will serve as a sugar nickname for ⌘section, using % the remainder of the line as the section's title. Further, §§, that is two % successive occurrences of this Unicode code point, shall serve as a sugared |