program listings and bold typewriter font
Dear LyX-users, I am using LyX 1.6.1 on Ubuntu Intrepid 64. I have inserted a program listing into an AMSbook document class and have typed some code in the R language. Everything works fine if I want the code to be typeset with sans serif font; reserved words are bolded. However, if I try to use Typewriter in the settings dialog, it is correctly shown as typewriter, but the bold is no longer there. Here's what it says in the documentation, Embedded Objects: Note: If you don't get bold keywords when using typewriter fonts, your typewriter font probably doesn't provide a bold shape. In this case select a different one in the menu Document-Settings-Fonts. (The fonts LuxiMono, BeraMono and Courier provide bold shapes.) I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? 2) Latin Modern Typewriter and LuxiMono are shown to be 'not installed'. Does anyone know where these are in Synaptic or elsewhere? Can anyone help me? Regards, Jay - *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/
Re: program listings and bold typewriter font
G. Jay Kerns schrieb: I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Can you please send me a _small_ LyX file to be able to reproduce the problem? regards Uwe
Re: program listings and bold typewriter font
On 2009-02-06, G. Jay Kerns wrote: Dear LyX-users, I am using LyX 1.6.1 on Ubuntu Intrepid 64. However, if I try to use Typewriter in the settings dialog, it is correctly shown as typewriter, but the bold is no longer there. Here's what it says in the documentation, Embedded Objects: Note: If you don't get bold keywords when using typewriter fonts, your typewriter font probably doesn't provide a bold shape. In this case select a different one in the menu Document-Settings-Fonts. (The fonts LuxiMono, BeraMono and Courier provide bold shapes.) I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Maybe a wrong configuration no longer highlighting with bold? 2) Latin Modern Typewriter and LuxiMono are shown to be 'not installed'. Does anyone know where these are in Synaptic or elsewhere? Latin Modern: package lmodern (or something including lmodern). Can anyone help me? apt-file can find the package containing lmodern and also txfonts (providing another typewriter-font with bold via \renewcommand{\ttdefault}{txtt} ) Günter
Re: program listings and bold typewriter font
Dear Uwe and lyx-users, On Fri, Feb 6, 2009 at 10:46 AM, Uwe Stöhr uwesto...@web.de wrote: G. Jay Kerns schrieb: I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Can you please send me a _small_ LyX file to be able to reproduce the problem? regards Uwe In trying to create a minimal example, I have found that a standard document with the book (AMS) document class works perfectly well with the Courier font, as documented and expected. The additional info (which I didn't report earlier) about my problem was that I am using Sweave with LyX. In fact, I modified Gregor Gorjanc's literate-book.layout to Input amsbook.layout instead of book.layout. The end result is that if I take my file of document class book (Sweave noweb), delete all of the noweb scrap environments, and change the document class to book (AMS), then everything works perfectly. It would seem that there is something happening with the LyX-Sweave machinery which is causing the fonts in the Program Listing environment to not appear bold, even for a reserved word in the R language. I do not know what is happening, but I will try to figure it out. I have attached the minimal example in case anybody else would like to give it a try. (but please note that you would have to have configured LyX to run with Sweave, and modified literate-book.layout as described above). Cheers, Jay -- *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/ test.lyx Description: application/lyx
Re: program listings and bold typewriter font
Dear All, On Fri, Feb 6, 2009 at 2:12 PM, G. Jay Kerns gke...@ysu.edu wrote: It would seem that there is something happening with the LyX-Sweave machinery which is causing the fonts in the Program Listing environment to not appear bold, even for a reserved word in the R language. I do not know what is happening, but I will try to figure it out. I figured out a solution. For the record, the following line in the Preamble fixes the problem: \lstset{ keywordstyle = \bf } Note that many of the other variants that one might expect to work... don't. :-) Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/
program listings and bold typewriter font
Dear LyX-users, I am using LyX 1.6.1 on Ubuntu Intrepid 64. I have inserted a program listing into an AMSbook document class and have typed some code in the R language. Everything works fine if I want the code to be typeset with sans serif font; reserved words are bolded. However, if I try to use Typewriter in the settings dialog, it is correctly shown as typewriter, but the bold is no longer there. Here's what it says in the documentation, Embedded Objects: Note: If you don't get bold keywords when using typewriter fonts, your typewriter font probably doesn't provide a bold shape. In this case select a different one in the menu Document-Settings-Fonts. (The fonts LuxiMono, BeraMono and Courier provide bold shapes.) I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? 2) Latin Modern Typewriter and LuxiMono are shown to be 'not installed'. Does anyone know where these are in Synaptic or elsewhere? Can anyone help me? Regards, Jay - *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/
Re: program listings and bold typewriter font
G. Jay Kerns schrieb: I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Can you please send me a _small_ LyX file to be able to reproduce the problem? regards Uwe
Re: program listings and bold typewriter font
On 2009-02-06, G. Jay Kerns wrote: Dear LyX-users, I am using LyX 1.6.1 on Ubuntu Intrepid 64. However, if I try to use Typewriter in the settings dialog, it is correctly shown as typewriter, but the bold is no longer there. Here's what it says in the documentation, Embedded Objects: Note: If you don't get bold keywords when using typewriter fonts, your typewriter font probably doesn't provide a bold shape. In this case select a different one in the menu Document-Settings-Fonts. (The fonts LuxiMono, BeraMono and Courier provide bold shapes.) I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Maybe a wrong configuration no longer highlighting with bold? 2) Latin Modern Typewriter and LuxiMono are shown to be 'not installed'. Does anyone know where these are in Synaptic or elsewhere? Latin Modern: package lmodern (or something including lmodern). Can anyone help me? apt-file can find the package containing lmodern and also txfonts (providing another typewriter-font with bold via \renewcommand{\ttdefault}{txtt} ) Günter
Re: program listings and bold typewriter font
Dear Uwe and lyx-users, On Fri, Feb 6, 2009 at 10:46 AM, Uwe Stöhr uwesto...@web.de wrote: G. Jay Kerns schrieb: I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Can you please send me a _small_ LyX file to be able to reproduce the problem? regards Uwe In trying to create a minimal example, I have found that a standard document with the book (AMS) document class works perfectly well with the Courier font, as documented and expected. The additional info (which I didn't report earlier) about my problem was that I am using Sweave with LyX. In fact, I modified Gregor Gorjanc's literate-book.layout to Input amsbook.layout instead of book.layout. The end result is that if I take my file of document class book (Sweave noweb), delete all of the noweb scrap environments, and change the document class to book (AMS), then everything works perfectly. It would seem that there is something happening with the LyX-Sweave machinery which is causing the fonts in the Program Listing environment to not appear bold, even for a reserved word in the R language. I do not know what is happening, but I will try to figure it out. I have attached the minimal example in case anybody else would like to give it a try. (but please note that you would have to have configured LyX to run with Sweave, and modified literate-book.layout as described above). Cheers, Jay -- *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/ test.lyx Description: application/lyx
Re: program listings and bold typewriter font
Dear All, On Fri, Feb 6, 2009 at 2:12 PM, G. Jay Kerns gke...@ysu.edu wrote: It would seem that there is something happening with the LyX-Sweave machinery which is causing the fonts in the Program Listing environment to not appear bold, even for a reserved word in the R language. I do not know what is happening, but I will try to figure it out. I figured out a solution. For the record, the following line in the Preamble fixes the problem: \lstset{ keywordstyle = \bf } Note that many of the other variants that one might expect to work... don't. :-) Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/
program listings and bold typewriter font
Dear LyX-users, I am using LyX 1.6.1 on Ubuntu Intrepid 64. I have inserted a program listing into an AMSbook document class and have typed some code in the R language. Everything works fine if I want the code to be typeset with sans serif font; reserved words are bolded. However, if I try to use "Typewriter" in the settings dialog, it is correctly shown as typewriter, but the bold is no longer there. Here's what it says in the documentation, "Embedded Objects": Note: If you don't get bold keywords when using typewriter fonts, your typewriter font probably doesn't provide a bold shape. In this case select a different one in the menu Document->Settings->Fonts. (The fonts LuxiMono, BeraMono and Courier provide bold shapes.) I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? 2) Latin Modern Typewriter and LuxiMono are shown to be 'not installed'. Does anyone know where these are in Synaptic or elsewhere? Can anyone help me? Regards, Jay - *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/
Re: program listings and bold typewriter font
G. Jay Kerns schrieb: I changed my fonts in Documents/Settings: 1) I tried both Courier and Beramono, but there was no difference in the output. What is happening? Is this OS dependent? Can you please send me a _small_ LyX file to be able to reproduce the problem? regards Uwe
Re: program listings and bold typewriter font
On 2009-02-06, G. Jay Kerns wrote: > Dear LyX-users, > I am using LyX 1.6.1 on Ubuntu Intrepid 64. > However, if I try to use "Typewriter" in the settings dialog, it is > correctly shown as typewriter, but the bold is no longer there. > Here's what it says in the documentation, "Embedded Objects": > Note: If you don't get bold keywords when using typewriter fonts, your > typewriter font probably doesn't provide a bold shape. In this case > select a different one in the menu Document->Settings->Fonts. (The > fonts LuxiMono, BeraMono and Courier provide bold shapes.) > I changed my fonts in Documents/Settings: > 1) I tried both Courier and Beramono, but there was no difference in > the output. What is happening? Is this OS dependent? Maybe a wrong configuration no longer highlighting with bold? > 2) Latin Modern Typewriter and LuxiMono are shown to be 'not > installed'. Does anyone know where these are in Synaptic or > elsewhere? Latin Modern: package lmodern (or something including "lmodern"). > Can anyone help me? apt-file can find the package containing "lmodern" and also "txfonts" (providing another typewriter-font with bold via \renewcommand{\ttdefault}{txtt} ) Günter
Re: program listings and bold typewriter font
Dear Uwe and lyx-users, On Fri, Feb 6, 2009 at 10:46 AM, Uwe Stöhrwrote: > G. Jay Kerns schrieb: > >> I changed my fonts in Documents/Settings: >> >> 1) I tried both Courier and Beramono, but there was no difference in >> the output. What is happening? Is this OS dependent? > > Can you please send me a _small_ LyX file to be able to reproduce the > problem? > > regards Uwe > In trying to create a minimal example, I have found that a standard document with the book (AMS) document class works perfectly well with the Courier font, as documented and expected. The additional info (which I didn't report earlier) about my problem was that I am using Sweave with LyX. In fact, I modified Gregor Gorjanc's literate-book.layout to Input amsbook.layout instead of book.layout. The end result is that if I take my file of document class book (Sweave noweb), delete all of the noweb scrap environments, and change the document class to book (AMS), then everything works perfectly. It would seem that there is something happening with the LyX-Sweave machinery which is causing the fonts in the Program Listing environment to not appear bold, even for a reserved word in the R language. I do not know what is happening, but I will try to figure it out. I have attached the minimal example in case anybody else would like to give it a try. (but please note that you would have to have configured LyX to run with Sweave, and modified literate-book.layout as described above). Cheers, Jay -- *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/ test.lyx Description: application/lyx
Re: program listings and bold typewriter font
Dear All, On Fri, Feb 6, 2009 at 2:12 PM, G. Jay Kernswrote: > It would seem that there is something happening with the LyX-Sweave > machinery which is causing the fonts in the Program Listing > environment to not appear bold, even for a reserved word in the R > language. I do not know what is happening, but I will try to figure > it out. > I figured out a solution. For the record, the following line in the Preamble fixes the problem: \lstset{ keywordstyle = \bf } Note that many of the other variants that one might expect to work... don't. :-) Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www.cc.ysu.edu/~gjkerns/