/
machinesLatex.tex
109 lines (83 loc) · 3.79 KB
/
machinesLatex.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
\documentclass[leqno,b5paper]{book}
%\usepackage{fancyhdr} %put fancyhdr on jan-01-2015 and it worked
%\pagestyle{fancy}
%\usepackage[hidelinks]{hyperref} %messes with equation numbers and their reference calls (RTL issues)
\usepackage{./tex/khalidUrduBooksMachines} %my sty file
\usepackage{pgfplots}
%============================
%\usepackage{newfile} %collecting techniacalterms
%\newwrite\tempfileTerms
%\immediate\openout\tempfileTerms=technicalTerms.tex
%\newcommand*\wf[1]{\immediate\write\tempfileTerms{#1}}
% %%collecting techinal terms
%\newcommand*{\اصطلاح}[1]{\wf{\unexpanded{ur, #1 ,}}}
%\newcommand*{\حاشیہب}[1]{ \wf{\unexpanded{en, #1,}}}
%================================
%=================================
\input{./tex/myUrduCommandsMachines.tex} %turning latex into urdu
%\input{./tex/myUrduCommands.tex} %turning latex into urdu
\input{./tex/myUrduGreek.tex}
\input{./tex/myEMTvectors.tex}
\input{./tex/myTikzCommandsMachines.tex}
\input{./tex/myCircuitDimensionsAndMathematicalSymbols}
%\input{./tex/myElectronicsVariablesBetter.tex} %these are all tested. to use at the very end when book is finished
\input{./fig/figRotatingMachPrinciplesLibrary.tex} %templates used for drawing rotating machines
\graphicspath{{./fig/figFrontPage/}{./fig/figBasicFacts/}{./fig/figMagneticCircuits/}{./fig/figTransformers/}{./fig/figEnergyConversion/}{./fig/figRotatingMachPrinciples/}{./fig/figSynchronous/}{./fig/figInduction/}{./fig/figDC/}{./fig/figQuestions/}} %paths to figures
%
%
\includeonly{./tex/machinesPreface,./tex/machBasicFacts,./tex/machMagneticCircuits,./tex/machTransformers,./tex/machElectroMechConv,./tex/machRotatingMachPrinciples,./tex/machSynchronous,./tex/machInduction,./tex/machDCmachines}
%\includeonly{./tex/machinesPreface,./tex/machTransformers}
%\includeonly{./tex/emtSymbols,./tex/machinesPreface,./tex/machRotatingMachPrinciples}
\author{
خالد خان یوسفزئی\\
\\
{\small {جامعہ کامسیٹ، اسلام آباد}}\\
\texttt{khalidyousafzai@hotmail.com}
}
\title{برقی آلات}
%\date{} %if absent gives date in arabic which is a rubbish
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%included the following to correct the RTL issues with equation numbering after upgradation to ubuntu 18.04
%might break bidi package as said on the internet
\makeatletter
\def\maketag@@@#1{\hbox{\m@th\normalfont\RTL{{\beginR #1\endR}}}}
\def\tagform@#1{\maketag@@@{(\ignorespaces{\beginR#1\endR}\unskip)}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlatin
%\makeindex
%====================
\begin{document}
\sloppy
\renewcommand*{\contentsname}{عنوان} %this command has to be placed right here
\frontmatter %just added instead of \pagenumbering{roman}
%%\pagenumbering{roman}
\maketitle
\newpage
تاریخ درستگی: 12 مئی \سن{2020}
\tableofcontents
\pagestyle{empty}
\include{./tex/machinesPreface}
\include{./tex/emtSymbols}
\mainmatter %added this
%\renewcommand*{\chaptername}{باب}
%%\pagenumbering{arabic} %instead of this
\pagestyle{headings}
%\include{./tex/test}
\include{./tex/machBasicFacts}
\include{./tex/machMagneticCircuits}
\include{./tex/machTransformers}
\include{./tex/machElectroMechConv}
\include{./tex/machRotatingMachPrinciples}
\include{./tex/machSynchronous}
\include{./tex/machInduction}
\include{./tex/machDCmachines}
%\include{./tex/machQuestions}
%\immediate\closeout\tempfileTerms
\backmatter
\renewcommand*{\indexname}{فرہنگ} %this command has to be placed right here just before printindex command
\cleardoublepage
\addcontentsline{toc}{chapter}{فرہنگ}
\printindex
\end{document}