Re: LYX 2.4.2.1 — Problem with \label and \ref mechanism

didiergabory at free.fr didiergabory at free.fr
Sun Oct 20 14:30:59 UTC 2024


I forgot to provide a sty file … 
----- Mail original -----

| I'd like to give you this example of a module that I'm having trouble
| finalizing... Because I have to admit, I'm having a really hard time
| understanding the documentation...

| I've created a new environment in which I'm placing python code using
| the listings package...

| I'd like to use the cross-reference mechanism... I've created a new
| counter, used the \refstepcounter command, placed the \label and
| \ref commands in the document... It works on the pdf output... But
| the indication (see attached screenshot) in the LYX window is
| incorrect - the designated counter refers to the section counter...
| And not to the ‘code’ counter I created... What's wrong with the way
| I'm doing things?

| I have a second request: Is it possible to display the counter number
| in the label above the frame of each occurrence in the LyX document
| ? In other words, ‘Python Code i’ rather than the simple ‘Python
| Code’ label.

| In the body module:
| InsetLayout Flex:Python
| LabelString ‘Python Code \thecode’ Doesn't work...

| Thanks to anyone willing to give me some of their time.

| All the best.

| LXY 2.4.2.1 on windows10-64

| --
| lyx-users mailing list
| lyx-users at lists.lyx.org
| https://lists.lyx.org/mailman/listinfo/lyx-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20241020/c3934baa/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bclogo.sty
Type: text/x-tex
Size: 25138 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20241020/c3934baa/attachment-0001.bin>


More information about the lyx-users mailing list