Aditya Mahajan wrote:
I encountered a very strange problem. The very presence of \definetextbackground changed the meaning of \midaligned (and \rightaligned). Attached are the minimal example that illustrate the problem. The first file, nobackground.tex has no background and works as expected. The second file background.tex has a textbackground and \midaligned is no longer middle aligned.
Any insight into this strange behaviour? \def\doalignline#1#2% \\ == newline {\begingroup \setlocalhsize % new \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}% \dowithnextbox {\noindentation % change this line in core-spa.tex \hbox to \localhsize {\ifcase\alignstrutmode\or\strut\fi #1\unhbox\nextbox#2}\endgroup} \hbox}
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------