Re: Help with template
Thanks Richard. Its coming out properly. I appreciate your help Great weekend Shylock Muyengwa | PhD Candidate & Managing Editor [image: Description: Description: http://t1.gstatic.com/images?q=tbn:ANd9GcRXAkOYtgovks1LZfC8VrfKeHNxFQKmzf7__-TvJlTLMhjPNR3I] Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160 Skype shylockmuyengwa P Before printing this e-mail think if it is necessary. On Fri, May 4, 2012 at 8:12 PM, Richard Heck wrote: > > On Fri, May 4, 2012 at 4:11 PM, Richard Heck wrote: >> >>> On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: >>> >>> Dear Lyx Users >>> >>> I created a thesis template using a .cls file provided by our >>> University. I managed to add the new document class to Lyx. I typed up a >>> short example to illustrate the problem I am facing. If I type text and >>> insert a TOC, the TOC displays information appropriately. However, when I >>> add text above the above the TOC, it then displays the first page of the >>> thesis and the abstract (but asks me to define name, title, date)- See >>> attachment (with-text-above-toc). >>> >>> What's going on is this. If there's nothing before the TOC, > then \maketitle is not issued, so LaTeX does not try to produce a > titlepage. If there is, then it does, and then you see the errors you do, > because you haven't defined certain of the things you need to print the > title page properly. > > If you search for "Please define" in the cls file, you'll find the > commands you need. You can put these in the preamble, e.g.: > \SetFullName{Shylock Muyengwa} > \SetThesisType{Dissertation}{ > Etc. > > The "LyX way" to do it would be to add these to the layout file. Things > like this will work: > > Style FullName > LaTeXType command > LaTeXName SetFullName > LabelType static > LabelString "Full Name:" > LabelSep x > Margin First_Dynamic > InTitle 1 > Category FrontMatter > End > > Style ThesisType > CopyStyle FullName > LaTeXName SetThesisType > LabelString "ThesisType:" > End > > and so forth for the other commands you need. > > Richard > > <>
Re: Help with template
On Fri, May 4, 2012 at 4:11 PM, Richard Heck mailto:rgh...@comcast.net>> wrote: On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: Dear Lyx Users I created a thesis template using a .cls file provided by our University. I managed to add the new document class to Lyx. I typed up a short example to illustrate the problem I am facing. If I type text and insert a TOC, the TOC displays information appropriately. However, when I add text above the above the TOC, it then displays the first page of the thesis and the abstract (but asks me to define name, title, date)- See attachment (with-text-above-toc). What's going on is this. If there's nothing before the TOC, then \maketitle is not issued, so LaTeX does not try to produce a titlepage. If there is, then it does, and then you see the errors you do, because you haven't defined certain of the things you need to print the title page properly. If you search for "Please define" in the cls file, you'll find the commands you need. You can put these in the preamble, e.g.: \SetFullName{Shylock Muyengwa} \SetThesisType{Dissertation}{ Etc. The "LyX way" to do it would be to add these to the layout file. Things like this will work: Style FullName LaTeXType command LaTeXName SetFullName LabelType static LabelString "Full Name:" LabelSep x Margin First_Dynamic InTitle 1 Category FrontMatter End Style ThesisType CopyStyle FullName LaTeXName SetThesisType LabelString "ThesisType:" End and so forth for the other commands you need. Richard
Re: Help with template
That is OK Thanks Shylock Muyengwa | PhD Candidate & Managing Editor [image: Description: Description: http://t1.gstatic.com/images?q=tbn:ANd9GcRXAkOYtgovks1LZfC8VrfKeHNxFQKmzf7__-TvJlTLMhjPNR3I] Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160 Skype shylockmuyengwa P Before printing this e-mail think if it is necessary. On Fri, May 4, 2012 at 5:41 PM, Richard Heck wrote: > On 05/04/2012 04:25 PM, Shylock Muyengwa wrote: > > Dear Richard > > Find attached > >I can figure this out, but it will take a bit. > > rh > > >Shylock Muyengwa | PhD Candidate & Managing Editor > [image: Description: Description: > http://t1.gstatic.com/images?q=tbn:ANd9GcRXAkOYtgovks1LZfC8VrfKeHNxFQKmzf7__-TvJlTLMhjPNR3I] > Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google > 352.575.0160 > Skype shylockmuyengwa > P Before printing this e-mail think if it is necessary. > > > > > On Fri, May 4, 2012 at 4:11 PM, Richard Heck wrote: > >> On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: >> >> Dear Lyx Users >> >> I created a thesis template using a .cls file provided by our >> University. I managed to add the new document class to Lyx. I typed up a >> short example to illustrate the problem I am facing. If I type text and >> insert a TOC, the TOC displays information appropriately. However, when I >> add text above the above the TOC, it then displays the first page of the >> thesis and the abstract (but asks me to define name, title, date)- See >> attachment (with-text-above-toc). >> >> This is probably an issue with the layout file. Can you also attach >> that? >> >> Richard >> >> > > <><>
Re: Help with template
On 05/04/2012 04:25 PM, Shylock Muyengwa wrote: Dear Richard Find attached I can figure this out, but it will take a bit. rh Shylock Muyengwa | PhD Candidate & Managing Editor Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160 Skype shylockmuyengwa P Before printing this e-mail think if it is necessary. On Fri, May 4, 2012 at 4:11 PM, Richard Heckwrote: On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: Dear Lyx Users I created a thesis template using a .cls file provided by our University. I managed to add the new document class to Lyx. I typed up a short example to illustrate the problem I am facing. If I type text and insert a TOC, the TOC displays information appropriately. However, when I add text above the above the TOC, it then displays the first page of the thesis and the abstract (but asks me to define name, title, date)- See attachment (with-text-above-toc). This is probably an issue with the layout file. Can you also attach that? Richard
Re: Help with template
Dear Richard Find attached Shylock Muyengwa | PhD Candidate & Managing Editor [image: Description: Description: http://t1.gstatic.com/images?q=tbn:ANd9GcRXAkOYtgovks1LZfC8VrfKeHNxFQKmzf7__-TvJlTLMhjPNR3I] Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160 Skype shylockmuyengwa P Before printing this e-mail think if it is necessary. On Fri, May 4, 2012 at 4:11 PM, Richard Heck wrote: > On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: > > Dear Lyx Users > > I created a thesis template using a .cls file provided by our > University. I managed to add the new document class to Lyx. I typed up a > short example to illustrate the problem I am facing. If I type text and > insert a TOC, the TOC displays information appropriately. However, when I > add text above the above the TOC, it then displays the first page of the > thesis and the abstract (but asks me to define name, title, date)- See > attachment (with-text-above-toc). > > This is probably an issue with the layout file. Can you also attach > that? > > Richard > > <> ufthesis.layout Description: Binary data
Re: Help with template
On 05/04/2012 03:38 PM, Shylock Muyengwa wrote: Dear Lyx Users I created a thesis template using a .cls file provided by our University. I managed to add the new document class to Lyx. I typed up a short example to illustrate the problem I am facing. If I type text and insert a TOC, the TOC displays information appropriately. However, when I add text above the above the TOC, it then displays the first page of the thesis and the abstract (but asks me to define name, title, date)- See attachment (with-text-above-toc). This is probably an issue with the layout file. Can you also attach that? Richard
Re: Stop Lyx compiling
On Fri, 04 May 2012 13:49:23 +0200 Vincent van Ravesteijn wrote: > Op 4-5-2012 13:42, Mike Bonhoff schreef: > > Hi, Lyx-Users, > > > > is there a possibility to stop Lyx when it is compiling. Today I > > had several times the problem that I wanted to make a picture with > > tikz and made some mistake in the Lyx-Code (forgot the semicolon in > > the end of a command). Unfortunately Lyx doesn't return a message > > that there is a mistake and is compiling forever. I can not even > > stop the program after that. > > > > As I remember Kile was also not able to stop the compiling of such > > a "program", but there is a button to stop the compiling. > > > > Can I stop Lyx when it is compiling? I didn't find anything inside > > the tutorials about that theme. And google seems not to find > > anything, too. > > > > Thanks! > > > > Mike > It will stop after 30 minutes. Alternatively you can kill the > underlying processes (latex or something else). > What kind of monstrous book would compile for 30 minutes? My 300 page, 108K word "Key to Everyday Excellence" takes 10 seconds to pdflatex compile, 30 seconds to ps2pdf compile. I'm using Ubuntu 11.04 with the following hardware: slitt@mydesk:~$ grep -A 3 "^model name" /proc/cpuinfo model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz stepping: 6 cpu MHz : 1596.000 cache size : 3072 KB model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz stepping: 6 cpu MHz : 2527.000 cache size : 3072 KB slitt@mydesk:~$ head -n2 /proc/meminfo MemTotal:4047324 kB MemFree: 101804 kB slitt@mydesk:~$ If I had a book that took 30 minutes to compile I would either: 1) Upgrade to fast multiprocessors and get 32GB of RAM, or 2) Split the book into multiple child documents. 3) Since the book's too long to read, split it into several books and sell each one. The computer in #1 is easily available for under a thousand now if you build it from Newegg or CompUSA stock components. SteveT
Re: Layout for changing font within a paragraph?
On 05/04/2012 01:46 PM, James Sutherland wrote: FYI, I found a solution using "InsetLayout" InsetLayout "Flex:Revision" LyXType charstyle MultiPar true LatexName textcolor LatexParam {red} LatexType Command Font Color Red EndFont End This forces you to use "Text Style" to modify the text, but works fine. That's the difference between Layout and InsetLayout: The former is paragraph level; the latter is word level. There's a proposal to put some kind of combo box on the toolbar to allow easier access to these things. By the way, you don't need the quotes around "Flex:Revision". Richard
Re: Layout for changing font within a paragraph?
On 05/04/2012 03:37 PM, Alex Vergara Gil wrote: El 04/05/2012 11:06 a.m., James Sutherland escribió: LyX users, I am trying to create a "local layout" that allows me to change the font. This is what I have so far: Format 35 Style Revision CopyStyle Standard LatexName textcolor{red} LatexType Command Font Color Red EndFont End The problem is that this applies to an entire paragraph. How do I apply this to only a few words/sentences within a paragraph? Thanks, James I don't see the point for doing this. Is it not easier to select the text you want to change, then press the style button (the "ab" one) and finally choose whatever you want? I mean I can change font family, color , style etc What if you do that fifty-five times, and then decide you wanted all fifty of those things to be styled some other way? Some of us would say that the whole point of a markup-based editor like LyX was to allow you to style things semantically, and to adjust presentation independently. Richard
Re: Layout for changing font within a paragraph?
El 04/05/2012 11:06 a.m., James Sutherland escribió: LyX users, I am trying to create a "local layout" that allows me to change the font. This is what I have so far: Format 35 Style Revision CopyStyle Standard LatexName textcolor{red} LatexType Command Font Color Red EndFont End The problem is that this applies to an entire paragraph. How do I apply this to only a few words/sentences within a paragraph? Thanks, James I don't see the point for doing this. Is it not easier to select the text you want to change, then press the style button (the "ab" one) and finally choose whatever you want? I mean I can change font family, color , style etc Alex
Re: Layout for changing font within a paragraph?
On Fri, May 4, 2012 at 11:06 AM, James Sutherland wrote: > LyX users, > > I am trying to create a "local layout" that allows me to change the font. > This is what I have so far: > >> Format 35 >> >> Style Revision >> >> CopyStyle Standard >> >> LatexName textcolor{red} >> >> LatexType Command >> >> Font >> >> Color Red >> >> EndFont >> >> End >> > The problem is that this applies to an entire paragraph. How do I apply > this to only a few words/sentences within a paragraph? > > Thanks, > > James > FYI, I found a solution using "InsetLayout" > InsetLayout "Flex:Revision" > > LyXType charstyle > > MultiPar true > > LatexName textcolor > > LatexParam {red} > > LatexType Command > > Font > > Color Red > > EndFont > > End > This forces you to use "Text Style" to modify the text, but works fine.
Layout for changing font within a paragraph?
LyX users, I am trying to create a "local layout" that allows me to change the font. This is what I have so far: > Format 35 > > Style Revision > > CopyStyle Standard > > LatexName textcolor{red} > > LatexType Command > > Font > > Color Red > > EndFont > > End > The problem is that this applies to an entire paragraph. How do I apply this to only a few words/sentences within a paragraph? Thanks, James
Re: play sound when (lengthy) compilation finishes?
Op 3-5-2012 16:05, Liviu Andronic schreef: I would like to have a sound notification when the compilation finishes. Can LyX do that? Would others find such a feature useful so as to file an enhancement request? I think I can easily make a time counter, which you can press and which shows the currently running process(es) and which has some options like "When finished: [play sound/notify...etc]". Vincent
Re: Stop Lyx compiling
Op 4-5-2012 13:42, Mike Bonhoff schreef: Hi, Lyx-Users, is there a possibility to stop Lyx when it is compiling. Today I had several times the problem that I wanted to make a picture with tikz and made some mistake in the Lyx-Code (forgot the semicolon in the end of a command). Unfortunately Lyx doesn't return a message that there is a mistake and is compiling forever. I can not even stop the program after that. As I remember Kile was also not able to stop the compiling of such a "program", but there is a button to stop the compiling. Can I stop Lyx when it is compiling? I didn't find anything inside the tutorials about that theme. And google seems not to find anything, too. Thanks! Mike It will stop after 30 minutes. Alternatively you can kill the underlying processes (latex or something else). Vincent
Stop Lyx compiling
Hi, Lyx-Users, is there a possibility to stop Lyx when it is compiling. Today I had several times the problem that I wanted to make a picture with tikz and made some mistake in the Lyx-Code (forgot the semicolon in the end of a command). Unfortunately Lyx doesn't return a message that there is a mistake and is compiling forever. I can not even stop the program after that. As I remember Kile was also not able to stop the compiling of such a "program", but there is a button to stop the compiling. Can I stop Lyx when it is compiling? I didn't find anything inside the tutorials about that theme. And google seems not to find anything, too. Thanks! Mike
Re: play sound when (lengthy) compilation finishes?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/05/12 18:14, Yihui Xie wrote: > Or add a last code chunk in Sweave: > > <>= alarm() # equivalent to cat('\a') @ > > or use the twitteR pacakge to send yourself a twitter message when it is > done... > > Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: > http://yihui.name > Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA > I think these are all very nice ideas, but the question is: how difficult would it be to include a notifier in LyX to notify the user when the update is finished. In my opinion, this would be a useful addition and shouldn't be to difficult to implement. In the meantime, you could use a scrip instead the default viewer which a) plays a sound (or use a music ploayer to play your favourite tune?) b) launches the viewer you want Cheers, Rainer > > On Thu, May 3, 2012 at 9:46 AM, Manolo Martínez > wrote: >> you can always use LyX from the command line, something like >> >> lyx yourfile.lyx && echo $'\a' >> >> No? >> >> On 05/03/12 at 04:31pm, Liviu Andronic wrote: >>> On Thu, May 3, 2012 at 4:24 PM, Richard Heck wrote: Popping up some kind of notice, besides what you get in the status bar, seems reasonable. >>> Unless you're using Update, the 'notice pop-up' is the PDF viewer itself >>> being opened >>> and/or brought up and focused. So I guess that we have now is just fine >>> when the user stays >>> glued to the computer. >>> >>> In my case I'm launching some heavy computations in R, and would thus like >>> to go do >>> something else until the document compiles. Unless there is some audio >>> notification, I can >>> only rely on the noise made by the laptop fans, not a terribly reliable >>> indicator. >>> >>> Liviu >> >> -- - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+jl9IACgkQoYgNqgF2egp+JwCfYPp4AduLUyv2k3/PMFXQl+cj N7UAniUQJEfCz87oNrhNj0abvPl5Evi9 =tIgE -END PGP SIGNATURE-
Re: Scrolling Slowness [Re: keyboard Scrolling Anomaly]
On 4 May 2012 14:35, Rashif Ray Rahman wrote: > On 4 May 2012 14:18, Rashif Ray Rahman wrote: >> Hey guys >> >> I wasn't subscribed when I sent the first e-mail so this reply might >> mess up a few things (using GMail so can't edit headers). And since >> then there have been a number of replies. >> >> Anyway I should've mentioned that I'm on Arch Linux and Intel graphics >> (GM45 Express Chipset; probably GMA 4500MHD gpu). >> >> The good news is all of a sudden I do not see the "stuck" behaviour. >> It does scroll, but awfully slowly. Both up down and sideways (I like >> to read while holding down the right arrow key). There have been some >> Intel driver and Mesa updates in the recent past, so it is possible >> (though with a great level of uncertainty) they did something (good). >> >> So the bad news is, well, the scrolling is slow. The raster graphics >> system switch did not appear to help in my case. The bottomline is >> that if at least one other person cannot reproduce this (as in, >> scrolling works for you like it does in any other app in this world) >> then it is unlikely to be a LyX bug. > > And oh yes, I'm on KDE. But on my system it does not make a difference > what DE or WM I'm on, as I've reproduced this with E17 and Openbox. Upon further testing scrolling bumps the CPU usage from 1% on idle to about 15-20%. This is LyX itself showing up on HTop, not X or anything else related. Scrolling sideways doesn't take as much resources since it takes its own sweet time. The lag is more visible when there are objects being scrolled over, rather than simple text. So I would assume a bit more CPU for that would be normal. Moreover, it doesn't take "100%" of the CPU cycles, as appears to be the main problem for similar problems reported around the web. -- GPG/PGP ID: C0711BF1