View Single Post
Old 05-23-2020, 02:59 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Oh, I see. I was reading DNSB's post and thinking you wanted to insert an actual image.

Now that I'm taking a closer look at Post #1:

Search: Fig\._([\d\.]+)
Replace: <a href="../Images/Fig_\1.jpg">Fig._\1</a>&nbsp;

That will get you what you "want".

BUT!!! Linking directly to an image file won't work on an actual ereader (it doesn't even work in ADE).

You will want to point to the figure's location within the book, for example:

Chapter01.xhtml:

Code:
<p class="figuretitle">Figure 3.1</p>

<div class="image">
	<img alt="Figure 3.1" id="Fig3.1" src="../Images/Fig_3.1.jpg"/>
</div>
Chapter30.xhtml:

Code:
<p>As you can see in <a href="../Text/Chapter01.xhtml#Fig3.1">Fig 3.1</a>, the cat is brown.</p>

Last edited by Tex2002ans; 05-23-2020 at 03:02 PM.
Tex2002ans is offline   Reply With Quote