# Can it be improved? Help me to fix this code [closed]

\documentclass{standalone}
\usepackage{tikz}

\begin{document}
\usetikzlibrary{backgrounds}
\def\centerarc[#1](#2)(#3:#4:#5);%
% Syntax: [draw options] (center) (initial angle:final angle:radius)
{
%\draw[#1] ($(#2)+({#5*cos(#3)},{#5*sin(#3)})$) arc (#3:#4:#5);
\draw[#1]([shift=(#3:#5)]#2) arc (#3:#4:#5);
}
\begin{tikzpicture}
\centerarc[black,line width=5](0,0)(45:90:1cm);
\centerarc[black,line width=5](0,0)(135:180:1cm);
\centerarc[black,line width=5](0,0)(225:265:1cm);
\centerarc[black,line width=5](0,0)(315:360:1cm);
\draw [rotate=45,black,line width=5] (-1.085,0)--(1.085,0);
\draw [rotate=45,black,line width=5] (0,-1.085)--(0,1.085);

\end{tikzpicture}

\end{document}


## closed as unclear what you're asking by Zarko, schtandard, Stefan Pinnow, Sebastiano, CampanIgnisOct 8 at 12:00

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Improve in what sense? Zarko has provided more efficient and safer code. Do you want the output to look different? – cfr Oct 6 at 13:01
• Please add to the text of your question that the image should consist of two parts -- the "partially circled plus" (or whatever its name is) and the arc beneath it. (The item in the photograph looks like a branding iron.) – barbara beeton Oct 7 at 14:08

See, if this work for you:

\documentclass{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[line width=5pt]
\foreach \i in {0, 90, 180, 270}
\draw[rotate=\i] (0,0) -- ++ (45:1) arc (45:90:1);
\end{tikzpicture}
\end{document}


• thank you very much – esvhei temvvjin Oct 6 at 7:05
• @esvheitemvvjin, you are welcome. When you will have enough reputation, you can up-vote answer (by clicking on up-pen at top left side of answer), however, if answer already fulfil your expectation, you can already accept it (by clicking on check mark which also at top left side of answer) :-) – Zarko Oct 6 at 7:11
• @Zarko.Can you send me your own email? – esvhei temvvjin Oct 6 at 11:01
• @esvheitemvvjin, why? if you like to discus with me, you can invite me to own chat room or use chat room "LaTeX, TeX Friends". – Zarko Oct 6 at 11:21
• again look at before post pictures. – esvhei temvvjin Oct 6 at 12:24