Self-employed

I know there is a way to split Capital gains and losses with a spouse by copying.  I just can remember how to do it.