New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background color #157

Open
pierreganty opened this Issue Sep 26, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@pierreganty

pierreganty commented Sep 26, 2017

I am trying to make slides with a black background.

Following the documentation the .ipe file contains

<symbol name="Background" transformations="translations" xform="yes">
<path stroke="black" fill="black">
-32 600 m
-32 0 l
768 0 l
768 600 l
h
</path>
</symbol>

The 'trick' of adding a layer named "BACKGROUND" and setting it invisible to not display the background (as written in the wiki does not work with Ipe 7.2.7).

@pierreganty

This comment has been minimized.

Show comment
Hide comment
@pierreganty

pierreganty Sep 26, 2017

Actually, almost everything works as announced.
Only the presence/absence of the BACKGROUND layer seems to import for display.

pierreganty commented Sep 26, 2017

Actually, almost everything works as announced.
Only the presence/absence of the BACKGROUND layer seems to import for display.

@otfried

This comment has been minimized.

Show comment
Hide comment
@otfried

otfried Sep 26, 2017

Owner

"Almost everything" seems to imply that something doesn't work - please do point out if you find something that is not working as documented or intended.

Owner

otfried commented Sep 26, 2017

"Almost everything" seems to imply that something doesn't work - please do point out if you find something that is not working as documented or intended.

@pierreganty

This comment has been minimized.

Show comment
Hide comment
@pierreganty

pierreganty Sep 26, 2017

The doc mentions the visible/invisible checkbox to show/hide the background.
It is actually the presence/absence of a BACKGROUND layer that hides/show the background (present = hide, absent = show).
The visible / invisible switch of the BACKGROUND layer has no effect.

pierreganty commented Sep 26, 2017

The doc mentions the visible/invisible checkbox to show/hide the background.
It is actually the presence/absence of a BACKGROUND layer that hides/show the background (present = hide, absent = show).
The visible / invisible switch of the BACKGROUND layer has no effect.

@pierreganty

This comment has been minimized.

Show comment
Hide comment
@pierreganty

pierreganty Oct 5, 2017

Hi @otfried. I just gave the talk featuring slides with a black background.
Coupled with an xml editor (xmlstarlet) I reached a workflow that worked for me (probably suboptimal but I wanted to let you know).

  1. I was doing the editing as always with black text.
  2. Each page had a BACKGROUND layer
  3. I set all my objects to a special color, say "special"
  4. To see the results with a black background I run
cp white-background-slides.ipe black-background-slides.ipe 
xml ed --inplace -u "/ipe/ipestyle/color[@name='special']/@value" -v '1 1 1' -d "/ipe/page/layer[@name='BACKGROUND']" black-background-slides.ipe
ipetoipe -pdf black-background-slides.ipe

It does update (-u) the color with attribute 'special' and sets it to white.
It does delete (-d) all the BACKGROUND layers in every page.
5) I looked at the result in black-background-slides.pdf and went back to white-background-slides.ipe when unhappy.

pierreganty commented Oct 5, 2017

Hi @otfried. I just gave the talk featuring slides with a black background.
Coupled with an xml editor (xmlstarlet) I reached a workflow that worked for me (probably suboptimal but I wanted to let you know).

  1. I was doing the editing as always with black text.
  2. Each page had a BACKGROUND layer
  3. I set all my objects to a special color, say "special"
  4. To see the results with a black background I run
cp white-background-slides.ipe black-background-slides.ipe 
xml ed --inplace -u "/ipe/ipestyle/color[@name='special']/@value" -v '1 1 1' -d "/ipe/page/layer[@name='BACKGROUND']" black-background-slides.ipe
ipetoipe -pdf black-background-slides.ipe

It does update (-u) the color with attribute 'special' and sets it to white.
It does delete (-d) all the BACKGROUND layers in every page.
5) I looked at the result in black-background-slides.pdf and went back to white-background-slides.ipe when unhappy.

@otfried

This comment has been minimized.

Show comment
Hide comment
@otfried

otfried Oct 5, 2017

Owner

To document the process for other's, a nice place would be to put this on the wiki - here in a closed bugreport, nobody will ever see it...

In any case I'm reopening it to remind myself to fix the documentation of the BACKGROUND layer features.

Owner

otfried commented Oct 5, 2017

To document the process for other's, a nice place would be to put this on the wiki - here in a closed bugreport, nobody will ever see it...

In any case I'm reopening it to remind myself to fix the documentation of the BACKGROUND layer features.

@otfried otfried reopened this Oct 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment