texlive[49801] Master: fancypar (23jan19)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 23 22:29:13 CET 2019


Revision: 49801
          http://tug.org/svn/texlive?view=revision&revision=49801
Author:   karl
Date:     2019-01-23 22:29:12 +0100 (Wed, 23 Jan 2019)
Log Message:
-----------
fancypar (23jan19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fancypar/README
    trunk/Master/texmf-dist/doc/latex/fancypar/fancypar.pdf
    trunk/Master/texmf-dist/source/latex/fancypar/fancypar.dtx
    trunk/Master/texmf-dist/source/latex/fancypar/fancypar.ins
    trunk/Master/texmf-dist/tex/latex/fancypar/fancypar.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/latex/fancypar/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancypar/README	2019-01-23 21:25:14 UTC (rev 49800)
+++ trunk/Master/texmf-dist/doc/latex/fancypar/README	2019-01-23 21:29:12 UTC (rev 49801)
@@ -1,7 +1,7 @@
 ==============================================================================
 
-The `fancypar' package v1.1
-Copyright (C) 2010 Gonzalo Medina (gmedinaar at unal.edu.co)
+The `fancypar' package v1.2
+Copyright (C) 2010, 2019 Gonzalo Medina (gmedinaar at unal.edu.co)
 
 License: LPPL = LaTeX Project Public Licence
 Maintenance Status: maintained (by Gonzalo Medina)

Modified: trunk/Master/texmf-dist/doc/latex/fancypar/fancypar.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/fancypar/fancypar.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fancypar/fancypar.dtx	2019-01-23 21:25:14 UTC (rev 49800)
+++ trunk/Master/texmf-dist/source/latex/fancypar/fancypar.dtx	2019-01-23 21:29:12 UTC (rev 49801)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2010 by Gonzalo Medina
+% Copyright (C) 2010, 2019 by Gonzalo Medina
 %
 % --------------------------------------------------------------------------
 %
@@ -116,6 +116,7 @@
 %   Right brace   \}     Tilde         \~}
 %
 % \changes{v 1.1}{2010/04/25}{First revision}
+% \changes{v 1.2}{2019/01/18}{Second revision}
 %
 % \GetFileInfo{fancypar.sty}
 %
@@ -129,7 +130,7 @@
 % \maketitle
 %
 % \begin{abstract}
-% \noindent This package offers five predefined decorative styles for individual text
+% \noindent This package offers five predefined decorative styles for text
 % paragraphs of a document; the user can easily control the styles' attributes using the
 % key-value mechanism. The package also allows the creation of new fancy designs.
 % \end{abstract}
