TransWikia.com

Solution environment with empty space below it

TeX - LaTeX Asked by Aroosh on July 28, 2021

In exam class, I want the solution environment with no line below it like this-
Solution- this is the first line, second line should start from below this after – and third line also should start after – ( below solution there should be empty space)

But I am getting-

Solution-this is first line
This is second line
This is third line

enter image description here

%%%%%%SOLUTION%%%%%%%%%%
usepackage{etoolbox}
AtBeginEnvironment{solution}{setlength{parindent}{200pt}setlength{labelsep}{3cm}}
%%%%%%%%%
newcommandAns[2][]{%
   vspace{0.2cm}parnoindent
   {leftskip-37pt
    textbf{Ans-}{#2}par}}
%%%%%%%%%%%
unframedsolutions%% for solution not in box use package option[answers]exam
renewcommand{solutiontitle}{parnoindentleftskip-48pttextbf{Ans-}hspace{2mm}}
%%%%%%%%%%

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP