%pSQL compatible

\def\sub#1{_\mathrm{#1}}\def\sup#1{^\mathrm{#1}}

\def\GWPhysQuantValueWithNameAndUnits#1{\input{\GW/#1/PhysQuantDescript.page}\PQDescription:\  $\PQLatex \ifthenelse{\equal{\PQRelation}{NULL}}{}{\PQRelation} \ifthenelse{\equal{\PQValue}{NULL}}{}{\PQValue} $\ \ifthenelse{\equal{\PQUnit}{NULL}}{}{\PQUnit}}

\def\GWPhysQuantValueWithName#1{\input{\GW/#1/PhysQuantDescript.page}\PQDescription:\  $\PQLatex \ifthenelse{\equal{\PQRelation}{NULL}}{}{\PQRelation} \ifthenelse{\equal{\PQValue}{NULL}}{}{\PQValue} $\ \ifthenelse{\equal{\PQUnit}{NULL}}{}{[\PQUnit]}}

\def\GWQuantityFig#1{\input{\GW/#1/PhysQuantDescript.page}$\PQLatex$}


\def\GWPhysQuantRangeInterval#1{\input{\GW/#1/PhysQuantDescript.page}$\PQValue$ \PQUnit}

\def\GWPhysQuantDescr#1{\input{\GW/#1/PhysQuantDescript.page}\PQDescription: $\PQLatex$ [\PQUnit]}

%Musi se predelat pres SQL

%\def\GWPhysQuantValue#1{\GWinput{#1/PhysQuantDescript.page}$\quantity = \value$\ \unit}
%\def\GWPhysQuantValueWithName#1{\GWinput{#1/PhysQuantDescript.page}\name :\ $\quantity = \value$\ \unit}
%\def\GWPhysQuantRange#1{\GWinput{#1/PhysQuantDescript.page} $\quantity \approx \lowvalue - \highvalue\ \times \order$\ \unit}
%\def\GWPhysQuantRangeWithName#1{\GWinput{#1/PhysQuantDescript.page} \name :\ $\quantity \approx \lowvalue - \highvalue\ \times \order$\ \unit}
%\def\GWPhysQuantMax#1{\GWinput{#1/PhysQuantDescript.page} $\quantity < \maximum$ \unit}
%\def\GWPhysQuantMaxWithName#1{\GWinput{#1/PhysQuantDescript.page}\name :\ $\quantity < \maximum$ \unit}
%\def\GWPhysQuantApprox#1{\GWinput{#1/PhysQuantDescript.page} $\quantity \approx \approxvalue$ \unit}
%\def\GWPhysQuantApproxWithName#1{\GWinput{#1/PhysQuantDescript.page} \name :\ $\quantity \approx \approxvalue$ \unit}



