but if I want to write the middle form or the final form of an Arabic letter the first method does not work and I do not know if it is possible with arabtex. What else can I try?
You can copy the prefix and/or suffix, ـ, and join it with any character. Other than that, I suggest polyglossia and the following setup.
Not the answer you're looking for? Browse other questions tagged languages arabic or ask your own question.