MR Unix

Zitat von
Johannes_B
Knapp zehn Jahre Mitglied im Forum und trotzdem kein Minimalbeispiel. :-/
Sorry, du hast recht.
Die 3 ist in der Tat ein Problem, aber auch ohne klappt es nicht.
So sieht mein Paket aus:
Code:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mein_paket}
\RequirePackage{tikz,pgfmath,xparse}
\newcommand{\xxx}{{ saa}}
\newcommand{\Simley}[1]{%
\begin{tikzpicture}[scale=0.5]
\newcommand*{\SmileyRadius}{1.0}%
\draw (0,0) circle (\SmileyRadius);% outside circle
\draw (-0.25cm,-1.2cm) -- (0.25cm,-1.2cm)--(0.25cm,-1.7cm)--(-0.25cm,-1.7cm)--cycle;
node [yshift=-0.22*\SmileyRadius cm] {\tiny #1}% uncomment this to see the smile factor
\end{tikzpicture}%
}%
\NewDocumentCommand{\zm}{ O{} O{} O{} O{} O{} O{} O{1} }{
\fontsize{\the\numexpr10*#7}{\the\numexpr5*#7}
\begin{tikzpicture}[scale=#7]
\draw[line width =0.5*#7mm] (0,0) -- (6,0) -- (6,1) -- (0,1)--cycle;
\draw[line width =0.5*#7mm] (2,0)--(2,1);
\draw[line width =0.5*#7mm] (4,0)--(4,1);
\draw[line width =0.5*#7mm] (1,1) -- (5,1) -- (5,2) -- (1,2)--cycle;
\draw[line width =0.5*#7mm] (3,1)--(3,2);
\draw[line width =0.5*#7mm] (2,2) -- (4,2) -- (4,3) -- (2,3)--cycle;
\node at (1,0.5){#1};
\node at (3,0.5){#2};
\node at (5,0.5){#3};
\node at (2,1.5){#4};
\node at (4,1.5){#5};
\node at (3,2.5){#6};
\end{tikzpicture}%
}
\endinput
Dieses MB klappt problemlos
Code:
%präambel
\documentclass[fleqn,11pt,a4paper,liststotoc,bibtotoc,DIV15,BCOR12mm]{scrartcl}
\usepackage{mein_paket}
\begin{document}
\Simley[1]
\xxx
\end{document}
Bei diesem MB
Code:
%präambel
\documentclass[fleqn,11pt,a4paper,liststotoc,bibtotoc,DIV15,BCOR12mm]{scrartcl}
\usepackage{mein_paket}
\begin{document}
\zm
\end{document}
bekomme ich folgende Meldung:
Code:
Processing: mb.tex
Document Class: scrartcl 2018/03/30 v3.25 KOMA-Script document class (article)
Latex Error: ./mb.tex:6 Undefined control sequence.
Complete transcript is in mb.log
Command xelatex -interaction=nonstopmode -file-line-error-style -synctex=1 exited with status 1
Found 1 error, and 0 warnings in 1 run
Er scheint das Kommando \zm irgendwie nicht zu finden. Wenn ich das so definierte \zm in eine andere Datei kopiere, dann klappt es.
Lesezeichen