Revision 65dc6239
Von Werner Hahn vor 11 Monaten hinzugefügt
| templates/print/marei/part_info.tex | ||
|---|---|---|
|
$( USE P )$
|
||
|
$( USE Dumper )$
|
||
|
$( USE LxERP )$
|
||
|
\input{inheaders.tex}
|
||
|
\documentclass[a4paper]{scrartcl}[10pt]
|
||
|
|
||
|
% Schriftart, Eingabelayout der Tastatur
|
||
|
\usepackage[utf8]{inputenc}
|
||
|
\usepackage{graphicx}
|
||
|
\usepackage{german}
|
||
|
\usepackage{ifthen}
|
||
|
\usepackage{longtable}
|
||
|
\usepackage{tabularx}
|
||
|
\usepackage{eurosym}
|
||
|
\usepackage{substr}
|
||
|
\usepackage{scrlayer-scrpage}
|
||
|
\usepackage{wallpaper} % Hintergrundbilder
|
||
|
\usepackage{xcolor,colortbl}
|
||
|
\usepackage{lastpage}
|
||
|
\usepackage{geometry}
|
||
|
|
||
|
$( KiviLatex.required_packages_for_html )$
|
||
|
% Variablen, die in settings verwendet werden
|
||
| ... | ... | |
|
} % Ende CHF
|
||
|
} % Ende USD
|
||
|
|
||
|
% Briefkopf, Logo oder Briefpapier
|
||
|
%% \IfSubStringInString{mail}{\lxmedia}{ % nur bei Mail
|
||
|
% Grafik als Briefkopf
|
||
|
%%\setlength{\wpYoffset}{380pt} % Verschiebung von der Mitte nach oben
|
||
|
%%\setlength{\wpYoffset}{130mm} % Verschiebung von der Mitte nach oben
|
||
|
%%\CenterWallPaper{0.885}{\identpath/briefkopf.png} % mit Skalierung
|
||
|
|
||
|
% oder nur ein Logo oben rechts
|
||
|
%% \setlength{\wpXoffset}{180pt} % Verschiebung von der Mitte nach rechts
|
||
|
%% \setlength{\wpYoffset}{380pt} % Verschiebung von der Mitte nach oben
|
||
|
%% \CenterWallPaper{0.1}{\identpath/logo.png} % mit Skalierung
|
||
|
|
||
|
% oder ganzer Briefbogen als Hintergrund
|
||
|
% \CenterWallPaper{1}{\identpath/Briefpapier.pdf}
|
||
|
%% }
|
||
|
|
||
|
|
||
|
% keine Absätze nach rechts einrücken
|
||
|
\setlength\parindent{0pt}
|
||
| ... | ... | |
|
$(IF KiviLatex.filter(part.image))$
|
||
|
\begin{minipage}{2cm}
|
||
|
% \begin{pspicture}(-5cm,2em)(1.5in,0.5in)
|
||
|
\includegraphics[width=7cm ]{$( part.image )$}
|
||
|
\includegraphics[width=7cm ]{../$( part.image )$}
|
||
|
% \end{pspicture}
|
||
|
\end{minipage}
|
||
|
$(END)$
|
||
| templates/print/marei/part_label.tex | ||
|---|---|---|
|
$( USE KiviLatex )$
|
||
|
$( USE P )$
|
||
|
|
||
|
\documentclass[oneside]{scrartcl}
|
||
|
\usepackage{tabularx}
|
||
|
\documentclass[parskip]{scrartcl}
|
||
|
\usepackage{scrlayer-scrpage}
|
||
|
\usepackage{geometry}
|
||
|
\usepackage{pst-barcode}
|
||
|
\usepackage{graphicx}
|
||
|
\usepackage[utf8]{inputenc}
|
||
|
%\setlength{\textwidth}{50cm}
|
||
|
%\usepackage[paperwidth=80mm, paperheight=55mm, margin=3mm]{geometry}
|
||
|
\usepackage{tikz}
|
||
|
\usepackage{fontspec}
|
||
|
\geometry{
|
||
|
paperwidth=101mm,
|
||
|
paperheight=54mm,
|
||
|
margin=6mm,
|
||
|
%showframe, % Rahmen zum Debuggen anzeigen
|
||
|
}
|
||
|
|
||
|
%\setlength{\parindent}{0pt}
|
||
|
$(IF KiviLatex.filter(part.image))$
|
||
|
\DeclareNewLayer[
|
||
|
background,hoffset=7cm,voffset=1.7cm,
|
||
|
contents={\resizebox{2cm}{3cm}
|
||
|
{
|
||
|
\includegraphics[width=2cm ]{../$( part.image )$}
|
||
|
}
|
||
|
}
|
||
|
]{bild}
|
||
|
$( ELSE )$
|
||
|
\DeclareNewLayer[
|
||
|
background,
|
||
|
contents={
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
]{bild}
|
||
|
$( END )$
|
||
|
|
||
|
\DeclareNewLayer[
|
||
|
background,hoffset=4mm,voffset=3.7cm,
|
||
|
contents={%\resizebox{1.5in}{0.5in}
|
||
|
{
|
||
|
\begin{pspicture}(0,2em)(1.5in,0.5in)
|
||
|
\psbarcode{$(KiviLatex.filter(part.partnumber))$}{width=1.5 height=0.5}{code128}
|
||
|
\end{pspicture}
|
||
|
}
|
||
|
}
|
||
|
]{barcode}
|
||
|
|
||
|
% Befehl f. normale Schriftart und -größe
|
||
|
\setmainfont{cmunrm.otf}
|
||
|
\newcommand{\ourfont}{\setmainfont
|
||
|
[ BoldFont={cmunsx.otf},
|
||
|
ItalicFont={cmunsi.otf},
|
||
|
BoldItalicFont={cmunso.otf}
|
||
|
]{cmunss.otf}
|
||
|
}
|
||
|
|
||
|
\DeclarePageStyleByLayers{label}{bild,barcode}
|
||
|
|
||
|
\pagestyle{label}
|
||
|
|
||
|
\begin{document}
|
||
|
Art.Nr.:~~ $( KiviLatex.filter(part.partnumber) )$ \\[1em]
|
||
|
\setlength{\parskip}{0pt} % 1ex plus 0.5ex minus 0.2ex}
|
||
|
\setlength{\parindent}{0pt}
|
||
|
\ourfont
|
||
|
|
||
|
\Huge \textbf{Artnr.:~ $(KiviLatex.filter(part.partnumber))$ }
|
||
|
|
||
|
\large\textbf{$(KiviLatex.filter(part.description))$}
|
||
|
\normalsize
|
||
|
|
||
|
$( IF part.bin.description )$
|
||
|
Lagerplatz: $(KiviLatex.filter(part.bin.description))$
|
||
|
$( END )$
|
||
|
|
||
|
$( IF part.drawing )$
|
||
|
Zeichnungsnr: $(KiviLatex.filter(part.drawing))$
|
||
|
$( END )$
|
||
|
|
||
|
% $( # IF part.cvar_by_name('dbwin_gruppe').value() )$
|
||
|
% Verwendungszweck: $( # KiviLatex.filter(part.cvar_by_name('dbwin_gruppe').value()) )$
|
||
|
% $( # END )$
|
||
|
\end{document}
|
||
Auch abrufbar als: Unified diff
Mareivorlagen für Artikeldruck