summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-12 23:54:14 +0000
committerKarl Berry <karl@freefriends.org>2013-01-12 23:54:14 +0000
commit40582d40114fa4f0b3d0432e8a85900312bff43a (patch)
tree1ee65664e3a165590a4cb84b8de7d3ea429b1f46 /Master/texmf-dist/tex/latex
parent64c3ae9601b2e7ce16250f9d1d4da4af5ff7ab67 (diff)
copypaste (12jan13)
git-svn-id: svn://tug.org/texlive/trunk@28815 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/copypaste/copypaste.sty43
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/copypaste/copypaste.sty b/Master/texmf-dist/tex/latex/copypaste/copypaste.sty
new file mode 100644
index 00000000000..7bbf0c6845d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/copypaste/copypaste.sty
@@ -0,0 +1,43 @@
+%%
+%% This is file `copypaste.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% copypaste.dtx (with options: `package')
+%%
+%% Copyright (C) 2013 Eduardo C. Lourenço de Lima
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[1996/06/01]
+\ProvidesPackage{copypaste}[2013/01/11 v0.1 Copy and paste]
+\newwrite\@copypaste
+
+\newcommand\savecopypaste[1]{%
+ \immediate\openout\@copypaste=#1.cpy}
+
+\newcommand\opencopypaste[1]{%
+ \input{#1.cpy}}
+
+\newcommand\yank[2]{%
+ \defcopy{#1}{#2}%
+ \immediate\write\@copypaste{\noexpand\defcopy{#1}{\unexpanded{#2}}}%
+ #2}
+
+\newcommand\defcopy[2]{%
+ \@namedef{@copypaste@#1}{#2}}
+
+\newcommand\paste[1]{%
+ \@nameuse{@copypaste@#1}}
+\endinput
+%%
+%% End of file `copypaste.sty'.