More Strange Behavior of figures in Compiling LaTeX

This is a follow up to my several messages from yesterday (July 20) posted in one of the TechnicalSupport(Mac) forum.
xiamenese suggest I move it here. Sorry, I don’t know how to move it, but the title was “Strange behavior of Images n LaTeX compilation”. Here is some more strange behavior I found today.

Last night I reinserted my images for Chapters 1 and 2 using the <$img:path;width= > form. It apparently worked fine. After my last compile I closed Scrivener. This morning when I opened Scrivener I found the following two mods to my edit, which had been fine when I closed Scrivener last night:

1:

\begin{figure}[h] \centering MISSING_IMAGE:SailingNov75.jpg;w=290> \caption{Zahide and Me on Ondine} fig:ZahideAndMeNov75 \end{figure}

2:

\begin{figure}[th] \vspace{5pt} \centering MISSING_IMAGE:TobyInnTreehouse-S.jpg;w=300> \caption{Toby Inn Receptionist with Tree House In Background} \label{fig:tobyInn} \end{figure}

So I checked the compiled LaTeX from the last compilation from last night.

1L:

\begin{figure}[h]
\centering
\includegraphics[width=290pt,height=199pt]{SailingNov75.jpg}
\caption{Zahide and Me on Ondine}

\label{fig:ZahideAndMeNov75}

\end{figure}

2L:

\begin{figure}[th]
\vspace{5pt}
\centering
\includegraphics[width=300pt,height=191pt]{TobyInnTreehouse-S.jpg}
\caption{Toby Inn Receptionist with Tree House In Background}
\label{fig:tobyInn}
\end{figure}

What the H?? Apparently Scrivener changed my working edit copy when I re-opened Scrivener this morning.

So I checked the contents of the project.scriv folder. Much of that is data, but in QuickLook/Preview (dated 10:24PM, about the time I closed scrivener last night) I find:

[code]\begin{figure}[h]

\centering

<$img:SailingNov75.jpg;w=290>

\caption{Zahide and Me on Ondine}

fig:ZahideAndMeNov75

\end{figure}

[/code]

and

[code]\begin{figure}[th]

\vspace{5pt}

\centering

<$img:TobyInnTreehouse-S.jpg;w=300>

\caption{Toby Inn Receptionist with Tree House In Background}

\label{fig:tobyInn}

\end{figure}[/code]

Double what the H?

Why are they messed up in the editor this morning when they were fine when I closed Scrivener last night?

I’m particularly distressed by the apparently random nature of this. I thought I was OK with the <$img: form of things, but now that only works randomly. I certainly can’t find any pattern. And what worked last night is now removed from the editing page.

Two things lift to try: Putting in the \includegraphics{path) by hand, Not that much more trouble (if it works). Or import the figures directly, rather than by reference.

One more thing to check: Time Machine: see what happens when I get the last saved copy of my project and open it.