使用带有 wrapfigure 的 typewriter 包

使用带有 wrapfigure 的 typewriter 包

在此处输入图片描述我想在页面右侧并排显示两张图片,并在图片周围浮动文字。在我尝试使用包之前,这可以正常工作typewriter。然后两张图片一个接一个,图片下方有一条奇怪的线。有没有办法即使使用包也可以防止这种情况发生typewriter

\documentclass[12pt,a4paper]{scrartcl}
    \usepackage{graphicx}  
    \usepackage{wrapfig} 
    \usepackage{subcaption}
    \usepackage{float}
    \usepackage{lipsum} 
    \providecommand\ttgreyone{0.6}
    \providecommand\ttgreytwo{0.3}
    \providecommand\ttrotatebold{12}
    \providecommand\ttdownbold{20000}
    \providecommand\ttrightbold{35000}
    \providecommand\ttdownshifttwo{20000}
    \providecommand\ttrotatenormal{8}
    \providecommand\ttrightnormal{20000}
    \providecommand\ttdownnormal{20000}    
    \usepackage{typewriter}   
    \usepackage[normalem]{ulem}   

    \begin{document}
        \section*{text}
        \subsection*{text}
    \lipsum[1]
        \begin{wrapfigure}   {r} {0.5\textwidth} 
            \begin{subfigure}[t]{.25\textwidth}  
                \includegraphics[width=\linewidth]{example-image} 
            \end{subfigure}  \hspace{0.1cm}%
            \begin{subfigure}[t]{.25\textwidth}  
                \includegraphics[width=\linewidth]{example-image} 
            \end{subfigure}  \hspace{0.1cm}
        \end{wrapfigure}
    \end{document}

答案1

在此处输入图片描述

\documentclass[12pt,a4paper]{scrartcl}
    \usepackage{graphicx}  
    \usepackage{wrapfig} 
    \usepackage{float}
    \usepackage{lipsum} 
    \providecommand\ttgreyone{0.6}
    \providecommand\ttgreytwo{0.3}
    \providecommand\ttrotatebold{12}
    \providecommand\ttdownbold{20000}
    \providecommand\ttrightbold{35000}
    \providecommand\ttdownshifttwo{20000}
    \providecommand\ttrotatenormal{8}
    \providecommand\ttrightnormal{20000}
    \providecommand\ttdownnormal{20000}    
    \usepackage{typewriter}   


    \begin{document}
        \section*{text}
        \subsection*{text}

        \begin{wrapfigure}{r}{0.5\textwidth} 
                \includegraphics[width=.45\linewidth]{example-image}\hfill
                \includegraphics[width=.45\linewidth]{example-image}
\let\hrule\oldhrule
        \end{wrapfigure}
    \mbox{}\lipsum*[1]

    \end{document}

相关内容