As I understand it, the words inside the brackets function both as a name of the image; (also to be found in the image declaration [Nautilus Star]: Nautilus_Star “Nautilus Star” width=307px height=250px) and as text that is included in the formatted exported document:
“As an example, here is an image from my websiteâ€”Nautilus Star (Figure 1).”
What do I do to get just the reference text “Figure 1” and not also the text “Nautilus Star” in the output?
Thanks for the hints! Only problem is that when I use the syntax you describe, I get the reference to the image as a footnote, where the footnote is the name of the pdf image I have referenced with a Scrivener link in the image declaration. Why do I get footnotes??
The way to do it is the same way I use in the sample document (which I continue to highly recommend as a place to look for tips and tricks that don’t quite make it to the documentation).
You want to set up your reference to the image as a local link within the document, not as a URL. So instead of [Figure], you would use . The automatic labels generated by MMD strip out leading digits, remove spaces, and convert everything to lower case (plus strip out a few other symbols that aren’t allowed in HTML id attributes.)
The sample document (including Scrivener source file, MMD text file, LaTeX file, PDF, HTML, RTF, and RTFD) can be found here:
In a word, no. It may be possible to do this within LaTeX(almost anything is possible in LaTeX), and then you could tweak MMD to look at the label given to the image and designate it as a Figure or Example, but this isn’t something I’ll be doing myself.
So the longer answer is not now, but you are welcome to try and add this feature.
Thanks for the quick response — and the powerful tool. I apologize if I am missing something fundamental. I am new to MMD, MD, and XSL, and I’ve been tinkering as well as reading documentation to try and sort out how it works, but it is likely that I have just made some incorrect assumptions along the way.
I’m trying to use MMD to reference figures in a way that will produce \autoref commands in LaTex, and still be readable in either HTML or RTF. If I use the internal reference syntax, and leave the first set of brackets empty, LaTex will create the \autoref that refers to the figure by its figure number, which is what I need. With the first brackets empty, however, html and rtf insert nothing for the link. If I put text in the first set of brackets, html and rtf happily show this text as a link, but then LaTex shows this text, and the \autoref right next to eachother. I hope I have explained this clearly. Below is a snippet showing some of the code that works beautifully in LaTex, but not so well in html. Thanks for any help.
Mean channel depth at the upstream site was 10 mm, versus 50 mm at the downstream site. Channel cross sections characterize the downstream site as a more deeply inundated plane, with higher local relief ().
[figureone]:double profile “Channel cross sections for (a)upstream site, and (b) downstream site”
That makes sense, and works for html, but not as well in latex. Here’s what happens:
This is what I have in Scrivener:
Here is the LaTeX produced:
And here is the typeset output:
Channel cross sections characterize the downstream site as a more deeply
inundated plane, with higher local relief (Figure 3.1). Now if I try it the other way figure 1 (Figure 3.1).
You can see how this approach yields a redundant output in Latex. I’m looking for a way to get the same MMD text to produce similar looking html and latex results, but I haven’t figured out how to do that with the existing XSLTs. I hope I’m not being terribly dense here.