Giter Club home page Giter Club logo

Comments (3)

TeXhackse avatar TeXhackse commented on August 16, 2024

tudapub requires xcolor and tikz itself.

You can add the Options by switchching to

\PassOptionsToPackage{cmyk, dvipsnames}{xcolor} 

before loading tudapub.
It would be possible to add a PassingOption to tudapub as well. But I think for this case this wouldn't be necessary.

Plase pay attention to the fact, that pdfa-mode will switch to rgb colors. You should turn that one off for cmyk.

from tuda_latex_templates.

 avatar commented on August 16, 2024

tudapub is loaded within \documentclass[options]{tudapub}, right? So should I put this comand line
\PassOptionsToPackage{cmyk, dvipsnames}{xcolor}
before \documentclass?

from tuda_latex_templates.

TeXhackse avatar TeXhackse commented on August 16, 2024

Yes.

To add a short explanation:
if you load a package twice with a different set of options, you get an option clash.
That's why you receive one as soon as loading xcolor yourself.
\PassOptionsToPackage adds the options to the options list to be loaded in case the package will be loaded later. Therefore you have to add it before loading the package which means before documentclass.

tudapub already choses cmyk mode, except you have the pdfa mode switched on. This is due to pdfa requires rgb, since it focusses on the digital storage and not printing.

The dvipsnames option isn't loaded so you can also get the desired setup by simply turning pdfa to false and adding \PassOptionsToPackage{dvipsnames}{xcolor}

This generally is the way to do it, when you want to add any option to any automatically loaded package.

from tuda_latex_templates.

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.