'#' in index entries - possible?
I'm writing a document which references bug reports in Debian. The official format of a Debian bug report number is '#99'. In order to make these numbers even more clearly Debian bug report numbers, in my document, I'm prefixing them whe 'BTS', so now they look like 'BTS#99'. I would prefer to stick to this format instead of losing the '#' or the 'BTS' When compiling to DVI, I get the following LaTeX error: you can't use `macro parameter character #' in horizontal mode \item BTS# 287585, 28 Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. So I tried a couple of things. First Google led me to this: At http://theoval.sys.uea.ac.uk/~nlct/latex/novices/cantusehash.html I found some *TeX*-level advice to do backslash-prefixing. I could see this wasn't really going to work at LyX level, but I tried it. The result was that the index is generates, the index entry is correct, but the actual text in the body of the document has a backslash in front of it. I.e. ... see BTS\#287585 ... Index BTS#287585, 28 (Actually it's on page 27, but ... one thing at a time.) Second, the LyX wiki at http://wiki.lyx.org/Tips/Indexing suggested an ERT-based way to make indexes yourself, rather than letting LyX do it. But this did not go well: I inserted the following in the preamble: \newcommand{\index2page}{ \renewcommand{\indexname}{My second index} \printindex[index2] } \newcommand{\index2}[1]{\index[index2]{#1}} but immediately the syntax highlighting indicated that 'index2...' was being treated as 'index' + '2' and compiling produced: LaTex Error: Command \index already defined. Fine. So I changed all occurences of 'index2' to 'indexa' in the preamble, in my ERT for the index entry and the ERT for the index itself. This was better, but still, I got: Undefined control sequence. with the ERT for the index itself '\indexapage' highlighted. But the entry defining this is in the preamble. (By putting a 'date /tmp/log' inside the script that the wiki says to create to generate the index, I determined that that script was never called before the above error occurred. Not sure if that's relevent.) Can anybody offer any advice please? Thanks! Alexis
Re: '#' in index entries - possible?
Perhaps you are selecting the text and relying on LyX to copy the text into the index entry? You can just click the index entry and enter whatever text you want. Indeed, that was what I was doing. I did what you suggested and it worked fine! (Actually it's on page 27, but ... one thing at a time.) Sounds like LyX isn't rerunning LaTeX enough. Try creating the dvi or pdf or whatever again. Actually, it was even stupider than that ... the index entry's page number *did* match the page number that the entry was on. The problem was just that because there is a title page, the DVI viewer thinks *that* is page 1, and the page with the number 1 on it, the DVI viewer considers to be page 2. Many thanks for the quick and helpful assistance! The stuff in the wiki tips regarding doing your own indexes has a problem though, and this would still be useful for me. Alexis
Re: '#' in index entries - possible?
It appears that it is only the stuff in the multiple indexes section on the wiki that is incorrect. Do you want to create multiple indexes? Yes. I've got a list of Debian bug numbers which I would like to index separately, as well as a main index. Ideally I'd like to control the Debian bug number index a bit more, so that it doesn't appear on a new page - a sort of runtime-populated table in a normal section, if you see what I mean. Alexis
'#' in index entries - possible?
I'm writing a document which references bug reports in Debian. The official format of a Debian bug report number is '#99'. In order to make these numbers even more clearly Debian bug report numbers, in my document, I'm prefixing them whe 'BTS', so now they look like 'BTS#99'. I would prefer to stick to this format instead of losing the '#' or the 'BTS' When compiling to DVI, I get the following LaTeX error: you can't use `macro parameter character #' in horizontal mode \item BTS# 287585, 28 Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. So I tried a couple of things. First Google led me to this: At http://theoval.sys.uea.ac.uk/~nlct/latex/novices/cantusehash.html I found some *TeX*-level advice to do backslash-prefixing. I could see this wasn't really going to work at LyX level, but I tried it. The result was that the index is generates, the index entry is correct, but the actual text in the body of the document has a backslash in front of it. I.e. ... see BTS\#287585 ... Index BTS#287585, 28 (Actually it's on page 27, but ... one thing at a time.) Second, the LyX wiki at http://wiki.lyx.org/Tips/Indexing suggested an ERT-based way to make indexes yourself, rather than letting LyX do it. But this did not go well: I inserted the following in the preamble: \newcommand{\index2page}{ \renewcommand{\indexname}{My second index} \printindex[index2] } \newcommand{\index2}[1]{\index[index2]{#1}} but immediately the syntax highlighting indicated that 'index2...' was being treated as 'index' + '2' and compiling produced: LaTex Error: Command \index already defined. Fine. So I changed all occurences of 'index2' to 'indexa' in the preamble, in my ERT for the index entry and the ERT for the index itself. This was better, but still, I got: Undefined control sequence. with the ERT for the index itself '\indexapage' highlighted. But the entry defining this is in the preamble. (By putting a 'date /tmp/log' inside the script that the wiki says to create to generate the index, I determined that that script was never called before the above error occurred. Not sure if that's relevent.) Can anybody offer any advice please? Thanks! Alexis
Re: '#' in index entries - possible?
Perhaps you are selecting the text and relying on LyX to copy the text into the index entry? You can just click the index entry and enter whatever text you want. Indeed, that was what I was doing. I did what you suggested and it worked fine! (Actually it's on page 27, but ... one thing at a time.) Sounds like LyX isn't rerunning LaTeX enough. Try creating the dvi or pdf or whatever again. Actually, it was even stupider than that ... the index entry's page number *did* match the page number that the entry was on. The problem was just that because there is a title page, the DVI viewer thinks *that* is page 1, and the page with the number 1 on it, the DVI viewer considers to be page 2. Many thanks for the quick and helpful assistance! The stuff in the wiki tips regarding doing your own indexes has a problem though, and this would still be useful for me. Alexis
Re: '#' in index entries - possible?
It appears that it is only the stuff in the multiple indexes section on the wiki that is incorrect. Do you want to create multiple indexes? Yes. I've got a list of Debian bug numbers which I would like to index separately, as well as a main index. Ideally I'd like to control the Debian bug number index a bit more, so that it doesn't appear on a new page - a sort of runtime-populated table in a normal section, if you see what I mean. Alexis
'#' in index entries - possible?
I'm writing a document which references bug reports in Debian. The official format of a Debian bug report number is '#99'. In order to make these numbers even more clearly Debian bug report numbers, in my document, I'm prefixing them whe 'BTS', so now they look like 'BTS#99'. I would prefer to stick to this format instead of losing the '#' or the 'BTS' When compiling to DVI, I get the following LaTeX error: you can't use `macro parameter character #' in horizontal mode \item BTS# 287585, 28 Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. So I tried a couple of things. First Google led me to this: At http://theoval.sys.uea.ac.uk/~nlct/latex/novices/cantusehash.html I found some *TeX*-level advice to do backslash-prefixing. I could see this wasn't really going to work at LyX level, but I tried it. The result was that the index is generates, the index entry is correct, but the actual text in the body of the document has a backslash in front of it. I.e. ... see BTS\#287585 ... Index BTS#287585, 28 (Actually it's on page 27, but ... one thing at a time.) Second, the LyX wiki at http://wiki.lyx.org/Tips/Indexing suggested an ERT-based way to make indexes yourself, rather than letting LyX do it. But this did not go well: I inserted the following in the preamble: \newcommand{\index2page}{ \renewcommand{\indexname}{My second index} \printindex[index2] } \newcommand{\index2}[1]{\index[index2]{#1}} but immediately the syntax highlighting indicated that 'index2...' was being treated as 'index' + '2' and compiling produced: LaTex Error: Command \index already defined. Fine. So I changed all occurences of 'index2' to 'indexa' in the preamble, in my ERT for the index entry and the ERT for the index itself. This was better, but still, I got: Undefined control sequence. with the ERT for the index itself '\indexapage' highlighted. But the entry defining this is in the preamble. (By putting a 'date >> /tmp/log' inside the script that the wiki says to create to generate the index, I determined that that script was never called before the above error occurred. Not sure if that's relevent.) Can anybody offer any advice please? Thanks! Alexis
Re: '#' in index entries - possible?
> Perhaps you are selecting the text and relying on LyX to copy the text into > the index entry? You can just click the index entry and enter whatever text > you want. Indeed, that was what I was doing. I did what you suggested and it worked fine! >> (Actually it's on page 27, but ... one thing at a time.) > > Sounds like LyX isn't rerunning LaTeX enough. Try creating the dvi or pdf or > whatever again. Actually, it was even stupider than that ... the index entry's page number *did* match the page number that the entry was on. The problem was just that because there is a title page, the DVI viewer thinks *that* is page 1, and the page with the number 1 on it, the DVI viewer considers to be page 2. Many thanks for the quick and helpful assistance! The stuff in the wiki tips regarding doing your own indexes has a problem though, and this would still be useful for me. Alexis
Re: '#' in index entries - possible?
> It appears that it is only the stuff in the multiple indexes section on the > wiki that is incorrect. Do you want to create multiple indexes? Yes. I've got a list of Debian bug numbers which I would like to index separately, as well as a main index. Ideally I'd like to control the Debian bug number index a bit more, so that it doesn't appear on a new page - a sort of runtime-populated table in a normal section, if you see what I mean. Alexis
Re: preventing line splitting in .lyx files (not the output)
And, by the way, if you get this sorted out, it'd be great material for the wiki. To make link for news-reading people to the web, I did this; see http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords. The fix comes in two parts: a SVN hook to prevent committing .lyx files with split keyword lines, and command-line perl script to fix files with split keyword lines. Alexis
Re: preventing line splitting in .lyx files (not the output)
And, by the way, if you get this sorted out, it'd be great material for the wiki. To make link for news-reading people to the web, I did this; see http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords. The fix comes in two parts: a SVN hook to prevent committing .lyx files with split keyword lines, and command-line perl script to fix files with split keyword lines. Alexis
Re: preventing line splitting in .lyx files (not the output)
> And, by the way, if you get this sorted out, it'd be great material for > the wiki. To make link for news-reading people to the web, I did this; see http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords. The fix comes in two parts: a SVN hook to prevent committing .lyx files with split keyword lines, and command-line perl script to fix files with split keyword lines. Alexis
preventing line splitting in .lyx files (not the output)
Hi, I'm using Subversion to embed various info about released versions of a document I've written inside the document itself. The .lyx format being text, this works *almost* fine. For example I have a note in the document containing: $LastChangedRevision: 2791 $ and this is correctly updated when I check out the document. The problem is that I also have the following in the document: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ and this does not work. The reason it does not work is that in the .lyx *source* file the line is split, so svn fails to recognise it as text that it should update. The .lyx file contains: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ (Just in case one our newsreads reformats that: the last '$' is on the next line indented by one space.) With LyX the line appears as a single line. In the output it does not appear at all (because it's in a note). But in the source it is being split over two lines. If I edit the source and put it all on one line, then the next time I save, it is split again. Is there any way to prevent this? For info, I'm using LyX 1.5.2, from Debian lenny/testing. Thanks! Alexis
preventing line splitting in .lyx files (not the output)
Hi, I'm using Subversion to embed various info about released versions of a document I've written inside the document itself. The .lyx format being text, this works *almost* fine. For example I have a note in the document containing: $LastChangedRevision: 2791 $ and this is correctly updated when I check out the document. The problem is that I also have the following in the document: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ and this does not work. The reason it does not work is that in the .lyx *source* file the line is split, so svn fails to recognise it as text that it should update. The .lyx file contains: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ (Just in case one our newsreads reformats that: the last '$' is on the next line indented by one space.) With LyX the line appears as a single line. In the output it does not appear at all (because it's in a note). But in the source it is being split over two lines. If I edit the source and put it all on one line, then the next time I save, it is split again. Is there any way to prevent this? For info, I'm using LyX 1.5.2, from Debian lenny/testing. Thanks! Alexis
preventing line splitting in .lyx files (not the output)
Hi, I'm using Subversion to embed various info about released versions of a document I've written inside the document itself. The .lyx format being text, this works *almost* fine. For example I have a note in the document containing: $LastChangedRevision: 2791 $ and this is correctly updated when I check out the document. The problem is that I also have the following in the document: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ and this does not work. The reason it does not work is that in the .lyx *source* file the line is split, so svn fails to recognise it as text that it should update. The .lyx file contains: $HeadURL: svn+ssh://dione.no-ip.org/diska/svn-repos/ahdg/trunk/doc/ahdg.lyx $ (Just in case one our newsreads reformats that: the last '$' is on the next line indented by one space.) With LyX the line appears as a single line. In the output it does not appear at all (because it's in a note). But in the source it is being split over two lines. If I edit the source and put it all on one line, then the next time I save, it is split again. Is there any way to prevent this? For info, I'm using LyX 1.5.2, from Debian lenny/testing. Thanks! Alexis
pointers to descriptions of various document layouts?
Hi, this isn't a LyX-specific question, but as a LyX user, and seeing how well LyX is orientated to specific document classes, I figured the people here would understand the question or be able to refer me to others places to ask ... I am looking for some descriptions of how certain document types should look. As an example, I make a CV begin with some personal details, and then proceed to education and job history, but I don't *know* that this is how a CV *should* look. Or a report on migrating from one OS to another perhaps ought to have an introduction, some comparisons, critical issues, and a summary. But what else? Or even just a business letter; maybe that's the best example because the design is *so* rigid. How to lay out a business letter is surely all over the web, but a site listing How to lay out an OS migration report, How to lay out a novel and How to lay out a thousand other things I have not managed to find. Templates for letters etc are *sort* of what I want, but I'm looking for *more* templates, of more *specific* types (different sorts of technical reports, e.g. aforementioned migration report), even better would be software-product *independent* descriptions (rather than e.g. LaTeX templates, LyX templates, Word templates). Googling for document/design/layout/template turns up a few templates or descriptions of *single* document types, but I'm really trying to avoid the collection and filtration myself by finding a existing large collection of such descriptions. Any pointers, or even pointers to better places to ask, would be much appreciated. Thanks! Alexis
pointers to descriptions of various document layouts?
Hi, this isn't a LyX-specific question, but as a LyX user, and seeing how well LyX is orientated to specific document classes, I figured the people here would understand the question or be able to refer me to others places to ask ... I am looking for some descriptions of how certain document types should look. As an example, I make a CV begin with some personal details, and then proceed to education and job history, but I don't *know* that this is how a CV *should* look. Or a report on migrating from one OS to another perhaps ought to have an introduction, some comparisons, critical issues, and a summary. But what else? Or even just a business letter; maybe that's the best example because the design is *so* rigid. How to lay out a business letter is surely all over the web, but a site listing How to lay out an OS migration report, How to lay out a novel and How to lay out a thousand other things I have not managed to find. Templates for letters etc are *sort* of what I want, but I'm looking for *more* templates, of more *specific* types (different sorts of technical reports, e.g. aforementioned migration report), even better would be software-product *independent* descriptions (rather than e.g. LaTeX templates, LyX templates, Word templates). Googling for document/design/layout/template turns up a few templates or descriptions of *single* document types, but I'm really trying to avoid the collection and filtration myself by finding a existing large collection of such descriptions. Any pointers, or even pointers to better places to ask, would be much appreciated. Thanks! Alexis
pointers to descriptions of various document layouts?
Hi, this isn't a LyX-specific question, but as a LyX user, and seeing how well LyX is orientated to specific document classes, I figured the people here would understand the question or be able to refer me to others places to ask ... I am looking for some descriptions of how certain document types should look. As an example, I make a CV begin with some personal details, and then proceed to education and job history, but I don't *know* that this is how a CV *should* look. Or a report on migrating from one OS to another perhaps ought to have an introduction, some comparisons, critical issues, and a summary. But what else? Or even just a business letter; maybe that's the best example because the design is *so* rigid. "How to lay out a business letter" is surely all over the web, but a site listing "How to lay out an OS migration report", "How to lay out a novel" and "How to lay out a " I have not managed to find. Templates for letters etc are *sort* of what I want, but I'm looking for *more* templates, of more *specific* types (different sorts of technical reports, e.g. aforementioned migration report), even better would be software-product *independent* descriptions (rather than e.g. LaTeX templates, LyX templates, Word templates). Googling for document/design/layout/template turns up a few templates or descriptions of *single* document types, but I'm really trying to avoid the collection and filtration myself by finding a existing large collection of such descriptions. Any pointers, or even pointers to better places to ask, would be much appreciated. Thanks! Alexis
Re: latex2html: tables losing all except top row?
So what in LyX is: --- | | | | | | a | b | c | d | | | | | | --- | | | | | | e | f | g | h | | | | | | --- | | | | | | i | j | k | l | | | | | | --- comes out as: --- | | | | | | a | b | c | d | | | | | e | --- ran it through the TeX4ht converter. The resulting HTML file was rather chunky ( 1.2 MB!), but the tables in section 1.2.3 looked ok to me (and Thanks for the pointer; I didn't know about TeX4ht. I had to fiddle with table cell borders a bit in order to stop some spurious empty rows, which I *think* were 'between' a row with a bottom border followed by row with a top border that hadn't appeared as such in LyX, but the end result is better than latex2html and *much* faster, like about ten times so! Incidentally, htlatex (the TeX4ht executable) complained about several undefined cross-references. Yeah ... I'll get around to those some time :-) Alexis
Re: latex2html: tables losing all except top row?
So what in LyX is: --- | | | | | | a | b | c | d | | | | | | --- | | | | | | e | f | g | h | | | | | | --- | | | | | | i | j | k | l | | | | | | --- comes out as: --- | | | | | | a | b | c | d | | | | | e | --- ran it through the TeX4ht converter. The resulting HTML file was rather chunky ( 1.2 MB!), but the tables in section 1.2.3 looked ok to me (and Thanks for the pointer; I didn't know about TeX4ht. I had to fiddle with table cell borders a bit in order to stop some spurious empty rows, which I *think* were 'between' a row with a bottom border followed by row with a top border that hadn't appeared as such in LyX, but the end result is better than latex2html and *much* faster, like about ten times so! Incidentally, htlatex (the TeX4ht executable) complained about several undefined cross-references. Yeah ... I'll get around to those some time :-) Alexis
Re: latex2html: tables losing all except top row?
>> So what in LyX is: >> >> --- >> | | | | | >> | a | b | c | d | >> | | | | | >> --- >> | | | | | >> | e | f | g | h | >> | | | | | >> --- >> | | | | | >> | i | j | k | l | >> | | | | | >> --- >> >> comes out as: >> >> --- >> | | | | | >> | a | b | c | d | >> | | | | e | >> --- >> > > ran it through the TeX4ht converter. The resulting HTML file was rather > chunky (> 1.2 MB!), but the tables in section 1.2.3 looked ok to me (and Thanks for the pointer; I didn't know about TeX4ht. I had to fiddle with table cell borders a bit in order to stop some spurious empty rows, which I *think* were 'between' a row with a bottom border followed by row with a top border that hadn't appeared as such in LyX, but the end result is better than latex2html and *much* faster, like about ten times so! > Incidentally, htlatex (the TeX4ht executable) complained about several > undefined cross-references. Yeah ... I'll get around to those some time :-) Alexis
latex2html: tables losing all except top row?
Hi, I've got a LyX document which I convert to LaTeX and then convert to HTML using latex2html. The result is fine except for that the tables are cropped to just the top row! Actually it's slightly more complicated: the last cell of each row contains what it should *plus* what should be in the first cell of the second row. So what in LyX is: --- | | | | | | a | b | c | d | | | | | | --- | | | | | | e | f | g | h | | | | | | --- | | | | | | i | j | k | l | | | | | | --- comes out as: --- | | | | | | a | b | c | d | | | | | e | --- As an example of the output, please take a look at: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg/node16.html and the input was: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg.lyx (section 1.2.3). Postscript and PDF versions do not display this problem (change .lyx extension in above URL) to see. But, some time ago, I had a problem with LyX's footnote environments not being correctly rendered by latex2html when they were in PS and PDF, so I am wondering if there is a similar 'problem-refraction' going on here. Any advice appreciated! Thanks! Alexis
latex2html: tables losing all except top row?
Hi, I've got a LyX document which I convert to LaTeX and then convert to HTML using latex2html. The result is fine except for that the tables are cropped to just the top row! Actually it's slightly more complicated: the last cell of each row contains what it should *plus* what should be in the first cell of the second row. So what in LyX is: --- | | | | | | a | b | c | d | | | | | | --- | | | | | | e | f | g | h | | | | | | --- | | | | | | i | j | k | l | | | | | | --- comes out as: --- | | | | | | a | b | c | d | | | | | e | --- As an example of the output, please take a look at: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg/node16.html and the input was: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg.lyx (section 1.2.3). Postscript and PDF versions do not display this problem (change .lyx extension in above URL) to see. But, some time ago, I had a problem with LyX's footnote environments not being correctly rendered by latex2html when they were in PS and PDF, so I am wondering if there is a similar 'problem-refraction' going on here. Any advice appreciated! Thanks! Alexis
latex2html: tables losing all except top row?
Hi, I've got a LyX document which I convert to LaTeX and then convert to HTML using latex2html. The result is fine except for that the tables are cropped to just the top row! Actually it's slightly more complicated: the last cell of each row contains what it should *plus* what should be in the first cell of the second row. So what in LyX is: --- | | | | | | a | b | c | d | | | | | | --- | | | | | | e | f | g | h | | | | | | --- | | | | | | i | j | k | l | | | | | | --- comes out as: --- | | | | | | a | b | c | d | | | | | e | --- As an example of the output, please take a look at: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg/node16.html and the input was: http://dione.no-ip.org/~alexis/computing/ahdg/ahdg.lyx (section 1.2.3). Postscript and PDF versions do not display this problem (change .lyx extension in above URL) to see. But, some time ago, I had a problem with LyX's footnote environments not being correctly rendered by latex2html when they were in PS and PDF, so I am wondering if there is a similar 'problem-refraction' going on here. Any advice appreciated! Thanks! Alexis
Re: Lyx and CVS
Roland Schmitz [EMAIL PROTECTED] wrote: the cvs version or revision tags (on the titlepage, or in the page headings/footer). Is/how it possibe to query cvs automaticly before printing the thesis, which number/tag is actual used in cvs, and insert this result into the text before printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
Re: Lyx and CVS
Roland Schmitz [EMAIL PROTECTED] wrote: the cvs version or revision tags (on the titlepage, or in the page headings/footer). Is/how it possibe to query cvs automaticly before printing the thesis, which number/tag is actual used in cvs, and insert this result into the text before printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
Re: Lyx and CVS
Roland Schmitz <[EMAIL PROTECTED]> wrote: > the cvs version or revision tags (on the titlepage, or in the page > headings/footer). > Is/how it possibe to query cvs automaticly before printing the thesis, which > number/tag is actual used in cvs, and insert this result into the text before > printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
notes/comments, which style for what, latex2html+tables
Hi, first, I'm using the 'book' class. This offers me a formatting style called 'Comment'. But I also have, from the 'Edit' menu, something called 'Note'. Neither of them produce any output in the printout. Clearly something like this is very useful for text like I must remember to fix this bit! and Next time I revise this section try to blah blah, but what is the difference between a Comment and a Note, other than the colour? ;-) Secondly, really the same question but applied to classes as a whole: does anybody know of some web page somewhere that explains how one selects which document class to use? I mean I know what a 'book' is, but what about 'letter' and 'letter (koma-script)' and what is the difference between a report and an article? Finally, I have some problems converting tables from LyX to HTML. Specifically, I'm only gettting the header row, and then some random words from the content are squashed in to these cells. You can see what I mean at http://tinyurl.com/6hvn7. I realise this is more a latex2html question, but perhaps someone has some advice? To do the conversion I'm using: # export lyx --export latex ahdg.lyx # move to new name so I can 'sed' back to original name mv ahdg.tex ahdg2.tex # strip 'gobble' footnote code which confuses latex2html sed '/Special footnote code from the package/,/[EMAIL PROTECTED]@twobracket\[#1\]#2{}/s/.*/%% REMOVED BY SED IN HTML PREPARATION/' ahdg2.tex ahdg.tex # now do the conversion. latex2html -link 1 -top_navigation -toc_depth 0 -t Alexis Huxley's Debian Guide -info -local_icons -split +1 -toc_depth 6 -show_section_numbers ahdg.tex (If you strip the last few components off the tinyurl, then you can find a tar.gz containing the .lyx version.) Thanks! (for any answers, but also for LyX! It's great!) Alexis
notes/comments, which style for what, latex2html+tables
Hi, first, I'm using the 'book' class. This offers me a formatting style called 'Comment'. But I also have, from the 'Edit' menu, something called 'Note'. Neither of them produce any output in the printout. Clearly something like this is very useful for text like I must remember to fix this bit! and Next time I revise this section try to blah blah, but what is the difference between a Comment and a Note, other than the colour? ;-) Secondly, really the same question but applied to classes as a whole: does anybody know of some web page somewhere that explains how one selects which document class to use? I mean I know what a 'book' is, but what about 'letter' and 'letter (koma-script)' and what is the difference between a report and an article? Finally, I have some problems converting tables from LyX to HTML. Specifically, I'm only gettting the header row, and then some random words from the content are squashed in to these cells. You can see what I mean at http://tinyurl.com/6hvn7. I realise this is more a latex2html question, but perhaps someone has some advice? To do the conversion I'm using: # export lyx --export latex ahdg.lyx # move to new name so I can 'sed' back to original name mv ahdg.tex ahdg2.tex # strip 'gobble' footnote code which confuses latex2html sed '/Special footnote code from the package/,/[EMAIL PROTECTED]@twobracket\[#1\]#2{}/s/.*/%% REMOVED BY SED IN HTML PREPARATION/' ahdg2.tex ahdg.tex # now do the conversion. latex2html -link 1 -top_navigation -toc_depth 0 -t Alexis Huxley's Debian Guide -info -local_icons -split +1 -toc_depth 6 -show_section_numbers ahdg.tex (If you strip the last few components off the tinyurl, then you can find a tar.gz containing the .lyx version.) Thanks! (for any answers, but also for LyX! It's great!) Alexis
notes/comments, which style for what, latex2html+tables
Hi, first, I'm using the 'book' class. This offers me a formatting style called 'Comment'. But I also have, from the 'Edit' menu, something called 'Note'. Neither of them produce any output in the printout. Clearly something like this is very useful for text like "I must remember to fix this bit!" and "Next time I revise this section try to blah blah", but what is the difference between a Comment and a Note, other than the colour? ;-) Secondly, really the same question but applied to classes as a whole: does anybody know of some web page somewhere that explains how one selects which document class to use? I mean I know what a 'book' is, but what about 'letter' and 'letter (koma-script)' and what is the difference between a report and an article? Finally, I have some problems converting tables from LyX to HTML. Specifically, I'm only gettting the header row, and then some random words from the content are squashed in to these cells. You can see what I mean at http://tinyurl.com/6hvn7. I realise this is more a latex2html question, but perhaps someone has some advice? To do the conversion I'm using: # export lyx --export latex ahdg.lyx # move to new name so I can 'sed' back to original name mv ahdg.tex ahdg2.tex # strip 'gobble' footnote code which confuses latex2html sed '/Special footnote code from the package/,/[EMAIL PROTECTED]@twobracket\[#1\]#2{}/s/.*/%% REMOVED BY SED IN HTML PREPARATION/' ahdg2.tex > ahdg.tex # now do the conversion. latex2html -link 1 -top_navigation -toc_depth 0 -t "Alexis Huxley's Debian Guide" -info "" -local_icons -split +1 -toc_depth 6 -show_section_numbers ahdg.tex (If you strip the last few components off the tinyurl, then you can find a tar.gz containing the .lyx version.) Thanks! (for any answers, but also for LyX! It's great!) Alexis
Re: per-$DISPLAY font zoom?
The setting \screen_zoom is stored in .lyx/preferences So, you can keep two such preference files and have scripts called lyx14 and lyx21 that copies one or the other into .lyx/preferences before starting lyx. Of course this solution makes changing any other preferences more difficult, as you have to update the two other files afterwards. A better option is to write a script that modifies the \screen_zoom setting in .lyx/preferences directly before starting lyx. This script may be a little harder to write though. Ah, great thanks! 'perl -pi -e' for in place editing sounds like the tool. Something like: cat mylyx EOF #!/bin/sh case $DISPLAY in mon1) ZOOM=200 ;; mon2) ZOOM=100 ;; esac perl -pi -e s/(\\screen_zoom )\d+/\$1 $ZOOM/ $HOME/.lyx/preferences exec lyx $@ EOF should do it. Thanks for the idea! Alexis
Re: per-$DISPLAY font zoom?
perl -i -pe 's/screen_zoom \d+/screen_zoom XXX/' $HOME/.lyx/preferences Great minds ... :-)
Re: per-$DISPLAY font zoom?
The setting \screen_zoom is stored in .lyx/preferences So, you can keep two such preference files and have scripts called lyx14 and lyx21 that copies one or the other into .lyx/preferences before starting lyx. Of course this solution makes changing any other preferences more difficult, as you have to update the two other files afterwards. A better option is to write a script that modifies the \screen_zoom setting in .lyx/preferences directly before starting lyx. This script may be a little harder to write though. Ah, great thanks! 'perl -pi -e' for in place editing sounds like the tool. Something like: cat mylyx EOF #!/bin/sh case $DISPLAY in mon1) ZOOM=200 ;; mon2) ZOOM=100 ;; esac perl -pi -e s/(\\screen_zoom )\d+/\$1 $ZOOM/ $HOME/.lyx/preferences exec lyx $@ EOF should do it. Thanks for the idea! Alexis
Re: per-$DISPLAY font zoom?
perl -i -pe 's/screen_zoom \d+/screen_zoom XXX/' $HOME/.lyx/preferences Great minds ... :-)
Re: per-$DISPLAY font zoom?
> The setting \screen_zoom is stored in .lyx/preferences > > So, you can keep two such preference files and have scripts called > lyx14 and lyx21 that copies one or the other into .lyx/preferences > before starting lyx. > > Of course this solution makes changing any other preferences > more difficult, as you have to update the two other files > afterwards. A better option is to write a script that modifies > the \screen_zoom setting in .lyx/preferences directly before > starting lyx. This script may be a little harder to write though. Ah, great thanks! 'perl -pi -e' for in place editing sounds like the tool. Something like: cat > mylyx <
Re: per-$DISPLAY font zoom?
> perl -i -pe 's/screen_zoom \d+/screen_zoom XXX/' $HOME/.lyx/preferences Great minds ... :-)
per-$DISPLAY font zoom?
Hi, I'm using a 21 screen and a 14 laptop for LyX. I keep having to change the font zoom from the Edit/Preferences/Screen-Fonts menu when I go from one monitor to the other. Is there a way to specify a per-$DISPLAY value here? If there is an X resource for it then I can xrdb merge it; or I can if LyX will not overrule that with the preference-specified value. Any help appreciated. Thanks! Alexis
per-$DISPLAY font zoom?
Hi, I'm using a 21 screen and a 14 laptop for LyX. I keep having to change the font zoom from the Edit/Preferences/Screen-Fonts menu when I go from one monitor to the other. Is there a way to specify a per-$DISPLAY value here? If there is an X resource for it then I can xrdb merge it; or I can if LyX will not overrule that with the preference-specified value. Any help appreciated. Thanks! Alexis
per-$DISPLAY font zoom?
Hi, I'm using a 21" screen and a 14" laptop for LyX. I keep having to change the font zoom from the Edit/Preferences/Screen-Fonts menu when I go from one monitor to the other. Is there a way to specify a per-$DISPLAY value here? If there is an X resource for it then I can xrdb merge it; or I can if LyX will not overrule that with the preference-specified value. Any help appreciated. Thanks! Alexis
Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows
1) Footnotes are not being handled correctly. What appears is this: main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text If you look at the .tex, you should find at the beginning the following code: %% Special footnote code from the package 'stblftnt.sty' %% Author: Robin Fairbairns -- Last revised Dec 13 1996 \let\SF@@footnote\footnote [EMAIL PROTECTED]@protect \expandafter\SF@@footnote \else [EMAIL PROTECTED]@opt \fi } \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED] [EMAIL PROTECTED]@twobracket [EMAIL PROTECTED] } [EMAIL PROTECTED]@opt{\noexpand\protect \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname} [EMAIL PROTECTED]@twobracket[#1]#2{} Just remove it, and try to run latex2html by hand again. That did it! Many thanks! Alexis
Re: LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows
1) Footnotes are not being handled correctly. What appears is this: main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text If you look at the .tex, you should find at the beginning the following code: %% Special footnote code from the package 'stblftnt.sty' %% Author: Robin Fairbairns -- Last revised Dec 13 1996 \let\SF@@footnote\footnote [EMAIL PROTECTED]@protect \expandafter\SF@@footnote \else [EMAIL PROTECTED]@opt \fi } \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED] [EMAIL PROTECTED]@twobracket [EMAIL PROTECTED] } [EMAIL PROTECTED]@opt{\noexpand\protect \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname} [EMAIL PROTECTED]@twobracket[#1]#2{} Just remove it, and try to run latex2html by hand again. That did it! Many thanks! Alexis
Re: LyX + latex2html: footnotes "SF@gobble@opt", tables = missing rows
>> 1) Footnotes are not being handled correctly. What appears is >> this: >> >> [EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt >> > If you look at the .tex, you should find at the beginning the > following code: > > %% Special footnote code from the package 'stblftnt.sty' > %% Author: Robin Fairbairns -- Last revised Dec 13 1996 > \let\SF@@footnote\footnote > [EMAIL PROTECTED]@protect > \expandafter\SF@@footnote > \else > [EMAIL PROTECTED]@opt > \fi > } > \expandafter\def\csname [EMAIL PROTECTED]@opt [EMAIL PROTECTED] > [EMAIL PROTECTED]@twobracket > [EMAIL PROTECTED] > } > [EMAIL PROTECTED]@opt{\noexpand\protect > \expandafter\noexpand\csname [EMAIL PROTECTED]@opt \endcsname} > [EMAIL PROTECTED]@twobracket[#1]#2{} > > Just remove it, and try to run latex2html by hand again. That did it! Many thanks! Alexis
Re: bug: comment resets enumerate numbering?
see attached file sorry, here comes the right one Thanks Herbert; I'll go with indenting the comment down one level, it's the easiest, and I keep the glaring pink that reminds me I still have something to fix :-) Alexis
Re: bug: comment resets enumerate numbering?
see attached file sorry, here comes the right one Thanks Herbert; I'll go with indenting the comment down one level, it's the easiest, and I keep the glaring pink that reminds me I still have something to fix :-) Alexis
Re: bug: comment resets enumerate numbering?
>> see attached file > > sorry, here comes the right one Thanks Herbert; I'll go with indenting the comment down one level, it's the easiest, and I keep the glaring pink that reminds me I still have something to fix :-) Alexis
bug: comment resets enumerate numbering?
Hi, I have a list: 1. eggs 2. bacon 3. mushrooms And I want to stick a comment in there - just for me the author - like this: 1. eggs *try something else next time instead of the next few ingredients* 2. bacon 3. mushrooms But this is not what I get. In lyx I see: 1. eggs *try something else next time instead of the next few ingredients* 1. bacon 2. mushrooms but at least *I* can see the comment, so I know why the numbering has gone wrong afterwards, but in the DVI it looks like this: 1. eggs 1. bacon 2. mushrooms which is quite confusing for the (non-authoring) reader. I presume this is a bug? And is there an ERT workaround? Thanks! Alexis Huxley http://dione.no-ip.org/~alexis/
bug: comment resets enumerate numbering?
Hi, I have a list: 1. eggs 2. bacon 3. mushrooms And I want to stick a comment in there - just for me the author - like this: 1. eggs *try something else next time instead of the next few ingredients* 2. bacon 3. mushrooms But this is not what I get. In lyx I see: 1. eggs *try something else next time instead of the next few ingredients* 1. bacon 2. mushrooms but at least *I* can see the comment, so I know why the numbering has gone wrong afterwards, but in the DVI it looks like this: 1. eggs 1. bacon 2. mushrooms which is quite confusing for the (non-authoring) reader. I presume this is a bug? And is there an ERT workaround? Thanks! Alexis Huxley http://dione.no-ip.org/~alexis/
bug: comment resets enumerate numbering?
Hi, I have a list: 1. eggs 2. bacon 3. mushrooms And I want to stick a comment in there - just for me the author - like this: 1. eggs *try something else next time instead of the next few ingredients* 2. bacon 3. mushrooms But this is not what I get. In lyx I see: 1. eggs *try something else next time instead of the next few ingredients* 1. bacon 2. mushrooms but at least *I* can see the comment, so I know why the numbering has gone wrong afterwards, but in the DVI it looks like this: 1. eggs 1. bacon 2. mushrooms which is quite confusing for the (non-authoring) reader. I presume this is a bug? And is there an ERT workaround? Thanks! Alexis Huxley http://dione.no-ip.org/~alexis/
LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows
Hi, I have a document written in LyX, and converted to HTML, just using FILE - export - HTML. The document contains many footnotes and tables and they come out quite wrong. The specific problems are: 1) Footnotes are not being handled correctly. What appears is this: main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text 2) Tables have only the header row except for the last cell, which has the text of the first cell of the second row also in it. As it: .--, | r1c1 | r1c2 | r1c3 | ||| r2c1 | `--' 3) Typewriter character format has been preserved in the conversion, but it looks as though bold has not been. Exporting to PDF, PS, DVI are all absolutely perfect. The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html, if anybody wants to see for themselves. I have also tried converting lyx to HTML using lyxport, but that's just calling latex2html also, and gives the same results. I know zero TeX, so I've not tried writing a TeX file with tables or footnotes to see if this is a LyX problem or a latex2html problem, but I assume it is a latex2html problem; however, as it seems quite a large problem, and I've not found anything saying that latex2html can't handle footnotes, this mailing list seemed a good to start in my top-down search for a solution. Please can anyone offer any advice? Thanks! Alexis
LyX + latex2html: footnotes SF@gobble@opt, tables = missing rows
Hi, I have a document written in LyX, and converted to HTML, just using FILE - export - HTML. The document contains many footnotes and tables and they come out quite wrong. The specific problems are: 1) Footnotes are not being handled correctly. What appears is this: main text[EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt footnote text 2) Tables have only the header row except for the last cell, which has the text of the first cell of the second row also in it. As it: .--, | r1c1 | r1c2 | r1c3 | ||| r2c1 | `--' 3) Typewriter character format has been preserved in the conversion, but it looks as though bold has not been. Exporting to PDF, PS, DVI are all absolutely perfect. The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html, if anybody wants to see for themselves. I have also tried converting lyx to HTML using lyxport, but that's just calling latex2html also, and gives the same results. I know zero TeX, so I've not tried writing a TeX file with tables or footnotes to see if this is a LyX problem or a latex2html problem, but I assume it is a latex2html problem; however, as it seems quite a large problem, and I've not found anything saying that latex2html can't handle footnotes, this mailing list seemed a good to start in my top-down search for a solution. Please can anyone offer any advice? Thanks! Alexis
LyX + latex2html: footnotes "SF@gobble@opt", tables = missing rows
Hi, I have a document written in LyX, and converted to HTML, just using "FILE -> export -> HTML". The document contains many footnotes and tables and they come out quite wrong. The specific problems are: 1) Footnotes are not being handled correctly. What appears is this: [EMAIL PROTECTED] @@footnote [EMAIL PROTECTED]@opt 2) Tables have only the header row except for the last cell, which has the text of the first cell of the second row also in it. As it: .--, | | | | ||| | `--' 3) "Typewriter" character format has been preserved in the conversion, but it looks as though bold has not been. Exporting to PDF, PS, DVI are all absolutely perfect. The HTML version is at http://dione.no-ip.org/~alexis/ahdg.html, if anybody wants to see for themselves. I have also tried converting lyx to HTML using lyxport, but that's just calling latex2html also, and gives the same results. I know zero TeX, so I've not tried writing a TeX file with tables or footnotes to see if this is a LyX problem or a latex2html problem, but I assume it is a latex2html problem; however, as it seems quite a large problem, and I've not found anything saying that latex2html can't handle footnotes, this mailing list seemed a good to start in my top-down search for a solution. Please can anyone offer any advice? Thanks! Alexis