? H
The package 'xcolor' has already been loaded with options:
[dvipsnames,hyperref,table].
There has now been an attempt to load it with no options.
Adding the global options:
'dvipsnames,hyperref,table'
to your \documentclass declaration may fix this.
? x
No pages of output.
...be just impossible? Why should `xcolor` complains if loaded without any option? I am trying to reproduce it in a simpler case --- it happens with some homemade package --- but I am at a loss, both reproducing it and trying to find the cause.... Has anybody any hints on what could be going on? Thanks!
@Rmano things could be different but why do you think no options is not a clash? no options is the same as dvipsnames=false which clashes with the supplied dvipsnames=true
@Rmano the xcolor package code doesn't really have any control here, latex is giving the error without looking at package internals
@Rmano I'm not sure about the truth of either of the above statements, Ignore for now I may reply later:-)
@DavidCarlisle ok, thanks --- no hurry (I am in the middle of inviligating an exam now ;-) )
It's fun because I am not able to reproduce it modulo one case where this errorr happens loading my circledsteps so I think I am to blame here. Just now knowing why...
@UlrikeFischer bingo. I was searching for "with no options" but catoptions has with \ifx\reserved@e\@empty no options.\MsgBrk\else in that case it's easy, don't use that package @Rmano
@Rmano ask menukeys author not to use catoptions? but in your own class you should be able to arrange that things work eg load xcolor then zero out \csname opt@xcolor.sty so catoptions can't see that xcolor was loaded with options or .....
@Rmano well none of the following work. So basically you have to find some low-level hack to prevent catoptions to interfere. In my opinion the package is a nuisance and I never use packages loading it.
@PauloCereda -- With the in-line decoration, this is the Nazi Iron Cross (en.wikipedia.org/wiki/Iron_Cross). I would really advise not using it as a decoration. Without the in-line incision, it is indeed the cross pattée as identified by @DavidCarlisle and @UlrikeFischer.
@PauloCereda -- Don't be sorry. It's quite natural to want to know what objects or images are called. (I've seen it used here on helmets and regalia of "outlaw bikers".)
@AlanMunn -- Joining in with good wishes. (More recursion ...)
@yo' I don't think that there is a package. Normally I get files where somewhere in the preamble or before the table there are definitions like \def\sym#1{\ifmmode^{#1}\else(^{#1}\)\fi}
@cis no need to do that, simply specify that the exercise counter is reset when the section counter is incremented which you can do when you declare the exercise counter or by \@addtoreset{exercise}{section} (oh @yo' just said same with the newer public facing name of the command with no @ :-)
What is the correct way to count exercises per section like
I got it with
% Count exercises per section =====
\let\oldsection\section
\renewcommand{\section}{%
\setcounter{exercise}{0}%
\oldsection}
but is there a function inside xsim?
MWE:
\documentclass{scrartcl}
\usepackage{xsim}
\xsim...
@cis basically that key just calls the command that @yo' mentioned which calls the command that I mentioned, so if you learned latex in 1986 then naturally you'd use the form I suggested, as the layers above did not exist:-)
@JosephWright I have been looking a bit at this tex.stackexchange.com/a/530687/2388. One question was why \SI resets to light instead of keeping the m-series. I tried if it works if one use \fontseriesforce, but that fails too as \SI calls internally \fontseries which resets the switch:
(Importantly, this does not work with XeTeX. I mostly tested using pdfTeX, but things also seem to work in LuaTeX.)
In a pdf file, colors of an included image can be affected by a /Decode array. This is accessed via the decodearray keyword of \includegraphics.
However: this fails in some ca...
but if I use decodearray={0.2 0.5} it does not change the transparent colour
@manooooh I think this only works sometimes. If the background is transparent then it should not be that difficult to place a coloured rule behind the graphics without the decodearray.
@yo' I used \AddToShipoutPictureBG{\leavevmode\rlap{{\color{colorexample}\rule{\paperwidth}{\paperheight}}}\includegraphics[width=\paperwidth,height=\paperheight]{example.png}} and it worked like a charm. Thank you so much!!