| 1 |
%% |
| 2 |
%% This is file `metasamp.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% metastr.dtx (with options: `sample') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2020-2025 Niklas Beisert |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% https://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 17 |
%% version 2008 or later. |
| 18 |
%% |
| 19 |
\NeedsTeXFormat{LaTeX2e}[1996/12/01] |
| 20 |
\ProvidesFile{metasamp.tex}[2025/03/25 v1.1.3 sample for metastr] |
| 21 |
\documentclass[12pt]{article} |
| 22 |
|
| 23 |
\usepackage{geometry} |
| 24 |
\geometry{layout=a4paper} |
| 25 |
\geometry{paper=a4paper} |
| 26 |
\geometry{margin=2.5cm} |
| 27 |
\parindent0pt |
| 28 |
\parskip1ex |
| 29 |
|
| 30 |
\PassOptionsToPackage{bookmarks=true}{hyperref} |
| 31 |
\usepackage{hyperref} |
| 32 |
|
| 33 |
\PassOptionsToPackage{loadlang=en|de|fr|es}{metastr} |
| 34 |
%%\PassOptionsToPackage{loadlang=en|fr|es}{metastr} |
| 35 |
%%\PassOptionsToPackage{loadlang=de|en}{metastr} |
| 36 |
\PassOptionsToPackage{cclogocurr=euro}{metastr} |
| 37 |
%%\PassOptionsToPackage{cclogoshape=slim}{metastr} |
| 38 |
|
| 39 |
\usepackage[titlematter]{metastr} |
| 40 |
\usepackage{graphicx} |
| 41 |
\usepackage[english]{babel} |
| 42 |
\IfFileExists{ccicons.sty}{\usepackage{ccicons}}{} |
| 43 |
|
| 44 |
\metasetterm[en]{Zurich}{Zurich} |
| 45 |
\metasetterm[de]{Zurich}{Z\"rich} |
| 46 |
\metasetterm[fr]{Zurich}{Zurich} |
| 47 |
\metasetterm[es]{Zurich}{Z\'urich} |
| 48 |
\metasetterm[it]{Zurich}{Zurigo} |
| 49 |
\metasetterm[pt]{Zurich}{Zurique} |
| 50 |
|
| 51 |
\metaset{subject}{\metacompose[#1]{location}{location: } |
| 52 |
{\metacompose[#1]{date}{, date: }{}{}} |
| 53 |
{\metacompose[#1]{date}{date: }{}{}}} |
| 54 |
|
| 55 |
\metaset[skip]{subtitle}{\vspace{1ex}} |
| 56 |
\metaset[skip]{author}{\vspace{2ex}} |
| 57 |
\metaset[skip]{location}{\vspace{1ex}} |
| 58 |
\metaset[skip]{date}{\vspace{1ex}} |
| 59 |
\metaset[style]{title}{\LARGE\bfseries} |
| 60 |
\metaset[style]{author}{\large\scshape} |
| 61 |
\metaset[sep]{draft}{ -- } |
| 62 |
%%\metaunset[sep]{date} |
| 63 |
|
| 64 |
\metaset[altlang]{title}{en,de} |
| 65 |
\metaset[altlang]{rightstext}{en,es} |
| 66 |
\metaset[rights]{writepdf}{} |
| 67 |
|
| 68 |
\metasetlang{en} |
| 69 |
%%\metasetlang{de} |
| 70 |
%%\metasetlang{de-CH} |
| 71 |
%%\metasetlang{fr} |
| 72 |
|
| 73 |
\metaset[en]{title}{A metastr Sample} |
| 74 |
\metaset[de]{title}{Ein metastr Beispiel} |
| 75 |
\metaset[print]{title}{A \textsf{metastr} Sample} |
| 76 |
\metaset{subtitle}{Illustration of some features} |
| 77 |
\metaset{author}{Niklas Beisert} |
| 78 |
\metaset{keywords}{composition of title, application of licenses, translations} |
| 79 |
\metaset{location}{\metatranslate[#1]{Zurich}} |
| 80 |
\metaset{date}{2020/02/06} |
| 81 |
\metaset{partof}{The metastr Package} |
| 82 |
\metaset[print]{partof}{The \textsf{metastr} Package} |
| 83 |
\metasetup{draft=true} |
| 84 |
|
| 85 |
\metaset{copyrightowner}{\metapick[#1]{author}} |
| 86 |
\metaset{copyrightdate}{2020} |
| 87 |
\metacopyright{doc} |
| 88 |
%%\metacopyright{reserved} |
| 89 |
|
| 90 |
%%\metaset{licenseversion}{1.2} |
| 91 |
%%\metalicense{lppl} |
| 92 |
|
| 93 |
%%\metaset{licenseversion}{3.0} |
| 94 |
\metalicensecc{by-sa} |
| 95 |
%%\metalicensecc{by-nc-sa} |
| 96 |
%%\metalicensecc{zero} |
| 97 |
%%\metalicensecc{pd} |
| 98 |
|
| 99 |
\metaset[cmd]{licenselogo}{\includegraphics[scale=0.75]{#1}} |
| 100 |
|
| 101 |
\begin{document} |
| 102 |
|
| 103 |
\pdfbookmark[1]{\metaterm{title}}{title} |
| 104 |
\begin{center} |
| 105 |
\metapick[print]{titlematter} |
| 106 |
\end{center} |
| 107 |
|
| 108 |
\vspace{1ex}\hrule\par\vspace{1ex} |
| 109 |
\begingroup\footnotesize |
| 110 |
\pdfbookmark[1]{\metaterm{copyright}}{copyright} |
| 111 |
\metapick[print]{rightstext} |
| 112 |
\endgroup |
| 113 |
\vspace{1ex}\hrule\par\vspace{1ex} |
| 114 |
|
| 115 |
\section{Metadata Inspection} |
| 116 |
|
| 117 |
The metadata stored in this example PDF can be inspected with |
| 118 |
the tool \texttt{pdfinfo}: |
| 119 |
|
| 120 |
\begin{tabular}{l} |
| 121 |
\verb+pdfinfo metasamp.pdf+\\ |
| 122 |
\verb+pdfinfo -meta metasamp.pdf | less+ |
| 123 |
\end{tabular} |
| 124 |
|
| 125 |
\section{Translations} |
| 126 |
|
| 127 |
\begin{tabular}{ll} |
| 128 |
document language:&\metaterm{Zurich}\\ |
| 129 |
Spanish:&\metatranslate[es]{Zurich} |
| 130 |
\end{tabular} |
| 131 |
|
| 132 |
\metaif[]{cc@type}{ % only if a CC license is in use |
| 133 |
\section{Creative Commons} |
| 134 |
some representations of the selected license: |
| 135 |
\begin{itemize} |
| 136 |
\item license identifier: |
| 137 |
\metapick[]{licensecc} |
| 138 |
\item \texttt{short} identifier: |
| 139 |
\metapick[short]{licensecc} |
| 140 |
\item full form: |
| 141 |
\metapick[]{licenseccfull} |
| 142 |
\item \texttt{ident} form: |
| 143 |
\metapick[ident]{licensecc} |
| 144 |
\item \texttt{short} form: |
| 145 |
\metapick[short]{licenseccfull} |
| 146 |
\IfFileExists{ccicons.sty} |
| 147 |
{\item \texttt{icon} forms: |
| 148 |
-- \metapick[icon]{licensecc} |
| 149 |
-- \metapick[icon]{licenseccfull} --}{} |
| 150 |
\item \texttt{url} form: |
| 151 |
\metapick[url]{licenseccfull} |
| 152 |
\end{itemize} |
| 153 |
}{} |
| 154 |
|
| 155 |
\end{document} |
| 156 |
\endinput |
| 157 |
%% |
| 158 |
%% End of file `metasamp.tex'. |