Showing posts with label Inkscape. Show all posts
Showing posts with label Inkscape. Show all posts

Tuesday, June 5, 2012

Inkscape - change "Save As..." directory

Under File -> Inkscape Perferences -> go to Save -> see if box for Use current directory for "Save As..." is checked or not.


Inkscape - change saving area of the drawing

If you have a bunch of objects on your Inkscape page and you want to only export/save a portion of that, then first select the object(s) you want go to File -> Document Properties -> under the Page tab -> expand the Custom Size area if needed -> then select Resize page to drawing or selection



Thursday, January 5, 2012

Inkscape - exporting bitmap (as a .png file) getting rid of unwanted checkered background/hatch fill

Ok, so I've been using Inkscape for awhile for drawing simple images, and I love it.  However, I don't know if this is default or what, but when you begin exporting your image using "Export Bitmap" it exports the file fine as a .png except there is this hatched fill or checkered background on the image!  I finally found out how to fix this from here: http://www.inkscapeforum.com/viewtopic.php?f=5&t=820 at about halfway down the page.

To fix this, while in Inkscape go to File - Document Properties.  Then click on the area where it says background.  It should, at least in my case, have half of the bar or strip as white and the other half as checkered.  When you click on it, this is really strange, the settings are all on white!  However, I clicked on the hatched portion, called Alpha (opacity) and then move it to darker (left) then moved it back to white/lighter (right).  Then it disappeared (the checkered area)!




BTW, I tried to fix it manually by going to the object fill and stroke properties, but like above the settings were all on white.  I don't think I tried messing with the checkered setting, but I would just do the above steps to fix the whole thing.

I also, before, used, from what I remembered, a white rectangle to cover the area of the figure and set it to the lowest layer.  However, I could not get that to work this time so I hunted out this fix.

Saturday, December 11, 2010

Inkscape and Tex Text

I have found for Ubuntu the best software for drawing figures for research is Inkscape.  It is cross platform which is a big bonus, and of course it is free!   It is also found in the Ubuntu software repositories.



I wanted a vector graphics drawing program vs a raster graphics program which essentially means that the quality of the image holds up when zoomed in (aka no pixel-ation). Please see the Wikipedia article link and image below.

Vector graphics (From Wikipedia, the free encyclopedia)



Another big requirement for me is that the drawing software should be able to handle equation input easily and quickly since I work a lot with math in my research. Inkscape does this flawlessly and uses LaTex math input!! However, there are two ways to go about this. The first is using the built in InkLaTeX (see InkLaTeX - Extensions for drawing LaTeX text on Inkscape for more info).



Unfortunately, the formula cannot be re-edited if need be.  However, the second option allows this and is what I recommend.  It is using Textext in Inkscape. To install simply download the files: textext.inx and textext.py. Then, depending on what version of Ubuntu you are using the files will go into ~/.config/inkscape/extensions/ for Inkscape 0.47 versions or later (the ~/.config folder can be found in your homefolder and will be named what ever you called it; mine for example is timbarber/.config since that is my login name; you will also have to click on "Show Hidden Files" under the View menu) and in ~/.inkscape/extensions/ for earlier versions. Also for Linux installations some additional requirements are: (see Textext for additional platform installation help as well; I do not know why these are needed either)

On Linux, you’ll need to have pdflatex and one of the following installed:

- Pstoedit with its plot-svg back-end compiled in, or,
- Pstoedit and Skconvert, or,
- Pdf2svg (the one by David Barton & Matthew Flaschen, not the one by PDFtron)

I think you can get all this done under the Ubuntu repositories for the Inkscape installation (see next image).


Once installed simply go to Extensions and there should be a separate Tex Text file.


The next few images is an example of inserting an equation and editing it.  Simply click the equation image and select Extensions->;Text Text again.  If an error or warning pops up like I have shown, I am not sure why or what it is for but just click "Ok" and everything should be fine.






For additional information please also see this blog post:

The Typethinker
Trying to make sense

Integrating Inkscape graphics in LaTeX


and this website:

LaTeX in Inkscape
jblevins.org » log » latex-in-inkscape
CHAPEL HILL, DECEMBER 10, 2007


by Jason R. Blevins

ASSISTANT PROFESSOR OF ECONOMICS AT THE OHIO STATE UNIVERSITY