Hi,

I using lyx1.6.5 with miktex 2.7. I have redefine the figure environment so that all the figure are automatically centred on the page using the following code

\renewenvironment{figure}[1][\...@figure]{%

\ed...@tempa{\noexpand\@float{figure}[#1]} %

\...@tempa\centering%

}{%

\...@float

}


while this works fine but I am having problem with hycap now because of the redefinition. I can't use hypcap after these statements it gives error


TeX capacity exceeded, sorry [input stack size=5000].

and when hypcap is used before the environment definition than it doesn't work. The figure links just show the figure caption not the figure as it suppose to do.

any idea how this could be solved. Thanks for the help.


Regards,
Kamran

Reply via email to