Compiling LyX 1.3.6 with qt: SegFault
In the process of upgrading from KDE 3.4.0 to 3.4.2, I'm trying to upgrade from LyX 1.3.5 to 1.3.6. The compile fails with these messages: Making all in qt2 make[5]: Entering directory `.../konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2' Making all in ui make[6]: Entering directory `.../konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2/ui' Making all in . make[7]: Entering directory `/konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2/ui' /usr/lib/qt3//bin/uic -tr qt_ -impl BiblioModuleBase.h BiblioModuleBase.ui -o BiblioModuleBase.C make[7]: *** [BiblioModuleBase.C] Segmentation fault make[7]: *** Deleting file `BiblioModuleBase.C' ---end of excerpt-- I've applied the patch to QPrefs.C as discussed in several earlier notes on this list, but the failure is exactly the same. Searching via Google, I don't find any mention of segmentation faults in regard to LyX, so I thought I'd ask here for any other suggestions. KDE's Konstruct builder fetches LyX from: ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.3.6.tar.bz2 My config: gcc 3.4.3, QT 3.3.4, Linux kernel 2.4.23, PII. the QT was compiled with this same compiler, fwiw. and of course it all worked fine with LyX 1.3.5, same QT. TIA, Jim
Re: Compiling LyX 1.3.6 with qt: SegFault
On Mon, Sep 19, 2005 at 9:00:21PM -0700, Jim Osborn wrote: > My config: gcc 3.4.3, QT 3.3.4, Linux kernel 2.4.23, PII. > the QT was compiled with this same compiler, fwiw. > and of course it all worked fine with LyX 1.3.5, same QT. Just a followup: I tried building LyX 1.3.5 with KDE 3.4.2 and it fails at exactly the same point as LyX 1.3.6, so, fwiw, it seems to be either a KDE or a QT/KDE problem, not just a problem with the new LyX. Too bad, as I was hoping to upgrade Konqueror, but not if it causes me to lose LyX. Cheers, Jim
Re: Compiling LyX 1.3.6 with qt: SegFault
On Thu, Sep 22, 2005 at 8:52:15AM +0200, Georg Baum wrote: > So the segmentation fault happens when running uic. This should be > reported to trolltech, because it seems to be a bug in uic. > Meanwhile, changing the variable UICFLAGS > > UICFLAGS=-tr qt_ -nounload > > in src/frontends/qt2/ui/Makefile.am (and src/frontends/qt2/ui/Makefile.in > if you don't have the autotools) cured a similar problem for me. Thanks, Georg, That solved the compile problem for me, and LyX 1.3.6 seems to have built successfully, per my preliminary test of src/lyx. I'll report my experiences to trolltech. Cheers, Jim
Re: Compiling LyX 1.3.6 with qt: SegFault
On Thu, Sep 22, 2005 at 8:52:15AM +0200, Georg Baum wrote: > So the segmentation fault happens when running uic. This should be > reported to trolltech, because it seems to be a bug in uic. Just to follow up, I submitted a bug report on the Trolltech site, and got this response: > /konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2/ui' > /usr/lib/qt3//bin/uic -tr qt_ -impl BiblioModuleBase.h > BiblioModuleBase.ui -o > +BiblioModuleBase.C > make[7]: *** [BiblioModuleBase.C] Segmentation fault > Workaround: add -nounload to UICFLAGS Thanks for your comments. It seems like the Lyx configure script is trying to use qt 3 uic on qt 2 .ui files which is not fully supported. Thus, if this is the case, we do not regard this as a bug. Greetings, Paal end of response-- The configure log shows all library references to /usr/lib/qt3, as expected, since QTDIR=/usr/lib/qt3, and shows: configure:13480: checking Qt version configure:13508: result: 3.3.4 which is correct for my installation. But I did wonder about all those src/frontends/qt2/... pathnames in LyX, which I noticed in Lyx 1.3.5. I assumed the numbering scheme was something internal to LyX, not to QT itself, but I can't really tell from a naive examination of a few LyX qt2 source files. Does anyone here know if LyX 1.3.6 is using QT 2 .ui files, as Paal seems to think? If not, I should probably follow up on my bug report. Since adding the -nounload flag to UICFLAGS makes LyX build successfully, maybe it's not really a QT bug; maybe the LyX top-level Makefiles should specify that flag. I can't find any documentation on either UICFLAGS or -nounload in any of the QT installation files, or on the Trolltech site, so I can't speculate on reasons to not always include that flag. I noticed that flag was often used in various postings to the Trolltech site, fwiw. But there was never any discussion of the flags themselves in those posts. Does anyone here know why LyX doesn't use -nounload by default? Cheers, Jim
space between single and right double quote marks
I can't seem to find a way to typeset the following text correctly: "The word was `foo,'" he said. The default result is: ...foo, I'll include the entire lyx file at the end of this note, but the bit corresponding to the quote marks is: The word was `foo,' \begin_inset Quotes erd \end_inset which looks correct to me, so I don't know if I'm running into a TeX problem, or a LaTeX problem, or something within LyX. I've tried using two single quote marks in place of the double quote (that is, a string of three single quote characters), with the same result. I've tried putting a ligature break, or an ERT \null, between the single and the double quote characters, both of which produce three closely-spaced right single quote marks. For test purposes, I've tried omitting the comma, as well as changing the language to American (There doesn't seem to be a language setting in the quote-style portion of the Layout box, just the various style selections, and the \quotes_language in the lyx file remains english no matter what I set in the Edit->Preferences->Language section). The only mention of kerning hacking I find in the TeX FAQ points to the letterspace and soul packages, and the best I can get with either of them is: because apparently ERT double quotes are neither left nor right. This single/double quote situation is handled correctly on the left side of things; it seems to only be a problem on the right. Can someone point me to a workaround? Thanks, Jim The complete lyx looks like this: #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language english \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \topmargin 0.25in \bottommargin 0.625in \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Quotes eld \end_inset The word was `foo,' \begin_inset Quotes erd \end_inset he said. \the_end
Re: space between single and right double quote marks
On Tue, Oct 11, 2005 at 10:11:39AM +0200, Helge Hafting wrote: > This is easy in lyx-1.4... Correct spacing is added as needed, at > least that happened for me with this sort of quoting style: > «The word was » he said. > > It is also possible (but cumbersome) in lyx 1.3: > Set quoting style to double qoutes. Write everything, but skip > the single quotes. Change quoting style to single quotes. > (That won't affect the existing double quotes in there.) > Now type the single quotes. Then, change the style back if you need. Thanks, Helge, It does exactly as you say with the «The word was » [I'll call F style] quoting style, but not with the ``The word was `foo' ''[I'll call E style] style. Here's the lyx for my E style example: \begin_inset Quotes eld \end_inset The word was \begin_inset Quotes els \end_inset foo \begin_inset Quotes ers \end_inset \begin_inset Quotes erd \end_inset he said. And here's the dvi: ...foo The lyx for the F style has "fld" in place of "eld" etc., and it does indeed produce this dvi with LyX 1.3.6: ...foo So, apparently it's a bug, at least in LyX 1.3.6, with the E style quotes but not the F style; I didn't test all the other possibilities. If you have time, could you verify whether the bug exists in LyX 1.4 for the E style quotes? > The spacing should be correct too. If it isn't note that both > lyx 1.3 and lyx 1.4 have "small spaces" in the insert menu. I can't find a "small space" in my LyX 1.3.6 Insert->Special Character menu. I have these choices: Superscript Subscript Hfill Hyphenation Point Ligature Break Protected Blank Line Break Ellipsis End of Sentence Ordinary Quote Menu Separator Protected Blank puts this in the lyx: \SpecialChar ~ and produces exactly the same size space as an ordinary space, one em, as my eyes measure it. An ERT \ does the same. The that appears between the single and double quotes in my examples looks like about one-third of an em. Am I looking on the wrong menu for the "small spaces" you mention? Thanks again for the help. Jim
\usepackage[dvips]{geometry}: How?
I'd like to take advantage of xdvik's ability to sense the paper size from the dvi file, as recommended in the xdvi man page, by putting the subject line in the latex source. It works fine in a custom class file, but when I put that line in the Preamble of an ordinary Article class I get this error: - LaTeX Error: Option clash for package geometry. The package geometry has already been loaded with options: [] There has now been an attempt to load it with options [dvips] Adding the global options: ,dvips to your \documentclass declaration may fix this... - I can't find any mention of geometry in the teTeX-3.0 article.cls file, nor in any of the other searching I've done. LyX 1.3.5 seems to imply that geometry gets invoked for certain paper sizes, but I can't find any place either in the Layout->Document or the Edit->Preferences dialogs to set this particular option. How can I put "\usepackage[dvips]{geometry}" in an article? TIA, Jim
Re: \usepackage[dvips]{geometry}: How?
On Mon, Nov 07, 2005 at 6:22:51PM -0500, Paul A. Rubin wrote: > Fortunately, options can be set with \geometry{}, and invocations > of that macro are cumulative. So try \geometry{dvips} in your > preamble and see if that works. It does indeed. Thanks, Paul! Jim
Latin Modern in Dropped Capitals
I installed teTeX-3.0 some time after building LyX-1.3.5 (Qt). I had been running teTeX-1.0.7. The Latin Modern fonts are installed as part of the teTeX-3.0 installation, and I can use them in the normal text of a LyX document via the FAQ instructions \usepackage{lmodern}. However, the dropped capital package requires fonts specified with their nicknames "ptmr", "yfrak", "ecrm1000" etc. and when I try using "lmr" or "lmr10" I get LaTeX errors about missing TFM files. The TFM files seemed to get built automatically as needed for the ec fonts, so I'd think the same would happen for the lm family, but so far, they're not. Do I need to build TFM files manually, or is there something else I need to tell LyX? Do I need to add entries in the LyX configure script that makes symlinks in .../lyx/xfonts for various .pfb files? Something else? I thought I better ask here before charging off on a bunch of blind alleys. TIA, Jim
Re: Latin Modern in Dropped Capitals
On Thu, Nov 10, 2005 at 8:30:59AM -0500, William F. Adams wrote: > My guess here is that lmr and lmr10 are getting used in an > unsupported encoding. Examining my TEXMF tree, I find in .../fonts/tfm/public/lm/: cork-lm*.tfm qx-lm*.tfm texnansi-lm*.tfm ts1-lm*.tfm where "*" represents the full suite of b,bx.r,ri,ro,ss,tt,etc., in sizes 5,6.7,8,9,10,12 and 17. I think, as a bit of a novice, that cork, qx, etc. are various encodings, and that cork is a TeX standard thing that I'd expect to be supported. > ptmr == the knock-off of Times bundled w/ GhostScript > yfrak == nifty fraktur font (you should be able to install this... Both ptmr and yfrak "just work" out of the box after the unadorned teTeX installation (they come as part of teTeX-3, as does lm). I should mention that I removed all traces of the teTeX-1.0 installation prior to installing teTeX-3, and configured the new one to include everything except the cjk portion. > >The TFM files seemed to get built automatically as needed for the > >ec fonts, so I'd think the same would happen for the lm family, > >but so far, they're not. > ... > I think if you set it up so that the font is called out in a > supported encoding you'll be fine. Don't use lmr10 though, if > you're not setting a 10pt. dropped capital, instead pick a larger > optical size so it'll look nicer. Yeah, I realized after I sent my prior note (and examining the lmodern.sty file) that "lmr" is the name to use. Any suggestions how to "set it up so that the font is called out in a supported encoding"? I tried referring to the font as "cork-lmr" but that gives the same LaTeX error: Font \BIG=cork-lmr not loadable: Metric (TFM) file not found. \bigdrop{0em}{\droplines}{\dropfont}{T} (after \newcommand{\dropfont}{cork-lmr} in the preamble) The fact that the teTeX installation set up the other fonts, like yfrak, so that they're usable makes me think the problem is something simple. When I tested the yfrak font in preparation for this note, I noticed the View->DVI process made a new entry in teTeX's VARTEXFONTS tree (I hadn't used yfrak since the teTeX-3 install); no action occurs there with the Latin Modern fonts. If I knew what's different, from TeX's (or LyX's) point of view, between "ptmr/yfrak/ecrm1000/cmr10" and "lmr", I'd know what direction to charge off in. As I said, my novice status opens up lots of alleys to explore, many of which, though interesting and edifying, don't solve the problem at hand. :) Thanks for the response, Jim
Re: about klyx
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: >LyX is moving towards gui independance and a KDE port >is likely to be one of the first made. Stupid GUI question (sorry :). Are the scrollbars in LyX controlled by LyX itself, or by the windowmanager, in my case KDE? I've looked for a control to slow down the action a bit, thinking it should be somewhere in the KDE config tools, with no luck. I've asked about this subject on the KDE users list, but had no response. Maybe someone here knows, so I can configure them, or stop wasting time looking. TIA [EMAIL PROTECTED]
Newbie help with 'letter' class
Hi LyX experts, I've tried a couple of attempts to use the letter document class with "mixed" results. It seems the "My Address" and "Send To Address" refuse to show up in the dvi output, as does the "signature." All "Standard" paragraphs show up, as does the "closing" and a page number at the bottom. Looking at the LaTeX output, I see: \documentclass[12pt,american]{letter} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{verbose,tmargin=0.25in,bmargin=0.625in} \usepackage{babel} \makeatletter \makeatother \begin{document}, then the \address{with my address in it}, then a \letter{with the send-to address in it} and then the standard paragraphs I wrote with no curly brackets anywhere, followed by the \closing{blah, blah} then the \signature{my name} and finally \end{document} Is there a package I need to specify in the preamble? Or is there a delicate order I need to enter these things into LyX? I know I can probably get what I need ultimately by simply using "Article" class, but I'd like to understand what's going on here, and to actually use "letter" class for letters, if possible. I'm using LyX version 1.0.1. TIA Jim [EMAIL PROTECTED]
paragraph margins
I'd like to increase the left and right margins for a couple of paragraphs, as for an abstract near the beginning of my article. That is, I'd like those paragraphs narrower than normal, and centered on the page, and in block alignment, like the rest of the article. Selecting the text and applying Layout->Paragraph->ExtraOpt: Indented Paragraph: indents the left margin Minipage: indents the right margin Floatfit: has no effect Making it a minipage and adding \addtolength{\leftmargin}{20em} before the text does nothing at all. Sorry for what must be a stupid newbie question, but I can't seem to bumble onto the solution... TIA, Jim
Re: paragraph margins
John Culleton <[EMAIL PROTECTED]> replies: >Jim Osborn wrote: > >> I'd like to increase the left and right margins for a couple of >> paragraphs, as for an abstract near the beginning of my article. >> That is, I'd like those paragraphs narrower than normal, and centered >> on the page, and in block alignment, like the rest of the article. > >There is a plain tex command \narrower that brings in both margins by >\parindent. In a directory >named carlisle is a file plain.sty that adds most plain.tex commands to >latex. (David Carlisle is the author of course.) This means using ERC to >bring in the file and use the command. Thanks for the tip, John. I found "plain.sty" and told LyX about it, by adding it to the chkconfig.ltx and doc/LaTeXConfig.lyx.in files, and running configure, but I don't know what you mean by "using ERC to..." I found the file "plain.tex" in the base directory, but what's the next step? LyX gives me an unknown command error, so I obviously haven't done enough yet. Thanks again for the help. Jim
vertical spacing within table
I'd like to put a bit more vertical space between rows than LyX provides. I've tried setting the space above or below in the Layout->Paragraph box, but that seems to either have no effect, if a single cell is selected, or to only set the space above or below the whole table, not the stuff within the cells, if the whole table is selected. Changing to double spacing in the Layout->Document box does the job, but forces too much space between lines in a multi-line cell, and of course also forces double spacing everywhere in the document, not just the table. The Layout->Table box has a Width box, but nothing dealing with vertical dimensions. I can put TeX \vspace{} commands on every row, but this wreaks havoc on any borders. I don't see any mention of this topic in the User Guide or Extended Features guides. What am I missing? TIA, Jim
\mbox{} in LyX-list?
I tried to prevent LyX/LaTeX/TeX from breaking a line in the "body" part of a LyX-list. The problem is that the line gets stretched out with extra inter-word space, only to leave a single-word widow on the following line. I want to eliminate the widow, having it poke out a bit into the right margin. I tried surrounding various portions of the line in \mbox{} but it has no effect! I was able to successfully prevent the intra- word break of a similar line in another LyX-list item, but not this one, where I'm trying to supress inter-word breaks. Examining the LaTeX output, I can't see any difference between the two \mbox{} constructs; they both come right before the next \item; it's just that the successful one surrounds a single word. I tried setting the paper margins to 0.25in, with no effect. The \mbox{} thing works outside a LyX-list; am I wasting my time trying to prevent widows in a LyX-list? This list is convenient for my paper (a resume), with its arbitrary labels and indented left margin for the rest of the item. I suppose if I could control the indent of a description list, I could use that, but the layout->paragraph box says "senseless with this." TIA, Jim
Re: \mbox{} in LyX-list?
Sorry to waste everyone's time---of course \mbox{} works as expected in a Lyx-list. My problem seems to really be one of inexplicable caching (or something) between LyX and Xdvi. I seem to get in some state where quitting Xdvi, then invoking File->View dvi from the LyX menu does not show the effect of a change in the document---paper margins, adding \mbox{} around some text, or whatever. Is there a set of maneuvers that will guarantee that Xdvi shows the results from the current source? It seems that once the system starts showing the current changes, it continues to do so, at least for some time. But then it stops for some reason. Very strange... I've noticed a couple of times that invoking File->View dvi causes some disk activity, but never actually brings up Xdvi. Then after a second try, it succeeds. Maybe the two problems are related. FWIW, I'm using the LyX-1.0.1 that installed with my SuSE 6.3. I downloaded the 1.1.5-fix1... files and the SUSE/1.1.5-10a.i386.rpm from the sylvan ftp site, but won't have a chance to install anything for a few days at least. Can someone explain what the SUSE 10 and 10a versions are all about. Since I'm running SUSE, it seemed appropriate to download it, and 10a sounded further along than 10, but what do I know... :) Cheers, Jim
1.1.5fix1 Extended \extratablespace
In the lyx-1.1.5fix1-1, under Help->Extended, Sec 5.5 Extra Space Between Table Rows, it says: "LaTeX allows you to put a bit of extra space between rows in a table by giving an optional argument to the end-of-row specifier (\\). LyX has not yet implemented this in a formal way, so here are two dirty little tricks to do the same job. ...In the LaTeX preamble, add the following command definition: \newcommand{\extratablespace}[1]{\noalign{vskip#1}} This command takes a single argument---the amount of space you would like to insert. Insert the command in the first column of the row after where you would like the space to appear." So I add that \newcommand to the preamble, and make the following table, just selecting a 3x3 table from the Insert menu, and adding the letters, and the TeX \extratablespace{3ex} bit: +--+---++ | | b | cc | +--+---++ | \extratablespace{3ex} dd | | | +--+---++ | | hh| iii| +--+---++ -end of input- The above just hangs with the watch symbol when File->View dvi is run. I have to kill LyX from outside. If I toggle the TeX off the \extratablespace command, xdvi does its job and shows me the table, without the extra space, of course. Is there a way to avoid this sort of failure? It's inconvenient to have to kill LyX so abruptly from outside. Is this Extended "feature" broken? Can I fix it? Am I making some silly syntax error? If so, it'd be nice if it weren't so catastrophic. This is my first attempt at using a \newcommand in the preamble, so maybe I'm committing some stupid newbie error. I recently installed the lyx-1.1.5fix1-1.i386.rpm from the sylvan.com site. It seemed to be working fine, until this... The table example for doing this sort of thing on Herbert Voss' site works as advertised, using \def instead of \newcommand and no arguments. I'm really just concerned with why this example from the docs blew up this way. TIA Jim
Re: 1.1.5fix1 Extended \extratablespace
Herbert Voss <[EMAIL PROTECTED]> wrote: >Jim Osborn wrote: > >> Is there a way to avoid this sort of failure? It's inconvenient to >> have to kill LyX so abruptly from outside. > >can you send a short example-file? Here's the Export->LaTeX: %% Do not edit unless you really know what you are doing. \documentclass[12pt,american]{article} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{verbose,letterpaper,tmargin=0.25in,bmargin=0.625in,lmargin=0.75in,rmargin=0.75in} \pagestyle{empty} \usepackage{babel} \makeatletter %% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} %% User specified LaTeX commands. \newcommand{\extratablespace}[1]{\noalign{vskip#1}} \makeatother \begin{document} x \vspace{0.3cm} {\centering \begin{tabular}{|c|c|c|} \hline & b& cc\\ \hline \hline \extratablespace}{3ex}dd& & \\ \hline & hh& iii\\ \hline \end{tabular}\par} \vspace{0.3cm} xxx \end{document} end of LaTeX export I tried to duplicate exactly the example in the doc, except I didn't remove the table borders, like the one in the doc. I hope this helps shed light on the situation. Thanks for the help, Jim
Re: 1.1.5fix1 Extended \extratablespace
Thanks for the further example, Herbert. I agree \arraystretch is a better solution to this particular problem. My concern at this point is whether I've correctly installed the upgrade to LyX. I can View dvi on the whole Help->Extended file just fine. so the problem must somehow be in the tiny example I gave in my earlier note. Differences I notice between my example and yours: mine has no \preamble or \end_preamble commands; yours has all the \newline and \latex latex commands, etc. I generated my example by doing File->Export->as LaTeX...; would I get something more like yours by exporting differently? Should my LyX be making those commands? Am I invoking it incorrectly somehow, or do I not have it configured properly? I just installed from the rpm (rpm -U --nodeps ...) as root; then added the dropping and wrapfig packages to the configure.in and doc/LaTeXConfig.in files, ran texhash and .../lyx/configure, as well as Reconfigure from the LyX options menu. Dropping and wrapfig are the only two CTAN packages I've installed, and dropping is the only one I've actually used. I didn't update xdvi or xforms---rpm told me my xforms was newer than the download from sylvan.com. I confess I haven't read all the new docs from cover to cover; I just checked that my old documents seemed to work and plunged into the Extended file. I'm now working my way through the new User Guide, and I should probably just shut up until I've been through it all. :) I was just puzzled that I could make LyX hang like that. Every error I've made in the past has produced nice error messages. Thanks again for helping with this newbie stuff, Jim
grouping short lines in multicols
I'm making lists of addresses in columns, and wondered if someone knows of a convenient way to keep the address blocks from being split at the bottoms of the columns. I've been typing C- after the lines within the address block, so that each address becomes a paragraph. The address blocks have between three and six lines each. I put \begin{multicols}{3}... \end{multicols} around the addresses, then select the whole thing and apply a minipage to it with Layout->Paragraph. I can fiddle with spacing above and below the paragraphs when doing the Layout bit, and I can insert \newpage after particular addresses to push them to the next column, but of course, all this fiddling must be done over again whenever anyone is added or deleted from the list. I was hoping there was some elegant way to tell LyX "don't split this paragraph---adjust the column height accordingly." Anyone have a suggestion? TIA Jim
Consolidating paragraphs
Is there a trick that will let me easily combine a set of paragraphs into a single paragraph? I'd like to, say, select the lines (that LyX thinks of as paragraphs) and invoke an Edit function saying: "Remove the newlines at the ends of these lines, and put a space between the words joined by that action." or something like that. I imported a large ascii file, and to preserve essential formatting in most of it, I had to import it as lines. Now I'm faced with very tedious cleanup in the parts that should have been imported as paragraphs. Click at the beginning of line, backspace, space, click at the beginning of the next line... :( I'm using LyX Version 1.1.5fix1 of Tue Jul 18, 2000. TIA Jim
LyX-1.1.6 Layout->Paragraph Apply does nothing
In LyX 1.1.5 if I opened the Layout->Paragraph popup with the cursor in paragraph A, and then moved the cursor to paragraph B, I could then click Apply, and have paragraph A's characteristics (vertical spaces, etc) applied to paragraph B. When I do this in LyX 1.1.6fix2, nothing happens; that is, no changes are made to paragraph B. How do I accomplish this transfer of details such as vertical spacing from one paragraph to another in LyX 1.1.6? All paragraphs in question are type Standard, fwiw. TIA, Jim
Re: spam-mail?
On Mon, Aug 25, 2003 at 10:21:24AM -0700, James Frye wrote: > If spam - even spam without worms & viruses - is getting spread by > the list server, it's far more likely to get read by people who see > "Lyx" in the title, and so think it's good stuff. Since so many seem confused by these things, forgive me for an off- topic post. It's very, very unlikely any of these things are being distributed by this list server. The recent worm/virus emails all forge their return address, using addresses randomly found on the victim's computer. So, if you get a virus "sent from" the LyX list, it's because it was a forgery. It simply means that the victim had once upon a time received mail from the list, or was Cc'd, etc., as well as mail from you. To determine the actual sender (or at least their network) you need to examine the email's Received: headers, and look up the owner of the IP address in the topmost line. Some of us have been getting hundreds of these emails a day, apparently from all over the world. But when you examine those IP numbers, it quickly becomes apparent that it's really only a relative handful of computers doing the sending. Hope that helps, Jim
Re: LyX-1.1.6 Layout->Paragraph Apply does nothing
After verifying that 1.1.6fix4 has the same Apply bug as 1.1.6fix2, I've pursued more recent versions of LyX, and have a question. It seems 1.3.2, which John Levon says is free of this bug, needs way too many libraries to be installable in my SuSE 7.3 distro (see below), but the rpm for 1.2 complains only about two tetex things, same as 1.1.6, and I'm sure those complaints are benign. So I tried installing lyx-1.2.3-1rh73.i386.rpm, and got no fatal- sounding errors during the installation, but when I try to run lyx, it dies with: error while loading shared libraries: \ lyx: undefined symbol: __dynamic_cast_2 Is this a problem with my C libraries, that would not be solved by compiling the source, or would it be worth my while to try downloading the src and building it? My gcc is 2.95.3-124, according to rpm. Or is there simply a library of some sort I could install that would cure the above error? A more important question is: does 1.2.3 still have the Layout->Paragraph Apply-does-nothing bug? If so, then I should simply move back to 1.1.5 until I can move all the way to 1.3.2 or beyond. TIA, Jim If it's of any use, these are the errors from 1.3.2: rpm -U --test lyx-1.3.2-1suse81-qt.i386.rpm error: failed dependencies: libGLcore.so.1 is needed by lyx-1.3.2-1_qt libgcc_s.so.1 is needed by lyx-1.3.2-1_qt liblcms.so is needed by lyx-1.3.2-1_qt libpng12.so.0 is needed by lyx-1.3.2-1_qt libstdc++.so.5 is needed by lyx-1.3.2-1_qt libstdc++.so.5(CXXABI_1.2) is needed by lyx-1.3.2-1_qt libstdc++.so.5(GLIBCPP_3.2) is needed by lyx-1.3.2-1_qt FWIW, On Sun, Aug 24, 2003 at 2:56:06PM -0700, I wrote: > In LyX 1.1.5 if I opened the Layout->Paragraph popup with the cursor > in paragraph A, and then moved the cursor to paragraph B, I could then > click Apply, and have paragraph A's characteristics (vertical spaces, etc) > applied to paragraph B. When I do this in LyX 1.1.6fix2, nothing happens; > that is, no changes are made to paragraph B. > > How do I accomplish this transfer of details such as vertical spacing > from one paragraph to another in LyX 1.1.6? All paragraphs in > question are type Standard, fwiw.
"Warning: ...Get an older version of LyX..."
I've just reinstalled LyX 1.1.5, after using Lyx 1.1.6 on a few documents, and now when I try to open those documents, I get a box saying "Tabular format < 5 is not supported anymore/ Get an older version of LyX (< 1.1.x) for conversion!" My only option at that point is [Dismiss] at which point LyX exits altogether. Have I simply lost these documents? There's not much "tabular" material in them, and if I knew what to go after, maybe I could edit the offending stuff out of the .lyx files. Could anyone give advice on a way to salvage them? Would a very old (like how old?) version of LyX really know more about 1.1.6 than 1.1.5 does? That seems bizaare, but I'll try any suggestions. TIA, Jim
Re: "Warning: ...Get an older version of LyX..."
On Fri, Aug 29, 2003 at 10:11:49AM +0200, Andre Poenitz wrote: > Is there a reason you do not use 1.3.2? Hi Andre', Sorry, I should have referenced my other note in this one; I'm using a SuSE 7.3 installation, by now apparently too old. Its gcc is gcc-2.95.3-124, with qt-2.3.1-60. When I tried to install LyX 1.3.2 I got: rpm -U --test lyx-1.3.2-1suse81-qt.i386.rpm error: failed dependencies: libGLcore.so.1 is needed by lyx-1.3.2-1_qt libgcc_s.so.1 is needed by lyx-1.3.2-1_qt liblcms.so is needed by lyx-1.3.2-1_qt libpng12.so.0 is needed by lyx-1.3.2-1_qt libstdc++.so.5 is needed by lyx-1.3.2-1_qt libstdc++.so.5(CXXABI_1.2) is needed by lyx-1.3.2-1_qt libstdc++.so.5(GLIBCPP_3.2) is needed by lyx-1.3.2-1_qt Checking my /usr/lib, I see: (no libGLcore, libgcc_s, or libpng12 at all) (liblcms.so@ and liblcms.so.1.0.7*) libstdc++-3-libc6.1-2-2.10.0.so* libstdc++-3-libc6.2-2-2.10.0.a libstdc++-3-libc6.2-2-2.10.0.so* libstdc++-libc6.1-1.so.2* libstdc++.so.2.7.2* libstdc++.so.2.8* libstdc++.so.2.9* which sounds a long way from libstdc++.so.5 and friends. (I don't know why rpm didn't find the liblcms.so symlink to liblcms.so.1.0.7) I know it would be nice to upgrade to the latest, especially LyX, but I also know that upgrading gcc and the libs is not trivial without known-compatible versions of everything on a nice CD, so I hesitate, and decided to fall back to trusty old LyX 1.1.5 until I can download (over a tenuous 56K line) all the gcc/libs and verify their compatibility or spring for a new Linux CD. If I'm overlooking something that might make upgrading to LyX 1.3.2 easy, I'm open to suggestions. Thanks very much for asking :) Jim
default paragraph separation
Is it possible to set the default paragraph separation to indent for a LyX layout? I've tried every permutation of those words that I can think of, tried \paragraph_separation indent in the preamble section. Everything either produces an error (with the .lyx file containing the line \paragraph_separation skip in its top portion), or has no effect. TIA, Jim
Centering Section headers in LyX-1.3.2
Is there a way to center my Section headers in LyX 1.3.2? The Layout->Paragraph gives a "centered" Alignment, but it seems to have no effect, at least in an Article doc class. I also tried using a custom layout, as I had done in LyX 1.1.5, with: Style Section MarginDynamic LatexType Command LatexName section ... Align Center but this too has no effect. I thought this might be a FAQ, but a quick search didn't find anything recent, pertaining to 1.3. TIA, Jim
Sharing a Counter between two Styles
Is it possible for two LyX Styles (defined in .layout file) to share a counter? I have a special "section" style that adds a few things in the latex .cls file, and its counter cooperates fully with the normal section type in the dvi. But it'd be much nicer to see the real section numbers on the LyX screen too, and so far, I haven't been able to convince LyX to do it for me. Adding a "Counter... End" section to the Style definition in the .layout file didn't seem to help, at least with all the various Names and Withins I tried. The normal section counters display and increment as though the "mysections" aren't there at all. The "mysection" headers display the LyX LabelString, but no counter. What I've got in the .layout file is: Style Section MarginDynamic LatexType Command LatexName section ... LabelType Counter_Section LabelString "Chapter" ... End Style MySection CopyStyle Section LatexName mysection End Using LyX 1.3.2, Qt, on SuSE Linux 7.3. TIA, Jim
Specifying LyX startup geometry
The Customization help for LyX 1.3.2 says, "3.9: There are many other configuration options... Please ask on the mailing lists if you need some more information..." So, is there a line I can put in my lyxrc file to tell LyX to start in the upper left corner of the screen, with size 800x860, that is, --geometry "800x860+0+0"? I tried the obvious: \screen_geometry "800x860+0+0" but it had no effect, nor did it produce an error message. I'm using Qt, fwiw. TIA, Jim
Find_Next via keyboard
Is there a way to invoke the function of the Search->"Find_Next" button from the LyX keyboard? The "N" in the Search popup is underlined, and if the focus is in that popup, pressing M-n does indeed Find_Next, but I haven't found a way to do it from within the LyX edit screen. I'd like to jump from instance to instance of my search string, maybe editing a bit around it, but staying completely on the keyboard. Moving the mouse over to the Search popup every instance sort of defeats that strategy. I searched for "find-next", "find-again", "search-again" (what my emacs uses for that function) in all the bind files in my LyX, but don't find a lyx-function to bind to a key. Also, if I can bind Find_Next, what's the function for Replace? A second question is: how can I get a list of all the bindable lyx-functions? So far, I've resorted to grepping the bind files, but I bet there are some that don't appear in any of those. The Wikis are pretty good at listing the various keys, but I couldn't find a lyx-functions list. LyX 1.3.2, Qt. TIA, Jim
Re: Find_Next via keyboard
On Sat, Dec 13, 2003 at 10:07:05PM +, Angus Leeming wrote: > "M-x word-find-forward" > "M-x word-find-backward" > > should work. "M-x" activates the minibuffer at the bottom of the LtX > window, allowing you to type "word-find-forward". posts this > request off... > > Bind it the key of your choice. Thanks, Angus, but I must be misunderstanding something. For all the exercises below, I first invoke the Search popup and enter a search string in the Find window, then press the Find_Next button to take us to the first instance. Then... Entering "word-find-forward" (without the quotes) directly into the minibuffer produces a message: "(word-find-forward)" below the minibuffer. After about five seconds, the message is replaced by "Font: Default" but nothing has happened, the cursor in the main window hasn't moved, etc. I get the same lack of response (without the screen-bottom message) if I bind like this: \bind "C-f" "word-find-forward" but now if I type "word-find-forward" into the minibuffer, there's still no action, but the message is now "(word-find-forward: |C-f|)" similarly for \bind "C-f" "command-sequence word-find-forward" or \bind "C-f" "command-sequence word-find-forward;" Other attempts: \bind "C-f" "M-x word-find-forward" or \bind "C-f" "M-x word-find-forward;" gives: Unknown function \bind "C-f" "command-sequence M-x word-find-forward" gives: Unknown function (M-x word-find-forward) \bind "C-f" "command-sequence M-x; word-find-forward" gives: Unknown function (M-x) What am I doing wrong? Jim
Re: Find_Next via keyboard
On Sun, Dec 14, 2003 at 12:21:05PM +, Angus Leeming wrote: > Jim Osborn wrote: > > Entering "word-find-forward" (without the quotes) directly into the > > minibuffer produces a message: "(word-find-forward)" below the > > minibuffer. After about five seconds, the message is replaced by > > "Font: Default" but nothing has happened, the cursor in the main > > window hasn't moved, etc. > > "M-x word-find-forward ", perhaps? Thanks again, Angus. I think I understand now, there's no real communication between the Search popup (bound to C-s in the standard emacs.bind), useful for doing Find/Replace, and the M-x word-find-forward lfun. That is, they don't share the search string in their respective buffers, it seems, as Emacs does. Binding word-find-forward to a key, then starting things rolling by typing; M-x word-find-forward allows me to jump to subsequent instances of by pressing the key w-f-f is bound to, so that's handy for searching when the cost of all that typing makes it worth it. :) I don't suppose there's a way to get that "M-x word-find-forward" bit into the minibuffer without having to type it all in, is there? I notice the minibuffer doesn't do auto-completion. I tried binding "command-execute word-find-forward" but that just seems to pop me into the minibuffer, and when I type , I get (Unknown function: ). I couldn't seem to find a variant with command-sequence that helped. Thanks again for all your help, Angus; I really appreciate it. Jim
Re: Find_Next via keyboard
On Tue, Dec 16, 2003 at 1:40:49AM +0100, Christian Ridderström wrote: > Furthermore, if you are searching for the same word (let's say gargoyle), > then try typing this the first time: > > M-x word-find-forward gargoyle > > which will find you the firs ouccurence. Now, in order to find it again, > type: > M-x > > When you press , the mini-buffer will be filled with the previous > command again (i.e. word-find-forward gargoyle) so when you press > your search command is executed again. It's even easier than that. If I bind \bind "C-f" "word-find-forward" then simply hitting C-f will find it again. All the pain is in the initial entry, having to type all (or most) of "word-find-forward". I'm using LyX 1.3.2-Qt, and following a hint from Andre, found that pops up what looks like an auto-complete function. But it seems, at least in 1.3.2, to just be a list of the possibliities, and I still need to type virtually the whole thing in, after putting the focus back in the minibuffer, as puts the focus back in the main screen after poping up the list! I'd expect I could select "word-find-forward" from the list poped up, but , and all do nothing. What's curious, per Andre's remarks, is that the command-execute "word-find-forward" and the "word-find-forward" function executed by the Search popup seem to be completely separate. I can search for "foo" in the Search popup, then M-X w-f-f "bar", and then I can alternately hop from "foo" to "foo" and "bar" to "bar" by pressing either the "Find_Next" popup button, or "C-f". Maybe there's utility in maintaining this separation, but I tend to think it'd be easier overall if the two mechanisms shared their strings. It'd sure make entering the initial w-f-f string easier! Thanks for all the insights. Jim
Re: Find_Next via keyboard
How embarassing. On Mon, Dec 15, 2003 at 5:51:55PM -0800, I wrote: > following a hint from Andre... I meant Angus, of course. Sorry, Jim
Specifying explicit point sizes
Hi LyX experts, Is there a way to make LyX use a specific font point size in a selected portion of text, instead of the "larger"/"smaller" sizes in the standard Layout->Character menu? I'm using 1.1.5 currently, but I'll upgrade if necessary. TIA, Jim
Re: Specifying explicit point sizes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) asks: >| > Is there a way to make LyX use a specific font point size >| > in a selected portion of text, instead of the "larger"/"smaller" >| > sizes in the standard Layout->Character menu? >| > >But I still want to know _why_ you need this. My wife, who has worked many years in the graphics/typesetting industry (she was invited to be one of the first testers/providers-of- feedback-to-the-developers at Aldus as they were creating PageMaker), is used to working with type in explicit sizes. When she wants eighteen-point type, dammit, she wants eighteen points. She says anyone who speced a type size of "huger" would have been laughed out of a job. That's why I need this---credibility with a long-time typesetter! :) Jim
\vspace in multicols{}
Can someone help explain how to put some extra blank vertical space in a column in a multicols environment? For example, in a 3-column page, I can put \vspace*{10in} or whatever, and push the subsequent text to the bottom of the first column. But I can't seem to push it to the top of the second column! If I add more space, it seems to simply push the text further down, off the bottom of the page. If I put a \newpage in the first column, it gives me an entire blank page, starting the text at the top of the next page. I can't seem to get the text to flow gracefully between columns with spacing commands. Is there a way to do this? TIA, Jim
Re: \vspace in multicols{}
Herbert Voss <[EMAIL PROTECTED]> replies: >> I can't seem to get the text to flow gracefully between columns >> with spacing commands. Is there a way to do this? > >have you tried a \columnbreak in tex (red)? I just tried it, and get an error: Undefined control sequence \columnbreak Do I need to use a package in addition to multicol? I'm using LyX1.1.5fix1. Thanks very much for your help. Jim
Comprehensive variables list (was: Paragraph Spacing)
Herbert Voss <[EMAIL PROTECTED]> writes: >write in Latex preamble for example > >\AtBeginDocument{\addtolength{\parskip}{15pt}} Herbert, I really appreciate all the lucid and useful help you provide to us LyX users. It seems that there are many variables like \parskip, which are good to know about for adjustments like the original subject of this thread. Can you suggest a way to learn about some of these variables, as well as things like \AtBeginDocument{}? I don't know if a list of such names exists, with brief descriptions---that'd be really great. But in lieu of a list, could you suggest a pattern to grep for, and over what files in what directories, something like that? It wouldn't have descriptions, but at least might give users like me some clues where to poke into for more info. Thanks again for all your help. Jim
Can't "view dvi"
When I select File->view dvi from the menu, lyx (1.1.5fix1) says on the status line: Executing command: xdvi -paper us 'xxx.dvi' & (buffer view [C-d] [M-f d]) or something close, but xdvi never appears. No error messages appear either, no errors in the lyx window. Nothing. Back on the console where I started X I get lots of messages: file:xxx.dvi: No such file or directory There are no xdvi or similar processes showing on ps; nothing but lyx. I've exited lyx and restarted it; same result. This file simply won't view, or produce an error message in lyx! I can create and view a new dummy file, so apparently xdvi will view some files, just not the one I'm actually working on. What's going on? Lyx, or something obviously doesn't like my document, but what's wrong? Where do I start looking to fix something? I made some simple changes to a small document that has viewed/printed fine for months, and now this... I don't know where to begin. This is insane! Jim
Re: Can't "view dvi"
Dekel Tsur <[EMAIL PROTECTED]> replies: >Another problem can be that latex is not properly installed on your machine. >What is the value of \latex_command in the lyxrc.defaults file ? \latex_command "latex" Thanks for the response, Jim
Re: Can't "view dvi"
Erkko Airo <[EMAIL PROTECTED]> replies: >Are you using Linux? And if so, what flavor? SuSE 6.3. I installed the lyx1.1.5fix2 rpm from a SuSE site, if I remember correctly. SuSE 6.3 came with lyx1.1.0 or thereabouts. >On Debian Woody (i.e. testing) there has been a similar happening for a >while (since early June, I think). I found out that the xdvi-part is a >little bit broken: > >- lyx calls /usr/bin/xdvi which is a sh-script >-> this script then calls xdvi.bin -binary-executable >- xdvi.bin does not exist >-> nothing much happens. > >There is, however, xdvi.real binary executable and I solved the problem by >creating a link xdvi.bin -> xdvi.real (with command "ln -s xdvi.real >xdvi.bin" as root in /usr/bin directory). There may be better ways, but >this works here. The files/symlinks on my system seem to be like this: /usr/bin/xdvi: symbolic link to ../share/texmf/teTeX/bin/i386-linux-glibc/xdvi /usr/share/texmf/teTeX/bin/i386-linux-glibc/xdvi: Bourne shell script text /usr/bin/xdvi.bin: symbolic link to ../share/texmf/teTeX/bin/i386-linux-glibc/xdvi.bin /usr/share/texmf/teTeX/bin/i386-linux-glibc/xdvi.bin: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped The puzzling thing to me is how I can view some files but not others, how I can view one particular file, until making some seemingly innocuous change to it. And how, when failing to view the file, get no error message from lyx. The file does use the multicol package; if I remove all refs to multicols, the file views. Maybe that's a clue of some sort. I'm using the multicol package from the tools file on Herbert Voss's site; now I can use \columnbreak :). Thanks for the response, Jim
Re: Can't "view dvi"
way back on Aug 08, 2001 I wrote: [a bunch of stuff about LyX failing to produce any dvi, or error msgs] Dekel Tsur <[EMAIL PROTECTED]> replied: > > >Another problem can be that latex is not properly installed on your machine. > > >What is the value of \latex_command in the lyxrc.defaults file ? > > >\latex_command "latex" > >So check what happens in the tmp dir. >Is there a .dvi file ? >Are there error messages in the .log file ? Thanks for pointing out the wealth of info in the tmp dir. There's no .dvi file; the .aux file contains a single line: \relax. In the .log file I find these messages: Overfull \hbox (5.9086pt too wide) in paragraph at lines 90--94 [][] [] [...several more Overfull complaints, then:] (addrs-3x10xx-2001.aux) ) Here is how much of TeX's memory you used: 1231 strings out of 25901 14575 string characters out of 197575 63356 words of memory out of 384000 4206 multiletter control sequences out of 1+15000 4702 words of font info for 16 fonts, out of 40 for 1000 14 hyphenation exceptions out of 1000 24i,1n,19p,260b,106s stack positions out of 300i,100n,500p,5b,4000s No pages of output. --end of /tmp/... .log file--- Examining the .tex file, I don't see anything obviously wrong-looking, but I'm not sure I know what to look for there. Thanks for the help, Jim
Adding a paragraph within a minipage
When I hit to add a paragraph in a minipage, LyX breaks the minipage there, and I must then select all the paragraphs of the minipage, call up Layout->Paragraph->ExtraOpt and hit Apply, Cancel, Cancel to repair the rend in the minipage. Is there a way to insert a paragraph in a minipage without breaking it? I'm using LyX 1.1.5fix1. TIA, Jim
Controlling top margin
I've done everything I can think of to place my topmost line of text within 0.25in of my paper, the closest my printer will allow. All the relevant settings I know of are as follows: Paper Layout: Papersize: USletter, Special: None, Use Geometry Package, Margins: Top: 0.25in, Bottom: 0.625in, Left/Right: 0.5in Foot/Head Margins: all 0in; Custom Papersize: all empty Document Layout: Class: article, Pagestyle: empty, FontSize: 11. The top line is size large, Standard layout, centered, no vertical space above in Paragraph Layout. But LyX puts it 0.5in from the top edge of the paper to the top of the highest letters, not 0.25in as I want. What am I overlooking? Where's that extra space coming from? I know I can put some negative vspace before that line, but that seems like a silly kludge, I ought to be able to convince LyX to print as I want directly, shouldn't I? In fact, I'm sure I have printed that close to the top in the past, but I can't seem to get this document to do it, and I obviously don't understand LyX well enough to duplicate my accidental success from before. LyX 1.1.5fix1. TIA, Jim
side-by-side minipages
I need to group some bits of text into little clumps, each clump is two or three lines, and I need the clumps to be placed two or three to a line. Per the example at the top of pg 106 of Lamport's LaTeX 2nd ed, I thought putting each clump in its own minipage should do the job. But LyX always seems to want to move each minipage down the page, rather than putting them side-by-side. I've spaced each minipage with just enough length for its respective text, and there's plenty of width on the paper. I can get side-by-side placement if I enclose a group of paragraphs in a single minipage and use a multicols environment within that minipage, but then I can't specify the widths of the clumps of text, and multicol wants to spread them out too much, wants to equalize the column widths. How can I get something like this? aaa bbb AA BB ccc dddeee C DD TIA (LyX 1.1.5fix1) Jim
Converting ascii to lyx
This seems like a silly question, but I've run up against the problem frequently enough that I thought I'd better stop and ask the experts. When I have a plain text document, let's call it "foo.txt" that I want to convert to Lyx, say, "foo.lyx" here's what I've been doing: Create a new document, naming it "foo" (LyX creates "foo.lyx" as expected). Try to import the text from foo.txt, via File->Import->ASCII text as ... At this point, the filename in LyX changes to "foo.txt" with the text in question on the screen, and the entire file "selected." The text is not, at this point, actually "imported" to foo.lyx, though LyX thinks both foo.txt and foo.lyx have changed. I can Edit->Copy in foo.txt, then switch back to foo.lyx through the Documents menu, and Edit->Paste. Is this really the Import procedure? Oftentimes, I've merrily begun editing after doing the File->Import step, only to realize I was making changes to foo.txt (now known as foo.txt.lyx), and hadn't actually got the text into foo.lyx. Is there a more straightforward procedure I should be using? TIA Jim
using pslatex as default in 1.1.5
I get much better font rendering, especially when I make a pdf, when I set Document->Layout->Fonts: to "pslatex" instead of "default." I don't see a line in .lyxrc that controls this setting. Is there an entry I can make there that'll make this setting my default? TIA, Jim
myclass.layout not found
I'm trying to make a new document class, following the docs from LyX 1.1.5, where in 6.2.2 it says: "For the sake of example we'll assume that the style file is called myclass.sty and it is meant to be used with report.cls which is a standard class. cp report.layout ~/.lyx/layouts/myclass.layout Then edit myclass.layout and change the line: \DeclareLaTeXClass{report} to read \DeclareLaTeXClass[report, myclass.sty]{report (myclass)} then add: Preamble \usepackage{myclass} EndPreamble near the top of the file. Start LyX and... [reconfigure, etc...]" I did all that, verbatim, except that the copy line was: cp /usr/share/lyx/layouts/report.layout ~/.lyx/layouts/myclass.layout because that's my LyXDir, and there was, indeed a report.layout there. When I restart LyX and select the Layout->Document popup, I don't see "report (myclass)" as I expect. I must say, I'm a bit confused by the mention first of "myclass.sty" and then the subsequent instruction saying "myclass.layout." I tried renaming myclass.layout to myclass.sty, with no effect. The file "report.sty" in /usr/share/texmf/tex/latex/base/report.sty doesn't have a line \DeclareLaTeXClass{report} in it, so I assume the .layout file above is what I should be starting with. What should I do next? Jim
Re: myclass.layout not found
On Thu, Jan 31, 2002 at 03:59:22PM +1030, Simon G Hill wrote: > Have you done the following. > placed the files in a place where they can be found? > ie > usr/share/texmf/tex/latex/ > Run texhash from the command line? > Reconfigured LyX? > Restarted LyX? Sorry to have been too terse in my original note. By "[reconfigure, etc...]" I meant the process of doing Options->Reconfigure then exiting LyX and restarting it. The docs are quite clear about that process. When I ran lyx -dbg 2, the reconfigure produced these lines: checking LaTeX configuration... auto +Inspecting your LaTeX configuration. +checking for LaTeX version... 1998/12/01 +checking for default encoding (this may take a long time) + checking for ec fonts... yes + checking for ec support in LaTeX format... yes +checking for document class myclass [report, myclass.sty]... no So it clearly was not finding "myclass" but just as clearly it knew that it should be looking for it. I was trying to take the smallest first step at customization, creating a new "document class" derived from an existing one. It turns out I took a bigger step than I realized---I was in effect trying to introduce a new .sty, thinking I could simply work with a .layout. When I change the declaration line in myclass.layout to: \DeclareLaTeXClass[report]{myclass} I see "myclass" in the list of document classes in the Layout->Document popup. Now I can proceed, with all the great examples on the web page and elsewhere. I hope this bit of info helps some other clown who may be taking first steps at customization. Jim
EPS figure under text
I need to place an EPS image in the upper-left corner of my document, and I need the text of that document to write over that image as necessary. That is, the text should be unaware that the image is there at all. I need to place the image right where I want it, say .25 inch from both the top and left edges of the paper. I see lots of documentation and tips regarding floats and figures, with captions, and with text wrapping around them, but I don't see any mention of the sort of image placement I need. I suspect what I want to do is so simple that it doesn't bear mention in the documentation. I'm currently using LyX 1.1.5fix1. Can someone give me a hint where to begin? TIA, Jim
Paragraph ended before \Gin@iii was complete
On Fri, Feb 15, 2002 at 08:05:42AM +, Jose Abilio Oliveira Matos wrote: > Try http://www.lyx.org/help/ and there search for logo. There you will find > several tips how to do it [image in fixed position]. I took the simplest example on the logo page, where it says: \begin{picture}(0,0)(-150,-200) \includegraphics[scale=2]{Logo.eps} \end{picture} And I put \usepackage{graphics} in my preamble. The error LyX gives me is: "Paragraph ended before \Gin@iii was complete..." The error msg is right before the \includegraphics[scale=2]{Logo.eps} line. I'm pretty sure I've got all the brackets and parens in there per the web page example. Do I need another package in addition to graphics? Can someone point out what I'm doing wrong? I should mention that the "eps" I'm using is a jpg file saved as postscript by xv, positioned in the upper left of the page in the xv popup. I've used postscript files saved this way in other LyX documents, but always as ordinary floating figures. The eps file says at its top: PS-Adobe-2.0 EPSF-2.0, and has a bounding box, etc. FWIW, I'm using LyX1.1.5fix1, and the info in the graphics.sty file that kpsewhich points to says: \ProvidesPackage{graphics} [1999/02/16 v1.0l Standard LaTeX Graphics (DPC,SPQR)] TIA Jim
custom_export_command format
In lyxrc there's a section for Export with this example: #\custom_export_command "ps2pdf '$$FName' `basename '$$FName' .ps_tmp`.pdf" I want to make a pdf file, and having epstopdf on my system, I've been printing to ps, then doing: epstopdf --filter xxx.pdf Following the lyxrc example, I tried making the custom command as: \custom_export_command "epstopdf -f -o=`basename '$$FName'`.pdf" and several other variations on that form, but no pdf file results. I do get a .ps_tmp file and a very small .ps_tmp.pdf file in /tmp/lyx_tmp.../lyx_buf... but I was hoping for a pdf file in my working directory. Since I don't have ".ps_tmp" in my custom_export definition, I guess the suffix must be wired in somewhere. Can someone translate that example? I'm assuming "`basename '$$FName'`" means "xxx" in my little example above, but since I get no output, I'm probably assuming wrong. FWIW, I'm using lyx1.1.5. TIA, Jim
Importing ASCII elipses
Is there any way to mangle an ascii file to tell LyX that the three periods it finds in the imported text should be treated as ldots? The best I've come up with is a post-importation treatment, binding the following to a key: "command-sequence word-find-forward ...; cut; dots-insert" and then repeatedly hitting that key on the imported text. If I could hack the ascii beforehand with sed, it'd be a lot easier. I haven't found a way to enter the ldots (bound to M-period on my keyboard) into the Search/Find/Replace popup. If I could, then at least I could use its Replace-All button to do the job simply. Is there a way to do a "Replace-All" equivalent in a command sequence? Any other suggestions to simplify the process? I'm using LyX 1.3.2, Qt. TIA, Jim
No Meta key, LyX 1.3.5/Qt 3.3.4
I just installed LyX 1.3.5 as part of an upgrade of KDE; the LyX was actually listed in the KDE installer tool, Konstruct, which downloads various bits of source and configs and compiles them. I had been using LyX 1.3.2 with Qt 2.x successfully, and so far the new LyX seems to work, except for the lack of any Meta capability. My Xmodmap has the Alt key mapped to Meta_L, and that has not changed. xkeycaps shows the appropriate keycodes for all the keys. LyX is the only app I use that knows about Meta, so I don't have anything to compare against, except the fact that LyX 1.3.2 worked. My most basic testing has been to try to throw the focus to the minibuffer with M-x, on the theory that that test should bypass any bind file peculiarities, changes in syntax there between LyX versions, etc. My bind file contains: \bind "M-x" "command-execute" which seems about as simple as it gets. Nothing works; I don't get an "Unknown function" complaint, I just get an "x" in the text of my document, as though the Meta key wasn't there. But according to xmodmap it is, indeed, there: $: xmodmap -v -pm ! ! executing work queue ! xmodmap: up to 3 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lockCaps_Lock (0x42) control Control_L (0x25) mod1Meta_L (0x40), Alt_L (0x7d), Meta_L (0x9c) I've tried as well as the Alt key, with the same result. I have LYX_DIR_13x and LYX_USERDIR_13x set correctly. The KDE build tool takes the LyX source from ftp://ftp.lyx.org/pub/lyx/stable/ Is there a known issue with this version of LyX and/or Qt? Is there something else I need to configure? Can someone suggest any debug strategy? TIA, Jim
Re: No Meta key, LyX 1.3.5/Qt 3.3.4: Solved
On Sun, Jun 05, 2005 at 10:16:36PM -0700, I wrote: > I just installed LyX 1.3.5 as part of an upgrade of KDE... > [it's] as though the Meta key wasn't there. > ... > Is there something else I need to configure? It turns out the answer is Yes, KDE 3.4.0 has a Keyboard Layout setting in its Control Center->Regional & Accessibility section, in a tab "Xkb options." My old KDE 2.2.1 either didn't have this or defaulted to the right thing. Adjusting the settings there restored my Meta Key funtionality on the Alt key. Now if I can figure out how to activate a Compose Key I'll be even happier. Unfortunately, the KDE Control Center doesn't know about my Happy Hacking PC/XFree keyboard, (while xkeycaps does, and xkeycaps is vintage 1999) so activating the real keys in KDE's tool is total trial and error. FWIW, Jim