From fa0ad29fb0b7ca0e882ba70be6497227c4130518 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 18 May 2018 21:09:50 +0000 Subject: clipboard (18may18) git-svn-id: svn://tug.org/texlive/trunk@47747 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/clipboard/README | 5 ++++- .../texmf-dist/doc/latex/clipboard/clipboard.pdf | Bin 46175 -> 170869 bytes .../texmf-dist/doc/latex/clipboard/clipboard.tex | 12 ++++++------ .../texmf-dist/tex/latex/clipboard/clipboard.sty | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Master/texmf-dist/doc/latex/clipboard/README b/Master/texmf-dist/doc/latex/clipboard/README index bed5033f8eb..0b5f21eb131 100644 --- a/Master/texmf-dist/doc/latex/clipboard/README +++ b/Master/texmf-dist/doc/latex/clipboard/README @@ -4,6 +4,9 @@ Description: Copy and paste into and across documents The clipboard package provides a basic framework for copying and pasting text and commands into and across multiple documents. +2016/05/18 v0.3 + Content definitions take global scope + 2013/01/18 v0.2 Package: Renamed: copypaste->clipboard Commands: @@ -27,7 +30,7 @@ Usage: *See clipboard.pdf -------------------------------------------------------------------------------- -Copyright (C) 2013 Eduardo C. Lourenço de Lima +Copyright (C) 2013-2016 Eduardo C. Lourenço de Lima This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html diff --git a/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf b/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf index 8edeb11abe0..f22b7eed016 100644 Binary files a/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf and b/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf differ diff --git a/Master/texmf-dist/doc/latex/clipboard/clipboard.tex b/Master/texmf-dist/doc/latex/clipboard/clipboard.tex index 2603598ab14..c758527baf2 100644 --- a/Master/texmf-dist/doc/latex/clipboard/clipboard.tex +++ b/Master/texmf-dist/doc/latex/clipboard/clipboard.tex @@ -12,8 +12,8 @@ % \documentclass{ltxdoc} -\newcommand\fileversion {0.2} -\newcommand\filedate {January 18, 2013} +\newcommand\fileversion {0.3} +\newcommand\filedate {May 18, 2016} \newenvironment{Description} {\par\medskip\noindent\ignorespaces}{} @@ -31,7 +31,7 @@ \section*{Introduction} -The |clipboard| package provides a basic framework for copying and pasting text and commands across multiple documents. +The |clipboard| package provides a basic framework for copying and pasting content within a single document or across multiple documents. \begin{synopsis} \item |\newclipboard | \marg{basename} @@ -52,8 +52,8 @@ The first step is to create a clipboard. \begin{Description} \DescribeMacro{\Copy} -The command |\Copy| copies a \meta{content} identified as \meta{key} to the clipboard. -\footnote {Lowercase \texttt{\char92 copy} is already defined in {\TeX}.} +The command |\Copy| copies a \meta{content} identified as \meta{key} to the clipboard.\footnote +{Lowercase \texttt{\char92 copy} is already defined in {\TeX}.} \begin{synopsis} \item |\Copy| \marg{key} \marg{content} \end{synopsis} @@ -61,7 +61,7 @@ The command |\Copy| copies a \meta{content} identified as \meta{key} to the clip \begin{Description} \DescribeMacro{\Paste} -And the command |\Paste| pastes the content identified by \meta{key} into the same or another document. +And the command |\Paste| pastes the content identified by \meta{key} somewhere else in the same or another document. See below. \begin{synopsis} \item |\Paste| \marg{key} diff --git a/Master/texmf-dist/tex/latex/clipboard/clipboard.sty b/Master/texmf-dist/tex/latex/clipboard/clipboard.sty index 765c0f5d626..dc3dfe64be6 100644 --- a/Master/texmf-dist/tex/latex/clipboard/clipboard.sty +++ b/Master/texmf-dist/tex/latex/clipboard/clipboard.sty @@ -14,11 +14,11 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/06/01] -\ProvidesPackage{clipboard}[2013/01/18 v0.2 Copy and paste into and across documents] +\ProvidesPackage{clipboard}[2016/05/18 v0.3 Copy and paste into and across documents] \newwrite \clipboard@fileout \newcommand\clipboard@write [2] {\immediate\write\clipboard@fileout{\noexpand\clipboard{#1}{\unexpanded{#2}}}} -\newcommand\clipboard@copy [2] {\@namedef{clipboard@#1}{#2}} +\newcommand\clipboard@copy [2] {\global\@namedef{clipboard@#1}{#2}} \newcommand\clipboard@paste [1] {\@nameuse{clipboard@#1}} \newcommand\newclipboard [1] {\immediate\openout\clipboard@fileout=#1.cpy} -- cgit v1.2.3