\usepackage[utf8]{inputenc}
\usepackage{babel}

\usepackage{url}
\usepackage{graphicx}
\usepackage{pict2e}
\usepackage{xcolor}

\usepackage{tikz}
\usetikzlibrary{arrows}
%\usetikzlibrary{calc}
\usetikzlibrary{patterns}
\usetikzlibrary{intersections}
%\usetikzlibrary{positioning}
%\usepackage{pgfmath}
%\usetikzlibrary{decorations.pathreplacing}
\usepackage{wrapfig}

%\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{gensymb}
\usepackage{textgreek}
%\usepackage{latexsym}
%\usepackage{pxfonts}
%\usepackage{stix}
%\usepackage{mathabx}
%\usepackage{MnSymbol}
\usepackage{fdsymbol}

\usepackage{IEEEtrantools}
%\usepackage[scanall]{psfrag}
\usepackage{psfrag}
%\usepackage{pict2e}
%\usepackage{textfit}
%\usepackage{dcolumn}
\usepackage{tabularx}
%\usepackage{bookman}
%\usepackage{calc}
%\usepackage[showframe,top=20mm,inner=40mm,outer=25mm,nohead,nofoot]{geometry}
\usepackage[top=20mm,inner=40mm,outer=25mm,bottom=30mm,nohead]{geometry}
%------------------------------
%\setlength{\parindent}{0mm}
%\pagestyle{empty}
%\include{aspo}
\newcommand{\Exp}[1]{\raisebox{.7ex}{\tiny #1}}
\newcommand{\ind}[1]{\makebox[#1]{}}
\newcommand{\ud}{\,\mathrm{d}}
\newlength{\halfwidth}
\setlength{\halfwidth}{0.5\textwidth}
\newcommand*{\rb}[1]{\makebox[25mm][l]{\raisebox{1ex}{\textsf{\scriptsize #1}}}}
\newcommand*{\pin}[1]{{\it #1}}
\newcommand*{\psfragABC}{%
  \psfrag{SA}[Bc]{\textbf{\footnotesize A}}
  \psfrag{IB}[Bc]{\textbf{\footnotesize B}}
  \psfrag{SC}[Bc]{\textbf{\footnotesize C}}
}

\newcommand*{\schscale}{1.5}
\newcommand*{\kurva}[9]{%
  \begin{tikzpicture}[scale=#1,domain=#2:#3,>=latex]
    #8
    % horizontal axis
    \draw[->] (-0.2+#2,0) -- (0.5+#3,0) node[right] {#4};
    \foreach \t in {1,...,#3} \draw (\t cm,0) -- (\t cm,-0.1) node[below] {\t};
    % vertical axis
    \draw[->] (0,-0.2+#5) -- (0,0.5+#6) node[above] {#7};
    \foreach \i in {1,...,#6} \draw (0,\i cm) -- (-0.1,\i cm) node[left] {\i};
    %
    #9
  \end{tikzpicture}
}

\newlength{\widthA}
\setlength{\widthA}{\halfwidth}
\addtolength{\widthA}{-9em}
\newlength{\widthB}
\setlength{\widthB}{\halfwidth}
\newlength{\widthC}
\setlength{\widthC}{\halfwidth}
\addtolength{\widthC}{-1em}
%\addtolength{\widthB}{1em}
\newcommand*{\eqnline}[4]{%
\makebox[\widthA]{$\hfill\displaystyle{#1}$}%
{$\:\displaystyle{#2}\:$}%
\makebox[\widthB]{$\displaystyle{#3}$\hfill }%
$\displaystyle{#4}$%
}
\newcommand*{\eqnlineB}[3]{%
\makebox[\widthA]{$\hfill\displaystyle{#1}$}%
{$\:\displaystyle{#2}\:$}%
$\displaystyle{#3}$\hfill%
}
%\newcommand{\DGH}{\preceqq}
\newcommand{\DGH}{\eqslantless}
\newcommand{\dgh}{\eqslantgtr}
%\newcommand{\DGH}{\eqqslantless}
%\newcommand{\DGH}{\leqclosed}
%\newcommand{\DGH}{\leqdot}
%\newcommand{\DGH}{\leqslantdot}
%\newcommand{\DGH}{\eqless}
%\newcommand{\DGH}{\smte}
%\newcommand{\textPhi}{$\Phi$}
\newcommand{\abs}[1]{\lvert #1 \rvert}
