summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-05-18 21:09:50 +0000
committerKarl Berry <karl@freefriends.org>2018-05-18 21:09:50 +0000
commitfa0ad29fb0b7ca0e882ba70be6497227c4130518 (patch)
treebce833968e053adf7eb988072235d5d34a686c2e
parent1ecb2b00c0a4ffbeb2df7551525038619e9ce76a (diff)
clipboard (18may18)
git-svn-id: svn://tug.org/texlive/trunk@47747 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/clipboard/README5
-rw-r--r--Master/texmf-dist/doc/latex/clipboard/clipboard.pdfbin46175 -> 170869 bytes
-rw-r--r--Master/texmf-dist/doc/latex/clipboard/clipboard.tex12
-rw-r--r--Master/texmf-dist/tex/latex/clipboard/clipboard.sty4
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
--- a/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf
+++ b/Master/texmf-dist/doc/latex/clipboard/clipboard.pdf
Binary files 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}