Problem with Beamer
\makebeamertitle I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files using TFtoPL/PLtoTF.] You might try inserting a different font spec; e.g., type `I\font='. TFM ? Font ? When do I found it ? Carlos Knauer
Setting LyX font size
Using font manager I deleted a bunch of typefaces that I have never used nor will use in the future. Many are look-alikes (to me, at least) of serif and sanserig type faces. Now, the LyX frame and menu font size has shrunk. The document display font remains the same, it's the application frame and menus that have changed. Is there a place where I can change this? I don't find it on the Tools -> Preferences -> Display menu. TIA, Rich
Backtick in LyX's "LyX-Code" mode
I am using LyX 2.1.2 on Ubuntu 14.04. If I enter this: ab'c de`f in "Standard" mode I get PDF output with proper left/right single quotes. However, if I switch to LyX-Code mode for that text, I get as PDF output: ab'c de'f This is a problem for text of shell scripts. I the want backticks because backtick means 'execute' in the shell. What I have done instead to get literal backticks output is to use a TeX Code URT (Ugly Red Text) block inside the "LyX-Code mode" block and used \char18, which properly outputs the backtick. Is this expected behavior? Is that the recommended solution for this? -- Bruce Momjianhttp://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +
Re: KOMA-letter-2: logo disappeared
On Mon, 25 Sep 2017, Rich Shepard wrote: In the document's preamble is: \firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}} \ihead{\usekomavar{toname}\\% I'm not sure how to change these to define a smaller head of first page. The KOMA-script 2013 doc says this: \usekomavar[command ]{name } \usekomavar*[command ]{name } In some cases it is necessary for the user to access the content or the description of a variable and not to leave this only up to the class. This is specially important when you have defined a variable which is not added to the reference fields line. Using the command \usekomavar you have access to the content of the variable name , whereas the starred version \usekomavar* allows you to access the description or title. In section 21.2, page 371 you may find mor information about defining variable on your own. But this gives me no idea what to change to make the logo fit the page. Rich
Re: KOMA-letter-2: logo disappeared
On Mon, 25 Sep 2017, Rich Shepard wrote: Class scrlttr2 Warning: head of first page is 17.22406pt too high. (scrlttr2) You have to change `firstheadvpos' (scrlttr2) or you have to define a smaller (scrlttr2) head of first page using \setkomavar. (scrlttr2) Because of this too high head of first page (scrlttr2) you've got an overfull \vbox message on input line 68. In the document's preamble is: \firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}} \ihead{\usekomavar{toname}\\% I'm not sure how to change these to define a smaller head of first page. Anyone know how? Thanks, Rich
Re: KOMA-letter-2: logo disappeared
On Mon, 25 Sep 2017, Paul A. Rubin wrote: Around line 498, LyX parks a copy in the temporary buffer and tries to convert it to EPS. Around line 505, you can see the \insertgraphics command for it (which I assume means LyX thinks the conversion was successful). Your guess is better than mine whether the bounding box is set correctly. Paul, I saw that LyX thinks the conversion is successful ... and the bounding box is correct. Wonder why it's not displaying, then. I can run the image through 'convert' and create an .eps file, but have not before had issues inserting .pdf files. Assuming you previewed the document in LyX, Document > LaTeX Log will open the log in a viewing window for you. The actual log file lives in the temporary buffer directory (/tmp/lyx_tmpdir.mmCXUkQ28141) in this case. Didn't see it there before, it's in ../lyx_tempbuf2. And the log file tells me: File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic file (type eps) <0_home_rshepard_documents_templates_llc-letterhead.eps> Overfull \hbox (227.62204pt too wide) in paragraph at lines 68--68 []| [] Overfull \vbox (17.22406pt too high) detected at line 68 [] File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic file (type eps) <0_home_rshepard_documents_templates_llc-letterhead.eps> Overfull \hbox (227.62204pt too wide) in paragraph at lines 68--68 []| [] Class scrlttr2 Warning: head of first page is 17.22406pt too high. (scrlttr2) You have to change `firstheadvpos' (scrlttr2) or you have to define a smaller (scrlttr2) head of first page using \setkomavar. (scrlttr2) Because of this too high head of first page (scrlttr2) you've got an overfull \vbox message on input line 68. So I need to play with the image size or positioning to get it to fit. Thanks for the pointer, Rich
Re: KOMA-letter-2: logo disappeared
On 09/25/2017 02:22 PM, Rich Shepard wrote: On Mon, 25 Sep 2017, Paul A. Rubin wrote: Try starting LyX from a terminal with the "-dbg graphics" flag, open and view the document, and see if it spits up an error message. Paul, File's attached. In emacs the first reference to the image is line 459. There are no errors (or Errors) in the file. Around line 459 is, I believe, where LyX is trying to convert the image to something it can display in the LyX GUI (which ultimately succeeds). Around line 498, LyX parks a copy in the temporary buffer and tries to convert it to EPS. Around line 505, you can see the \insertgraphics command for it (which I assume means LyX thinks the conversion was successful). Your guess is better than mine whether the bounding box is set correctly. (I assume you've already checked the LaTeX log for signs of an implosion.) Don't know where the log file is to be found. It's not in /var/log/ or the document directory. Assuming you previewed the document in LyX, Document > LaTeX Log will open the log in a viewing window for you. The actual log file lives in the temporary buffer directory (/tmp/lyx_tmpdir.mmCXUkQ28141) in this case. Paul
Re: KOMA-letter-2: logo disappeared
On Mon, 25 Sep 2017, Paul A. Rubin wrote: Try starting LyX from a terminal with the "-dbg graphics" flag, open and view the document, and see if it spits up an error message. Paul, File's attached. In emacs the first reference to the image is line 459. There are no errors (or Errors) in the file. (I assume you've already checked the LaTeX log for signs of an implosion.) Don't know where the log file is to be found. It's not in /var/log/ or the document directory. Thanks, Rich$ lyx -dbg graphics Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Format.cpp (388): Recognised Fileformat: agr Format.cpp (124): New Format: n=platex, flags=1 Format.cpp (124): New Format: n=dvi, flags=1 Format.cpp (124): New Format: n=latex, flags=1 Format.cpp (124): New Format: n=tgif, flags=2 Format.cpp (124): New Format: n=fig, flags=2 Format.cpp (124): New Format: n=dia, flags=10 Format.cpp (124): New Format: n=odg, flags=10 Format.cpp (124): New Format: n=agr, flags=2 Format.cpp (124): New Format: n=fen, flags=0 Format.cpp (124): New Format: n=svg, flags=2 Format.cpp (124): New Format: n=svgz, flags=10 Format.cpp (124): New Format: n=bmp, flags=0 Format.cpp (124): New Format: n=gif, flags=0 Format.cpp (124): New Format: n=jpg, flags=0 Format.cpp (124): New Format: n=pbm, flags=0 Format.cpp (124): New Format: n=pgm, flags=0 Format.cpp (124): New Format: n=png, flags=0 Format.cpp (124): New Format: n=ppm, flags=0 Format.cpp (124): New Format: n=tiff, flags=0 Format.cpp (124): New Format: n=xbm, flags=0 Format.cpp (124): New Format: n=xpm, flags=0 Format.cpp (124): New Format: n=asciichess, flags=0 Format.cpp (124): New Format: n=asciiimage, flags=0 Format.cpp (124): New Format: n=asciixfig, flags=0 Format.cpp (124): New Format: n=dateout, flags=0 Format.cpp (124): New Format: n=docbook, flags=5 Format.cpp (124): New Format: n=docbook-xml, flags=5 Format.cpp (124): New Format: n=dot, flags=2 Format.cpp (124): New Format: n=dviluatex, flags=5 Format.cpp (124): New Format: n=platex, flags=5 Format.cpp (124): New Format: n=literate, flags=5 Format.cpp (124): New Format: n=sweave, flags=5 Format.cpp (124): New Format: n=r, flags=5 Format.cpp (124): New Format: n=knitr, flags=5 Format.cpp (124): New Format: n=lilypond, flags=2 Format.cpp (124): New Format: n=lilypond-book, flags=5 Format.cpp (124): New Format: n=latex, flags=5 Format.cpp (124): New Format: n=luatex, flags=5 Format.cpp (124): New Format: n=pdflatex, flags=5 Format.cpp (124): New Format: n=xetex, flags=5 Format.cpp (124): New Format: n=latexclipboard, flags=0 Format.cpp (124): New Format: n=text, flags=5 Format.cpp (124): New Format: n=text2, flags=1 Format.cpp (124): New Format: n=text3, flags=1 Format.cpp (124): New Format: n=text4, flags=1 Format.cpp (124): New Format: n=textparagraph, flags=1 Format.cpp (124): New Format: n=beamer.info, flags=5 Format.cpp (124): New Format: n=gnumeric, flags=1 Format.cpp (124): New Format: n=excel, flags=1 Format.cpp (124): New Format: n=excel2, flags=1 Format.cpp (124): New Format: n=html_table, flags=1 Format.cpp (124): New Format: n=oocalc, flags=1 Format.cpp (124): New Format: n=xhtml, flags=5 Format.cpp (124): New Format: n=bibtex, flags=0 Format.cpp (124): New Format: n=eps, flags=2 Format.cpp (124): New Format: n=eps2, flags=2 Format.cpp (124): New Format: n=eps3, flags=1 Format.cpp (124): New Format: n=ps, flags=7 Format.cpp (124): New Format: n=pdf, flags=7 Format.cpp (124): New Format: n=pdf2, flags=7 Format.cpp (124): New Format: n=pdf3, flags=7 Format.cpp (124): New Format: n=pdf4, flags=7 Format.cpp (124): New Format: n=pdf5, flags=7 Format.cpp (124): New Format: n=pdf6, flags=2 Format.cpp (124): New Format: n=pdf7, flags=3 Format.cpp (124): New Format: n=pdf8, flags=3 Format.cpp (124): New Format: n=dvi, flags=7 Format.cpp (124): New Format: n=dvi3, flags=7 Format.cpp (124): New Format: n=html, flags=5 Format.cpp (124): New Format: n=noteedit, flags=2 Format.cpp (124): New Format: n=odt, flags=7 Format.cpp (124): New Format: n=odt2, flags=7 Format.cpp (124): New Format: n=odt3, flags=7 Format.cpp (124): New Format: n=sxw, flags=3 Format.cpp (124): New Format: n=rtf, flags=7 Format.cpp (124): New Format: n=word, flags=7 Format.cpp (124): New Format: n=word2, flags=7 Format.cpp (124): New Format: n=date, flags=0 Format.cpp (124): New Format: n=csv, flags=1 Format.cpp (124): New Format: n=fax, flags=1 Format.cpp (124): New Format: n=lyx, flags=0 Format.cpp (124): New Format: n=lyx13x, flags=1 Format.cpp (124): New Format: n=lyx14x, flags=1 Format.cpp (124): New Format: n=lyx15x, flags=1 Format.cpp (124): New Format: n=lyx16x, flags=1 Format.cpp (124): New Format: n=lyx20x, flags=1 Format.cpp (124): New Format: n=lyx21x, flags=5 Format.cpp (124): New Format: n=clyx, flags=1 Format.cpp (124): New Format: n=jlyx, flags=1 Format.cpp (124): New Format: n=klyx, flags=1 Format.cpp (124): New Format: n=lyxpreview, flags=0 Format.cpp (124): New Format: n=pdftex, flags=0
Re: tex2lyx
On 09/25/2017 10:35 AM, Patrick Dupre wrote: No, It do not have the layout! Well, there's your problem. No layout, no using the class with LyX. If you can find an osajnl.layout file somewhere online, deposit it in your local layouts folder, reconfigure and restart LyX, and you should be able to continue. If not, I suspect you will need to cobble one together. Typically, one starts with a layout file for a similar class and modifies it as needed to handle specific features of the new class. Paul
Re: KOMA-letter-2: logo disappeared
On 09/25/2017 12:51 PM, Rich Shepard wrote: Some time in the past I modified the KOMA-letter version 2 template to suit my needs. Not by modifying the template itself, but using selected elements for a letter which I then copy and modify for new letters. This has worked well until today. At the top of the document is a Logo environment using the company logo as a .pdf file. It shows in the .lyx document but not when I do a preview or pdflatex compilation. Just after the preamble in the .lyx file is the Logo: \begin_body \begin_layout Logo \begin_inset Graphics filename /home/rshepard/documents/templates/llc-letterhead.pdf width 100text% BoundingBox 80bp 100bp 520bp 250bp clip \end_inset \end_layout I'm at a loss to know where to start looking for the reason and need some ideas from the experts here. TIA, Rich Try starting LyX from a terminal with the "-dbg graphics" flag, open and view the document, and see if it spits up an error message. (I assume you've already checked the LaTeX log for signs of an implosion.) Paul
KOMA-letter-2: logo disappeared
Some time in the past I modified the KOMA-letter version 2 template to suit my needs. Not by modifying the template itself, but using selected elements for a letter which I then copy and modify for new letters. This has worked well until today. At the top of the document is a Logo environment using the company logo as a .pdf file. It shows in the .lyx document but not when I do a preview or pdflatex compilation. Just after the preamble in the .lyx file is the Logo: \begin_body \begin_layout Logo \begin_inset Graphics filename /home/rshepard/documents/templates/llc-letterhead.pdf width 100text% BoundingBox 80bp 100bp 520bp 250bp clip \end_inset \end_layout I'm at a loss to know where to start looking for the reason and need some ideas from the experts here. TIA, Rich
Re: tex2lyx
No, It do not have the layout! === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France === > Sent: Monday, September 25, 2017 at 4:33 PM > From: "Paul A. Rubin"> To: "Patrick Dupre" , lyx > Subject: Re: tex2lyx > > On 09/25/2017 10:22 AM, Patrick Dupre wrote: > > Hello, > > > > Apparently this tex template is acceptable for the OSA. > > However, it fails when I try to convert it to lyx. > > Cannot read layout file `'. > > Error reading `' > > (Check `osajnl') > > Check your installation and try Options/Reconfigure... > > Error: Could not read layout file for textclass "osajnl". > > > > > > \documentclass[9pt,twocolumn,twoside]{osajnl} > > > > \begin{document} > > \end{document} > > > > > > Is it possible to avoid the failure? > > > Do you have a LyX layout file for the osajnl class? Without it, LyX does > not know how to lay out documents using that class. I did a quick Google > search but could not find one. > > Paul > >
Re: tex2lyx
On 09/25/2017 10:22 AM, Patrick Dupre wrote: Hello, Apparently this tex template is acceptable for the OSA. However, it fails when I try to convert it to lyx. Cannot read layout file `'. Error reading `' (Check `osajnl') Check your installation and try Options/Reconfigure... Error: Could not read layout file for textclass "osajnl". \documentclass[9pt,twocolumn,twoside]{osajnl} \begin{document} \end{document} Is it possible to avoid the failure? Do you have a LyX layout file for the osajnl class? Without it, LyX does not know how to lay out documents using that class. I did a quick Google search but could not find one. Paul
tex2lyx
Hello, Apparently this tex template is acceptable for the OSA. However, it fails when I try to convert it to lyx. Cannot read layout file `'. Error reading `' (Check `osajnl') Check your installation and try Options/Reconfigure... Error: Could not read layout file for textclass "osajnl". \documentclass[9pt,twocolumn,twoside]{osajnl} \begin{document} \end{document} Is it possible to avoid the failure? Thank. === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===