-
Notifications
You must be signed in to change notification settings - Fork 22
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
draft mode with watermark #20
base: master
Are you sure you want to change the base?
Conversation
@matbesancon – I'm adding this to Whedon in openjournals/whedon@b63fc70. Is there an existing JuliaCon submission I could test this on (with |
|
||
# draft mode | ||
if draft | ||
f << "\\usepackage{draftwatermark}\n\n" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :-)
There was a problem hiding this comment.
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
This adds a draft mode with the environment variable
JLCON_DRAFT
, defaulting to true and adding the draft watermark