@@ -362,7 +363,7 @@
 % |\vbox{#1\par\AddFancyFormat}|. Schematically the definition of a new style
 % (called, for example, |\MyStylePar|) should have the following aspect:
 % \begin{mycode}
-%  |\newcommand*\MyStylePar[1]{%|\\
+%  |\newcommand\MyStylePar[1]{%|\\
 %  |  \renewcommand\FancyPreFormat{%|\\
 %  |    ...some commands...|\\
 %  |  \renewcommand\FancyFormat{%|\\
@@ -482,7 +483,7 @@
 % |\usepackage{fancypar}|\\
 % |\usepackage{intcalc}|\\
 %
-% |\renewcommand*{\FancyZColor}{%|\\ 
+% |\renewcommand{\FancyZColor}{%|\\ 
 % |  \ifcase\intcalcMod{\value{fancycount}}{3}%|\\ 
 % |    OliveDrab4!100!white!90\or Chocolate3!100!white!80%|\\
 % |      \or LightGoldenrod3\fi|\\
@@ -493,7 +494,7 @@
 % |\end{document}| 
 % \end{mycode}
 %
-% \renewcommand*{\FancyZColor}{% 
+% \renewcommand{\FancyZColor}{% 
 %   \ifcase\intcalcMod{\value{fancycount}}{3}% 
 %     OliveDrab4!100!white!90\or Chocolate3!100!white!80\or LightGoldenrod3\fi
 % }
@@ -513,7 +514,7 @@
 %
 % |\newcounter{mycount}|\\
 %
-% |\newcommand*\MyStylePar[1]{%|\\
+% |\newcommand\MyStylePar[1]{%|\\
 % |  \renewcommand\FancyPreFormat{\setcounter{mycount}{0}}|\\
 % |  \renewcommand\FancyFormat{%|\\
 % |    \stepcounter{mycount}|\\
@@ -534,7 +535,7 @@
 % \end{mycode}
 % \newcounter{mycount}
 %
-% \newcommand*\MyStylePar[1]{%
+% \newcommand\MyStylePar[1]{%
 %  \renewcommand\FancyPreFormat{\setcounter{mycount}{0}}
 %  \renewcommand\FancyFormat{%
 %    \stepcounter{mycount}
@@ -583,7 +584,7 @@
 % Standard identification:
 % \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fancypar}[2010/04/25 v1.1 fancy paragraphs]
+\ProvidesPackage{fancypar}[2019/01/18 v1.2 fancy paragraphs]
 
 %    \end{macrocode}
 %
@@ -757,9 +758,10 @@
 %
 % \begin{macro}{\NotebookPar}
 % Now, to the definition of the five predefined styles. |\NotebookPar| comes first.
+% \changes{v 1.2}{2019/01/18}{NotebookPar admits more than one paragraph. Thanks to Frank Mittelbach}
 % \begin{macrocode}
 %%%% notebook %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\NotebookPar[2][]{%
+\newcommand\NotebookPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{\smallskip}
@@ -787,7 +789,9 @@
     \node (a) {\colorbox{\FancyNlColor}{%
       \vbox{%
         \vskip-0.5mm\parshape 1 0cm \FancyNTWidth%
-        #2\par\add at fancy@format%
+         \def\par{{\@@par}}% A trick that executes the real "par" = \@@par inside a group so that the parshape is restored. Thanks to Frank Mittelbach.
+         #2\@@par
+         \add at fancy@format%
       }%
     }%
   } {};
@@ -810,8 +814,8 @@
 % sophisticated zebra-like designs.
 % \begin{macrocode}
 \newcounter{fancycount}
-\newcommand*\FancyZColor{}
-\renewcommand*\FancyZColor{%alternate line colors
+\newcommand\FancyZColor{}
+\renewcommand\FancyZColor{%alternate line colors
   \ifodd\thefancycount % 
     \FancyZColorOne% 
   \else
@@ -819,8 +823,8 @@
   \fi 
 }
 
-\newcommand*\FancyZTextColor{}
-\renewcommand*\FancyZTextColor{%alternate text colors
+\newcommand\FancyZTextColor{}
+\renewcommand\FancyZTextColor{%alternate text colors
   \ifodd\thefancycount % 
     \FancyZTextColorOne% 
   \else
@@ -837,7 +841,7 @@
 % Now, the definition of |\ZebraPar|.
 % \begin{macrocode}
 %%%% zebra %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\ZebraPar[2][]{%
+\newcommand\ZebraPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}%
   \renewcommand\FancyPreFormat{\setcounter{fancycount}{0}}%
@@ -871,7 +875,7 @@
 % The turn now is for |\DashedPar|.
 % \begin{macrocode}
 %%%% dashed %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\DashedPar[2][]{%
+\newcommand\DashedPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}%
   \renewcommand\FancyPreFormat{%
@@ -896,7 +900,7 @@
 % The definition of |\MarkedPar|.
 % \begin{macrocode}
 %%%% marked %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\MarkedPar[2][]{%
+\newcommand\MarkedPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{}
@@ -917,7 +921,7 @@
 % And last, but not least, the definition of |\UnderlinedPar|.
 % \begin{macrocode}
 %%%% underlined %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\UnderlinedPar[2][]{
+\newcommand\UnderlinedPar[2][]{
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{}%
@@ -939,6 +943,7 @@
 % this macro is the core of this package; it is invoked in each one of the five predefined
 % styles (and must be used in newly defined ones). A description can be found in
 % \cite{eijk}.
+% \changes{v 1.2}{2019/01/18}{Now all other styles also admit more than one paragraph. Thanks to Frank Mittelbach}
 % \begin{macrocode}
 \newsavebox\linebox%
 \def\add at fancy@format{% 
@@ -945,7 +950,8 @@
   \setbox\linebox\lastbox 
   \ifvoid\linebox\FancyPreFormat\else 
     \unskip 
-    \unpenalty 
+    \unpenalty
+    \unskip %Allows more than one paragraph in MarkedPar, DashedPar, ZebraPar, and UnderlinedPar. Thanks to Frank Mittelbach 
     {\add at fancy@format}% 
     \FancyFormat
   \fi 

Modified: trunk/Master/texmf-dist/source/latex/fancypar/fancypar.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/fancypar/fancypar.ins	2019-01-23 21:25:14 UTC (rev 49800)
+++ trunk/Master/texmf-dist/source/latex/fancypar/fancypar.ins	2019-01-23 21:29:12 UTC (rev 49801)
@@ -2,7 +2,7 @@
 \keepsilent
 \preamble
 
-Copyright (C) 2010 Gonzalo Medina (gmedinaar at unal.edu.co)
+Copyright (C) 2010, 2019 Gonzalo Medina (gmedinaar at unal.edu.co)
 
 --------------------------------------------------------------------------
 

Modified: trunk/Master/texmf-dist/tex/latex/fancypar/fancypar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancypar/fancypar.sty	2019-01-23 21:25:14 UTC (rev 49800)
+++ trunk/Master/texmf-dist/tex/latex/fancypar/fancypar.sty	2019-01-23 21:29:12 UTC (rev 49801)
@@ -6,7 +6,7 @@
 %%
 %% fancypar.dtx  (with options: `package')
 %% 
-%% Copyright (C) 2010 Gonzalo Medina (gmedinaar at unal.edu.co)
+%% Copyright (C) 2010, 2019 Gonzalo Medina (gmedinaar at unal.edu.co)
 %% 
 %% --------------------------------------------------------------------------
 %% 
@@ -26,7 +26,7 @@
 %% and the derived files fancypar.sty and fancypar.pdf.
 %% 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fancypar}[2010/04/25 v1.1 fancy paragraphs]
+\ProvidesPackage{fancypar}[2019/01/18 v1.2 fancy paragraphs]
 
 \@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}}
 \@ifpackageloaded{tikz}{\usetikzlibrary{calc}}
@@ -67,7 +67,7 @@
     \def\FancyMarkPosition{\llap{\mbox{\FancyMark\quad}}\box\linebox}
   \or
     \def\FancyMarkPosition{\box\linebox\rlap{\mbox{\quad\FancyMark}}}
-  \fi
+  \fi 
 }{%
   \PackageWarning{fancypar}{erroneous input ignored}%
 }
@@ -107,7 +107,7 @@
 }
 
 %%%% notebook %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\NotebookPar[2][]{%
+\newcommand\NotebookPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{\smallskip}
@@ -135,7 +135,9 @@
     \node (a) {\colorbox{\FancyNlColor}{%
       \vbox{%
         \vskip-0.5mm\parshape 1 0cm \FancyNTWidth%
-        #2\par\add at fancy@format%
+         \def\par{{\@@par}}% A trick that executes the real "par" = \@@par inside a group so that the parshape is restored. Thanks to Frank Mittelbach.
+         #2\@@par
+         \add at fancy@format%
       }%
     }%
   } {};
@@ -145,8 +147,8 @@
 }
 
 \newcounter{fancycount}
-\newcommand*\FancyZColor{}
-\renewcommand*\FancyZColor{%alternate line colors
+\newcommand\FancyZColor{}
+\renewcommand\FancyZColor{%alternate line colors
   \ifodd\thefancycount %
     \FancyZColorOne%
   \else
@@ -154,8 +156,8 @@
   \fi
 }
 
-\newcommand*\FancyZTextColor{}
-\renewcommand*\FancyZTextColor{%alternate text colors
+\newcommand\FancyZTextColor{}
+\renewcommand\FancyZTextColor{%alternate text colors
   \ifodd\thefancycount %
     \FancyZTextColorOne%
   \else
@@ -164,7 +166,7 @@
 }
 
 %%%% zebra %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\ZebraPar[2][]{%
+\newcommand\ZebraPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}%
   \renewcommand\FancyPreFormat{\setcounter{fancycount}{0}}%
@@ -186,7 +188,7 @@
 }
 
 %%%% dashed %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\DashedPar[2][]{%
+\newcommand\DashedPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}%
   \renewcommand\FancyPreFormat{%
@@ -205,7 +207,7 @@
 }%
 
 %%%% marked %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\MarkedPar[2][]{%
+\newcommand\MarkedPar[2][]{%
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{}
@@ -220,7 +222,7 @@
 }
 
 %%%% underlined %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand*\UnderlinedPar[2][]{
+\newcommand\UnderlinedPar[2][]{
   \begingroup
   \setkeys[FP]{fancypar}{#1}
   \renewcommand\FancyPreFormat{}%
@@ -240,6 +242,7 @@
   \ifvoid\linebox\FancyPreFormat\else
     \unskip
     \unpenalty
+    \unskip %Allows more than one paragraph in MarkedPar, DashedPar, ZebraPar, and UnderlinedPar. Thanks to Frank Mittelbach
     {\add at fancy@format}%
     \FancyFormat
   \fi

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2019-01-23 21:25:14 UTC (rev 49800)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2019-01-23 21:29:12 UTC (rev 49801)
@@ -123,6 +123,7 @@
  'arial',       "die 'skipping, nonfree Aladdin license'",
  'armenian',    "&MAKEcopy",
  'armtex',      "die 'skipping, use armenian'",
+ 'armymemo',    "die 'skipping, requires arial'",
  'arphic',      "&MAKEarphic",
  'arrayjob',    "die 'skipping, use arrayjobx'",
  'artthreads',	"die 'skipping, per author (dps) request'",



More information about the tex-live-commits mailing list