<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?action=history&amp;feed=atom&amp;title=Xfig</id>
	<title>Xfig - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?action=history&amp;feed=atom&amp;title=Xfig"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?title=Xfig&amp;action=history"/>
	<updated>2026-05-24T04:16:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?title=Xfig&amp;diff=3230&amp;oldid=prev</id>
		<title>import&gt;Mp466 at 22:28, 4 August 2008</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?title=Xfig&amp;diff=3230&amp;oldid=prev"/>
		<updated>2008-08-04T22:28:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:28, 4 August 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Run &amp;lt;code&amp;gt;fig2eps filename.fig&amp;lt;/code&amp;gt; and then &amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt; to create a pdf.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Run &amp;lt;code&amp;gt;fig2eps filename.fig&amp;lt;/code&amp;gt; and then &amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt; to create a pdf.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Conversion of ps to fig&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pstoedit tree.ps -f fig &amp;gt; tree.fig&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Document preparation&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt;Document preparation&amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>import&gt;Mp466</name></author>
	</entry>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?title=Xfig&amp;diff=3229&amp;oldid=prev</id>
		<title>import&gt;Jg525 at 13:13, 14 July 2008</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/cuc3/wiki/index.php?title=Xfig&amp;diff=3229&amp;oldid=prev"/>
		<updated>2008-07-14T13:13:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h2&amp;gt;LaTeX fonts in Xfig figures&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Xfig supports LaTex fonts. Fig files are thus a convenient intermediate file format when generating figures for LaTeX documents.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Manual modification of fig files&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To use LaTex fonts in Xfig:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Start Xfig.&amp;lt;br&amp;gt;&lt;br /&gt;
Select the text tool and on the bottom toolbar choose LaTeX fonts.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the &amp;quot;special&amp;quot; text mode.&amp;lt;br&amp;gt;&lt;br /&gt;
Enter text. Be sure to use &amp;lt;code&amp;gt;$...$&amp;lt;/code&amp;gt; to denote math symbols.&amp;lt;br&amp;gt;&lt;br /&gt;
Compound/group all components of the figure.&amp;lt;br&amp;gt;&lt;br /&gt;
Save as &amp;lt;code&amp;gt;filename.fig&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Scripts with fig output&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The textspecial mode can also be set in gnuplot scripts&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#!/usr/bin/gnuplot -persist&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# gnuplot script snippet&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;set terminal fig color textspecial&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;set output &amp;quot;filename.fig&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;set ylabel &amp;quot;$\\text{y}}$, $y$&amp;quot;;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;set xlabel &amp;quot;x, $x$&amp;quot;;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;and in Octave scripts&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#!/usr/bin/octave -qf&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# octave script snippet&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;filename = [&amp;quot;filename.fig&amp;quot;];&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;ylabel(&amp;quot;$\\text{y}}$, $y$&amp;quot;);&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;xlabel(&amp;quot;x, $x$&amp;quot;);&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;print(filename,&amp;#039;-color&amp;#039;,&amp;#039;-textspecial&amp;#039;);&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note the additional &amp;quot;\&amp;quot; in the LaTeX markup.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Conversion to eps and pdf&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To convert fig files to eps and pdf files you will need [http://www.courville.org/code/fig2eps/fig2eps fig2eps] and [http://www.ctan.org/tex-archive/support/epstopdf/ epstopdf].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;At the command line, run &amp;lt;code&amp;gt;fig2eps filename.fig&amp;lt;/code&amp;gt; to create an eps file of your graphic.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Run &amp;lt;code&amp;gt;fig2eps filename.fig&amp;lt;/code&amp;gt; and then &amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt; to create a pdf.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Document preparation&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To include a graphic in a LaTeX (or pdfLaTeX document), add&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;\includegraphics{/.../filename}&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
to your document and run &amp;lt;code&amp;gt;latex filename.tex&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;pdflatex filename.tex&amp;lt;/code&amp;gt;) at the command line. Note that no file extension is needed.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>import&gt;Jg525</name></author>
	</entry>
</feed>