-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SvgElement: Added methods for TeX color detection and color style import
Ensures the following: If colorized TeX code is used the node is inserted in the document with the TeX colors, if not, the group color defined in Inkscape is used (incl. opacity). Specific colorization of single characters done in Inkscape is intentionally lost. New method is_colorized() returns True if at least one element with a non-black color is found in the node. Specific implementations for pdf2svg and pstoedit (pdf2svg uses css styles, pstoedit uses attributes). Can be used to check if colors have been explicitely set in the TeX code immediately after creation of the SVG node. New method import_group_color_style which imports the color style information from an existing SVGElement and applies it to all items of the managed node.
- Loading branch information
Showing
2 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
\usepackage{amsmath,amsthm,amssymb,amsfonts} | ||
\usepackage{color} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters