Search notes:

Inkscape

Installing inkscape

On Windows, inkscape can be installed with Chocolatey:
choco.exe install inkscape -y

Keyboard shortcuts

Some keyboard shortcuts I tend to use include:
ctrl+shift+d Open document properties (Typically used to change display units from mm (millimeter) to px (pixel).
ctrl+shift+f corresponds to menu Object -> Fill and Stroke…
ctrl+shift+o show selected object's properties (id, label, etc…)
ctrl+i corresponds to menu File -> Import

Command line options

-V --version Print the Inkscape version number
-z --without-gui Do not use X server (only process files from console)
-g --with-gui Try to use X server (even if $DISPLAY is not set)
-f --file=FILENAME Open specified document(s) (option string may be excluded)
-p --print=FILENAME Print document(s) to specified output file (use | program for pipe)
-e --export-png=FILENAME Export document to a PNG file (not possible anymore)
-d --export-dpi=DPI Resolution for exporting to bitmap and for rasterization of filters in PS/EPS/PDF (default 96)
-a --export-area=x0:y0:x1:y1 Exported area in SVG user units (default is the page; 0,0 is lower-left corner)
-D --export-area-drawing Exported area is the entire drawing (not page)
-C --export-area-page Exported area is the entire page
--export-margin=VALUE Sets margin around exported area (default 0) in units of page size for SVG and mm for PS/EPS/PDF
--export-area-snap Snap the bitmap export area outwards to the nearest integer values (in SVG user units)
-w --export-width=WIDTH The width of exported bitmap in pixels (overrides export-dpi)
-h --export-height=HEIGHT The height of exported bitmap in pixels (overrides export-dpi)
-i --export-id=ID The ID of the object to export
-j --export-id-only Export just the object with export-id, hide all others (only with export-id)
-t --export-use-hints Use stored filename and DPI hints when exporting (only with export-id)
-b --export-background=COLOR Background color of exported bitmap (any SVG-supported color string)
-y --export-background-opacity=VALUE Background opacity of exported bitmap (either 0.0 to 1.0, or 1 to 255)
-l --export-plain-svg=FILENAME Export document to plain SVG file (no sodipodi or inkscape namespaces)
-P --export-ps=FILENAME Export document to a PS file
-E --export-eps=FILENAME Export document to an EPS file
--export-ps-level=PS Level Choose the PostScript Level used to export. Possible choices are 2 and 3 (the default)
-A --export-pdf=FILENAME Export document to a PDF file
--export-pdf-version=PDF_VERSION Export PDF to given version. (hint: make sure to input the exact string found in the PDF export dialog, e.g. "1.4" which is PDF-a conformant)
--export-latex Export PDF/PS/EPS without text. Besides the PDF/PS/EPS, a LaTeX file is exported, putting the text on top of the PDF/PS/EPS file. Include the result in LaTeX like: \input{latexfile.tex}
-M --export-emf=FILENAME Export document to an Enhanced Metafile (EMF) File
-m --export-wmf=FILENAME Export document to a Windows Metafile (WMF) File
-T --export-text-to-path Convert text object to paths on export (PS, EPS, PDF, SVG)
--export-ignore-filters Render filtered objects without filters, instead of rasterizing (PS, EPS, PDF)
-X --query-x Query the X coordinate of the drawing or, if specified, of the object with --query-id
-Y --query-y Query the Y coordinate of the drawing or, if specified, of the object with --query-id
-W --query-width Query the width of the drawing or, if specified, of the object with --query-id
-H --query-height Query the height of the drawing or, if specified, of the object with --query-id
-S --query-all List id,x,y,w,h for all objects
-I --query-id=ID The ID of the object whose dimensions are queried
-x --extension-directory Print out the extension directory and exit
--vacuum-defs Remove unused definitions from the defs section(s) of the document
--verb-list List the IDs of all the verbs in Inkscape (Deprecated, use --actions)
--verb=VERB-ID Verb to call when Inkscape opens.
--select=OBJECT-ID Object ID to select when Inkscape opens.
--shell Start Inkscape in interactive shell mode.
--no-convert-text-baseline-spacing Do not fix legacy (pre-0.92) files' text baseline spacing on opening.
--convert-dpi-method=[...] Method used to convert pre-.92 document dpi, if needed. ([none|scale-viewbox|scale-document])

Convert an inkscape svg to a png

-e exports an inkscape drawing as png. The -z prevents the GUI from starting:
inkscape -z drawing.svg -e drawing.png
2020-09-07: it turns out the command above does not work anymore with the inkscape version that I have installed. It is possible to export a png now with, albeit with a mouse click required:
inkscape Epizyklen-etc.svg --export-filename=Epizyklen-etc.png

Gradients

gradient toolbar

Keyboard shortcut ctrl + F1

Set a default style for a pen etc

Double click respective icon (for example »pen«), or use shift+ctrl+p (for preferences).

Snapping

The keyboard shortcut to enable/disable snapping is %.

Snap Controls Bar

The Snap Controls Bar contains a few buttons that allow to specify what an object should be snapped to.
The Snap Controls Bar can be shown/hidden with the vie the menu View -> Show/Hide ….
By default (always?), the Snap Controls Bar is shown (if visible) on the right side of the Inscape GUI.

TODO

Does inkscape load fonts from /usr/share/inkscape/fonts?

See also

View -> Show/Hide
~/.config/inkscape/preferences.xml

Index