Как вставить изображение в пробел между словами

Как вставить изображение в пробел между словами

Я хотел бы «встроить» изображение в страницу моего документа, но сделать это с пробелами между словами.

В конечном итоге я хотел бы иметь движущееся изображение при перелистывании страниц.

Я удивлен, что у меня не получилось ничего! Решение с использованием монохромного изображения было бы идеальным.

Просто кое-что для моих преданных фанатов 8)

решение1

Немного поработав с вопросами и ответами, чтобы понять ваши намерения, я публикую этот «ответ» как для того, чтобы прояснить другим читателям, в чем, по моему мнению, заключается намерение вашего вопроса, так и для того, чтобы заявить, что, по моему мнению, это невозможно сделать с каким-либо успехом. В моем MWE я пытаюсь поместить простой круг в реки текста. Чтобы помочь читателям показать этот круг, я снова представляю результат с реками пробелов, замененными красными черточками. Так почему же я не считаю это осуществимым?

1) В моем MWE реки преувеличены с помощью множества пробелов, но их все равно практически невозможно различить, даже если они выделены красными черточками. Добиться этого без такого вопиющего преувеличения бесконечно сложнее;

2) Хотя пустые пространства рек могут отвлекать внимание, я никогда не слышал, чтобы кто-то утверждал, что они могут стать центром внимания;

3) «пиксельное разрешение» пустого пространства настолько грубое, что, по моему мнению, даже на протяжении всей страницы разрешение недостаточно велико, чтобы представить изображение в пустом пространстве как что-то иное, кроме как неразрешенную кляксу.

Но, пожалуйста, кто-нибудь, докажите, что я неправ.

\documentclass{article}
\usepackage{verbatimbox}
\usepackage{xcolor}
\begin{document}
\let\svdash-
\catcode`-=\active
\def\coloron{\def-{\textcolor{red}{\svdash}}}
\begin{verbnobox}[\rmfamily\coloron]
Here is our goal.  It is a test.  What
we are trying     to see is whether or
if an    image can arise   in
the    rivers of  this text.   That
is   to say,  can one see the    circle
that   is formed  in large    rivers of 
my pic?    Maybe if you    squint, one
can just make        it out. Barely.
Then again, maybe not.
~
Below, the relevant rivers are replaced with dashes
~
Here is our goal.  It is a test.  What
we are trying-----to see is whether or
if an----image can arise---in
the----rivers of  this text.---That
is---to say,  can one see the----circle
that---is formed  in large----rivers of 
my pic?----Maybe if you----squint, one
can just make--------it out. Barely.
Then again, maybe not.
\end{verbnobox}
\end{document}

введите описание изображения здесь


Если вы действительно хотите встроить скрытое изображение, а я предлагаю более зрелое сообщение, чем то, что задумали ваши коллеги-«друзья», есть гораздо более простые способы:

\documentclass{article}
\usepackage{stackengine,xcolor, graphicx}
\begin{document}
Where is the hidden image%
\stackinset{c}{-.2pt}{b}{.3pt}{\scalebox{0.02}{\textcolor{white}{Hi, mom}}}{?}
\end{document}

введите описание изображения здесь

введите описание изображения здесь

решение2

В основном это можно сделать 8) Ручная настройка правого поля - это сложная и не очень точная задача, поэтому в образовательных целях вот готовый результат, который одновременно доказывает и опровергает, что это можно сделать и что это работает 8)

  \documentclass{article}
  \usepackage{verbatimbox}
  \usepackage{xcolor}
  \begin{document}
  \begin{verbnobox}[\rmfamily]
  target  of  a given  family’s toxin.   Many type II  TAs  target  translational  machinery,
  which  is  highly  conserved  across  all domains of life  (Poole  and  Logan 2005;  Noller
  2004).  DNA synthesis machinery, DNA polymerases  and  primases  are  less  conserved
  (Poole  and  Logan  2005;  Leipe, Aravind,  and  Koonin 1999;  Werner  and  Grohmann
  2011;  Aravind and  Koonin 2001).  Amongst type I  TAs, SymE,  which targets  mRNA
  (Kawano,  Aravind,  and Storz  2007),  would  provide  an  interesting comparison to the
  membrane proteins investigated within this thesis.

Clea   rly, neither toxi   n norantitoxin target  accounts  for  all  differences within  TA
  syste   ms, because families w   ith the same target often contain loci that differ inability
  to c   onfer a PSK effect on a    plasmid  (Szekeres et  al . 2007;  Christensen,  Maenhaut   
  Mich   el, et al. 2004; De Bast,    Mine, and  Van  Melderen  2008;  Wilbaux et al.  2007;
  Fiebig    et al. 2010). Similarly, ty   pe I  and  III  RMs  are not  as mobile and have not
  been sho   wn to induce PSK (Nadere   r et al.  2002;  O’Sullivan  et al.  2000;  Mruk and
  Kobayashi 2014),    but have the same tar   get (DNA) as  type  II  RMs.  Other  factors
  are also important for    PSK, including the le   vels at  which  the  toxin  and  antitoxin
  are expressed, and the rate    at which the toxin and    antitoxin are degraded in the cell
  after plasmid loss (Chapter 5).

TA systems rely on differential d   ecay of  the  toxin  and ant   itoxin  to  induce  PSK
  (Chapter 5). Type II  systems  are ti   ghtly  regulated  by  protein     antitoxins,   which
  interact with the toxin and act as transcr   iptional  repressors,  sensitive    to changes  in
  stoichiometry (Mruk and Kobayashi 2014;    J. Zhang,  Y.  Zhang, and M. In   ouye 2003;
  Kedzierska,  Lian,  and F.  Hayes  2007;    Cataudella, Sneppen, et al. 2013; Cata   udella,
  Trusina,  et  al.  2012; Afif  et al. 2001).    I used  equations  of  logarithmic decay    as a
  starting point for analyzing the condit   ions necessary for type  II  TAs to exhibit P   SK.
  In particular, I analyzed the pop   ulation of toxin and antitoxin in the cell necessary    for
  PSK given their respective half   -lives ( Chapter  5 ). Antitoxins  with similar stabil   ities
  as their associated toxins cannot    be  expressed  in  numbers  significantly  higher    than
  the toxin,  or  there  will  not be su   fficient free  toxin  to create a  PSK effect    within a
  given time period.  Given the  inherent    noise of ge   ne  expression (Rase   r and  O’Shea
  2005; C. V. Rao, D. M. Wolf, and Arkin 2002),    system   s relying    on stable antitoxins
  risk  plasmid  suicide from  excess toxin  in  the cell     prior to  loss. Thus, there  is likely
  to be an evolutionary trend toward TA systems with high expression levels of very
  \end{verbnobox}
  \end{document}

введите описание изображения здесь

Связанный контент