<?lsmb#   This is a comment block; it's ignored by the template engine.

   Version:  1.1
   Date:     2022-07-22
   File:     shipping_label.tex
   Set:      demo

Template version numbers are explicitly not aligned across templates or
releases. No explicit versioning was applied before 2021-01-04.

Version   Changes
1.1       Merged xelatex targetting templates with those targetting pdflatex

-?>
<?lsmb FILTER latex { format="$FORMAT($PROCESSOR)" } ?>
\documentclass{scrartcl}
\usepackage{iftex}
\ifpdftex
  %% (pdf)latex
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
\else
  \usepackage{fontspec}
\fi
\usepackage{tabularx}
\usepackage[paperheight=10.5cm, paperwidth=16.2cm,top=1cm,bottom=1.5cm,left=2cm,right=2cm]{geometry}
\begin{document}
<?lsmb IF shiptoaddress1 ?>
\noindent <?lsmb name ?>\\
<?lsmb shiptoaddress1 ?>\\
<?lsmb IF shiptoaddress2; shiptoaddress2 ?>\\ <?lsmb END ?>
<?lsmb- shiptocity ?>
<?lsmb IF shiptostate -?>
\hspace{-0.1cm}, <?lsmb shiptostate ?><?lsmb END ?> <?lsmb shiptozipcode ?>\\
<?lsmb shiptocountry ?>
<?lsmb ELSE ?>
\noindent <?lsmb name ?>\\
<?lsmb address1 ?> \\
<?lsmb- IF address2; address2 ?> \\<?lsmb END ?>
<?lsmb- city ?>
<?lsmb- IF state -?>, <?lsmb state ?> <?lsmb END ?> <?lsmb zipcode ?>\\
<?lsmb END ?>

\end{document}
<?lsmb END -?>
