summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/copypaste/README32
-rw-r--r--Master/texmf-dist/doc/latex/copypaste/copypaste.pdfbin0 -> 45877 bytes
-rw-r--r--Master/texmf-dist/source/latex/copypaste/copypaste.dtx172
-rw-r--r--Master/texmf-dist/source/latex/copypaste/copypaste.ins47
-rw-r--r--Master/texmf-dist/tex/latex/copypaste/copypaste.sty43
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/copypaste.tlpsrc0
8 files changed, 296 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/copypaste/README b/Master/texmf-dist/doc/latex/copypaste/README
new file mode 100644
index 00000000000..3e7ebdeee2f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/copypaste/README
@@ -0,0 +1,32 @@
+Package: copypaste
+Description: Copy and paste into and across documents
+
+This package provides a basic framework for copying and pasting content
+into a single document, or across different documents.
+
+
+2013/01/11 v0.1
+ Initial version
+
+--------------------------------------------------------------------------------
+Installation:
+
+*Run: (This will generate copypaste.sty)
+ latex copypaste.ins
+
+*Copy copypaste.sty to a location where LaTeX will find it.
+ See http://www.tex.ac.uk/faq
+
+--------------------------------------------------------------------------------
+Usage:
+
+*See copypaste.pdf
+
+--------------------------------------------------------------------------------
+Copyright (C) 2013 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
+for the details of that license
+
+This work has the LPPL maintenance status "author-maintained"
diff --git a/Master/texmf-dist/doc/latex/copypaste/copypaste.pdf b/Master/texmf-dist/doc/latex/copypaste/copypaste.pdf
new file mode 100644
index 00000000000..8321b8cf381
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/copypaste/copypaste.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/copypaste/copypaste.dtx b/Master/texmf-dist/source/latex/copypaste/copypaste.dtx
new file mode 100644
index 00000000000..6e2d546c52f
--- /dev/null
+++ b/Master/texmf-dist/source/latex/copypaste/copypaste.dtx
@@ -0,0 +1,172 @@
+% \iffalse meta-comment
+%
+% 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.
+%
+% \fi
+% \iffalse
+%
+%<package>\NeedsTeXFormat{LaTeX2e}[1996/06/01]
+%<package>\ProvidesPackage{copypaste}[2013/01/11 v0.1 Copy and paste]
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{copypaste}
+\newenvironment{Description}
+ {\par\medskip\noindent\ignorespaces}{}
+\newenvironment{synopsis}
+ {\begin{list}{}
+ {\setlength\parsep{0pt}
+ \setlength\itemsep{0pt}}}
+ {\end{list}}
+\newenvironment{Example}[1]
+ {\if#1\else\paragraph{Example.}#1\fi}
+ {}
+\newenvironment{page}
+ {\begin{center}\begin{minipage}[t]{0.5\linewidth}}
+ {\end{minipage}\end{center}}
+\newcommand\TODO{\texttt{Todo:}}
+\begin{document}
+ \DocInput{copypaste.dtx}
+\end{document}
+%</driver>
+% \fi
+% \changes{0.1}{2013/01/11}{Initial version}
+% \GetFileInfo{copypaste.sty}
+% \CheckSum{199}
+% \DoNotIndex{\,,\@addtoreset,\begin,\closeout,\csname,\end,\endcsname}
+% \DoNotIndex{\expandafter}
+% \DoNotIndex{\@ifundefined,\immediate,\input,\jobname,\label}
+% \DoNotIndex{\@makebox,\makebox,\mbox,\MessageBreak,\@namedef,\@nameuse}
+% \DoNotIndex{\newcommand,\newcounter,\newenvironment,\newwrite,\noindent}
+% \DoNotIndex{\normalfont,\openout,\PackageError, \par,\parskip,\ref}
+% \DoNotIndex{\relax,\renewcommand,\setlength,\string}
+% \DoNotIndex{\write}
+% \title{The \textsf{copypaste} package\thanks{This document
+% corresponds to \textsf{copypaste}~\fileversion,
+% dated~\filedate.}}
+% \author{Eduardo C. Louren\c{c}o de Lima \\ \texttt{elourenco@phi.pro.br}}
+% \maketitle
+%
+% \section*{Introduction}
+%
+% This package provides a basic framework for copying and pasting content
+% into a single document, or across different documents.
+%
+% \section{Basic Usage}
+% \begin{synopsis}
+% \item |\savecopypaste| \marg{basename}
+% \item |\yank| \marg{key} \marg{content}
+% \item |\paste| \marg{key}
+% \item |\opencopypaste| \marg{basename}
+% \end{synopsis}
+%
+%
+% \begin{Description}
+% \DescribeMacro{\savecopypaste}
+% The first step is to create a copy-and-paste apparatus.
+% \begin{synopsis}
+% \item |\savecopypaste| \marg{basename}
+% \end{synopsis}
+% \end{Description}
+%
+% \begin{Description}
+% \DescribeMacro{\yank}
+% The command |\yank| typesets \meta{content} and identifies it as \meta{key}.\footnote
+% {\texttt{copy} is already defined in {\TeX}.}
+% \begin{synopsis}
+% \item |\yank| \marg{key} \marg{content}
+% \end{synopsis}
+% \end{Description}
+%
+% \begin{Description}
+% \DescribeMacro{\paste}
+% And |\paste| just typesets the content identified by \meta{key}.
+% \begin{synopsis}
+% \item |\paste| \marg{key}
+% \end{synopsis}
+% \end{Description}
+%
+% \begin{Description}
+% \DescribeMacro{\opencopypaste}
+% Finally, |\opencopypaste| makes available content from |doc1.tex| to |doc2.tex|. In that way, you can paste into |doc2.tex| content from |doc1.tex|. Make sure to use the same \meta{basename} in both documents.
+% \begin{synopsis}
+% \item |\opencopypaste| \marg{basename}
+% \end{synopsis}
+% \end{Description}
+%
+% \section{Example}
+%
+% This is how to copy |bar| from |doc1.tex| and paste it into |doc2.tex|:\bigskip
+%
+% \noindent |doc1.tex|:
+% \iffalse
+%<*example>
+% \fi
+\begin{verbatim}
+\documentclass{article}
+\usepackage{copypaste}
+\savecopypaste{myfoo}
+\begin{document}
+\yank{foo}{bar}
+\end{document}
+\end{verbatim}
+% \iffalse
+%</example>
+% \fi
+%
+% \noindent |doc2.tex|:
+% \iffalse
+%<*example>
+% \fi
+\begin{verbatim}
+\documentclass{article}
+\usepackage{copypaste}
+\opencopypaste{myfoo}
+\begin{document}
+\paste{foo}
+\end{document}
+\end{verbatim}
+% \iffalse
+%</example>
+% \fi
+%
+% \noindent Now, running:
+%
+% |$ latex doc1|
+%
+% |$ latex doc2|
+%
+% \noindent outputs 2 documents with the same content, namely, |bar|.
+%
+% \StopEventually
+%
+% \section{Implementation}
+% \begin{macrocode}
+\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}}
+% \end{macrocode}
diff --git a/Master/texmf-dist/source/latex/copypaste/copypaste.ins b/Master/texmf-dist/source/latex/copypaste/copypaste.ins
new file mode 100644
index 00000000000..16bc0b92c94
--- /dev/null
+++ b/Master/texmf-dist/source/latex/copypaste/copypaste.ins
@@ -0,0 +1,47 @@
+%% copypaste.ins
+%%
+%% 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.
+%%
+\input docstrip.tex
+\keepsilent
+\preamble
+
+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.
+
+\endpreamble
+\generate{\file{copypaste.sty}{\from{copypaste.dtx}{package}}}
+\obeyspaces
+\Msg{****************************************************}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the *}
+\Msg{* following file into a directory searched by TeX: *}
+\Msg{* *}
+\Msg{* copypaste.sty *}
+\Msg{* *}
+\Msg{* To produce the documentation run the file *}
+\Msg{* copypaste.dtx through LaTeX. *}
+\Msg{* *}
+\Msg{* Happy TeXing! *}
+\Msg{* *}
+\Msg{****************************************************}
+\endbatchfile
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'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index e762461c53c..ce009a6edb1 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -119,7 +119,7 @@ my @TLP_working = qw(
context-typearea context-typescripts context-vim
contour
cooking cookingsymbols cool coollist coolstr coolthms cooltooltips
- coordsys copyrightbox coseoul
+ coordsys copypaste copyrightbox coseoul
countriesofeurope counttexruns courier-scaled courseoutline coursepaper
coverpage covington
cprotect
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index f2f0d10054f..7fc3dd06c30 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -145,6 +145,7 @@ depend coolstr
depend coolthms
depend cooltooltips
depend coordsys
+depend copypaste
depend copyrightbox
depend coseoul
depend counttexruns
diff --git a/Master/tlpkg/tlpsrc/copypaste.tlpsrc b/Master/tlpkg/tlpsrc/copypaste.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/copypaste.tlpsrc