%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 8-2-23 on page 532.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{231.83385pt}
\AtBeginDocument{\setlength\unitlength{0.09pt}}
%% Small unitlength may result in diagonal connections to vanish unless
%% a package like epic, eepic, or pict2e is being used that supports small lines
%%
\usepackage{pict2e}

\StartShownPreambleCommands
\usepackage{xymtex}
\StopShownPreambleCommands
\begin{document}
\furanose[b]{1D==O;2Sa==OH;%
  3Sa==\lmoiety{HO};%
  4Sb==HOH$_2$C(HO)HC}
\qquad
\pyranose[a]{3Sb==OAc;%
  4Sa==AcO;5Sb==CH$_{2}$OTs}
\end{document}
