TobiasZawada / texfrag

Emacs package for previewing LaTeX fragments such as in doxygen comments.
GNU General Public License v3.0
68 stars 4 forks source link

preview includegraphics and markdown image #22

Open fab6 opened 4 years ago

fab6 commented 4 years ago

Hi, I am new to texfrag. Equations and figure/picture work quite good for previewing.

It seems that I have trouble with includegraphics, see the screenshot: image

In addition is it possible to preview "native" markdown images and tables (though tables are not so important) as well?

Best Fab

TobiasZawada commented 4 years ago

I've added the preview of image links in markdown files. ID's do not work. I left the changes minimal. But, that did not allow me to show the image title without opening the preview. Maybe, I will add a better method when I have more time... Just try it. The image link preview can be removed with option texfrag-markdown-preview-image-links.

fab6 commented 4 years ago

Thank you very much; after updating, it seems that it gives the same for me as before. Do you mean with IDs the markdown variant for including pictures?

TobiasZawada commented 4 years ago

By ID's I mean the following definition from the Markdown spec.:

Reference-style image syntax looks like this:

![Alt text][id]

Where “id” is the name of a defined image reference. Image references are defined using syntax identical to link references:

[id]: url/to/image "Optional title attribute"

TobiasZawada commented 4 years ago

If you want to make sure that my changes fix your issue you need to send me a minimal working example with recipe for problem re-construction. In the test file for texfrag there is a test for Markdown format. That test also includes images.