Jinwen-XU / colorist

Write your articles or books in a colorful way
https://ctan.org/pkg/colorist
LaTeX Project Public License v1.3c
24 stars 2 forks source link

How do I create a custom theorem matching the existing theme? #8

Open jj-marr opened 2 months ago

jj-marr commented 2 months ago

I want to create an environment called "goal" and have it be formatted the same way as a theorem. I'm unsure of how to do this in an efficient way.

Jinwen-XU commented 2 months ago

There is currently, unfortunately, no user-interface commands for directly achieving this, but it would not be very hard to simply replicate the internal code. I shall see if I could come up with some better method this weekend or next week.

Meanwhile, if you just want something with the same style as theorem, perhaps you could try theorem-with-name. With \begin{theorem-with-name*}{Goal} or \begin{theorem-with-name}{Goal}, you should be able to get the desired visual effect, though you probably wouldn't be able to reference it.