Re: lyx 2.0.1 and relative paths to tex files
curtis osterhoudt wrote: Have you tried NOT including the '.tex' extension on the \input{} command, whether or not you're using a relative path? If I remember correctly, you have to leave that bit off (for which reason I don't know, but that's how TeX expects it). Include everything else, though. Yes, I have tried it and it did not work. TeX I do not know, however, LaTeX and pdfLaTeX understand perfectly \input{foo.tex} and as I said before running pdflatex on the tex file exported from lyx-2.0.1 from a terminal works (with relative path and extension tex to the preamble file) Thank you very much for your comment Curtis Best regards Oscar On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote: > Dear LyXers > > I have recenty updated my lyx version to lyx 2.0.1 and I have found that > using relative paths to tex files at the lyx preamble does not work anymore. > > I have directory structures where lyx files are at some directories, bib > files at other, latex preamble commands at othes, and so on ... The lyx > preamble contains some input commands to take the corresponding latex > preamble, i.e. > \input{../common/preamble.tex}. > > In this way I can share project directories with other colleagues (for > instance using svn). We always use relative paths in order to ensure that the > compilation does not break. > > Now when I am trying to compile some documents from lyx 1.6.10 I have found > that lyx 2.0.1 stops the compilation saying > LaTeX Error: File `../common/preamble.tex' not found > > If I export the latex file using Export->latex (pdflatex) and from a terminal > I run pdflatex: > $pdflatex test.tex > > everything is ok! > > Attached to this message you can find a minimal example showing the problem. > Look at the file located at test/doc/test.lyx and try to pdflatex it from lyx > and after from a terminal. > > Please has something changed regarding the treatment that lyx gibes to > absolute versus relative paths? Hope not! I am completely puzzled with this > behaviour and perhaps I am missing something evident. > > Best regards > TIA > Oscar > > >
Re: lyx 2.0.1 and relative paths to tex files
Spyros Stathopoulos wrote: I think the problem is that LyX does not copy the "../common/preamble.tex" file over at the temporary build directory (usually something like /tmp/lyx_tmpdir./lyx_tmpbufX/ by default). I have encountered this kind of behavior before (albeit in a different case) but I could not find any reasonable solution beyond providing the full path. I do not know! As far as I know before lyx 2.0.1 using relative paths was the way to ensure to share projects that use many directories to organize the information. I have been using lyx since 1997 and never have a problem with this. In fact, I have been used to work in this way and it even worst I teach many people to do so. It would be nice if there were a solution to this. sure! For your case, unless you must maintain this kind of directory structure, it might help you if you put your preamble.tex file in the same directory as your *.lyx file and use \input{preamble.tex} instead of a relative path. This solution will be a nightmare! I got people at my institute to move from word to lyx and we have created many svn projects, books and many other things that rely on the fact that lyx can understand relative paths and in this way we can work all together. Hope there is something more evident. I cannot believe that this version of lyx is going to drop the support to relative paths I put an example with a tex file, but what about child documents, graphic files and others that until now I didn't tested with lyx 2.0.1. Although I am not entirely sure, in LyX 1.6.x there was a way to tell LyX to use the current WD instead of a temp one. Here using lyx-1.6.10 with the test I sent everything is ok. As far as I am concerned it does not require to tell lyx anything Thanks for your comments Best regards Oscar Spyros On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote: Dear LyXers I have recenty updated my lyx version to lyx 2.0.1 and I have found that using relative paths to tex files at the lyx preamble does not work anymore. I have directory structures where lyx files are at some directories, bib files at other, latex preamble commands at othes, and so on ... The lyx preamble contains some input commands to take the corresponding latex preamble, i.e. \input{../common/preamble.tex}. In this way I can share project directories with other colleagues (for instance using svn). We always use relative paths in order to ensure that the compilation does not break. Now when I am trying to compile some documents from lyx 1.6.10 I have found that lyx 2.0.1 stops the compilation saying LaTeX Error: File `../common/preamble.tex' not found If I export the latex file using Export->latex (pdflatex) and from a terminal I run pdflatex: $pdflatex test.tex everything is ok! Attached to this message you can find a minimal example showing the problem. Look at the file located at test/doc/test.lyx and try to pdflatex it from lyx and after from a terminal. Please has something changed regarding the treatment that lyx gibes to absolute versus relative paths? Hope not! I am completely puzzled with this behaviour and perhaps I am missing something evident. Best regards TIA Oscar
default math mode for multiline equations
Dear lyxers I would like to know if there is some way to customize the math environment that lyx provides when Ctrl+Enter is used (multiline formulae). As it is described at the math documentation section 18.1 when AMS math package is used the align environment is used as the default. Now I would like to use lyx memoir book together with AMS math package but using gather environment as the default environment for multiline math expressions. However, I cannot find at the preferences or layout files where this can be set. Sorry if I have missed something evident but I've checked documentation and gmane mailing lists and I couldn't find any answer. Can I customize lyx behaviour to get gather multiline environment when I hit CTRL+Enter using the AMS math package? Thanks in advance for your help Best regards Oscar
Re: memoir class lyx-1.5 file does not work with lyx-1.6
Steve Litt wrote: On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote: What surprises me is that it's dependent on LyX version. If the LyX file is called bar.lyx, I'd like to see you do the following: lyx-1.5.4 -e latex bar.lyx mv bar.tex bar-1.5.4.tex lyx-1.6.2 -e latex bar.lyx mv bar.tex bar-1.6.2.tex diff bar-1.5.4.tex bar-1.6.2.tex Then run latex on both tex files and see if one errors out while the other doesn't. Exploit the differences. Sorry, now I do not have the time nor the resources to reinstall lyx-1.5.x. However, I think that Jurgen explained quite well why there exist differences between both versions and I know that the treatment of latex code of lyx is always improving and when I've changed from one major version to the next one I've usually experienced some glitches of this kind but every time they have been worth the effort to fix them. Thanks for all your answers Oscar
Re: memoir class lyx-1.5 file does not work with lyx-1.6
Enrico Forestieri wrote: Jürgen Spitzmüller writes: LyX does this automatically for you, that's why your document works if the code is inserted directly to the preamble. In former versions, Lyx blindly embraced any preamble with this pair. Now, it tries to be smart and only embraces it if the preamble actually contains an @-glyph. Right, but LyX could also check whether \input is used in the preamble and add the \makeatletter,\makeatother pair as a safety measure. I agree with you and this way ensure that this kind of problems are avoided.
Re: memoir class lyx-1.5 file does not work with lyx-1.6
Jürgen Spitzmüller wrote: Oscar Lopez wrote: * if the lyx preamble consists of \input{foo.tex} it does not work and the aforementioned error appears. If I enclose \input{foo.tex} between \makeatletter and \makeatother then it works, which really puzzles me. *if the content of the preamble foo.tex is directly included in the lyx preamble everything work like expected. Jurgen: Thank you very much for your detailed and helpful explanation The glyph '@' has two different meanings in LaTeX. It is used as an active char (inside the document) and (for instance) as a namespace delimiter (in classes). The latter is the case in your preamble snippet, e.g. in l...@mkboth\markboth To switch between these two meanings, the commands \makeatletter and \makeatother are used. In general, you always need to embrace preamble code with \makeatletter ... \makeatother if it contains an '@'. LyX does this automatically for you, that's why your document works if the code is inserted directly to the preamble. In former versions, Lyx blindly embraced any preamble with this pair. Now, it tries to be smart and only embraces it if the preamble actually contains an @-glyph. In the \include-version, this is not the case. So now, somehow lyx parses the preamble and tries to be smart enough. The solution is a.) to embrace the original code accordingly, if it is in a normal tex file or ok! This solves the problem. Thanks again for your help, it is really appreciated. Best regards b.) make it a real sty-File (where this is not needed). HTH, Jürgen
Re: memoir class lyx-1.5 file does not work with lyx-1.6
Dear all I have been able to reproduce the problem. Attached there is a minimal lyx file together with a minimal preamble (foo.tex) which reproduces the problem. * if the lyx preamble consists of \input{foo.tex} it does not work and the aforementioned error appears. If I enclose \input{foo.tex} between \makeatletter and \makeatother then it works, which really puzzles me. *if the content of the preamble foo.tex is directly included in the lyx preamble everything work like expected. I am completely shocked about such behaviour. I am not sure what is going on and I'd appreciate somebody could comment about this. I have thought that could be related to master-child documents (the initial lyx file was a master and several child but now it is just one document) but it does not make any sense at all. I usually write the preamble into an external text file, especially when the preamble is complicated like the one of the book in order to be able to easily edit it. However, I enclosing the lyx preamble of the actual book between \makeatletter and \makeatother another errors appear as it would be expected. So, I am completely lost and I do not know how the problem could be solved. Perhaps I am missing something quite evident and I am writing rubbish. Any comment or suggestion is appreciated. Thank you very much for all your help Best regards Oscar Oscar Lopez wrote: Dear Lyxers I am trying to use a lyx template which uses the memoir book class that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to compile because the lyx error (in fact latex error) says: \pagestyle{myMainheading} I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. I thought that the problem could be related to this chunk of code \makepsmarks{companion}{% \l...@mkboth\markboth \def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks \def\sectionmark##1{\markright{% % right mark \ifnum \...@secnumdepth>\z@ \thesection. \% % section number \fi ##1}} } because when I remove it, everything works (the above code is a copy of the memoir manual) I've tried to reproduce the error in a minimal document but unfortunately I am not able to reproduce the error which suggest me that it could be a problem related with other packages. My question is that if there have been some modifications to the memoir layout from lyx-1.5 which can be responsible of the error. Do you have some advises to debug the problem because I am running out of ideas? Thank you very much for all your help Best regards Oscar %--- % Definir los encabezados y pies de los capitulos \makepagestyle{myMainheading} \makerunningwidth{myMainheading}{\textwidth} \makeheadposition{myMainheading}{flushright}{flushleft}{}{} \makepsmarks{myMainheading}{% \l...@mkboth\markboth \def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks \def\sectionmark##1{\markright{% % right mark \ifnum \...@secnumdepth>\z@ \thesection .\hspace{4pt} % section number \fi ##1}} } \makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}% {\normalfont\footnotesize\leftmark} \makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}% {\normalfont\footnotesize\thepage} plantilla.lyx Description: application/lyx
memoir class lyx-1.5 file does not work with lyx-1.6
Dear Lyxers I am trying to use a lyx template which uses the memoir book class that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to compile because the lyx error (in fact latex error) says: \pagestyle{myMainheading} I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. I thought that the problem could be related to this chunk of code \makepsmarks{companion}{% \l...@mkboth\markboth \def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks \def\sectionmark##1{\markright{% % right mark \ifnum \...@secnumdepth>\z@ \thesection. \% % section number \fi ##1}} } because when I remove it, everything works (the above code is a copy of the memoir manual) I've tried to reproduce the error in a minimal document but unfortunately I am not able to reproduce the error which suggest me that it could be a problem related with other packages. My question is that if there have been some modifications to the memoir layout from lyx-1.5 which can be responsible of the error. Do you have some advises to debug the problem because I am running out of ideas? Thank you very much for all your help Best regards Oscar
Re: A method to insert syntax colored matlab code into Lyx
Oscar Lopez wrote: BcBob wrote: The matlab code and a sample Lyx document are in the attached zip file. Bob http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip However, I tried to test a simple matlab file, following the notes on the lyx file, and I got the following error: Ok, it seems that it works when the absolute path is specified. For instance >>pwd ans = /home/oscar >> matlab2tex('foo.m') ??? Error using ==> fprintf Invalid file identifier. Use fopen to generate a valid file identifier. Error in ==> highlight>write_highlighted_code at 126 fprintf(outfid,out_format.pre_start); Error in ==> highlight at 110 write_highlighted_code(mfid,outfid,opt) Error in ==> matlab2tex at 57 highlight(mfile,opt,fid); despite the fact that foo is in matlab current directory. However, >> matlab2tex('/home/oscar/foo.m') works like a charm. Sorry for the noise. Best regards
Re: A method to insert syntax colored matlab code into Lyx
BcBob wrote: I have developed another solution to inserting matlab code into Lyx using the 'highlight.m' function from the matlab file exchange. This function creates latex output for the syntax colored matlab code. I wrote a driver function matlb2tex.m that takes care of the details. You can insert the latex into an ERT in your Lyx document. Thank you for sharing it! The matlab code and a sample Lyx document are in the attached zip file. Bob http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip However, I tried to test a simple matlab file, following the notes on the lyx file, and I got the following error: ??? Error using ==> fprintf Invalid file identifier. Use fopen to generate a valid file identifier. Error in ==> highlight>write_highlighted_code at 126 fprintf(outfid,out_format.pre_start); Error in ==> highlight at 110 write_highlighted_code(mfid,outfid,opt) Error in ==> matlab2tex at 57 highlight(mfile,opt,fid); FYI matlab version is >> version ans = 7.4.0.336 (R2007a) Best regards Oscar
Re: floats inserted in a beamer presentation does not show the label counter
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: > > Oscar Lopez wrote: > > RTFM (beameruserguide, sec. 11.6). There's a good rationale provided why it > is > so. I am sorry, my fault. I looked for "float" and nothing relevant appeared. Next time I'll be more careful. > \setbeamertemplate{caption}[numbered] Thanks for your time and patience! > > Jürgen > >
floats inserted in a beamer presentation does not show the label counter
Dear Lyxers When I insert a Float Figure in a beamer presentation with a caption the label counter it does not show at the pdf output. However, if i insert a reference to the figure label this reference is correctly displayed at the pdf output. Is this expected? Is there any way to include a numbered float in a beamer presentation? Any possible workaround? I know that it could be a little bit strange to use floats in a presentation. However, I am working in a somehow kind of a mixture between article and presentation project. Thank you very much for all your help Best regards
Re: multiplatform vector drawing program to use
Oscar Lopez <[EMAIL PROTECTED]> writes: Thank you very much for your contributions to this thread I would like to give a brief summary of what I have been able to learn I gave a try to inkscape however it seems that the render of latex formula is broken at linux at version 0.45. Last stable version I haven't been able to compile at linux and I can not comment So far, the more promising try have been ipe. It seems that latex formulae can be easily inserted. There are some minor issues that I have to get used, but it could be the tool we are looking for. PyX seems to much low level for my taste. We were looking something more drag'n'drop Before I recommend my colleague to give a try to jfig I'd like to hear from people that have used it if jfig can be used the same way that xfig with the external material inset (taking care of latex formula rendering internally using some python scripts) Other possibility would be cygwin however it will depend on the policy of the system administration where he works. Once again thank you very much for your valuable contributions.
multiplatform vector drawing program to use
Dear lyxers I am starting a document project with a colleague using lyx. The goal is to obtain a big document of a technical course. My colleague uses the windows version of lyx and I use the linux version. At this initial stage we can easily share simple documents. Now we are concerned with the use of a common vector drawing program that can be used at both platforms. The main feature that we require is that the vector drawing program can annotate drawings with latex math formulae. I am quite satisfied with the current support of xfig at lyx using external material. However, as far as I know, xfig only runs at linux machines therefore we are looking for an alternative program. Could anybody care to give us some recommendation? Any advice related to other aspects of such a project are also welcome. Thank you very much for all your help Best regards
Re: pdf output of boldsymbol math does not work
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: > > Paul A. Rubin wrote: > > Apparently, as of a recent version, LyX loads mathptmx automatically if > > you select Times Roman as your Roman font. Since mathptmx has no bold > > symbols, I can see this being a problem, and I'm surprised it was done. > > In the short term, the workarounds are either to switch your font to > > something else or to export to LaTeX, manually edit out the > > \usepackage{mathptmx} line and then manually compile the document. > > > > Perhaps a developer can address why the change was made? > > Short answer: > http://tug.ctan.org/get/info/l2tabu/english/l2tabuen.pdf > (sec. 2.3.1) But as Paul has pointed out mathptmx has no bold symbols. Therefore lyx has to load something to the preamble in the case math boldsymbols are required. Either a \usepackage{bm} together with \usepackage{mathptmx} are added or only \usepackage{bm} is loaded. Please note that the first solution produces math boldsymbols with poor quality while the second uses Computer Modern fonts. Best regards
Re: pdf output of boldsymbol math does not work
Paul A. Rubin <[EMAIL PROTECTED]> writes: > > Oscar Lopez wrote: > > Apparently, as of a recent version, LyX loads mathptmx automatically if > you select Times Roman as your Roman font. Since mathptmx has no bold > symbols, I can see this being a problem, and I'm surprised it was done. Yes I didn't expect this behaviour, too. > In the short term, the workarounds are either to switch your font to > something else or to export to LaTeX, manually edit out the > \usepackage{mathptmx} line and then manually compile the document. Ok, the first workaround seems to me more versatile at least I do not have particular constraints related to font choice. > > Perhaps a developer can address why the change was made? > I have been using lyx since version 1.2.x and this caught me by surprise. > As far as the braces are concerned, LyX is interpreting your typing of > '\boldsymbol{' as requesting both a bold symbol and a set of braces. > Try '\boldsymbol ' (note the space at the end). Thanks Paul for your promptly and helpful answer. Best regards
pdf output of boldsymbol math does not work
Dear all It seems that pdf output of boldsymbol math does not show properly when the command \boldsymbol is used. I am using lyx-1.5.4 (compiled version using kubuntu and texlive) Open a new document (article) enter a math inset with \boldsymbol* an enter a letter \boldsymbol{a} \boldsymbol{\alpha}. Then, View->PDF (pdflatex) the math fonts are not bold faced. The culprit seems to be the \usepackage{mathptmx} included by lyx at preamble. Adding \usepackage{bm} creates a quasi bold face math both by shifting slightly the font (the looking using a zoom is poor) However, if the package mathptmx is not loaded and only the bm package is loaded, the Computer Modern where the bold symbols are present will be used, which is the correct way to go. Is there anybody experiencing something similar? Is there any work around to avoid the automatic insertion by lyx of the mathptmx package? What is the recommended way to produce math boldsymbols using the current version of lyx? Sorry if I missed something evident I have checked through the archives and I didn't find anything related to this problem. Thank you very much for your help Best regards * By the way when \boldsymbold{ is typed a box is created and left and right braces are also created which imho is confussing.
Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x
Oscar Lopez <[EMAIL PROTECTED]> writes: > However the old beamer lyx files with that > produces latex errors. Sorry I meant "However the old beamer files using lyx-1.4.x with that produces correct latex and pdf output."
Re: bug using lyx-1.5.2 export at the command line?
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: >Does it crash on any file or only on specific files? If the latter, do these >files contain something specufic, such as a branch inset? It crash on a simple beamer lyx file (just a frame and an item, no text with branches, no notes, nothing particular, just a branch defined in Document Settings and activated) >Also, running the command in gdb to produce a backtrance would help. Here you have: % gdb lyx GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) run :0 -e pdf2 test.lyx Starting program: /usr/local/bin/lyx :0 -e pdf2 test.lyx [Thread debugging using libthread_db enabled] [New Thread -1220835648 (LWP 15502)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1220835648 (LWP 15502)] 0x0806f7a9 in lyx::Branch::Branch () (gdb) bt #0 0x0806f7a9 in lyx::Branch::Branch () #1 0x0806fa77 in lyx::BranchList::add () #2 0x0809bbdf in lyx::BufferParams::readToken () #3 0x0807d741 in lyx::Buffer::readHeader () #4 0x0807deb5 in lyx::Buffer::readDocument () #5 0x0807f38c in lyx::Buffer::readFile () #6 0x0807fceb in lyx::Buffer::readFile () #7 0x0808b899 in lyx::(anonymous namespace)::readFile () #8 0x0808c1d1 in lyx::loadLyXFile () #9 0x08143079 in lyx::LyX::loadFiles () #10 0x08150465 in lyx::LyX::exec () #11 0x08067614 in main () I have played around a little bit and I can confirm that independently of the document class everytime the document has a branch defined at Document Settings (activated or not) the export from the command line fails. However File-> Export-> PDF (pdflatex) it works. > >Jürgen Thanks Jurgen Best regards PS Sorry for the delay but yesterday gmane were down
Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x
José Matos <[EMAIL PROTECTED]> writes: > I think that in this case the problem is not lyx2lyx but it is a bug that is > scheduled to be fixed in 1.5.3. Please could you elaborate more on that? I mean, I have tried to produce, using lyx-1.5.2, a minimal example showing the problem and I haven't succeeded. I put a note inlined within the text (using lyx-1.5.2), this is what lyx-1.5.2 (latex) complains, and everything is fine. However the old beamer lyx files with that produces latex errors. What is the bug you refer to? > If you have any problem with convertions from previous version please report > them here. Thanks Best regards
bug using lyx-1.5.2 export at the command line?
Hello When I try to export a pdf file using the command line at my linux box the I get the following message % lyx -e pdf2 file.lyx lyx: SIGSEGV signal caught Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks ! Bye. Does anybody experience the same problem? Is this a know bug? If it helps I compiled the tar.gz file and % lyx --version LyX 1.5.2 (Fri, Oct 5, 2007) Built on Oct 10 2007, 18:21:05 Configuration Host type:i686-pc-linux-gnu Special build flags: aiksaurus pch use-aspell use-ispell C Compiler: gcc C Compiler LyX flags: C Compiler flags: -O2 C++ Compiler: g++ (4.0.3) C++ Compiler LyX flags: C++ Compiler flags: -O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version: 4.1.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx Thanks for your help Best regards
Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x
Paul A. Rubin <[EMAIL PROTECTED]> writes: > > No, I've had no problems opening old beamer presentations (and, like > you, I have a bunch of them). The format for LyX document files evolves > with new releases, and there is a conversion tool included with LyX to > convert older format LyX files to the current format. It works pretty > well but perhaps not perfectly; it may have tripped over something a bit > unusual in your presentation file. Whether it will have similar > problems with other presentations is hard to predict. ok. I understand that. I think that the source of the problem could be that I use a beamer.layout which I do not remember well where I got, and there were differences with respect the one that the conversion tool covered, but I am not sure. Anyway, I can live with this. > > > > - the generated pdf embbeds type 3 fonts (bitmapped) > > - the look of the fonts is quite different > > > > I believe that if you want the Adobe standard fonts, you should select > Times Roman, Helvetica and Courier for Roman, San Serif and Typewriter > respectively. Yes, that did the trick. > If your imported slide show had the Roman font set to > Times Roman and you got bitmapped fonts anyway, my guess is that they > were for special characters (math symbols, san serif fonts, something > like that). The default font of the beamer.layout was San Serif and lyx-1.5.2 selects "Default" for the San Serif font and i think that this was the problem. When I have selected Helvetica for San Serif following your advice everthing looks the same as before (including Type 1 fonts). Thanks a lot for your help Paul. Best wishes
Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x
Hello lyxers Yesterday I updated from lyx-1.4.x to lyx-1.5.2 and first of all I would like to thank to developers for such a great software. The first try I did when testing the new version was to load a beamer presentation I was working on. The first thing I got was a bunch of errors in the Lyx: latex Errors window, something like this: Latex Error: \begin{center} on input 211 ended by [EMAIL PROTECTED] Extra }, or forgotten \endgroup You can't use '\prevdepth' in horizontal mode Missing $ Inserted, Missing number, treated as zero. I finally managed to compile the document by moving to a new paragraph all lyx notes and branches that were inlined within the text. What worries me is that I have many presentations made in the past that I frequently use and I expect that the same problem can appear. Has anybody experienced the same problem or similar ones? Another notorius difference is the new font selection mechanism. In lyx-1.4.x I selected the fonts of the document to Times. Now the new font selection window it says Default Family: Default and Roman: Times Roman. The problem is twofold - the generated pdf embbeds type 3 fonts (bitmapped) - the look of the fonts is quite different Why lyx-1.5.2 does not load the previously used by lyx-1.4.x font correctly? And by the way, when I selected Font: Times in lyx-1.4.x what is the font that I have to select in lyx-1.5.2 to get the same printable results. Having said that, I would like to underline that I really appreciate the new features lyx-1.5.2 has and I am looking forward to working on a daily basis with such a beautiful creature! Thanks a lot for all your help Best wishes
Re: xfig external inset (pstex pstex_t mechanism)
> Oscar Lopez wrote: > >> As a side note, how the external inset knows if the fig file must be >> exported as combined ps/latex, it scans the fig file looking for the >> special flag of the text? > > No. As you can see from the definition of the xfig external inset it creates > a file in pstex format (for latex) or pdftex format (for pdflatex). If you > look up the fig->pstex and fig->pdftex converters you can see that those > files are create by the scripts fig2pstex.py and fig2pdftex.py, > respectively. These scripts invoke fig2dev, and it is finally that program > that creates a bit of wrapper LaTeX code that takes care of the special > text. > This may look complicated, but it works well, and the advantage over > examining the .fig file in LyX is that we do not need to know anything > about the .fig file format, so this works even if the .fig file format > changes. Thank you for the detailed explanation Very smart and good work! Keep it up! Best wishes!
Re: xfig external inset (pstex pstex_t mechanism)
Quoting Georg Baum <[EMAIL PROTECTED]>: > Jean-Pierre Chretien wrote: > >> Seems that lyx does not add the required \usepackage{xcolor} >>when an xfig >> inset is present, I had to add it manually to make it work. I added \usepackage{xcolor} to the preamble and it worked as expected > > Why xcolor? color works for me. xcolor would require to change the >>C++ sources ;-( George, I followed too, your suggestion about external_template, independently of the above solution, and it worked too. Thanks to both of you As a side note, how the external inset knows if the fig file must be exported as combined ps/latex, it scans the fig file looking for the special flag of the text? Best wishes
Re: xfig external inset (pstex pstex_t mechanism)
Quoting Georg Baum <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > >> I thought that external inset shipped with 1.4.x was able to manage >> this situation, perhaps I am wrong. > > It should. Please send a minimal example .lyx file + .fig file, so that > we can reproduce the problem. Attached a minimal example > PS: And remove the disclaimer, that does not make sense on a public > mailing list. Sorry about that, I think that I cannot control this, , Hope that from this account there is not disclaimer foo.lyx Description: application/lyx foa.fig Description: application/xfig
Re: "Floats" over more than one page
Dekel Tsur wrote: > > On Wed, Feb 06, 2002 at 12:14:00PM +0100, Oscar Lopez wrote: > > Use something like this: > > In the preamble: > \usepackage{framed} > \def\xcaption#1{% > \fs@boxed% > \def\@captype{algorithm}% > \caption{#1}% > \unvbox\@floatcapt\par} > > and in the text use: > \begin{framed} > . > . > \end{framed} > \xcaption{the caption} > Thanks a lot Dekel, it works really really nice -- http://www.iit.upco.es/~oscar If pro is the opposite of con, what is the opposite of progress?
"Floats" over more than one page
Hello eveyone I have a book-based document and I am using the algorithm floats. The document options are boxed and chapter and in this way the look of the algorithm is boxed with the caption located at the bottm of the frame with the numbering based on chapter number. I have only one long algortihm that extents over more than one page. So, I checked the amazing help provided by our beloved Herbert and, as usual, I found a useful tip http://www.lyx.org/help/floats/nonFloat.php3 So I tried to patch the Table example to cover the algorithm case \newenvironment{myAlgorithm}[1] {% caption as parameter \stepcounter{algorithm} \vspace{1ex} \addcontentsline{lot}{section}{\thealgorithm\hspace{0.75em} #1} \center{\textbf{Algorithm \thealgorithm : }#1}% } {% \vspace{1ex}% \addtocounter{algorithm}{-1}% } and it works but the caption is located at the top of the algorithm, the text is centered inside the float and there is no framebox. So, please could you point me out a way to solve these problems? i.e 1. The caption located at the bottom of the algorithm 2. The framebox extended over more than one page Thanks a lot for your help Greetings Oscar -- http://www.iit.upco.es/~oscar Good day to avoid cops. Crawl to school.
Re: \mathbb{R}
[EMAIL PROTECTED] wrote: > > Hola > > Tengo un problema cuando intento poner letras tipo mathbb. Antepongo a > la letra el codigo latex \mathbb{R}, por ejemplo, pero me da error de > Latex cuando quiero ver el pdflatex. Trabajo con la version 1.1.6fix1 > Layout->Document->Extra->Use AMS Math and then m \mathbb{ R Please, try to ask your questions in english because the language of the list is english. If you do so, most people will help you Hope it helps > Gracias -- http://www.iit.upco.es/~oscar Look ere ye leap. -- John Heywood
Re: movie in pdflatex
Torben Lund wrote: > > Dear lyx-users > > Is it possible to in include a movie (mpeg/avi/mov ...) in a PDF > document using pdflatex? To include avi files you can use the following command in the preamble: \newcommand{\video}[5]{\vspace{#3}\hspace{#2}{\pdfannot width #4 height #5 depth 0cm { /Subtype /Movie /C [1 0 0] /Border [0 0 3] /Movie <> }}} and then, by means of ERT \video{g.avi}{4cm}{12cm}{12cm}{12cm} where the first argument is the name of the file, and the 2nd and 3rd control the location of one corner, and 4th and 5th the width and height of the box You can control the color of the frame and thickness by modifying /Border. Hope it helps PS If you are using linix the avi file won't display properly, as far as I know, but the pdf can be created in linux and can be displayed correctly in windoze PS For the other formats, i.e. mpeg and mov I do not know if the trick will work, I have never tried > > Regards Torben Lund > > > Name: torbenl.vcf >torbenl.vcf Type: VCard (text/x-vcard) > Encoding: 7bit > Description: Card for Torben Lund -- http://www.iit.upco.es/~oscar You should emulate your heros, but don't carry it too far. Especially if they are dead.
dvips + psfrag problem ?
Hello lyxers First of all I apologize because the subject it is a little bit off-topic but I don't know where I can post a problem like this, please if you could point me out another forum I will be very grateful to you To compose figures with nice math fonts I use psfrag, but when I need to produce a pdf output I have to put the eps file with the psfrag commands in another lyx file, let's say psfrag.lyx, and try to adjust the paper size to the eps file bounding box and produce a eps file (using export-> postscript) with the psfrag substitutions. This latest eps file can be converted to pdf and in this way I can produce pdf figures with the same quality as postcript files with psfrag. Now when I insert the eps file, i.e. psfrag.eps, into the main lyx file, lyx produces a nice postscript in which there is no eps figures, ant the worst thing is that it doesnt complaint about anything. One year ago this worked for me. Now I am not able to produce the same result even with the same files generated one year ago. The only differences I have now are a new teTeX distribution and several lyx updates. After a lot of tests I am almost sure that the source problem could be dvips which has changed from v.5.78 to 5.86 or maybe some obscure parameter exchanging between lyx and the others programs. Dos anybody experience similar problems ? Does anybody know if dvips 5.86 is expected to be buggy ? Is anybody using this kind of solution to produce pdf figures with nice math fonts, i.e. mathscript ? What other kind of solutions exist to produce figures with math latex fonts in eps and pdf format at the same time ? Thanks in advance for your help and keep up the good work Best regards -- http://www.iit.upco.es/~oscar Law stands mute in the midst of arms. -- Marcus Tullius Cicero
Re: Cancellation in equations
Rem wrote: > > > I have an equation that is being derived and I need to show some > cancellations during the evolution. Is there a way I can show the > cancellations, like a line segment (probably slope = 1, to be more specific) > drawn on a division? > In latex preamble \usepackage{cancel} and then in math environment \cancelto{reason_of_cancelation}{whatever_you_need_to_cancel} There are several commands, look at the package documentation Hope it helps > > Remzi -- http://www.iit.upco.es/~oscar No amount of genius can overcome a preoccupation with detail.
Re: RTF > LaTex conversion
Shawn Koons wrote: > > Is there a program that will convert RTF to LaTex (or Lyx) that would > make it easier to import a document into Lyx with most of the formatting > in place? > > Converting RTF to, importing the text to Lyx, and then going through the > document by hand is a bit time-comsuming when dealing with 60 page+ > documents. Have you tried http://members.home.net/setlur/rtf2latex2e ? > Shawn > > -- > Mitakuye Oyasin > -- -- http://www.iit.upco.es/~oscar Today is the first day of the rest of the mess.
Re: draftcopy
Francesco Scaglioni wrote: > > Thanks, > > Is it possible to use more than one option eg. no pages have draft > across them but all have draft at the bottom? You can use the option bottom to print DRAFT on all pages at the bottom. For other options you can check the draftcopy documentation located at: /usr/share/texmf/doc/latex/draftcopy > > Thanks again > > Francesco -- http://www.iit.upco.es/~oscar Fat Liberation: because a waist is a terrible thing to mind.
Re: draftcopy
Francesco Scaglioni wrote: > > Hi and thanks in advance, > > As a newcomer to lyx and tex I am looking for pointers as to where to > go now. I have downloaded and installed (I think successfully) the > package 'draftcopy'. My question is a simple one. Within Lyx - how > should I go about implementing it with respect to a particular > document. I assume it requires entries in the preamble but my > experience there so far has been limited to settling headings etc. Layout-> LaTeX Preamble and then \usepackage{draftcopy} or, for instance \usepackage[firsttwo]{draftcopy} if you want to use the firstwo option > > Many thanks > > Francesco -- http://www.iit.upco.es/~oscar A critic is a bundle of biases held loosely together by a sense of taste. -- Whitney Balliett
Re: Bug in pretty ref
> > > Name: NouveauFichier.lyx >NouveauFichier.lyxType: Lyx Document (application/x-lyx) > Encoding: quoted-printable BTW if I change the language of the document from default to spanish while the caption Table is translated to Tabla, the text that prettyref add "Table x on page y" is not translated when I hoped that it would be Do I have a problem with the babel spanish stuff ? doesn't prettyref support babel? Does anybody observe this behavior with other languages? What am I doing wrong? -- Oscar
Re: Comments on lyx.1.1.5pre3 and layouts
Alain Castera wrote: > On Fri, 26 May 2000, Oscar Lopez wrote: > > > I am trying something like that > > > Style parama > > What about : > > Style parama > LatexType Command > LatexName parama > Preamble > \newcommand{\parama}[1]{\def\theparama{#1}} %% !! 1 sharp > %\parama{Not Given!} > EndPreamble > End > ... > > Style foocommand > Margin First_Dynamic > LatexType Command > LatexName myfoocommand > Preamble > \newcommand{\myfoocommand}{\foocommand{\theparama}{\theparamb}{\theparamc}} > EndPreamble > ... > End > > You can also do paramc and myfoocommand at once. Yes, it works ! I was making a lot of mistakes, but now it is very clear the way to do it, ;-)) Thanks for all your help,
Re: Comments on lyx.1.1.5pre3 and layouts
Alain Castera wrote: > Style foocommand > Margin First_Dynamic > LatexType Command > LatexName myfoocommand > Preamble > \newcommand{\myfoocommand}{\foocommand{\theparama}{\theparamb}{\theparamc}} > EndPreamble > ... > End > > You can also do paramc and myfoocommand at once. > > Please check the syntax, I didn't !!! Hope this helps anyway Currently using Style parama LatexType Command LatexName parama Preamble \newcommand{\parama}[1]{\def\parama{#1}} EndPreamble End Style paramb LatexType Command LatexName paramb Preamble \newcommand{\paramb}[1]{\def\paramb{#1}} EndPreamble End Style paramc LatexType Command LatexName paramc Preamble \newcommand{\paramc}[1]{\def\paramc{#1}} EndPreamble End Style foocommand Margin First_Dynamic LatexType Command LatexName foocommand LatexParam "{\parama}{\paramb}{\paramc}" LeftMargin xx::xx LabelSep xx KeepEmpty 1 Align Left AlignPossible Left LabelType Static LabelString "Titulacion (#3)" # label font definition LabelFont Series Bold Shape Italic Color Blue EndFont End it works only the first time. I mean, the first time I write the three paragrahs with param and after the foocommand style, then I try to write another different paragrah style; but I try to use again the parama, paramb, paramc, styles and then the output shows the oldest values of param, and it doesn't work properly. It should be noticed that I am not very familiar with latex command such as \def and I don't know how to reset their values, maybe when the style foocommand has been issued, Thanks for all your help Best regards
Re: Comments on lyx.1.1.5pre3 and layouts
Oscar Lopez wrote: > I am trying something like that > > Style parama > LatexType Command .. > LatexType Command > LatexName foocommand > LatexParam "{\param1}{\param2}{\param3}" sorry this was an error, I have used LatexParam "{\parama}{\paramd}{\paramc}" > LeftMargin xx::xx > LabelSep xx > KeepEmpty 1 > Align Left > AlignPossible Left > LabelType Static > LabelString "foocommand" > > # label font definition > LabelFont > Series Bold > Shape Italic > Color Blue > EndFont > End
Re: Comments on lyx.1.1.5pre3 and layouts
Jean-Marc Lasgouttes wrote: > >>>>> "Oscar" == Oscar Lopez <[EMAIL PROTECTED]> writes: > > Oscar> Unfortunately this is not the case. Most of the times every > Oscar> argument represent a field that you have to fill with an > Oscar> arbitrary text, and sometimes some arguments remain empty and > Oscar> sometimes they must be completely filled. The more usual latex > Oscar> command that I'd like to support is something like that > > Oscar> \foocommand{first field with arbitrary text}{second field with > Oscar> arbitrary text}{third field with arbitrary text} > > In this case, you have to define a few other commands, so that you > have one paragraph for each argument, and then some clever way to > issue the final macro (something like \maketitle). This means that the > LaTeX code will not be "pure" but it will work. I am trying something like that Style parama LatexType Command LatexName parama Preamble \newcommand{\parama}[1]{\def\theparama{##1}} %\parama{Not Given!} EndPreamble End Style paramb LatexType Command LatexName paramb Preamble \newcommand{\paramb}[1]{\def\theparamb{##1}} %\paramb{Not Given!} EndPreamble End Style paramc LatexType Command LatexName paramc Preamble \newcommand{\paramc}[1]{\def\theparamc{##1}} %\paramc{Not Given!} EndPreamble End Style foocommand Margin First_Dynamic LatexType Command LatexName foocommand LatexParam "{\param1}{\param2}{\param3}" LeftMargin xx::xx LabelSep xx KeepEmpty 1 Align Left AlignPossible Left LabelType Static LabelString "foocommand" # label font definition LabelFont Series Bold Shape Italic Color Blue EndFont End with three differents paragraphs for the parameters and after the paragraph with the style foocommand but i am not able to achieve a good result, > > > BTW, what is the package you want to support? Is that IEEEcv, or > another one? The spanish tex group has developed a latex class of the official cv for the spanish ministry of Industry and I am trying to support it, > JMarc Oscar
Re: Comments on lyx.1.1.5pre3 and layouts
Jean-Marc Lasgouttes wrote: > Oscar> 2. How can I create a style layout for a latex command with, > Oscar> let's say, five arguments ?. I am trying to write a lyx layout > Oscar> for a specific cv class, and in this class there are many latex > Oscar> commands with a different number of arguments. For example, > Oscar> there are commands like > Oscar> \foocommand{}{}{}{}{X}{foo} > > If the empty braces are always empty and the X is a constant, you can > do > LatexOptions "{}{}{}{}{X}" Unfortunately this is not the case. Most of the times every argument represent a field that you have to fill with an arbitrary text, and sometimes some arguments remain empty and sometimes they must be completely filled. The more usual latex command that I'd like to support is something like that \foocommand{first field with arbitrary text}{second field with arbitrary text}{third field with arbitrary text} Thanks,
Comments on lyx.1.1.5pre3 and layouts
Hi all lyx-user's First of all, I would like to say that I am impressive with the new version of lyx.1.1.5pre3 and I really appreciate all the lyx team effort. I have discovered a new feature that I really like it, that is the possibility of editing and inserted label on the text, I have to say that I am currently using lyx.1.1.4pre1 as the latest stable version and perhaps I have missed the new feature in the meantime. I was wondering if this feature is supposed to work too in the math-mode, because it doesn't work for me, and this would be really nice. Relating to layouts I have several questions 1. How is it possible to make a style that allows you to insert a latex command without argument, I'd like to insert the style in a similar way as insert table of contents, just a command. At this moment when I selected the desired style I have to put a protected blank space, Ctrl-space, to avoid to write something. 2. How can I create a style layout for a latex command with, let's say, five arguments ?. I am trying to write a lyx layout for a specific cv class, and in this class there are many latex commands with a different number of arguments. For example, there are commands like \foocommand{}{}{}{}{X}{foo} that I'd like to support with a style layout Thanks in advanced Best regards
Re: Boxing an equation array environment
Herbert Voss wrote: > ok, here it comes ... not easy, but it's what you want ;-) > now \mybox{the lyx formula} > gives a boxed formula with a optimized frame. the value for \parbox in > \newcommand\myBox ... is no more important, but don't leave it blank, > latex needs a value. i choose the tex-code from fancybox.sty where > the Beqnarray is defined. This is a good suggestion, the next time I will try to read the latex code, but if I use lyx is to avoid the latex code that is too much for me ;-) In my opinion, the underlying problem is the lack of possibilities of LyX math mode to accomodate other math environments. Redefining the eqnarray environment gives only one possibility to play with equations, so this is the reason because I was asking if there exists any possibilities that in future lyx versions the math mode will be able to support other math environments, I mean, it is not necessary to support completely other environments, but from my point of view, at least it would be enough to give the possibility to enter ERT in order to support other environments but keeping displaying mathmode of lyx. I am sure that it should not be easy to do this, at least I do not have any suggestion to do it :-oohhh > \renewenvironment{eqnarray}% > {% code for \begin{} > :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o :-o > :-o :-o > \egroup > \global\@ignoretrue% > } Gua, it is really astonishing ! and of course it works, thank you very much Herbert for your effort, that is more than I expected, ., Best regards,
Re: Boxing an equation array environment
Juergen Vigna wrote: > > > Why not use a 1X1 tabular and put there a mathbox? Well yes it is displayed > in an own row then, so this might not be what you want, but ... ;) I am trying to avoid to use the displayed equation, I need to use the \sum, \int, \frac in the eqnarray environment, and the problem is, as Herbert has pointed out, the equation numbers, too. Thanks,
Re: Boxing an equation array environment
Herbert Voss wrote: > i'm sorry, but this doesn't work ... :-( > choose this one: > > \newcommand{\myBox}[1]{\hspace{1cm}\hfill% > \fbox{% > \parbox{5cm}{#1}% > }% > \hfill% > \parbox{0.5cm}{% > \begin{eqnarray}\end{eqnarray}% > } > } > Yes, it works, thank you, Herbert, In order to solve the problem of numbering equations a set of commands depending on the number of rows of the equation array can be defined as follows: \newcommand{\myBoxII}[1]{\hspace{1cm}\hfill% \fbox{% \parbox{5cm}{#1}% }% \hfill% \parbox{0.5cm}{% \begin{eqnarray} \\ \end{eqnarray}% } } \newcommand{\myBoxIII}[1]{\hspace{1cm}\hfill% \fbox{% \parbox{5cm}{#1}% }% \hfill% \parbox{0.5cm}{% \begin{eqnarray} \\ \\ \end{eqnarray}% } } .. but now my question is there exists any way to adjust automatically the size of the boxes ? It is a little bit painful try to adjust the size by hand, but if there isn't other solution, , Thank you very much for all your help,
Boxing an equation array environment
Hi all lyx-user's ! I would like to know how can I boxed an eqnarray environment. I have used the ams command boxed but it only works with single equations. I have tried with the fancybox package, with the environment Beqnarray, but there are two things that it doesn't satisfy me. First of all, it seems that there is no support to do this at lyx, I mean, I have to type all the environment and the equation too in red to obtain the boxed equation array and I'd like to use the math mode of LyX. And finally, the output result has the equation number inside the box with the Beqnarray, and I would like to have every equation number outside the box, as the ams boxed command do it. BTW there are any possibility that in future versions of lyx the math mode will be able to support other amsmath environments such as align, alignat, ..., ? Best regards and many thanks in advanced for any help
AMS_Theorem layout difficulty
Hi ! I would like to create a layout for a theorem like environment. I want to create an Axiom environment but I need to add a title following the word Axiom, but in a parametric way, such as 3.1 Axiom of local production of entropy. Bla, bla, bla, bla 3.2 Axiom. Bla bla bla 3.3 Axiom of locality. BLa bla bla Sometimes there is an axiom title and others is not specified. When the title is specified I would like to introduce the title in the same manner like other styles in lyx do it Could you please point me out some solution for such thing or at least some general ideas ? BTW How can I get the numbers of theorem-like environment aligned to the left of the word Theorem, Axiom, etc, ..., Thanks in advanced for your help
Re: Problem compiling lyx-1.1.4pre1
Jean-Marc Lasgouttes wrote: > > I do not know what the real mandrake/redhat package names are in this case. > > Oscar> So I am afraid that the header files are not installed, I am > Oscar> not able to find the libstdc++-devel package. Am I looking for > Oscar> correctly the header files ? what is the name of the header > Oscar> file that I should look for ? > > You should find files like `string' or `ostream' (C++ STL header files > do not have an extension). > > JMarc I am sorry but I am not able to find files like 'string' or 'ostream'. [oscar@kepler /usr]$ cd /usr/ [oscar@kepler /usr]$ find . -name 'string' find: ./doc/procps-2.0.2: Permission non accordée find: ./doc/ppp-2.3.8/scripts/chatchat: Permission non accordée ./doc/postgresql-6.3.2/contrib/string ./doc/postgresql-6.4.2/contrib/string ./lib/tclX8.0.4/help/tcl/strings/string find: ./share/afterstep/ascp/icons: Permission non accordée [oscar@kepler /usr]$ find . -name 'ostream' find: ./doc/procps-2.0.2: Permission non accordée find: ./doc/ppp-2.3.8/scripts/chatchat: Permission non accordée find: ./share/afterstep/ascp/icons: Permission non accordée [oscar@kepler /usr]$ find . -name 'string*' ./bin/strings find: ./doc/procps-2.0.2: Permission non accordée find: ./doc/ppp-2.3.8/scripts/chatchat: Permission non accordée ./doc/postgresql-6.3.2/contrib/string ./doc/postgresql-6.3.2/contrib/string/string_io.c ./doc/postgresql-6.3.2/contrib/string/string_io.h ./doc/postgresql-6.3.2/contrib/string/string_io.sql ./doc/postgresql-6.3.2/contrib/string/string_io.sql.in ./doc/postgresql-6.4.2/contrib/string ./doc/postgresql-6.4.2/contrib/string/string_io.c ./doc/postgresql-6.4.2/contrib/string/string_io.doc ./doc/postgresql-6.4.2/contrib/string/string_io.h ./doc/postgresql-6.4.2/contrib/string/string_io.sql.in ./include/bits/string.h ./include/bits/string2.h ./include/string.h ./include/strings.h ./include/libguile/strings.h ./include/python1.5/stringobject.h ./include/rpm/stringbuf.h ./include/mimelib/string.h ./lib/perl5/5.00503/i386-linux/asm/string-486.ph ./lib/perl5/5.00503/i386-linux/asm/string.ph ./lib/perl5/5.00503/i386-linux/bits/string.ph ./lib/perl5/5.00503/i386-linux/bits/string2.ph ./lib/perl5/5.00503/i386-linux/linux/string.ph ./lib/perl5/5.00503/i386-linux/string.ph ./lib/perl5/5.00503/i386-linux/strings.ph ./lib/python1.5/string.py ./lib/python1.5/string.pyc ./lib/python1.5/string.pyo ./lib/p2c/string.pas ./lib/tclX8.0.4/help/tcl/strings ./lib/tclX8.0.4/help/tcl/strings/string ./man/man1/strings.1.bz2 ./man/man3/string.3.bz2 ./man/mann/string.n ./man/fr/man3/string.3.bz2 ./man/es/man1/strings.1.bz2 ./man/es/man3/string.3.gz ./man/es/man3/string.3.bz2 find: ./share/afterstep/ascp/icons: Permission non accordée ./share/guile/1.3/ice-9/string-fun.scm ./share/texmf/metapost/base/string.mp ./src/linux-2.2.9/include/asm-i386/string-486.h ./src/linux-2.2.9/include/asm-i386/string.h ./src/linux-2.2.9/include/linux/string.h ./src/linux-2.2.9/fs/hfs/string.c ./src/linux-2.2.9/lib/string.c ./src/linux-2.2.5/include/asm-i386/string-486.h ./src/linux-2.2.5/include/asm-i386/string.h ./src/linux-2.2.5/include/linux/string.h ./src/linux-2.2.5/fs/hfs/string.c ./src/linux-2.2.5/lib/string.c [oscar@kepler /usr]$ find . -name 'ostream*' find: ./doc/procps-2.0.2: Permission non accordée find: ./doc/ppp-2.3.8/scripts/chatchat: Permission non accordée find: ./share/afterstep/ascp/icons: Permission non accordée -- Oscar
Re: Problem compiling lyx-1.1.4pre1
Jean-Marc Lasgouttes wrote: > > >>>>> "Oscar" == Oscar Lopez <[EMAIL PROTECTED]> writes: > > Oscar> I didn't install anything because I am not the root of the > Oscar> system and I don't know what is installed, but if I do rpm -ql > Oscar> libstdc++ I obtain > > Oscar> [oscar@kepler lib]$ rpm -ql libstdc++ > Oscar> /usr/lib/libg++.so.2.7.2.8 /usr/lib/libstdc++-libc6.1-1.so.2 > Oscar> /usr/lib/libstdc++.so.2.7.2.8 /usr/lib/libstdc++.so.2.8.0 > Oscar> /usr/lib/libstdc++.so.2.9 /usr/lib/libstdc++.so.2.9.0 > > So the libstdc++ libraries are there. But are the header files > present? (probably a package like libstdc++-devel) > > JMarc If I tried: [oscar@kepler /usr]$ rpm -ql libstdc++-devel package libstdc++-devel is not installed and [oscar@kepler /usr]$ rpm -qa | grep 'libstdc*' libstdc++-2.9.0-3mdk So I am afraid that the header files are not installed, I am not able to find the libstdc++-devel package. Am I looking for correctly the header files ? what is the name of the header file that I should look for ? -- Oscar
Re: Problem compiling lyx-1.1.4pre1
Jean-Marc Lasgouttes wrote: > > >>>>> "Oscar" == Oscar Lopez <[EMAIL PROTECTED]> writes: > > [Oscar, since you message appeared here too, I'll answer to the list] > > Oscar> Hi! I am trying to install locally the lyx-1.1.4pre1.tar.gz > Oscar> package at a linux system: > > Oscar> [oscar@kepler oscar]$ uname -a Linux kepler.lmm.jussieu.fr > Oscar> 2.2.9-19mdk #1 Wed May 19 19:53:00 GMT 1999 i686 unknown > > Oscar> The system doesn't have install the xforms library so I > Oscar> downloaded it and I put the following files at $HOME/lib > > Oscar> [oscar@kepler lib]$ ll total 1255 -rw-r--r-- 1 oscar lmm 100368 > Oscar> Dec 21 17:22 forms.h -rw-r--r-- 1 oscar lmm 660600 Dec 21 17:11 > Oscar> libforms.a lrwxrwxrwx 1 oscar lmm 16 Dec 21 17:15 libforms.so > Oscar> -> libforms.so.0.88 -rw-r--r-- 1 oscar lmm 513218 Dec 21 17:12 > Oscar> libforms.so.0.88 > > Did you make sure that you took the version of xforms relevant to your > libc version? (which libc is it, anyway?) I think so, because I took the sforms libraries from a machine (selena) that it has a libc version 2.1.2.so (simply I copy the xforms libraries from /usr/X11R6 the libforms.a and libforms.so.0.88 and /usr/X11R6/include/forms.h of selena) selena:/home/minerva/oscar#/sbin/ldconfig -v | grep libc- libc.so.6 => libc-2.1.2.so The machine in which I tried to install locally (kepler) the lyx program has libc-2.1.1.so [oscar@kepler lib]$ /sbin/ldconfig -v | grep libc- libc.so.6 => libc-2.1.1.so so, for this, I suppose that if I was able to compile lyx at selena which has libc-2.1.2.so I would be able to compile it at kepler which has libc-2.1.1.so and the copy of libforms.a, libforms.so.0.88, the link and the forms.h from selena > > Oscar> (BTW: the option -with-extra-prefix is able to find the forms.h > Oscar> but it doesn't find the libforms library, i.e., the configure > Oscar> script complaints ) > > This would have worked if forms.h were in $HOME/include. > > Oscar> specialization... yes checking whether the C++ compiler > Oscar> understands explicit... yes checking for broken STL stack > Oscar> template... yes checking whether the included std::string > Oscar> should be used... yes checking for correct namespaces > Oscar> support... no checking for C headers wrappers... no checking > Oscar> for ostream... no checking for istream... no checking for > Oscar> modern STL streams... no > > Did you install libstdc++ (or whatever the package is called in your > distribution)? These files were not necessary for LyX 1.0, but are > necessary now. I didn't install anything because I am not the root of the system and I don't know what is installed, but if I do rpm -ql libstdc++ I obtain [oscar@kepler lib]$ rpm -ql libstdc++ /usr/lib/libg++.so.2.7.2.8 /usr/lib/libstdc++-libc6.1-1.so.2 /usr/lib/libstdc++.so.2.7.2.8 /usr/lib/libstdc++.so.2.8.0 /usr/lib/libstdc++.so.2.9 /usr/lib/libstdc++.so.2.9.0 > > JMarc -- Oscar
Problem compiling lyx-1.1.4pre1
Hi! I am trying to install locally the lyx-1.1.4pre1.tar.gz package at a linux system: [oscar@kepler oscar]$ uname -a Linux kepler.lmm.jussieu.fr 2.2.9-19mdk #1 Wed May 19 19:53:00 GMT 1999 i686 unknown The system doesn't have install the xforms library so I downloaded it and I put the following files at $HOME/lib [oscar@kepler lib]$ ll total 1255 -rw-r--r-- 1 oscarlmm100368 Dec 21 17:22 forms.h -rw-r--r-- 1 oscarlmm660600 Dec 21 17:11 libforms.a lrwxrwxrwx 1 oscarlmm16 Dec 21 17:15 libforms.so -> libforms.so.0.88 -rw-r--r-- 1 oscarlmm513218 Dec 21 17:12 libforms.so.0.88 Then I run the ./configure with the options -with-extra-lib and -with-extra-inc [oscar@kepler lyx-1.1.4pre1]$ ./configure -with-extra-lib=$HOME/lib -with-extra-inc=$HOME/lib (BTW: the option -with-extra-prefix is able to find the forms.h but it doesn't find the libforms library, i.e., the configure script complaints ) = [oscar@kepler lyx-1.1.4pre1]$ ./configure -with-extra-lib=$HOME/lib -with-extra-inc=$HOME/lib creating cache ./config.cache configuring LyX version 1.1.4pre1 WARNING: This is a prerelease. Be careful and backup your documents. checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking config.cache system type... same checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for prefix by checking for lyx... no checking whether make sets ${MAKE}... (cached) yes checking for a BSD compatible install... /usr/bin/install -c checking for kpsewhich... kpsewhich checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking how to run the C preprocessor... gcc -E checking for AIX... no checking for HP-UX... no checking for SunOS 4.x... no checking for SCO 3.2v4... no checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking for a working C++ compiler... gcc checking whether the C++ compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether gcc accepts -g... yes checking how to run the C++ preprocessor... gcc -E checking for ranlib... ranlib checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes updating cache ./config.cache checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for objdir... .libs creating libtool loading cache ./config.cache checking if C++ compiler supports mutable... yes checking if C++ compiler supports partial specialization... yes checking whether the C++ compiler understands explicit... yes checking for broken STL stack template... yes checking whether the included std::string should be used... yes checking for correct namespaces support... no checking for C headers wrappers... no checking for ostream... no checking for istream... no checking for modern STL streams... no checking for sin in -lm... yes checking for fopen in -lc... yes checking for extra library directory... /kepler1/visiteurs/oscar/lib checking for extra include directory... /kepler1/visiteurs/oscar/lib checking for extra lib+include directory... NONE checking for main in -liberty... yes checking for ptsname in -lpt... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remov