Replies: 2 comments 9 replies
-
You seem to be more an expert here than I am. I need to check the metapost manual for more information.... |
Beta Was this translation helpful? Give feedback.
3 replies
-
I tried this other way but it didn't work either... <?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="/usr/share/speedata-publisher/schema/layoutschema-en.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="/usr/share/speedata-publisher/schema/layoutschema-en.xsd" type="application/xml" schematypens="http://http://www.w3.org/2001/XMLSchema"?>
<Layout xmlns="urn:speedata.de:2009/publisher/en">
<Pageformat width="100mm" height="100mm" />
<DefineColor name="color_test" model="cmyk" c="0" m="0" y="0" k="40" />
<DefineGraphic name="mptest">
save corner; corner := 10;
filldraw (0, box.height - corner ){down} .. {down}(0,corner) .. (corner,0)
-- (box.width - corner,0) ..
{up}(box.width, corner) -- (box.width, box.height - corner) ..
{left}(box.width - corner, box.height) -- (corner,box.height){left} .. cycle withcolor withcolor spcolor( color_test );
</DefineGraphic>
<Record element="data">
<PlaceObject column="10mm" row="10mm">
<Box height="70mm" width="70mm" graphic="mptest" />
</PlaceObject>
</Record>
</Layout> |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Patrick,
I couldn't find any documentation about it anywhere, but it looks to me that metapost/metafun colors' name are very picky, and you can't use numbers, uppercase and special characters... 😵💫
Thus for instance this one is good but little practical:
Whereas these make Publisher crashing:
Do you have any recommendation for reasonable colors naming pattern?
Thanks... 🙏
Beta Was this translation helpful? Give feedback.
All reactions