Re: Word count statistics
On Mon, Jun 17, 2019 at 6:43 AM Pavel Sanda wrote: > > Hi, > > LyX has currently an issue that the word count statistics does not include > citations. I am unfortunately afraid that there might not be agreement whether > these are proper words or not, depending on the publisher/journal. > > In your experience with different publications, how many words constitute > these? > [1] : 0/1* > (Goldman et al., 1976) : 0/1/4* > > I tend to implement the starred version unless it causes controversy... > Alternatively we could count citation words separately, but I do not like > this solution. > > Pavel In my experience, the word count limit is just a guide to the appropriate length of a paper. Ain't nobody got time to check whether you have 502 words in your abstract or 497. But generally, it will be apparent when you have 750 words and the limit is 500. So, as long as you are sticking to the spirit of the word limit, you don't have to worry about whether your references are counted as 4 words or 5. I've checked the LyX word counter against MS Word/LibreOffice before, and there are always slight differences in the counts, even for a text without references. It all comes down to different views on what a "word" is. Even when you're talking orthographic words (strings with spaces around them), people will have different opinions on certain tricky cases. I really don't think you are ever going to have to duke it out with your editor, though. Also, some journals explicitly exclude references from their word count limit. If they care enough to legislate this, they will usually be clear about it on their submission pages.
Word count statistics
Hi, LyX has currently an issue that the word count statistics does not include citations. I am unfortunately afraid that there might not be agreement whether these are proper words or not, depending on the publisher/journal. In your experience with different publications, how many words constitute these? [1] : 0/1* (Goldman et al., 1976) : 0/1/4* I tend to implement the starred version unless it causes controversy... Alternatively we could count citation words separately, but I do not like this solution. Pavel
Keeping wind of word-count open
Hello, is there a way to keep the window of Tools/Statistics open while writing and editing the current document? For me this would be great, because often I have to write a fixed amount of words, and it is a lot of selecting and clicking before being able to finish the project. OSX 10.11.2 LyX 2.1.4 (well, I’m going to update soon…) Thanks Jess
Re: Feature suggestion: vertical ruler for word-count
On 07/11/2011 05:47, Xu Wang wrote: Hi Johannes! If you want the word count for a selection, can't you just select it, go to toolsstatistics ? Yeah that's what I do now. Having a ruler is just less clicks. It's not a killer feature but rather a nice-to-have gimmick. Best, Xu On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz jt...@imperial.ac.uk wrote: Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Re: Feature suggestion: vertical ruler for word-count
On 07/11/2011 05:47, Xu Wang wrote: Hi Johannes! If you want the word count for a selection, can't you just select it, go to toolsstatistics ? Yeah that's what I do now. Having a ruler is just less clicks. It's not a killer feature but rather a nice-to-have gimmick. Best, Xu On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz jt...@imperial.ac.uk wrote: Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Re: Feature suggestion: vertical ruler for word-count
On 07/11/2011 05:47, Xu Wang wrote: > Hi Johannes! > > If you want the word count for a selection, can't you just select it, go to > tools>statistics ? Yeah that's what I do now. Having a ruler is just less clicks. It's not a killer feature but rather a nice-to-have gimmick. > > Best, > > Xu > > On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz <jt...@imperial.ac.uk> wrote: > >> Hi! >> >> What do you guys think about a vertical ruler that shows the word count >> along the text? >> Ruler for centimeters doesnt make much sense for Lyx, but I quite often >> wonder about word count in various sections of my documents... >> >> >> >> Johannes >> >> >
Feature suggestion: vertical ruler for word-count
Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Re: Feature suggestion: vertical ruler for word-count
Hi Johannes! If you want the word count for a selection, can't you just select it, go to toolsstatistics ? Best, Xu On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz jt...@imperial.ac.uk wrote: Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Feature suggestion: vertical ruler for word-count
Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Re: Feature suggestion: vertical ruler for word-count
Hi Johannes! If you want the word count for a selection, can't you just select it, go to toolsstatistics ? Best, Xu On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz jt...@imperial.ac.uk wrote: Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Feature suggestion: vertical ruler for word-count
Hi! What do you guys think about a vertical ruler that shows the word count along the text? Ruler for centimeters doesnt make much sense for Lyx, but I quite often wonder about word count in various sections of my documents... Johannes
Re: Feature suggestion: vertical ruler for word-count
Hi Johannes! If you want the word count for a selection, can't you just select it, go to tools>statistics ? Best, Xu On Sun, Nov 6, 2011 at 6:56 PM, Johannes Totz <jt...@imperial.ac.uk> wrote: > Hi! > > What do you guys think about a vertical ruler that shows the word count > along the text? > Ruler for centimeters doesnt make much sense for Lyx, but I quite often > wonder about word count in various sections of my documents... > > > > Johannes > >
Insert word count at end of the document
Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Thanks, Kevin.
Re: Insert word count at end of the document
On 04/04/2010 03:16 PM, Kevin Li wrote: Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Not really. I suppose that the Info inset could be adapted to this purpose---it's basically used to display things LyX knows about---but at present it isn't. rh
Re: Insert word count at end of the document
On Sunday 04 April 2010 15:16:06 Kevin Li wrote: Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Thanks, Kevin. Certainly, if you're willing to use a script to generate the document. Have something like this in the document prefix: wordcount=32123 Then at the very end, put this ERT: \wordcount Then have a script that converts to text, counts the words via wc, then uses sed to change the wordcount=32123 line, then converts to dvi via latex, and converts to ps via dvips, then converts to pdf via ps2pdf. I do stuff like this all the time. This is how my eBook personalization scripts work. SteeT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Insert word count at end of the document
Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Thanks, Kevin.
Re: Insert word count at end of the document
On 04/04/2010 03:16 PM, Kevin Li wrote: Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Not really. I suppose that the Info inset could be adapted to this purpose---it's basically used to display things LyX knows about---but at present it isn't. rh
Re: Insert word count at end of the document
On Sunday 04 April 2010 15:16:06 Kevin Li wrote: Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Thanks, Kevin. Certainly, if you're willing to use a script to generate the document. Have something like this in the document prefix: wordcount=32123 Then at the very end, put this ERT: \wordcount Then have a script that converts to text, counts the words via wc, then uses sed to change the wordcount=32123 line, then converts to dvi via latex, and converts to ps via dvips, then converts to pdf via ps2pdf. I do stuff like this all the time. This is how my eBook personalization scripts work. SteeT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Insert word count at end of the document
Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Thanks, Kevin.
Re: Insert word count at end of the document
On 04/04/2010 03:16 PM, Kevin Li wrote: Hi, Is there a way to make the word count automatically appear at the end of the document (perhaps like a variable)? Not really. I suppose that the Info inset could be adapted to this purpose---it's basically used to display things LyX knows about---but at present it isn't. rh
Re: Insert word count at end of the document
On Sunday 04 April 2010 15:16:06 Kevin Li wrote: > Hi, > > Is there a way to make the word count automatically appear at the end of > the document (perhaps like a variable)? > > > Thanks, Kevin. > Certainly, if you're willing to use a script to generate the document. Have something like this in the document prefix: wordcount=32123 Then at the very end, put this ERT: \wordcount Then have a script that converts to text, counts the words via wc, then uses sed to change the wordcount=32123 line, then converts to dvi via latex, and converts to ps via dvips, then converts to pdf via ps2pdf. I do stuff like this all the time. This is how my eBook personalization scripts work. SteeT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
feature that may be useful - auto word count
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While typing if i want to add a word count I can highlight the text i want counted and use tools - statistics, then put the result in a margin note manually. what would be useful is to be able to define a block of text, say paragraph, hold the page count in a variable, then inside a margin note (or similar) have it auto update the word count. perhaps have a total word count appear in the status bar too for the whole document. some way of monitoring things in real time. Just thought it would be handy, not sure how it would work i can insert new page, so perhaps have insert block start / end, perhaps then at the end of the document, have a way of inserting word count which is then a sum of all the variables, added to gethre, so block1+block2= total word count any ideas Paul - -- Paul Sutton www.zleap.net Ubuntu 9.10 is out : Visit www.ubuntu.com for details The January meeting of the DCLUG will now take place on SUNDAY 10th January, 3pm at the shoreline in Paignton. Aged 11 - 19 then dfey may be for you, please goto http://www.dfey.org for more details -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF owAAoIPxl1H6UfkkAworQU0uVKE6bsrD =KYE9 -END PGP SIGNATURE-
feature that may be useful - auto word count
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While typing if i want to add a word count I can highlight the text i want counted and use tools - statistics, then put the result in a margin note manually. what would be useful is to be able to define a block of text, say paragraph, hold the page count in a variable, then inside a margin note (or similar) have it auto update the word count. perhaps have a total word count appear in the status bar too for the whole document. some way of monitoring things in real time. Just thought it would be handy, not sure how it would work i can insert new page, so perhaps have insert block start / end, perhaps then at the end of the document, have a way of inserting word count which is then a sum of all the variables, added to gethre, so block1+block2= total word count any ideas Paul - -- Paul Sutton www.zleap.net Ubuntu 9.10 is out : Visit www.ubuntu.com for details The January meeting of the DCLUG will now take place on SUNDAY 10th January, 3pm at the shoreline in Paignton. Aged 11 - 19 then dfey may be for you, please goto http://www.dfey.org for more details -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF owAAoIPxl1H6UfkkAworQU0uVKE6bsrD =KYE9 -END PGP SIGNATURE-
feature that may be useful - auto word count
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While typing if i want to add a word count I can highlight the text i want counted and use tools - statistics, then put the result in a margin note manually. what would be useful is to be able to define a block of text, say paragraph, hold the page count in a variable, then inside a margin note (or similar) have it auto update the word count. perhaps have a total word count appear in the status bar too for the whole document. some way of monitoring things in real time. Just thought it would be handy, not sure how it would work i can insert new page, so perhaps have insert block start / end, perhaps then at the end of the document, have a way of inserting word count which is then a sum of all the variables, added to gethre, so block1+block2= total word count any ideas Paul - -- Paul Sutton www.zleap.net Ubuntu 9.10 is out : Visit www.ubuntu.com for details The January meeting of the DCLUG will now take place on SUNDAY 10th January, 3pm at the shoreline in Paignton. Aged 11 - 19 then dfey may be for you, please goto http://www.dfey.org for more details -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF owAAoIPxl1H6UfkkAworQU0uVKE6bsrD =KYE9 -END PGP SIGNATURE-
Word Count
Hello all, I'm working on a long document which has a word limit. My current draft has many notes and grayed out text as the text develops. Unfortunately the contents of my notes and grayed out text are included in the word count, so I cannot get a good indication of how long the draft actually is. Is there any way around this? (short of going through the document and deleting the notes? In the future perhaps a checkbox in the word-count popup that could toggle between counting or not counting the contents of notes would be a useful addition. Thanks, B. Bogart
Re: Word Count
Is there any way around this? (short of going through the document and deleting the notes? in case of lyx comments export to text file and count the words by eg wc -w file.txt . this wont help you with greyed out text though. In the future perhaps a checkbox in the word-count popup that could toggle between counting or not counting the contents of notes would be a useful addition. not requested for the first time. all patches are welcome :) pavel
Word Count
Hello all, I'm working on a long document which has a word limit. My current draft has many notes and grayed out text as the text develops. Unfortunately the contents of my notes and grayed out text are included in the word count, so I cannot get a good indication of how long the draft actually is. Is there any way around this? (short of going through the document and deleting the notes? In the future perhaps a checkbox in the word-count popup that could toggle between counting or not counting the contents of notes would be a useful addition. Thanks, B. Bogart
Re: Word Count
Is there any way around this? (short of going through the document and deleting the notes? in case of lyx comments export to text file and count the words by eg wc -w file.txt . this wont help you with greyed out text though. In the future perhaps a checkbox in the word-count popup that could toggle between counting or not counting the contents of notes would be a useful addition. not requested for the first time. all patches are welcome :) pavel
Word Count
Hello all, I'm working on a long document which has a word limit. My current draft has many notes and grayed out text as the text develops. Unfortunately the contents of my notes and grayed out text are included in the word count, so I cannot get a good indication of how long the draft actually is. Is there any way around this? (short of going through the document and deleting the notes? In the future perhaps a checkbox in the word-count popup that could toggle between counting or not counting the contents of notes would be a useful addition. Thanks, B. Bogart
Re: Word Count
> Is there any way around this? (short of going through the document and > deleting the notes? in case of lyx comments export to text file and count the words by eg wc -w file.txt . this wont help you with greyed out text though. > In the future perhaps a checkbox in the word-count popup that could > toggle between counting or not counting the contents of notes would be a > useful addition. not requested for the first time. all patches are welcome :) pavel
Word count without spellcheck -- here's how
Use this shellscript: lyx --export text $1.lyx wc $1.txt HTH SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Word count without spellcheck -- here's how
Use this shellscript: lyx --export text $1.lyx wc $1.txt HTH SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Word count without spellcheck -- here's how
Use this shellscript: lyx --export text $1.lyx wc $1.txt HTH SteveT Steve Litt Author: * Universal Troubleshooting Process courseware * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist Webmaster * Troubleshooters.Com * http://www.troubleshooters.com
Re: word count
Thanks for all your responses, though I still think this functionality is still very primitive. Sometimes you do not want to spell check the document, or you just want to count the words in a paragraph/abstract. I would really like to see this feature in forthcoming versions of lyx if possible. Anyway, thanks for your prompt responses. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: Rob Davies [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:55 PM Subject: Re: word count On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Spellcheck the article and it will reveal a good guess at the conclusion of said process. -- Rob Davies [EMAIL PROTECTED] 'To converse is one strategy that separates us, from the Apes.'
Re: word count
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: word count
Andre Poenitz wrote: On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' I don't think he meant primitive as in easy to perform. If I understood correctly, he meant primitive as in a core operation that many people will want to perform on their document. That is as opposed to replacing the word 'picnic' with the german for 'sandwich' and highlighting it in blue, for example. That might well be described as non-primitive :) Cheers, Raphael
Re: word count
Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: Raphael Clifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:39 AM Subject: Re: word count Andre Poenitz wrote: On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' I don't think he meant primitive as in easy to perform. If I understood correctly, he meant primitive as in a core operation that many people will want to perform on their document. That is as opposed to replacing the word 'picnic' with the german for 'sandwich' and highlighting it in blue, for example. That might well be described as non-primitive :) Cheers, Raphael
Re: word count
Alberto Sanchez wrote: Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. If someone were to write a word count feature, something that would make it really nice would be the ability to count words in only one part of a document. Very useful for those which section to I need to cut in order to fit in the maximum wordcount? moments! Robin -- A strategy is still being formulated. Robin Turner IDMYO Bilkent Univeritesi Ankara 06533 Turkey www.bilkent.edu.tr/~robin
Re: word count
Thanks for all your responses, though I still think this functionality is still very primitive. Sometimes you do not want to spell check the document, or you just want to count the words in a paragraph/abstract. I would really like to see this feature in forthcoming versions of lyx if possible. Anyway, thanks for your prompt responses. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: Rob Davies [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:55 PM Subject: Re: word count On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Spellcheck the article and it will reveal a good guess at the conclusion of said process. -- Rob Davies [EMAIL PROTECTED] 'To converse is one strategy that separates us, from the Apes.'
Re: word count
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: word count
Andre Poenitz wrote: On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' I don't think he meant primitive as in easy to perform. If I understood correctly, he meant primitive as in a core operation that many people will want to perform on their document. That is as opposed to replacing the word 'picnic' with the german for 'sandwich' and highlighting it in blue, for example. That might well be described as non-primitive :) Cheers, Raphael
Re: word count
Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: Raphael Clifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:39 AM Subject: Re: word count Andre Poenitz wrote: On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong. Andre' I don't think he meant primitive as in easy to perform. If I understood correctly, he meant primitive as in a core operation that many people will want to perform on their document. That is as opposed to replacing the word 'picnic' with the german for 'sandwich' and highlighting it in blue, for example. That might well be described as non-primitive :) Cheers, Raphael
Re: word count
Alberto Sanchez wrote: Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. If someone were to write a word count feature, something that would make it really nice would be the ability to count words in only one part of a document. Very useful for those which section to I need to cut in order to fit in the maximum wordcount? moments! Robin -- A strategy is still being formulated. Robin Turner IDMYO Bilkent Univeritesi Ankara 06533 Turkey www.bilkent.edu.tr/~robin
Re: word count
Thanks for all your responses, though I still think this functionality is still very primitive. Sometimes you do not want to spell check the document, or you just want to count the words in a paragraph/abstract. I would really like to see this feature in forthcoming versions of lyx if possible. Anyway, thanks for your prompt responses. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: "Rob Davies" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 7:55 PM Subject: Re: word count > On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: > > Hi! > > > > Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. > > Spellcheck the article and it will reveal a good guess at the conclusion > of said process. > -- > Rob Davies > [EMAIL PROTECTED] > > 'To converse is one strategy that separates us, from the Apes.' >
Re: word count
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: > Thanks for all your responses, though I still think this functionality is > still very primitive. So how many words are in "If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong." Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: word count
Andre Poenitz wrote: On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: Thanks for all your responses, though I still think this functionality is still very primitive. So how many words are in "If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ you're wrong." Andre' I don't think he meant "primitive" as in "easy to perform". If I understood correctly, he meant "primitive" as in "a core operation that many people will want to perform on their document". That is as opposed to "replacing the word 'picnic' with the german for 'sandwich' and highlighting it in blue", for example. That might well be described as "non-primitive" :) Cheers, Raphael
Re: word count
Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203 - Original Message - From: "Raphael Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 10:39 AM Subject: Re: word count > Andre Poenitz wrote: > > >On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote: > > > > > >>Thanks for all your responses, though I still think this functionality is > >>still very primitive. > >> > >> > > > >So how many words are in > > > > "If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$ > > you're wrong." > > > >Andre' > > > > > > > I don't think he meant "primitive" as in "easy to perform". If I > understood correctly, he meant "primitive" as in "a core operation that > many people will want to perform on their document". That is as opposed > to "replacing the word 'picnic' with the german for 'sandwich' and > highlighting it in blue", for example. That might well be described as > "non-primitive" :) > > Cheers, > Raphael > >
Re: word count
Alberto Sanchez wrote: Yep...that is exactly what I meant. As Andre pointed out, the operation of couting words, from a latex point of view, is not easy, but I think this feature is something many people have to do when writting articles, theses or other documents. If someone were to write a word count feature, something that would make it really nice would be the ability to count words in only one part of a document. Very useful for those "which section to I need to cut in order to fit in the maximum wordcount?" moments! Robin -- "A strategy is still being formulated." Robin Turner IDMYO Bilkent Univeritesi Ankara 06533 Turkey www.bilkent.edu.tr/~robin
word count
Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Regards Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203
Re: word count
On Mon, 7 Jul 2003, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. See FAQ, here's an online version: http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 7 Jul 2003, Christian Ridderström wrote: On Mon, 7 Jul 2003, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. See FAQ, here's an online version: Typo (I'm on Windows/Pine here, can't paste properly). The correct URI should be: http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51 sigh. /Christian PS. Thanks Raphael for pointing this out. DS -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Spellcheck the article and it will reveal a good guess at the conclusion of said process. -- Rob Davies [EMAIL PROTECTED] 'To converse is one strategy that separates us, from the Apes.'
word count
Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Regards Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203
Re: word count
On Mon, 7 Jul 2003, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. See FAQ, here's an online version: http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 7 Jul 2003, Christian Ridderström wrote: On Mon, 7 Jul 2003, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. See FAQ, here's an online version: Typo (I'm on Windows/Pine here, can't paste properly). The correct URI should be: http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51 sigh. /Christian PS. Thanks Raphael for pointing this out. DS -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Spellcheck the article and it will reveal a good guess at the conclusion of said process. -- Rob Davies [EMAIL PROTECTED] 'To converse is one strategy that separates us, from the Apes.'
word count
Hi! Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, though it might be a good add-on, and probably not very difficult to implement...I hope. Regards Alberto --- Alberto Sánchez Industrial Control Centre 50 George Street - Level 7 Glasgow, G1 1QE Scotland - UK Tel: +44 (141) 5484202 Fax: +44 (141) 5484203
Re: word count
On Mon, 7 Jul 2003, Alberto Sanchez wrote: > Hi! > > Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, > though it might be a good add-on, and probably not very difficult to implement...I > hope. See FAQ, here's an online version: http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 7 Jul 2003, Christian Ridderström wrote: > On Mon, 7 Jul 2003, Alberto Sanchez wrote: > > > Hi! > > > > Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, > > though it might be a good add-on, and probably not very difficult to implement...I > > hope. > > See FAQ, here's an online > version: Typo (I'm on Windows/Pine here, can't paste properly). The correct URI should be: http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51 sigh. /Christian PS. Thanks Raphael for pointing this out. DS -- Christian Ridderström http://www.md.kth.se/~chr
Re: word count
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote: > Hi! > > Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, > though it might be a good add-on, and probably not very difficult to implement...I > hope. Spellcheck the article and it will reveal a good guess at the conclusion of said process. -- Rob Davies [EMAIL PROTECTED] 'To converse is one strategy that separates us, from the Apes.'
Word count
Hi, all is there a way to count words on lyx? thanks Jose
Re: Word count
On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Word count
Christian == Christian Ridderström [EMAIL PROTECTED] writes: Christian On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose Christian See the FAQ, Christian http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 I do not know how relevant and/or useful it is, but the following package appeared recently on CTAN. JMarc --- From: Jim Hefferon [EMAIL PROTECTED] Subject: New CTAN material: latexcount To: [EMAIL PROTECTED] X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago A new package has been installed at the tug.ctan.org node of CTAN and should make its way to your favorite mirror soon. Thanks for the upload, Jim Hefferon [EMAIL PROTECTED] == The following information was provided by our fellow contributor. Name of contribution: latexcount Author's name: P.D. Magnus Location on CTAN: support/misc Summary description: Perl script generates word count of LaTeX documents License type: lppl Announcement text given by the contribution's author: - - -- The latexcount script gives a reasonably accurate count of the number of words in the main text of an article, the number of words in footnotes, and the number of words total. The list of tags that don't get counted can be added to as needed. - - --
Re: Word count
Hi Christian, thank you very much. Jose Christian Ridderström wrote: On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian
Re: Word count
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: Hi, all is there a way to count words on lyx? Spellcheck. Or Ascii output followed by wc on the file (if it's large)? Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: Word count
Kenward Vaughan [EMAIL PROTECTED] writes: On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: Hi, all is there a way to count words on lyx? Click File - Export - Custom - Ascii, then supply the command name `wc | xmessage -file -' and you'll get a popup with the line, word, and character counts. -- Ronald Florence www.18james.com
Word count
Hi, all is there a way to count words on lyx? thanks Jose
Re: Word count
On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Word count
Christian == Christian Ridderström [EMAIL PROTECTED] writes: Christian On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose Christian See the FAQ, Christian http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 I do not know how relevant and/or useful it is, but the following package appeared recently on CTAN. JMarc --- From: Jim Hefferon [EMAIL PROTECTED] Subject: New CTAN material: latexcount To: [EMAIL PROTECTED] X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago A new package has been installed at the tug.ctan.org node of CTAN and should make its way to your favorite mirror soon. Thanks for the upload, Jim Hefferon [EMAIL PROTECTED] == The following information was provided by our fellow contributor. Name of contribution: latexcount Author's name: P.D. Magnus Location on CTAN: support/misc Summary description: Perl script generates word count of LaTeX documents License type: lppl Announcement text given by the contribution's author: - - -- The latexcount script gives a reasonably accurate count of the number of words in the main text of an article, the number of words in footnotes, and the number of words total. The list of tags that don't get counted can be added to as needed. - - --
Re: Word count
Hi Christian, thank you very much. Jose Christian Ridderström wrote: On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian
Re: Word count
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: Hi, all is there a way to count words on lyx? Spellcheck. Or Ascii output followed by wc on the file (if it's large)? Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: Word count
Kenward Vaughan [EMAIL PROTECTED] writes: On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: Hi, all is there a way to count words on lyx? Click File - Export - Custom - Ascii, then supply the command name `wc | xmessage -file -' and you'll get a popup with the line, word, and character counts. -- Ronald Florence www.18james.com
Word count
Hi, all is there a way to count words on lyx? thanks Jose
Re: Word count
On Mon, 10 Mar 2003, Jose wrote: > Hi, all is there a way to count words on lyx? > > thanks > > Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Word count
>>>>> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes: Christian> On Mon, 10 Mar 2003, Jose wrote: >> Hi, all is there a way to count words on lyx? >> >> thanks >> >> Jose Christian> See the FAQ, Christian> http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 I do not know how relevant and/or useful it is, but the following package appeared recently on CTAN. JMarc --- From: Jim Hefferon <[EMAIL PROTECTED]> Subject: New CTAN material: latexcount To: [EMAIL PROTECTED] X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago A new package has been installed at the tug.ctan.org node of CTAN and should make its way to your favorite mirror soon. Thanks for the upload, Jim Hefferon [EMAIL PROTECTED] == The following information was provided by our fellow contributor. Name of contribution: latexcount Author's name: P.D. Magnus Location on CTAN: support/misc Summary description: Perl script generates word count of LaTeX documents License type: lppl Announcement text given by the contribution's author: - - -- The latexcount script gives a reasonably accurate count of the number of words in the main text of an article, the number of words in footnotes, and the number of words total. The list of tags that don't get counted can be added to as needed. - - --
Re: Word count
Hi Christian, thank you very much. Jose Christian Ridderström wrote: On Mon, 10 Mar 2003, Jose wrote: Hi, all is there a way to count words on lyx? thanks Jose See the FAQ, http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51 /Christian
Re: Word count
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: > Hi, all is there a way to count words on lyx? Spellcheck. Or Ascii output followed by wc on the file (if it's large)? Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: Word count
Kenward Vaughan <[EMAIL PROTECTED]> writes: > On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote: > > Hi, all is there a way to count words on lyx? Click File -> Export -> Custom -> Ascii, then supply the command name `wc | xmessage -file -' and you'll get a popup with the line, word, and character counts. -- Ronald Florence www.18james.com
Re: Word count ;-)
On Tuesday 14 May 2002 09:52, Martin Vermeer wrote: Read the comments here about word count in OpenOffice:: http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT -SWtbovrmode=1#talkback_area We have a word count function too, somewhat hidden: custom export to ASCII defining the command as wc -w. The spellcheck also works as a word count. Should this be provided more explicitly? Yes, if only to save time and prove to the skeptics that LyX can count! Robin -- Bravo Epictetus! - Epictetus Robin Turner IDMYO, Bilkent Universitesi Ankara 06533 Turkey http://www.bilkent.edu.tr/~robin
Word count ;-)
Read the comments here about word count in OpenOffice:: http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT-SWtbovrmode=1#talkback_area We have a word count function too, somewhat hidden: custom export to ASCII defining the command as wc -w. Should this be provided more explicitly? And how hard is it to export the select buffer instead of the whole document? Martin msg19262/pgp0.pgp Description: PGP signature
Re: Word count ;-)
On Tuesday 14 May 2002 09:52, Martin Vermeer wrote: Read the comments here about word count in OpenOffice:: http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT -SWtbovrmode=1#talkback_area We have a word count function too, somewhat hidden: custom export to ASCII defining the command as wc -w. The spellcheck also works as a word count. Should this be provided more explicitly? Yes, if only to save time and prove to the skeptics that LyX can count! Robin -- Bravo Epictetus! - Epictetus Robin Turner IDMYO, Bilkent Universitesi Ankara 06533 Turkey http://www.bilkent.edu.tr/~robin
Word count ;-)
Read the comments here about word count in OpenOffice:: http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT-SWtbovrmode=1#talkback_area We have a word count function too, somewhat hidden: custom export to ASCII defining the command as wc -w. Should this be provided more explicitly? And how hard is it to export the select buffer instead of the whole document? Martin msg19262/pgp0.pgp Description: PGP signature
Re: Word count ;-)
On Tuesday 14 May 2002 09:52, Martin Vermeer wrote: > Read the comments here about word count in OpenOffice:: > > http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT >-SW=1#talkback_area > > We have a word count function too, somewhat hidden: > custom export to ASCII defining the command as wc -w. The spellcheck also works as a word count. > Should this be provided more explicitly? Yes, if only to save time and prove to the skeptics that LyX can count! Robin -- "Bravo Epictetus!" - Epictetus Robin Turner IDMYO, Bilkent Universitesi Ankara 06533 Turkey http://www.bilkent.edu.tr/~robin
Word count ;-)
Read the comments here about word count in OpenOffice:: http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT-SW=1#talkback_area We have a word count function too, somewhat hidden: custom export to ASCII defining the command as wc -w. Should this be provided more explicitly? And how hard is it to export the select buffer instead of the whole document? Martin msg19262/pgp0.pgp Description: PGP signature
RE: word count
Kayvan A Sylvan wrote: On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Of course. It's detex, not deLyX. Proper operation would be to export to LaTeX and then run detex. Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then use wc on the resulting file? Joe
RE: word count
On Mon, 6 May 2002, Reuter, Joseph wrote: Kayvan A Sylvan wrote: Of course. It's detex, not deLyX. Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then use wc on the resulting file? OK: This would be perfect if you could pipe the output from lyx to wc. I prefer pipes to files for operations like this and I don't find a flag to force output to standard output. So, you have to do something like the following. path, if necessarylyx --export text file.lyx wc flags file.txt rm file.txt If, like me, you have aliased lyx for geometry and to force share a shared color map, you must provide the entire path. The grep approach (which requires some knowledge of the lyx file format) is much faster. However, both are fast and probably fast enough. (The difference is between fractions of a second a couple of seconds on an alpha LX164. YMMV) -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
RE: word count
Kayvan A Sylvan wrote: On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Of course. It's detex, not deLyX. Proper operation would be to export to LaTeX and then run detex. Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then use wc on the resulting file? Joe
RE: word count
On Mon, 6 May 2002, Reuter, Joseph wrote: Kayvan A Sylvan wrote: Of course. It's detex, not deLyX. Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then use wc on the resulting file? OK: This would be perfect if you could pipe the output from lyx to wc. I prefer pipes to files for operations like this and I don't find a flag to force output to standard output. So, you have to do something like the following. path, if necessarylyx --export text file.lyx wc flags file.txt rm file.txt If, like me, you have aliased lyx for geometry and to force share a shared color map, you must provide the entire path. The grep approach (which requires some knowledge of the lyx file format) is much faster. However, both are fast and probably fast enough. (The difference is between fractions of a second a couple of seconds on an alpha LX164. YMMV) -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
RE: word count
Kayvan A Sylvan wrote: > > On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: > > > ftp://sunsite.unc.edu/pub/Linux/apps/tex/ > > ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README > > > > (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ > > > > However, this does not do what you want. (My interest was > piqued by Matej > > Cepel's response.) The program strips latex commands and all the '\' > > characters, but does not stip meta information, as required for an > > accurate word count. (Maybe there a command line options > that get that job > > done and maybe it does the right thing with a pure latex > file. But it does > > not do the right thing with a lyx file.) > > Of course. It's detex, not deLyX. > > Proper operation would be to export to LaTeX and then run detex. > Lyx 1.1.6 has the operation File->export->ASCII. Why not do that and then use wc on the resulting file? Joe
RE: word count
On Mon, 6 May 2002, Reuter, Joseph wrote: >Kayvan A Sylvan wrote: >> >> Of course. It's detex, not deLyX. >Lyx 1.1.6 has the operation File->export->ASCII. Why not do that and then >use wc on the resulting file? OK: This would be perfect if you could pipe the output from lyx to wc. I prefer pipes to files for operations like this and I don't find a flag to force output to standard output. So, you have to do something like the following.lyx --export text file.lyx wc file.txt rm file.txt If, like me, you have aliased lyx for geometry and to force share a shared color map, you must provide the entire path. The grep approach (which requires some knowledge of the lyx file format) is much faster. However, both are fast and probably fast enough. (The difference is between fractions of a second a couple of seconds on an alpha LX164. YMMV) -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
word count
Hi, How can I count the total number of words (including the words in figure captions) in a lyx document ? Rgds, Gayan
Re: word count
On Fri, 3 May 2002, R.G.N. Meegama wrote: How can I count the total number of words (including the words in figure captions) in a lyx document ? The spellchecker tells the word count after it's finished. But I don't know if it includes captions etc., try it.
Re: word count
On Fri, 3 May 2002, Tuukka Toivonen wrote: On Fri, 3 May 2002, R.G.N. Meegama wrote: How can I count the total number of words (including the words in figure captions) in a lyx document ? The spellchecker tells the word count after it's finished. But I don't know if it includes captions etc., try it. If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Matej
Re: word count
On Friday 03 May 2002 09:46 am, Matej Cepl wrote: On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? Steve -- _ Steve Litt Author: * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist http://www.troubleshooters.com/bookstore/ Troubleshooters.Com Webmaster (Legal Disclaimer) Follow these suggestions at your own risk. -
Re: word count
On 3 May, Steve Litt wrote: (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? go to http://www.ctan.org and search for detex. You will get a tarball, which you can then compile (it is really very simple). Matej -- Matej Cepl, [EMAIL PROTECTED] 138 Highland Ave. #10 Somerville, Ma 02143 (617) 623-1488
Re: word count
On Fri, 3 May 2002, Steve Litt wrote: On Friday 03 May 2002 09:46 am, Matej Cepl wrote: On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? Try a latex repository. Google claims 2700 hits on detex+linux. ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Here is the top of the output from a large document I am working on. Clearly useless for your purpose. #LyX 1.1 created this file. For more info see http://www.lyx.org/ 218 book _preamble authordate1-4 1.0 _preamble english latin1 default default default single Default a4 _geometry 0 _amsmath 0 portrait 2 2 -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Of course. It's detex, not deLyX. Proper operation would be to export to LaTeX and then run detex. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92) msg19075/pgp0.pgp Description: PGP signature
word count
Hi, How can I count the total number of words (including the words in figure captions) in a lyx document ? Rgds, Gayan
Re: word count
On Fri, 3 May 2002, R.G.N. Meegama wrote: How can I count the total number of words (including the words in figure captions) in a lyx document ? The spellchecker tells the word count after it's finished. But I don't know if it includes captions etc., try it.