Re: Get rid of § in formatted reference to sections
On 07.06.2016 09:23, racoon wrote: On 07.06.2016 02:09, Richard Heck wrote: On 06/05/2016 02:43 PM, Daniel wrote: On 05.06.2016 20:31, Richard Heck wrote: On 06/05/2016 12:05 PM, racoon wrote: On 05.06.2016 16:12, racoon wrote: Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. Okay, I think I got it: \renewcommand\secref[1]{section \ref{sec:#1}} I hope I did not miss any subtleties. Lyx uses, by default, refstyle.sty for formatted references, but can also use prettyref.sty. This is controlled by a checkbox at Document> Settings> Document Class. Thanks Richard. Using prettyref instead gets rid of the § but capitalizes section. So that seems not to work well either. So I still have to use the redefinition of the command I suggested. Yes, I agree this is kind of odd, but it's how it's configured in the default refstyle.cfg file. If you want to change this globally, so to speak, you can define your own refstyle.def file. See http://preview.tinyurl.com/hk2kerv. Thanks. I redefined the command in a local copy of the refstyle.cfg file (I guess you did not mean refstyle.def in your second paragraph). So the passage for sections now reads: %%-- TEMPLATE FOR SECTIONS -- \newref{sec}{% name = \RSsectxt, names = \RSsecstxt, Name = \RSSectxt, Names = \RSSecstxt, refcmd= {\ref{#1}},%{\S\ref{#1}}, rngtxt= \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt= \RSlsttxt} Ah, I guess I understand refstyle a bit better now: http://www.lyx.org/trac/ticket/10201
Re: Get rid of § in formatted reference to sections
On 07.06.2016 02:09, Richard Heck wrote: On 06/05/2016 02:43 PM, Daniel wrote: On 05.06.2016 20:31, Richard Heck wrote: On 06/05/2016 12:05 PM, racoon wrote: On 05.06.2016 16:12, racoon wrote: Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. Okay, I think I got it: \renewcommand\secref[1]{section \ref{sec:#1}} I hope I did not miss any subtleties. Lyx uses, by default, refstyle.sty for formatted references, but can also use prettyref.sty. This is controlled by a checkbox at Document> Settings> Document Class. Thanks Richard. Using prettyref instead gets rid of the § but capitalizes section. So that seems not to work well either. So I still have to use the redefinition of the command I suggested. Yes, I agree this is kind of odd, but it's how it's configured in the default refstyle.cfg file. If you want to change this globally, so to speak, you can define your own refstyle.def file. See http://preview.tinyurl.com/hk2kerv. Thanks. I redefined the command in a local copy of the refstyle.cfg file (I guess you did not mean refstyle.def in your second paragraph). So the passage for sections now reads: %%-- TEMPLATE FOR SECTIONS -- \newref{sec}{% name = \RSsectxt, names = \RSsecstxt, Name = \RSSectxt, Names = \RSSecstxt, refcmd= {\ref{#1}},%{\S\ref{#1}}, rngtxt= \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt= \RSlsttxt} Daniel
Re: Get rid of § in formatted reference to sections
On 06/05/2016 02:43 PM, Daniel wrote: > On 05.06.2016 20:31, Richard Heck wrote: >> On 06/05/2016 12:05 PM, racoon wrote: >>> On 05.06.2016 16:12, racoon wrote: Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. >>> >>> Okay, I think I got it: >>> >>> \renewcommand\secref[1]{section \ref{sec:#1}} >>> >>> I hope I did not miss any subtleties. >> >> Lyx uses, by default, refstyle.sty for formatted references, but can >> also use prettyref.sty. This is controlled by a checkbox at Document> >> Settings> Document Class. > > Thanks Richard. Using prettyref instead gets rid of the § but > capitalizes section. So that seems not to work well either. So I still > have to use the redefinition of the command I suggested. Yes, I agree this is kind of odd, but it's how it's configured in the default refstyle.cfg file. If you want to change this globally, so to speak, you can define your own refstyle.def file. See http://preview.tinyurl.com/hk2kerv. Richard
Re: Get rid of § in formatted reference to sections
On 05.06.2016 20:31, Richard Heck wrote: On 06/05/2016 12:05 PM, racoon wrote: On 05.06.2016 16:12, racoon wrote: Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. Okay, I think I got it: \renewcommand\secref[1]{section \ref{sec:#1}} I hope I did not miss any subtleties. Lyx uses, by default, refstyle.sty for formatted references, but can also use prettyref.sty. This is controlled by a checkbox at Document> Settings> Document Class. Thanks Richard. Using prettyref instead gets rid of the § but capitalizes section. So that seems not to work well either. So I still have to use the redefinition of the command I suggested. Daniel
Re: Get rid of § in formatted reference to sections
On 06/05/2016 12:05 PM, racoon wrote: > On 05.06.2016 16:12, racoon wrote: >> Hi, >> >> LyX prints a § when using formatted references to sections, like >> >> "In section §3, ..." >> >> It seems a bit strange to me that the "§" is added in addition to >> "section". Isn't the "§" an abbreviation for "section"? Also it makes >> referencing to more than one section tricky because by in the plain >> format there is no "§" added, like >> >> "In section §3 and 4, ..." >> >> Wouldn't it be better to have >> >> "In section §3 and §4."? >> >> Anyway, I want to get rid of the added "§" in the formatted reference >> altogether. I have seen that LyX uses the command "\secref" but did not >> find documentation. >> >> Maybe someone can help me out. Thanks. > > Okay, I think I got it: > > \renewcommand\secref[1]{section \ref{sec:#1}} > > I hope I did not miss any subtleties. Lyx uses, by default, refstyle.sty for formatted references, but can also use prettyref.sty. This is controlled by a checkbox at Document> Settings> Document Class. rh
Re: Get rid of § in formatted reference to sections
On 05.06.2016 16:12, racoon wrote: Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. Okay, I think I got it: \renewcommand\secref[1]{section \ref{sec:#1}} I hope I did not miss any subtleties. Daniel
Get rid of § in formatted reference to sections
Hi, LyX prints a § when using formatted references to sections, like "In section §3, ..." It seems a bit strange to me that the "§" is added in addition to "section". Isn't the "§" an abbreviation for "section"? Also it makes referencing to more than one section tricky because by in the plain format there is no "§" added, like "In section §3 and 4, ..." Wouldn't it be better to have "In section §3 and §4."? Anyway, I want to get rid of the added "§" in the formatted reference altogether. I have seen that LyX uses the command "\secref" but did not find documentation. Maybe someone can help me out. Thanks. Daniel