TeX - LaTeX Asked on October 27, 2020
I’d like to rotate a fancy box made with mdframed for a take home message on a poster. This is a MWE where rotatebox fails. Also tried package rotation with same effect. Left the minipage environment I’d like to use in the poster.
documentclass{scrartcl}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{microtype}
usepackage{lmodern}
usepackage{tikz}
usepackage{tcolorbox}
usepackage[framemethod=TikZ]{mdframed
begin{document}
begin{minipage}[t]{0.5textwidth}
Text
end{minipage}
begin{minipage}[t]{0.5textwidth}
rotatebox{20}{
begin{mdframed}
large{Text}
end{mdframed}
}
end{minipage}
end{document}
I don't know why it doesn't work but you can use usepackage{rotating}
and turn
environment instead.
documentclass{scrartcl}
usepackage{microtype}
usepackage{lmodern}
usepackage{tikz}
usepackage{tcolorbox}
usepackage[framemethod=TikZ]{mdframed}
usepackage{rotating}
begin{document}
begin{minipage}[t]{0.5textwidth}
Text
end{minipage}
begin{turn}{56}
begin{minipage}[t]{0.5textwidth}
begin{mdframed}
large{Text}
end{mdframed}%
end{minipage}
end{turn}
end{document}
Correct answer by user108724 on October 27, 2020
I agree with daleif, just use tcolorbox:
documentclass{scrartcl}
usepackage[T1]{fontenc}
usepackage{microtype}
usepackage{lmodern}
usepackage{tcolorbox}
tcbuselibrary{skins}
begin{document}
begin{tcolorbox}[%
enhanced,
width=.5textwidth,
tikz={rotate=15,transform shape}
]%
Some fancy test.
end{tcolorbox}
end{document}
Answered by phil-elkabat on October 27, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP