![]() |
Inserting images | ![]() |
You can include images in the text using the menu Insert\(\rightarrow\)Image or using drag-and-drop. Currently, TeXmacs recognizes the ps, eps, tif, pdf, svg, png, pdm, gif, ppm, xpm and fig file formats.
By default, images are displayed at their design sizes and aligned at their bottom lines. Alternative widths, heights and alignment offsets may be specified in the image chooser dialogue window, using TeXmacs notation for lengths.
When specifying a new width, but no height at the prompt (or vice versa), the image is resized so as to preserve the aspect ratio. For instance, entering a width of 1par will make the image span over the entire paragraph width and adjust the height proportionally.
You may use w and h as special lengths for the default width and height of the image. For instance, specifying 2w and 2h for the width and the height, the image will be displayed at twice its default size.
When specifying an alternative alignment, you may use the w and h lengths for the displayed width and height (i.e. w and h no longer stand for the default width and height). For instance, using -0.5h for the \(y\)-offset will vertically align the image at its center.
We also included a script to convert Xfig pictures, with optional LaTeX formulas in it, into encapsulated postscript. In order to include a LaTeX formula in an xfig picture, we recall you should enter the formula as text, while selecting a LaTeX font and setting the special flag in the text flags.
Remark 1. For the support of certain formats, TeXmacs may rely on external converters to more standard formats such as Ghostscript, ImageMagick, Inkscape, or rsvg-convert. If necessary, then you may consider installing these tools or ask your system administrator.