0

I have a lyx document with two figures side-by-side. right now everytime I reference to them I get them numbered like this 2a and 2b. I want to make lyx to number them like this: 2(a) and 2(b). I want to add the parentheses. Is there any way? maybe add something to the preamble? Thank you

migrated from stackoverflow.com Jul 5 '13 at 20:33

This question came from our site for professional and enthusiast programmers.

  • Can you show us what you have tried? – Michael Freake Jul 3 '13 at 23:01
  • yes. I did exactly what this link suggests. I tried to look for a module to fix it but haven't found one. – Tal Jul 3 '13 at 23:38
1

Please take a look at Adding parentheses around subfig references.

In LyX, it seems you will have to put \usepackage[subrefformat=parens,labelformat=parens]{subfig} in your preamble, and then you might need to use an ERT such as Figure~\subref*{sf1} in your document body for the reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy