Re: A small patch for List of Algorithms
Le 25 juin 07 à 18:50, Mael Hilléreau a écrit : Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : Mael I don't think so, to be translatable, the code should be Mael something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} Just one last word on this ;) I think it would be more convenient to keep the LaTeX convention with a '\listXXXname' command (with XXX being the float name) instead of using directly a translated name. That's because one could want to customize strings going to the output. As this is already possible for \tableofcontents, \listoftables and \listoffigures (see below), one would appreciate to find the same logic for algorithms as well as for custom floats. \renewcommand{\contentsname}{Contents of this document} \renewcommand{\listfigurename}{Figures} \renewcommand{\listtablename}{Tables} ... Locale strings for such commands (List of Algorithms for '\listalgorithmname', etc.) could then be defined in the preamble, in the same place as new floats definitions, and LyX could thus translate as currently (but not in the same place), allowing customization. It would need very few programming as some code is already generated where needed. What do you think of this? I attached a patch for that. It adds some definitions for '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for every non builtin float), and generates a '\listofXXXs' in place of the '\listof{XXX}{List name}'. I'm waiting for your comments. Mael. listofXXX.patch Description: Binary data
Re: A small patch for List of Algorithms
Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael I attached a patch for that. It adds some definitions for Mael '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for Mael every non builtin float), and generates a '\listofXXXs' in place Mael of the '\listof{XXX}{}'. Doing what you propose is indeed possible and I have no idea on whether it is a good or dangerous idea. It would be more urgent to fix the real problem you are experiencing. I played a bit with the code yesterday, but I admit I did not go far. Does any OS X user know why the localized text does not work correctly currently? JMarc
Re: A small patch for List of Algorithms
Le 26 juin 07 à 14:51, Jean-Marc Lasgouttes a écrit : Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael I attached a patch for that. It adds some definitions for Mael '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for Mael every non builtin float), and generates a '\listofXXXs' in place Mael of the '\listof{XXX}{}'. Doing what you propose is indeed possible and I have no idea on whether it is a good or dangerous idea. If it is dangerous, then could anyone tell why? I have no idea. Note that customizing list names is already possible for other lists (then why could it be dangerous for algorithms or other floats...). In addition, this is transparent for users who don't need it. It would be more urgent to fix the real problem you are experiencing. I played a bit with the code yesterday, but I admit I did not go far. Surely true, but I'm not able to help in this field yet. Mael.
Re: A small patch for "List of Algorithms"
Le 25 juin 07 à 18:50, Mael Hilléreau a écrit : Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : Mael> I don't think so, to be translatable, the code should be Mael> something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} Just one last word on this ;) I think it would be more convenient to keep the LaTeX convention with a '\listXXXname' command (with XXX being the float name) instead of using directly a translated name. That's because one could want to customize strings going to the output. As this is already possible for \tableofcontents, \listoftables and \listoffigures (see below), one would appreciate to find the same logic for algorithms as well as for custom floats. \renewcommand{\contentsname}{Contents of this document} \renewcommand{\listfigurename}{Figures} \renewcommand{\listtablename}{Tables} ... Locale strings for such commands ("List of Algorithms" for '\listalgorithmname', etc.) could then be defined in the preamble, in the same place as new floats definitions, and LyX could thus translate as currently (but not in the same place), allowing customization. It would need very few programming as some code is already generated where needed. What do you think of this? I attached a patch for that. It adds some definitions for '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for every non builtin float), and generates a '\listofXXXs' in place of the '\listof{XXX}{}'. I'm waiting for your comments. Mael. listofXXX.patch Description: Binary data
Re: A small patch for "List of Algorithms"
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> I attached a patch for that. It adds some definitions for Mael> '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for Mael> every non builtin float), and generates a '\listofXXXs' in place Mael> of the '\listof{XXX}{}'. Doing what you propose is indeed possible and I have no idea on whether it is a good or dangerous idea. It would be more urgent to fix the real problem you are experiencing. I played a bit with the code yesterday, but I admit I did not go far. Does any OS X user know why the localized text does not work correctly currently? JMarc
Re: A small patch for "List of Algorithms"
Le 26 juin 07 à 14:51, Jean-Marc Lasgouttes a écrit : "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> I attached a patch for that. It adds some definitions for Mael> '\listXXXname' and '\listofXXXs' in the preamble (with 'XXX' for Mael> every non builtin float), and generates a '\listofXXXs' in place Mael> of the '\listof{XXX}{}'. Doing what you propose is indeed possible and I have no idea on whether it is a good or dangerous idea. If it is dangerous, then could anyone tell why? I have no idea. Note that customizing list names is already possible for other lists (then why could it be dangerous for algorithms or other floats...). In addition, this is transparent for users who don't need it. It would be more urgent to fix the real problem you are experiencing. I played a bit with the code yesterday, but I admit I did not go far. Surely true, but I'm not able to help in this field yet. Mael.
Re: A small patch for List of Algorithms
Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : Mael I don't think so, to be translatable, the code should be Mael something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} Just one last word on this ;) I think it would be more convenient to keep the LaTeX convention with a '\listXXXname' command (with XXX being the float name) instead of using directly a translated name. That's because one could want to customize strings going to the output. As this is already possible for \tableofcontents, \listoftables and \listoffigures (see below), one would appreciate to find the same logic for algorithms as well as for custom floats. \renewcommand{\contentsname}{Contents of this document} \renewcommand{\listfigurename}{Figures} \renewcommand{\listtablename}{Tables} ... Locale strings for such commands (List of Algorithms for '\listalgorithmname', etc.) could then be defined in the preamble, in the same place as new floats definitions, and LyX could thus translate as currently (but not in the same place), allowing customization. It would need very few programming as some code is already generated where needed. What do you think of this? Mael.
Re: A small patch for "List of Algorithms"
Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : > Mael> I don't think so, to be translatable, the code should be > Mael> something like '\listof {algorithm}{\listalgorithmname}'. > > I just double checked that here it outputs > \listof{algorithm}{Liste des Algorithmes} Just one last word on this ;) I think it would be more convenient to keep the LaTeX convention with a '\listXXXname' command (with XXX being the float name) instead of using directly a translated name. That's because one could want to customize strings going to the output. As this is already possible for \tableofcontents, \listoftables and \listoffigures (see below), one would appreciate to find the same logic for algorithms as well as for custom floats. \renewcommand{\contentsname}{Contents of this document} \renewcommand{\listfigurename}{Figures} \renewcommand{\listtablename}{Tables} ... Locale strings for such commands ("List of Algorithms" for '\listalgorithmname', etc.) could then be defined in the preamble, in the same place as new floats definitions, and LyX could thus translate as currently (but not in the same place), allowing customization. It would need very few programming as some code is already generated where needed. What do you think of this? Mael.
Re: A small patch for List of Algorithms
Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : Mael I don't think so, to be translatable, the code should be Mael something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} That's because you're using a french UI. LyX is doing the translation internally using the same mechanism that provides translated strings in documents on screen. For example, for a chapter, I get here Chapitre 1 in a french book. Do you get the same? Do you mean that to produce a french output, one should have to compose through a french UI?? IMHO, this isn't very logic... I think that, even if LyX could translate the UI labels (Part, Chapter, ... but maybe not menus?) into the target language (which isn't done by now), it shouldn't have to translate the output since this should be done by LaTeX just as for chapters and other TOCs/ lists, etc. I currently use the english interface. I create a book document and setup the french language (DocumentSettingsLanguageFrench). Then, if I add a chapter and a list of algorithms, both are displayed in english in the UI, but only the List of algorithms is kept english into the output (everything else is translated by babel). I tested this on 1.4.4 and 1.5.0rc1 using the english UI. I also tested 1.4.4 with the french UI, but then the List of algorithms is always french into the output (even when writing an english document!). Isn't this a bug? Mael.
Re: A small patch for List of Algorithms
Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : I don't Mael think so, to be translatable, the code should be something like Mael '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} Mael That's because you're using a french UI. No, because my document is in french. Mael Do you mean that to produce a french output, one should have to Mael compose through a french UI?? No. But I think the problem is that translation in document's language does not work on mac OS X. Mael I think that, even if LyX could translate the UI labels (Part, Mael Chapter, ... but maybe not menus?) into the target language Mael (which isn't done by now), it shouldn't have to translate the Mael output since this should be done by LaTeX just as for chapters Mael and other TOCs/ lists, etc. Well, we'll rely on that the day when babel supports it... Unfortunately the support is very limited right now. Mael I currently use the english interface. I create a book document Mael and setup the french language Mael (DocumentSettingsLanguageFrench). Then, if I add a chapter Mael and a list of algorithms, both are displayed in english in the Mael UI, but only the List of algorithms is kept english into the Mael output (everything else is translated by babel). Mael I tested this on 1.4.4 and 1.5.0rc1 using the english UI. I also Mael tested 1.4.4 with the french UI, but then the List of Mael algorithms is always french into the output (even when writing Mael an english document!). Mael Isn't this a bug? Yes, I think we have a problem to get locales working correctly on the mac. This is something I am trying to work on now. JMarc
Re: A small patch for List of Algorithms
Le 24 juin 07 à 13:09, Jean-Marc Lasgouttes a écrit : Mael That's because you're using a french UI. No, because my document is in french. Ok. But I think the problem is that translation in document's language does not work on mac OS X. Maybe... Mael I think that, even if LyX could translate the UI labels (Part, Mael Chapter, ... but maybe not menus?) into the target language Mael (which isn't done by now), it shouldn't have to translate the Mael output since this should be done by LaTeX just as for chapters Mael and other TOCs/ lists, etc. Well, we'll rely on that the day when babel supports it... Unfortunately the support is very limited right now. I agree that at the end, this should be done by babel. Mael Isn't this a bug? Yes, I think we have a problem to get locales working correctly on the mac. This is something I am trying to work on now. Then I'm not able to figure out why it is only a Mac related issue... I let the specialist at home ;) Mael.
Re: A small patch for List of Algorithms
Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael Then I'm not able to figure out why it is only a Mac related Mael issue... I let the specialist at home ;) There is some specific voodoo we are supposed to do to make this work. JMarc
Re: A small patch for "List of Algorithms"
Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : Mael> I don't think so, to be translatable, the code should be Mael> something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} That's because you're using a french UI. LyX is doing the translation internally using the same mechanism that provides translated strings in documents on screen. For example, for a chapter, I get here "Chapitre 1" in a french book. Do you get the same? Do you mean that to produce a french output, one should have to compose through a french UI?? IMHO, this isn't very logic... I think that, even if LyX could translate the UI labels ("Part", "Chapter", ... but maybe not menus?) into the target language (which isn't done by now), it shouldn't have to translate the output since this should be done by LaTeX just as for chapters and other TOCs/ lists, etc. I currently use the english interface. I create a book document and setup the french language (Document>Settings>Language>French). Then, if I add a chapter and a list of algorithms, both are displayed in english in the UI, but only the "List of algorithms" is kept english into the output (everything else is translated by babel). I tested this on 1.4.4 and 1.5.0rc1 using the english UI. I also tested 1.4.4 with the french UI, but then the "List of algorithms" is always french into the output (even when writing an english document!). Isn't this a bug? Mael.
Re: A small patch for "List of Algorithms"
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> Le 23 juin 07 à 22:44, Jean-Marc Lasgouttes a écrit : I don't Mael> think so, to be translatable, the code should be something like Mael> '\listof {algorithm}{\listalgorithmname}'. >> I just double checked that here it outputs >> \listof{algorithm}{Liste des Algorithmes} Mael> That's because you're using a french UI. No, because my document is in french. Mael> Do you mean that to produce a french output, one should have to Mael> compose through a french UI?? No. But I think the problem is that translation in document's language does not work on mac OS X. Mael> I think that, even if LyX could translate the UI labels ("Part", Mael> "Chapter", ... but maybe not menus?) into the target language Mael> (which isn't done by now), it shouldn't have to translate the Mael> output since this should be done by LaTeX just as for chapters Mael> and other TOCs/ lists, etc. Well, we'll rely on that the day when babel supports it... Unfortunately the support is very limited right now. Mael> I currently use the english interface. I create a book document Mael> and setup the french language Mael> (Document>Settings>Language>French). Then, if I add a chapter Mael> and a list of algorithms, both are displayed in english in the Mael> UI, but only the "List of algorithms" is kept english into the Mael> output (everything else is translated by babel). Mael> I tested this on 1.4.4 and 1.5.0rc1 using the english UI. I also Mael> tested 1.4.4 with the french UI, but then the "List of Mael> algorithms" is always french into the output (even when writing Mael> an english document!). Mael> Isn't this a bug? Yes, I think we have a problem to get locales working correctly on the mac. This is something I am trying to work on now. JMarc
Re: A small patch for "List of Algorithms"
Le 24 juin 07 à 13:09, Jean-Marc Lasgouttes a écrit : Mael> That's because you're using a french UI. No, because my document is in french. Ok. But I think the problem is that translation in document's language does not work on mac OS X. Maybe... Mael> I think that, even if LyX could translate the UI labels ("Part", Mael> "Chapter", ... but maybe not menus?) into the target language Mael> (which isn't done by now), it shouldn't have to translate the Mael> output since this should be done by LaTeX just as for chapters Mael> and other TOCs/ lists, etc. Well, we'll rely on that the day when babel supports it... Unfortunately the support is very limited right now. I agree that at the end, this should be done by babel. Mael> Isn't this a bug? Yes, I think we have a problem to get locales working correctly on the mac. This is something I am trying to work on now. Then I'm not able to figure out why it is only a Mac related issue... I let the specialist at home ;) Mael.
Re: A small patch for "List of Algorithms"
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> Then I'm not able to figure out why it is only a Mac related Mael> issue... I let the specialist at home ;) There is some specific voodoo we are supposed to do to make this work. JMarc
Re: A small patch for List of Algorithms
On Saturday 23 June 2007 13:01:41 Mael Hilléreau wrote: The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... No feedback on this? We are on a weekend with celebrations going around so please be patient. :-) Mael. -- José Abílio
Re: A small patch for List of Algorithms
Le 22 juin 07 à 19:21, Mael Hilléreau a écrit : The List of algorithms label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert List / TOC List of Algorithms) 4. View the source (View View Source) The code corresponding to the List of Algorithms inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. Of course, one can still use an ERT in place of the list of inset, but LyX is not intended to be used this way... Besides, builtin lists (figures and tables) are for their part automatically translated by babel. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... No feedback on this? Mael.
Re: A small patch for List of Algorithms
Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael The List of algorithms label cannot be customized (translated) Mael into the output. Mael 1. Create a new document 2. Choose a non english language 3. Mael Insert a list of algorithms (Insert List / TOC List of Mael Algorithms) 4. View the source (View View Source) Mael The code corresponding to the List of Algorithms inset is Mael '\listof {algorithm}{List of Algorithms}', which AFAIK is not Mael customizable. As far as I know, it is supposed to output the list in the correct language. Did you install LyX before trying? JMarc
Re: A small patch for List of Algorithms
On Saturday 23 June 2007 13:29:38 Alfredo Braunstein wrote: What do we celebrate? %^} Winter/Summer Solstice. :-) A/ -- José Abílio
Re: A small patch for List of Algorithms
José Matos wrote: On Saturday 23 June 2007 13:01:41 Mael Hilléreau wrote: The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... No feedback on this? We are on a weekend with celebrations going around so please be patient. :-) What do we celebrate? %^} A/
Re: A small patch for List of Algorithms
Le 23 juin 07 à 17:28, Jean-Marc Lasgouttes a écrit : As far as I know, it is supposed to output the list in the correct language. I don't think so, to be translatable, the code should be something like '\listof {algorithm}{\listalgorithmname}'. Did you install LyX before trying? I get this with an original 1.5.0rc1. Same result with 1.4.4. List of figures and List of tables are for their part translated by babel. Do you get a translation for the list of algorithms? Mael.
Re: A small patch for List of Algorithms
Mael == Mael Hilléreau [EMAIL PROTECTED] writes: Mael Le 23 juin 07 à 17:28, Jean-Marc Lasgouttes a écrit : As far as I know, it is supposed to output the list in the correct language. Mael I don't think so, to be translatable, the code should be Mael something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} Did you install LyX before trying? Mael I get this with an original 1.5.0rc1. Same result with 1.4.4. Mael List of figures and List of tables are for their part Mael translated by babel. Do you get a translation for the list of Mael algorithms? LyX is doing the translation internally using the same mechanism that provides translated strings in documents on screen. For example, for a chapter, I get here Chapitre 1 in a french book. Do you get the same? JMarc
Re: A small patch for "List of Algorithms"
On Saturday 23 June 2007 13:01:41 Mael Hilléreau wrote: > > The attached patch solves the problem. Please tell me if it's > > sufficient as I'm note sure if things are done in the right way... > > No feedback on this? We are on a weekend with celebrations going around so please be patient. :-) > Mael. -- José Abílio
Re: A small patch for "List of Algorithms"
Le 22 juin 07 à 19:21, Mael Hilléreau a écrit : The "List of algorithms" label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert > List / TOC > List of Algorithms) 4. View the source (View > View Source) The code corresponding to the "List of Algorithms" inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. Of course, one can still use an ERT in place of the "list of" inset, but LyX is not intended to be used this way... Besides, builtin lists (figures and tables) are for their part automatically translated by babel. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... No feedback on this? Mael.
Re: A small patch for "List of Algorithms"
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> The "List of algorithms" label cannot be customized (translated) Mael> into the output. Mael> 1. Create a new document 2. Choose a non english language 3. Mael> Insert a list of algorithms (Insert > List / TOC > List of Mael> Algorithms) 4. View the source (View > View Source) Mael> The code corresponding to the "List of Algorithms" inset is Mael> '\listof {algorithm}{List of Algorithms}', which AFAIK is not Mael> customizable. As far as I know, it is supposed to output the list in the correct language. Did you install LyX before trying? JMarc
Re: A small patch for "List of Algorithms"
On Saturday 23 June 2007 13:29:38 Alfredo Braunstein wrote: > What do we celebrate? %^} Winter/Summer Solstice. :-) > A/ -- José Abílio
Re: A small patch for "List of Algorithms"
José Matos wrote: > On Saturday 23 June 2007 13:01:41 Mael Hilléreau wrote: >> > The attached patch solves the problem. Please tell me if it's >> > sufficient as I'm note sure if things are done in the right way... >> >> No feedback on this? > > We are on a weekend with celebrations going around so please be patient. > :-) What do we celebrate? %^} A/
Re: A small patch for "List of Algorithms"
Le 23 juin 07 à 17:28, Jean-Marc Lasgouttes a écrit : As far as I know, it is supposed to output the list in the correct language. I don't think so, to be translatable, the code should be something like '\listof {algorithm}{\listalgorithmname}'. Did you install LyX before trying? I get this with an original 1.5.0rc1. Same result with 1.4.4. "List of figures" and "List of tables" are for their part translated by babel. Do you get a translation for the list of algorithms? Mael.
Re: A small patch for "List of Algorithms"
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes: Mael> Le 23 juin 07 à 17:28, Jean-Marc Lasgouttes a écrit : >> As far as I know, it is supposed to output the list in the correct >> language. Mael> I don't think so, to be translatable, the code should be Mael> something like '\listof {algorithm}{\listalgorithmname}'. I just double checked that here it outputs \listof{algorithm}{Liste des Algorithmes} >> Did you install LyX before trying? Mael> I get this with an original 1.5.0rc1. Same result with 1.4.4. Mael> "List of figures" and "List of tables" are for their part Mael> translated by babel. Do you get a translation for the list of Mael> algorithms? LyX is doing the translation internally using the same mechanism that provides translated strings in documents on screen. For example, for a chapter, I get here "Chapitre 1" in a french book. Do you get the same? JMarc
A small patch for List of Algorithms
The List of algorithms label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert List / TOC List of Algorithms) 4. View the source (View View Source) The code corresponding to the List of Algorithms inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding \providecommand {\listofalgorithms}{\listof{algorithm}{List of Algorithms}} in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
A small patch for List of Algorithms
The List of algorithms label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert List / TOC List of Algorithms) 4. View the source (View View Source) The code corresponding to the List of Algorithms inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding \providecommand {\listofalgorithms}{\listof{algorithm}{List of Algorithms}} in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
A small patch for List of Algorithms
The List of algorithms label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert List / TOC List of Algorithms) 4. View the source (View View Source) The code corresponding to the List of Algorithms inset is '\listof{algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding \providecommand{\listofalgorithms}{\listof{algorithm}{List of Algorithms}} in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
Re: A small patch for List of Algorithms
I apologize, I sent this mail twice. I had some problems with my SMTP server... Le 22 juin 07 à 20:48, Mael Hilléreau a écrit : The List of algorithms label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert List / TOC List of Algorithms) 4. View the source (View View Source) The code corresponding to the List of Algorithms inset is '\listof{algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding \providecommand{\listofalgorithms}{\listof{algorithm}{List of Algorithms}} in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael.listofalgorithms.patch
Re: A small patch for List of Algorithms
Mael Hilléreau wrote: I apologize, I sent this mail twice. I had some problems with my SMTP server... No need to apologize. The list is terribly slow today, some messages had a delay of more than an hour. A/
Re: A small patch for List of Algorithms
Le 22 juin 07 à 22:44, Alfredo Braunstein a écrit : Mael Hilléreau wrote: I apologize, I sent this mail twice. I had some problems with my SMTP server... No need to apologize. The list is terribly slow today, some messages had a delay of more than an hour. Ok, happy to know that it's not my fault ;) I thought that my mails were blocked again into my local network (I had SMTP problems since monday...). Mael.
A small patch for "List of Algorithms"
The "List of algorithms" label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert > List / TOC > List of Algorithms) 4. View the source (View > View Source) The code corresponding to the "List of Algorithms" inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding "\providecommand {\listofalgorithms}{\listof{algorithm}{List of Algorithms}}" in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
A small patch for "List of Algorithms"
The "List of algorithms" label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert > List / TOC > List of Algorithms) 4. View the source (View > View Source) The code corresponding to the "List of Algorithms" inset is '\listof {algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding "\providecommand {\listofalgorithms}{\listof{algorithm}{List of Algorithms}}" in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
A small patch for "List of Algorithms"
The "List of algorithms" label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert > List / TOC > List of Algorithms) 4. View the source (View > View Source) The code corresponding to the "List of Algorithms" inset is '\listof{algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding "\providecommand{\listofalgorithms}{\listof{algorithm}{List of Algorithms}}" in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael. listofalgorithms.patch Description: Binary data
Re: A small patch for "List of Algorithms"
I apologize, I sent this mail twice. I had some problems with my SMTP server... Le 22 juin 07 à 20:48, Mael Hilléreau a écrit : The "List of algorithms" label cannot be customized (translated) into the output. 1. Create a new document 2. Choose a non english language 3. Insert a list of algorithms (Insert > List / TOC > List of Algorithms) 4. View the source (View > View Source) The code corresponding to the "List of Algorithms" inset is '\listof{algorithm}{List of Algorithms}', which AFAIK is not customizable. It would then be more convenient to use the command '\listofalgorithms' instead so that one could customize it... Since this command isn't defined by default, adding "\providecommand{\listofalgorithms}{\listof{algorithm}{List of Algorithms}}" in the preamble does the job. This definition may now be overridden by the user, by loading 'algorithm.sty'/'algorithmic.sty', or just with a '\renewcommand' in the preamble. The attached patch solves the problem. Please tell me if it's sufficient as I'm note sure if things are done in the right way... Mael.
Re: A small patch for "List of Algorithms"
Mael Hilléreau wrote: > I apologize, I sent this mail twice. I had some problems with my SMTP > server... No need to apologize. The list is terribly slow today, some messages had a delay of more than an hour. A/
Re: A small patch for "List of Algorithms"
Le 22 juin 07 à 22:44, Alfredo Braunstein a écrit : Mael Hilléreau wrote: I apologize, I sent this mail twice. I had some problems with my SMTP server... No need to apologize. The list is terribly slow today, some messages had a delay of more than an hour. Ok, happy to know that it's not my fault ;) I thought that my mails were blocked again into my local network (I had SMTP problems since monday...). Mael.