
\documentclass[a5paper]{book}
\usepackage[
  xetex,
  showframe,
  left=20mm,
  right=10mm,
  top=9mm,
  bottom=12mm,
  headsep=1mm,
  footskip=5mm,
  marginparsep=1mm,
  marginparwidth=14mm,
  headheight=5mm,
  includehead,
  includefoot,
  paperwidth=148mm,
  paperheight=210mm]{geometry}

\usepackage{cxltx-style-base}
\usepackage{cxltx-style-position-absolute}
\usepackage{cxltx-style-oddeven}
\usepackage{cxltx-style-trm}
% \usepackage[top-left]{pagegrid}

\usepackage{ifthen}

\begin{document}

\paGauge{abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!?§\$}
\paSetStrut{6mm}{6mm}
\paShow
% \paOriginToPaper
\paOriginToText
% \paOriginTo{10mm}{10mm}

\paCenter{0mm}{0mm}{o}
\paLeft{40mm}{10mm}{this text starts at 40mm}
\paCenter{40mm}{15mm}{centered centered}
\paRight{40mm}{20mm}{this text ends at 40mm}

\null\newpage


\paCenter{0mm}{0mm}{o}
\paLeft{40mm}{10mm}{this text starts at 40mm}
\paCenter{40mm}{15mm}{centered centered}
\paRight{40mm}{20mm}{this text ends at 40mm}

\null\newpage
\oeIfOddPage{It's so odd!}{Now that's even}

\null\newpage
\oeIfOddPage{It's so odd!}{Now that's even}


% \uccode`A=27%
% \catcode`27=11
% \uppercase{\typeout{A[38;05;54m Indigo!}}
% \def\indigo{[38;05;54m}
% \immediate\write18{esc "\indigo helo Indigo"}

% \typeout{\char"001B[38;05;54m Indigo!}
% \typeout{"\x1b[38;05;54m"}

% \begingroup
%   \makeatletter
%   \@makeother\^^1b
% \@firstofone{\endgroup
%   \newcommand*{\CSI}{^^1b[}%
% }

% \trmTest
\trmWhisper{helo}
\trmWarn{a warning message}
\trmAlert{an alert}


\end{document}


