If you load XePersian before any of these packages, you will get an error saying that you need to load XePersianorbidias your last package. If you pass Kashida option to the package, you will use Kashida to stretch words for better output quality and to get rid of under or overfilled \hbox messages. Please note that X-series fonts from IRMUG (Iranian Mac This is not the font problem. XePersian's error Usergroup) unfortunately do not have Kashida support and if you use any of these fonts with Kashida option enabled, the result will be the PDF seen on the monitor is not pleasant, but the printout can look fine.
So if you are going to enable the Kashida option, you are advised to use "Adobe Arabic" or "Scheherazade". If you don't use this command at all, the Persian Modern1 font will be used for Persian texts in your document. If you don't use this command at all, the default TEX font (fonts used in this documentation) will be used for Latin texts of your document.
By default, math mode digits will be displayed in Persian form, and if you don't use this command at all, the Persian Modern font for math mode digits will be used. Using this command, math mode digits inside\mathsf will be displayed in Persian form, and if you don't use this command at all, you will get the default TEX font for math mode digits inside\mathsfand digits will be displayed in their native form (Western ). Using this command math mode digits inside\mathtt will be displayed in Persian form and if you don't use this command at all you will get default TEX font for math mode digits inside\mathtt and digits will be displayed in their original form ( western ). 1 You do not need to install Persian Modernfonts as they are already included in your TeX distribution. defpersianfont\CS [Options] {⟨font name⟩}. deflatinfont\CS [Options] {⟨font name⟩}.
If you don't use setiranicfont, Persian Modernfont will be used. navarfamily \textnavar{⟨text⟩}. If you don't use setpookfont, Persian Modern font will be used. pookfamily \textpook{⟨text⟩}. If you don't use setsayehfontcommand, Persian Modern font will be used. begin{persian} ⟨text⟩ \end{persian}.
In addition, the following commands are also present:. harfinumeral{⟨integer⟩} \adadinumeral{⟨integer⟩} \tartibinumeral{⟨integer⟩}. if you give an integer 0 it returns nothing), then you get error and foradadi andtartibi counters, if you give an integer greater than you get an error. For an adi and tartibi counters, if you return an integer less than 0 (a negative integer), the adi and tartibi counters return the adi and tartibi forms of the integer 0, respectively. Numbers in math mode appear in Persian form by default, and if you don't use this command at all, the Persian Modern font for numbers in math mode is used.
Using this command will display digits in math mode in Persian form, and if you do not use this command at all, you will get the default TEX font for digits in math mode and digits will be displayed in their native (western) form. If you use\PersianMathsDigitsanywhere you will override XePersian's default behavior and you will always get Persian digits in math mode. Using \DefaultMathsDigits anywhere will again override XePersian's default behavior and you will always get TEX's default font and digits in math mode.
It means if you are in RTL mode you will get Persian subtitle and if you are in LTR mode you will get English subtitle.
Usage
Please note that the python script will not work with versions of python later than 2.6. So you are encouraged to use version 2.6 of python to take advantage of this python script. It is possible to change the aspect of (almost) everything, therefore it is highly customizable.
From this point it is possible to include packages and update the class commands described in subsection 6.1.9.
Front Page
All of these three environments are mostly a front page frame and so they can be redefined to suit your personal needs, but I kept them for example and to respect the original xepersian-magazine format. I called it authorblock because I like to include some author references on the front page: who are you, why are you doing this. This environment creates a frame box at the bottom right of the front page with your own logo at the top.
The first argument⟨number-columns⟩sets the number of columns the article will be divided into, while⟨label⟩is used when displaying an article from the index on the front page. Within the article environment, in addition to the main text of the article, it is possible to include additional information using various class assignments. The\authorplace{⟨author⟩}{⟨place⟩} inserts the name of the editor and the place where the article happened, as many magazines do.
You can also specify the number of columns of a block, such as the editorial and article environments. When specifying a front-end table of contents, several commands are available to customize the final table of contents style. Two other items that need to be configured are image captions and the format of pages or sections throughout the document.
Articles within xepersian-magazine may have a different format than those on the front page. The \timestamp command, described in subsection 6.1.5, allows you to introduce the time of an event before the article text. You can configure its appearance by changing several commands: \timestampTxt, which means the text after the timestamp; \timestampSeparator, which defines an element between the actual timestamp and the beginning of the text, and finally, \timestampFormat, to change the entire format of the timestamp.
Thexepersian-magazineclass is itself a modification of the standard article class, so it inherits most of its class options except twoside, twocolumn, notitlepage, and a4paper. \headerfontmacro takes one required argument that redefines the font for the headers (first row and first column) of form and mask matrices. In the mask, correct answers are checked by filling the appropriate cell with an "X".
Inside
The article environ-
Another useful command is \timestamp{⟨time⟩} which includes the time and a separator just before the text. These two commands must be used before the text because they print the text in the same place they are executed. Since multicolpackage doesn't provide any float support for its multicols environment, I created a macro that includes an image only if this is possible, calculating if there is enough space for the image. It's not the best solution, but it works well enough and I couldn't find a better one.
Use the command and its two arguments to include an image: the relative path to the image and a short description. Therefore, there are five different types of titles that mainly correspond to fancybox titles: shadowbox, doublebox, ovalbox, Ovalboxandlines.
The editorial envi-
The shortarticle envi-
Commands between
Customization
Front Page
Inside The Magazine . 46
To understand that there are three standard commands to modify the title, subtitle and text style. Note that the first part of the article has no subtitle, so it makes no sense to use the nonexistent command. \minraggedcolscounter is used to tell xepersian-magazine when article text should be jagged instead of justified.
The counter represents the minimum number of columns needed to use jagged texts. Although it is possible to use its own commands to change the xepersian magazine style, there are two commands to change the header and footer appearance. If you find problems loading other article features, please let me know so I can fix it.
The default line width is 0.1 pt, but this can be changed using the length\columnlines setting in the preamble.
Introduction
Usage
Loading The Package . 48
The question Envi-
Question Numbers
The Form and the Mask 49
The suggested answers are displayed in a list fashion below the question (the question environment is a list-based one). Currently, xepersian multiple choice requires you to provide a constant number of suggested answers across all questions in your xepersian multiple choice. Currently, there is a built-in mechanism to check that the number of suggested answers remains constant: when xepersian multiple choice encounters the first occurrence of the question environment, it remembers the number of suggested answers from there.
Customising The Package
The question envi-
The Form and the Mask 50