Giter Site home page Giter Site logo

Comments (1)

callegar avatar callegar commented on July 24, 2024 1

You really have multiple alternatives, depending on your needs:

  1. If you need to watermark only the 1st page, use firstpageonly when loading the package.
  2. If at some point in the text you realize that you need to start watermarking and at some later point you need to stop it, put some \DraftwatermarkOptions{stamp} and \DraftwatermarkOptions{nostamp} in your source at the points where you want to activate and deactivate the stamping of the watermark.
    • This is best if the need to activate and deactivate the watermark depends on your content (e.g. you have a section "foo" and you want it watermarked, however you do not know in advance from what page number this section will be typeset, e.g., because you still add stuff at the beginning of your document, or you plan changing the font size, etc.)
  3. If at some specific page numbers you want the watermark and not at others, you can include conditional expressions based on the page number in the watermark text. Namely, you redefine the watermark text using \DraftwatermarkOptions{text={.....}) and in the watermark text you include a conditional expression. For instance, you may use text={\ifodd\thepage ODD\else EVEN\fi} to put the watermark "ODD" on odd pages and the watermark "EVEN" on even pages. Alternatively, for more complex conditionals, you may want to use the ifthen package and then do things like text={\ifthenelse{\thepage=2}{HERE}{\relax}} (this will print the watermark only on page 2).

Hope this helps...

from latex-draftwatermark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.