Skip to content

Conversation

@matbesancon
Copy link
Member

@matbesancon matbesancon commented Mar 25, 2021

This adds a draft mode with the environment variable JLCON_DRAFT, defaulting to true and adding the draft watermark

@matbesancon
Copy link
Member Author

ping @arfon as a follow-up on the discussion on adding a draft mode.
cc @crstnbr

@arfon
Copy link

arfon commented Jun 1, 2021

@matbesancon – I'm adding this to Whedon in openjournals/whedon@b63fc70.

Is there an existing JuliaCon submission I could test this on (with draftwatermark included in the LaTeX source already?)

@matbesancon
Copy link
Member Author

Good question. I'll merge this first and see with the editors. @vchuravy @ranjanan @crstnbr do you have a submission we can test this on?


# draft mode
if draft
f << "\\usepackage{draftwatermark}\n\n"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this disabling the draft?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no? Why would that be? I think adding the package adds the watermark

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just curious why the double \\ at the start of \\usepackage{draftwatermark}\n\n? I had interpreted this as the command being commented out... but I now realize that's not how LaTeX works :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was escaping special characters like \n

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants