summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-02-06 20:53:43 +0000
committerKarl Berry <karl@freefriends.org>2020-02-06 20:53:43 +0000
commit7d7952eb1c3270d347364879697e3905729337d7 (patch)
tree7aa9e909349186948cf0fdfbd0e539ef47481d41 /Master/texmf-dist/doc/latex
parent33361783e2f0682b96e1bc6145f9348eb39b25ab (diff)
metastr (6feb20)
git-svn-id: svn://tug.org/texlive/trunk@53700 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/metastr/README.txt37
-rw-r--r--Master/texmf-dist/doc/latex/metastr/metasamp.tex157
-rw-r--r--Master/texmf-dist/doc/latex/metastr/metastr.pdfbin0 -> 327624 bytes
3 files changed, 194 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/metastr/README.txt b/Master/texmf-dist/doc/latex/metastr/README.txt
new file mode 100644
index 00000000000..45f64fedc2d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/metastr/README.txt
@@ -0,0 +1,37 @@
+metastr v1.0
+Copyright 2020 Niklas Beisert
+
+metastr is a LaTeX2e package
+to store and compose strings in a structured way.
+This can serve several purposes such as:
+manage and write document metadata;
+use templates for formatting document data;
+assist in assembling and displaying document license information;
+facilitate basic internationalisation and localisation.
+
+The package consists of the files
+
+ README.txt readme file
+ metastr.ins installation file
+ metastr.dtx source file
+ metastr.sty package file
+ metasamp.tex sample latex file
+ metastr.pdf manual
+
+The distribution consists of the files
+README.txt, metastr.ins and metastr.dtx.
+
+Run "(pdf)latex metastr.dtx" to compile the manual metastr.pdf.
+
+Run "latex metastr.ins" to create the package metastr.sty
+and the sample metasamp.tex.
+Copy the file metastr.sty to an appropriate directory of your LaTeX
+distribution, e.g. texmf-root/tex/latex/metastr.
+
+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.
diff --git a/Master/texmf-dist/doc/latex/metastr/metasamp.tex b/Master/texmf-dist/doc/latex/metastr/metasamp.tex
new file mode 100644
index 00000000000..3b2df4bdabc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/metastr/metasamp.tex
@@ -0,0 +1,157 @@
+%%
+%% This is file `metasamp.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% metastr.dtx (with options: `sample')
+%%
+%% Copyright (C) 2020 Niklas Beisert
+%%
+%% 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/12/01]
+\ProvidesFile{metasamp.tex}[2020/02/06 v1.0 sample for metastr]
+\documentclass[12pt]{article}
+
+\usepackage{geometry}
+\geometry{layout=a4paper}
+\geometry{paper=a4paper}
+\geometry{margin=2.5cm}
+\parindent0pt
+\parskip1ex
+
+\PassOptionsToPackage{bookmarks=true}{hyperref}
+\usepackage{hyperref}
+
+\PassOptionsToPackage{draft}{metastr}
+\PassOptionsToPackage{loadlang=en|de|fr|es}{metastr}
+%%\PassOptionsToPackage{loadlang=en|fr|es}{metastr}
+%%\PassOptionsToPackage{loadlang=de|en}{metastr}
+\PassOptionsToPackage{cclogocurr=euro}{metastr}
+
+\usepackage{metastr}
+\usepackage{graphicx}
+\usepackage{babel}
+\IfFileExists{ccicons.sty}{\usepackage{ccicons}}{}
+
+\metasetterm[en]{Zurich}{Zurich}
+\metasetterm[de]{Zurich}{Z\"rich}
+\metasetterm[fr]{Zurich}{Zurich}
+\metasetterm[es]{Zurich}{Z\'urich}
+\metasetterm[it]{Zurich}{Zurigo}
+\metasetterm[pt]{Zurich}{Zurique}
+
+\metaset{subject}{\metacompose[#1]{location}{location: }
+ {\metacompose[#1]{date}{, date: }{}{}}
+ {\metacompose[#1]{date}{date: }{}{}}}
+
+\metaset[skip]{subtitle}{\vspace{1ex}}
+\metaset[skip]{author}{\vspace{2ex}}
+\metaset[skip]{location}{\vspace{1ex}}
+\metaset[skip]{date}{\vspace{1ex}}
+\metaset[style]{title}{\LARGE\bfseries}
+\metaset[style]{author}{\large\scshape}
+\metaset[sep]{draft}{ -- }
+%%\metaunset[sep]{date}
+
+\metaset[altlang]{title}{en,de}
+\metaset[altlang]{rightstext}{en,es}
+\metaset[rights]{writepdf}{}
+
+\metasetlang{en}
+%%\metasetlang{de}
+%%\metasetlang{de-CH}
+%%\metasetlang{fr}
+
+\metaset[en]{title}{A metastr Sample}
+\metaset[de]{title}{Ein metastr Beispiel}
+\metaset[print]{title}{A \textsf{metastr} Sample}
+\metaset{subtitle}{Illustration of some features}
+\metaset{author}{Niklas Beisert}
+\metaset{keywords}{composition of title, application of licenses, translations}
+\metaset{location}{\metatranslate[#1]{Zurich}}
+\metaset{date}{2020/02/06}
+\metaset{partof}{The metastr Package}
+\metaset[print]{partof}{The \textsf{metastr} Package}
+
+\metaset{copyrightowner}{\metapick[#1]{author}}
+\metaset{copyrightdate}{2020}
+\metacopyright{doc}
+%%\metacopyright{reserved}
+
+%%\metaset{licenseversion}{1.2}
+%%\metalicense{lppl}
+
+%%\metaset{licenseversion}{3.0}
+\metalicensecc{by-sa}
+%%\metalicensecc{by-nc-sa}
+%%\metalicensecc{zero}
+%%\metalicensecc{pd}
+
+\metaset[cmd]{licenselogo}{\includegraphics[scale=0.75]{#1}}
+
+\begin{document}
+
+\pdfbookmark[1]{\metaterm{title}}{title}
+\begin{center}
+\metapick[print]{titletext}
+\end{center}
+
+\vspace{1ex}\hrule\par\vspace{1ex}
+\begingroup\footnotesize
+\pdfbookmark[1]{\metaterm{copyright}}{copyright}
+\metapick[print]{rightstext}
+\endgroup
+\vspace{1ex}\hrule\par\vspace{1ex}
+
+\section{Metadata Inspection}
+
+The metadata stored in this example PDF can be inspected with
+the tool \texttt{pdfinfo}:
+
+\begin{tabular}{l}
+\verb+pdfinfo metasamp.pdf+\\
+\verb+pdfinfo -meta metasamp.pdf | less+
+\end{tabular}
+
+\section{Translations}
+
+\begin{tabular}{ll}
+document language:&\metaterm{Zurich}\\
+Spanish:&\metatranslate[es]{Zurich}
+\end{tabular}
+
+\metaif[]{cc@type}{ % only if a CC license is in use
+\section{Creative Commons}
+some representations of the selected license:
+\begin{itemize}
+\item license identifier:
+ \metapick[]{licensecc}
+\item \texttt{short} identifier:
+ \metapick[short]{licensecc}
+\item full form:
+ \metapick[]{licenseccfull}
+\item \texttt{ident} form:
+ \metapick[ident]{licensecc}
+\item \texttt{short} form:
+ \metapick[short]{licenseccfull}
+\IfFileExists{ccicons.sty}
+ {\item \texttt{icon} forms:
+ -- \metapick[icon]{licensecc}
+ -- \metapick[icon]{licenseccfull} --}{}
+\item \texttt{url} form:
+ \metapick[url]{licenseccfull}
+\end{itemize}
+}{}
+
+\end{document}
+\endinput
+%%
+%% End of file `metasamp.tex'.
diff --git a/Master/texmf-dist/doc/latex/metastr/metastr.pdf b/Master/texmf-dist/doc/latex/metastr/metastr.pdf
new file mode 100644
index 00000000000..e52d38b60f1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/metastr/metastr.pdf
Binary files differ