作者chehsunliu (阿勳)
看板LaTeX
标题[问题] llap 文字对齐
时间Sat May 7 21:51:02 2016
我想做出一个客制化的theorem环境如下:
Theorem 1.2 Lorem ipsum dolor sit amet, consectetur adip asdas jasdjk asdj
----------- ad asd asdjasd ahsd hasjdh 1uheu h uqehru fhwefuoh wouehfo hqf
fwefwefihwuief wuiefh iuwhef wheuf hweufh uiwhefui hweu if hwu
wuiefhuweh fuiwhefui hwuefh wef
使用的方式是
\noindent\llap{%
\vtop{%
\hbox to 75pt{Theorem 1.2\hfil}%
\hbox{---------}%
}%
}
\lipsum[1]
其中虚线是用rule去实做
但是会得到这个结果:
Theorem 1.2 Lorem ipsum dolor sit amet, consectetur adip asdas jasdjk asdj
-----------
ad asd asdjasd ahsd hasjdh 1uheu h uqehru fhwefuoh wouehfo hqf
fwefwefihwuief wuiefh iuwhef wheuf hweufh uiwhefui hweu if hwu
wuiefhuweh fuiwhefui hwuefh wef
一个解决办法是改成
\vtop to 0pt
但这样无法避免地会出现Overfull \vbox
请问有任何以这个大架构下的解决办法吗?
(用ntheorem定义\newtheoremstyle,也是一样的问题)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 122.116.92.72
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LaTeX/M.1462629066.A.E10.html
※ 编辑: chehsunliu (122.116.92.72), 05/07/2016 21:53:04
2F:→ andrew43: 这种情况常用二个minipage或parbox分别做左右二边内容 05/08 19:10
3F:→ chehsunliu: 我用parbox,感谢!! 05/09 00:12