[main]Notes on TeXmacs

Example of TikZ figure generation with the Graph plugin

The Graph plugin collect the interface to some useful image generation programs. Whenever possible a vector image in the PostScript or Pdf format is generated. Currently it supports the Graphviz suite and some LaTeX image generation packages like XyPic, FeynMF, PGF/TikZ and a direct interface to LaTeX/PDFLaTeX for more complex layout or to use other packages.

You may insert a Graph session using InsertSessionGraph. When you finished typing your input, press in order to compute the output. Multiline input is entered using ⇧↩.

Type help, you will get all the available graph backends.

Generate graphs with your favorite tools in GNU TeXmacs

Created by Darcy Shen, Implemented in Python, asy[421ms] by default

Welcome to star and fork it at https://github.com/texmacs/plugins


TeXmacs interface to PDFLaTeX for picture generation



vector/.style={-stealth,red,very thick},vector guide/.style={dashed,red,thick}]

%standard tikz coordinate definition using x, y, z coords
\coordinate (O) at (0,0,0);

%tikz-3dplot coordinate definition using r, theta, phi coords

%draw axes
\draw[axis] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
\draw[axis] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
\draw[axis] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};

%draw a vector from O to P
\draw[vector] (O) -- (P);

%draw guide lines to components
\draw[vector guide] (O) -- (Pxy);
\draw[vector guide] (Pxy) -- (P);