« first day (3410 days earlier)      last day (1516 days later) » 

9:01 AM
@AlanMunn happy birthday!
> The world's oldest known creature was a 507-year-old clam named Ming. Researchers accidentally killed it while trying to figure out how old it was.
Oopsie
 
 
3 hours later…
12:08 PM
Hi all, shouldn't this: vvvvvv
? 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...
 
12:28 PM
Guys, do know the name of this cross?
 
@PauloCereda "Bill the cross"
@PauloCereda Maltese Cross (I think)
 
@DavidCarlisle ooh
@DavidCarlisle Perfect! Thank you!
 
@PauloCereda no wikipedia disagrees en.wikipedia.org/wiki/Maltese_cross you had better trust it rather than me
 
@PauloCereda in german Tatzenkreuz, english en.wikipedia.org/wiki/Cross_pattée
 
@PauloCereda en.wikipedia.org/wiki/Cross_patt%C3%A9e which is apparently sometimes incorrectly called maltese...
 
12:31 PM
@DavidCarlisle so slow ...
 
@UlrikeFischer you have a national advantage
 
@Rmano you are probably loading the catoptions package somehow. It messes around with the option handler.
 
@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
 
12:58 PM
@DavidCarlisle .... ok --- I am not using it directly, will chase where the guy is loaded @UlrikeFischer
 
1:23 PM
Ok, it's menukeys.sty which is used by the local class... Is there any workaround? @DavidCarlisle @UlrikeFischer
 
@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.
\documentclass[dvipsnames,hyperref,table]{article}
\usepackage{catoptions}
\PassOptionsToPackage{dvipsnames,hyperref,table}{xcolor}
\usepackage[dvipsnames,hyperref,table]{xcolor}
\usepackage{xcolor}

\begin{document}
abc
\end{document}
 
@AlanMunn look on the bright side, now you are old, you can't read the print after the first couple of iterations, so infinite recursion is avoided.
 
1:38 PM
@AlanMunn Happy b-day!
 
@PauloCereda that's what I meant to say above, didn't come out quite the same
 
@DavidCarlisle ooh math
 
@DavidCarlisle :)
@PauloCereda Thanks!
 
1:56 PM
@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.
 
@barbarabeeton sorry, sorry, sorry! I was just looking for a symbol used in missals... :(
 
@PauloCereda it isn't really a nazi symbol, (as long as there is no additional "Hakenkreuz" on it). It is used in various places today in Germany. See e.g. de.wikipedia.org/wiki/Eisernes_Kreuz#Das_Eiserne_Kreuz_ab_1945
 
@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'
Hi all! Please, anyone had any idea which package is supposed to define the macro \sym{} commonly found in output of STATA?
@barbarabeeton The Nazis molested a lot of traditional symbols. While one should be careful, one shouldn't let this kill the symbols forever.
 
2:21 PM
@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}
 
yo'
@UlrikeFischer Thanks, this is interesting and helps a lot!
 
@UlrikeFischer: you got mail. :)
@barbarabeeton: you got mail too. :)
 
yo'
@PauloCereda Should I feel sad now? :( <3
 
@yo' No, of course. :) I will send one for you as well, hold on. :)
 
cis
Question:

Is there a hook `\AtBeginSection{<code>}` for scrartcl (not beamer)?
I found nothing in the etoolbox-manual.
 
2:32 PM
@yo' you got mail. :)
 
yo'
@PauloCereda :)
 
cis
2:48 PM
I used
\let\oldsection\section%
\renewcommand{\section}{%
\setcounter{exercise}{0}
\oldsection%
}
 
@UlrikeFischer @DavidCarlisle ok, I see. Thanks --- I'll try to remove catoptions from the local package, let's see if I can convince them.
 
yo'
3:42 PM
@cis there are automated ways how to do this. E.g. \counterwithin{exercise}{section}
> Chuck Norris caught Coronavirus. Later he showed mercy, so he let it go again.
 
 
1 hour later…
5:11 PM
@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 @ :-)
 
 
1 hour later…
cis
6:19 PM
@DavidCarlisle I learned xsim has it's own function for that:
2
Q: xsim: What is the correct way to count exercises per section?

cisWhat 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...

 
@UlrikeFischer @DavidCarlisle thanks:
\makeatletter
\@ifpackageloaded{catoptions}{%
    \expandafter\let\csname opt@xcolor.sty\endcsname\relax}{}
\makeatother
...works. It results that menukeys is heavily based on catoptions, so I didn't manage to remove it... ;-)
 
6:59 PM
@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:-)
 
 
1 hour later…
7:59 PM
@AlanMunn based on interactions with other beings, I conclude that I should congratulate you! Happy Birthday!
 
@AlanMunn Yes --- let me add my Happy Birthday too!
 
@DavidCarlisle it's not exactly the same though, \counterwithin does also redefine \the.., iirc.
 
@barbarabeeton @Rmano @Skillmonlikestopanswers.xyz Thanks!
 
9:00 PM
@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:
\documentclass{article}
\usepackage[light]{roboto}
\usepackage{siunitx}
\begin{document}
\makeatletter
\sffamily abc \fontseries{m}\selectfont abc
\if@forced@series forced \else not forced \fi
\sffamily abc

\sffamily abc \fontseriesforce{m}\selectfont abc
\if@forced@series forced \else not forced \fi
\sffamily abc

\sffamily abc \fontseriesforce{m}\selectfont abc \SI[parse-numbers=false,detect-all]{
\if@forced@series forced \else not forced\fi
1}{\km} abc
\end{document}
@JosephWright I'm not sure if the new version already consider this ...
 
9:19 PM
@Skillmonlikestopanswers.xyz details:-)
 
9:47 PM
@DavidCarlisle let's do it. We know who gets the blame if it is wrong ;-)
 
@UlrikeFischer zref you mean?
 
@DavidCarlisle yes.
 
@UlrikeFischer OK I'll commit something in a bit
 
 
2 hours later…
11:39 PM
Hello all!
I am trying to colorize (only the white parts) a png image using includegraphics (you can propose an alternative) with pdfLaTeX. This is the image:
And this is the code: \AddToShipoutPictureBG{\includegraphics[width=\paperwidth,height=\paperheight]{example.png}}
How can we fill with a certain color (let's say, mycolor) the transparent part of the image? If possible the color must be in RGB or HEX
I have found this answer:
42
A: Can \includegraphics be used to change an image color?

Bruno Le Floch(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
 
yo'
@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' hello and thanks!! How would it be implemented?
 
yo'
@manooooh well, something like
\leavevmode\rlap{{\color{yellow}\rule{10cm}{20cm}}}\includegraphics{example}
(untested) you can make it measure the image by placing it in a box, but that's an overkill if you plan to use it on a single piece of graphics.
 
@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!!
 
yo'
@manooooh oh well, there are ways how to make a coloured PDF page I think, so this might be an overkill, but if it works... :-)
 
11:52 PM
@yo' what do you mean "overkill"? Does this consume a lot of processing?
I am planning to put the image as the background of ~100 pages on my document...
 
yo'
@manooooh no, but it's not a "beautiful" solution
 
If "it is not beatitful" means "you won't get any warning, nor consume a lot of processing" then I accept your proposal :)
 
yo'
@manooooh yeah, probably
maybe change "beautiful" to "elegant" :-)
 

« first day (3410 days earlier)      last day (1516 days later) »