TeX - LaTeX Asked by helios321 on February 24, 2021
Using
documentclass{article}
usepackage{ocgx}
begin{document}
noindent My theorem.
begin{ocg}{OCG 1}{ocg1}{0}
My proof.
end{ocg}
switchocg{ocg1}{fbox{Toggle proof}}
end{document}
we can create a button which toggles on and off text. I want to automate this within a theorem environment. Right now I’m using ntheorem
with code like:
theoremstyle{changebreak}
theoremseparator{.}
theorembodyfont{normalfont}
theoremheaderfont{bfseries}
newframedtheorem{thm}[sscount]{Theorem}
and ideally I want to keep with ntheorem
.
Can anyone give some code that automatically creates a button which toggles the text of the environment begin{thm} TOGGABLE TEXT end{thm}
?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP