On Thursday, September 23, 2021 4:25:57 AM PDT Dr Eberhard Lisse wrote:
> Hi,
> 
> I have hacked me a Stamp in LaTeX which works very well in the Koma
> Letter (by way of putting it in LyX's preamble.
> 
> The stamp gets placed next to the signature block, slightly randomly
> placed, then slightly randomly rotated and by way of some roation of the
> frame achieving a realistic look (smudged corners).  I wrote an article
> about this in the German TeX Usergroup's Die Technische Kommödie 2/2017.
> 
> I use the \ISOtoday ERT from Koma Script's scrdate package.
> 
> 
> I do not remember whether I have asked this before, and I have looked,
> but is there a way of using the date that Lyx uses in the blue Date:
> field?  So that if I put a fixed date in the letter, the same should
> appear in the stamp (i.e. I do not want to have today's stamp on
> yesterday's letter :-)-O
> 
> greetings, el
> 
> 
> PS: In case someone is interested, here is what I use in my Practice,
> copy and paste into the preamble:
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%
> % You can do whatever you want with this, other than bothering us but
> % if you make money from it, you must send us some.
> %
> % Copyright, -wrong -left, and -center 2017, 2021 SPF Lisse Private
> % Family Foundation best...@spflisseff.nl
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%
> %% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich
> %% zwischen -5 und +5 Grad -- bei jedem Dokument anders
> \usepackage{luacode}
> \newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}
> 
> 
> \usepackage{tikz}
> \usepackage{xpatch}
> 
> %% XCOLOR: Farbdefinitionen
> \definecolor{stampink}{RGB}{122 150 165}
> 
> %% LATEX: Individuelle Definitionen f\"{u}r den Stempel
> %% (Formatierung Gr\"{o}{\ss}e und Schriftstil)
> %%
> \newcommand\myStampName{Dr Eberhard W Lisse}
> \newcommand\myStampProf{Obstetrician \& Gynecologist}
> \newcommand\myStampPO{PO Box 8421 Bachbrecht}
> \newcommand\myStampNo{016-000-0141135}
> 
> \newcommand\myStampArrangement{%
>     \setsansfont{Linux Biolinum O}
>     \parbox{3cm}{%
>        \centering\sffamily
>        \footnotesize\myStampName\\
>        \tiny\myStampProf\\
>        \scriptsize\myStampPO\\
>        \myStampNo\\
>        \footnotesize\ISOToday
>     }
>     \setsansfont{IBM Plex Sans}
> }
> 
> %% TIKZ: Laden notwendiger Styles
> \usetikzlibrary{fit}
> 
> %% Erstellen eines Befehls f\"{u}r den Stempel in einer
> %% Gr\"{o}{\ss}e von 6 cm x 3 cm skaliert
> \newcommand\Stamper{%
>      \resizebox{8cm}{3cm}{%
>          \begin{tikzpicture}
>              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
>              %%
>              %% TIKZ: Setzen der linken unteren und rechten oberen Ecke
>              %% des Rechtecks
>              \coordinate (dm1) at (0,0);
>              \coordinate (dm2) at (2.6,1.4);
>              %%
>              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to