Frequently Asked Questions |
|
<lrclause@cs.uiuc.edu>
. Most of the material came out
of the Dia mailing list. The following people contributed more advice:
Kerry <needles@industrialmusic.com>
,
James Henstridge <james@daa.com.au>
,
Simon Josefsson <simon@josefsson.org>
,
Jacek Pliszka <Jacek.Pliszka@fuw.edu.pl>
,
Steffen Macke <sdteffen@yahoo.com>
,
Robert Campbell <rob.campbell@visto.com>
>,
and
Hubert Figuiere <hfiguiere@teaser.fr>
.
/etc/X11/fs/config
and move the line
/usr/share/fonts/default/urw-aliases
to just below the
...:unscaled
lines (make sure the commas are in the correct
places after making the change). Then run killall -USR1 xfs
to get the font server to reread its config file. The URW fonts should be
used in place of the adobe ones they are clones of when an unscaled bitmap
version can't be found.
Work is in progress to make Dia use the FreeType library to provide better font support.
\usepackage{pstricks}
to the preamble of your TeX
document. Then include your image as
\begin{figure} \centering \input{filename.tex} \caption{A caption} \label{figure:alabel} \end{figure}
in your document.
Note: Up to and including version 0.86, Dia doesn't deal correctly with some functions that PSTricks doesn't implement. You may have to change the start of the generated file to look like this: Then uncomment the three commands in the generated TeX file (unless you have a PSTricks with this functionality implemented), so it looks like:
% PSTricks TeX macro % Title: x500name.dia % Creator: Dia v0.86 % CreationDate: Thu Oct 5 11:25:54 2000 % For: a user % \usepackage{pstricks} \providecommand{\setlinejoinmode}[1]{} \providecommand{\setlinecaps}[1]{} \providecommand{\setfont}[2]{} ...
Note: PSTricks in the tetex-1.0.6-11 RPM (used in Red Hat Linux 6.2)
is buggy. Easiest fix is to get pstricks.tex
from CTAN and put it in
/usr/share/texmf/tex/generic/pstricks/
.
.tex
file replace \psline
by \pccoil
or \pczigzag
.
For more information on their arguments look into your
PSTricks documentation included in your PSTricks package
or at PSTricks
home page.
Careful! Lines with more then one segment have to be split
into separate segments when pccoil
and pczigzag
are used.
$\delta^{\dagger}_2$
. At the moment of writing this FAQ
it is not yet displayed correctly in dia but TeX code
produced should be fine. The bounding-box of the formula will not be
calculated correctly.
In most cases, it is because you have an old version of a support library. The libraries needed to compile Dia as of version 0.86 are:
Note that if you use some package system (dpkg
or RPM), you
will need to download the development packages (-dev
or
-devel
).
Some systems, notably Red Hat and derivatives, don't have
/usr/local/lib
in /etc/ld.so.conf
. GNU applications by default
install into /usr/local
when compiled. To make Dia work there,
either add /usr/local/lib
to /etc/ld.so.conf
and run
ldconfig
as root, or configure with --prefix=/usr
to
put everything in /usr
.
rpm -ta dia-XXX.tar.gz
autoexec.bat
file:
set HOME=c:\homethen restart your computer and make sure
c:\home
exists. The path should not contain
any spaces and is case-sensitive (c:\Home
is not the same as c:\home
).
As of Dia 0.88.1, this problem should no longer happen.
However, Dia now also has the capability of exporting a diagram as a shape.
Each collection of shapes (called a sheet) should be kept together in a
subdirectory of ~/.dia/shapes
, e.g,
~/.dia/shapes/Engines
. To make a shape, first design it in Dia.
Then export it into your subdirectory. Two files will be generated, a
.shape file and a .png file (the icon). Next update the corresponding
sheet file in ~/.dia/sheets
, in this case called
Engines.sheet
. Example contents of a sheet file is:
<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*- xml -*- --> <sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns"> <name>Engines</name> <description>Mechanical Engines</description> <contents> <object name="Engines - Gas"> <description>A gas engine</description> </object> </contents> </sheet>Each new object should be added to the sheet by adding an
object
section. Next time you restart Dia, the new objects
should show up in the list of sheets.
An easier alternative would be to make a Visio plug-in that will allow conversion. Other programs have already done this for their proprietary formats. If somebody were to make such a script, we could set up a public server to do conversions.