# Persian accidentals in LaTeX (music)

Can somebody help me with writing Persian (Iranian) music accidentals including “Koron” and “Sori” in LaTeX?

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Alessandro Cuttin Oct 17 '19 at 10:14

Without the context provided by a minimum working example, it is hard to say how this would be implemented in the OP's context. However, constructing a koron is straightforward, by stacking a | and a >.

This MWE derives from Writing musical pitches

\documentclass{article}
\usepackage{stackengine}
\newcommand\koron{\kern-.7pt\raisebox{-1pt}{\ensurestackMath{%
\stackengine{2.1pt}{\scriptstyle|}{\mkern.7mu\scriptscriptstyle
>}{O}{l}{F}{F}{L}}}\kern-.7pt}
\newcommand\note[1]{\xnote[#1]}
\def\xnote[#1#2#3]{#1\ifx b#2$\flat_#3$\else\ifx#2##$\sharp_#3$\else
\ifx#2\koron\koron$_#3$\else$_#2$\fi\fi\fi}
\begin{document}
\note{Eb3}
\note{A2}
\note{F#4}
\note{F\koron2}
\rlap{\rule[2pt]{20pt}{.4pt}}
$\flat\sharp\koron$
\end{document}


• Most kind Steven, hi. I have finded the link of the image of the user: latex.org/forum/viewtopic.php?t=27479 – Sebastiano Oct 17 '19 at 11:33
• Thanks for supplying such a nice trick to write quarter tones in MUSIXTEX environment. – Mehdi Oct 18 '19 at 11:11
• @Mehdi If this answer is wholly satisfactory, such that you don't need to wait upon other possible answers, you could, if you wish, click the check mark to the left of my question, which will indicate to other readers that, of the several possible answers given, this one you found best answered your question. – Steven B. Segletes Oct 18 '19 at 12:18