Re: install new latex package?
Thanks very much Jean-Marc, you were right! It works! BTW it might help others to have a section in "Customizing LyX" on the topic of installing a new package. (Maybe the info is somewhere else) It could be what I wrote in my last email, along with the last step supplied by you, JMarc. Bill
install new latex package?
I have a new RedHat Linux 6.1 machine. The tetex on it did not include FoilTeX. So I grabbed it from CTAN. Then: - I modified /usr/share/texmf/web2c/texmf.cnf to say TEXMFLOCAL = /usr/local/texmf - I created /usr/local/texmf/tex/latex/foiltex, which contains fltfonts.def foil25.clo foils.sty foiltex.ins sampfoil.tex foil17.clofoil30.clo foilshrt.clo foiltex.log foil20.clofoils.cls foiltex.dtx readme.flt - I ran texhash, which created /usr/local/texmf/ls-R But still in Lyx layout->document does not show FoilTeX. I wonder what else I need to do to get LyX to "see" foiltex? Thanks very much for any help! Bill Simpson
Re: xforms woes
Hi Allan, > My suspicion is that there is something wrong with the xforms lib you are > trying to install since it would seem to have been linked against a > different set of X11 libraries than you have installed. Thanks for this!!! I went to the xforms site and downloaded another version: bxform-088-glibc2.1.tgz I think before I had: bxform-088.tgz (it was not clear which one to get, so I got the "generic" one before) After that, xforms and lyx both installed fine. So if anyone has such a problem again, check that you have the right version of xforms (in case of redhat 6.1, get bxform-088-glibc2.1.tgz) Thanks again, the problem is now solved. Bill
Re: xforms, Xatom.h, Xutil.h etc.
On Tue, 9 Nov 1999, Nikolai Kalitzin wrote: > i'm trying to install the latest version of lyx on > a SuSE linux intel computer. i got all the required > packages. but i got the same problem as bill simpson > ([EMAIL PROTECTED]/msg02796.html). > i found out that the problem is that the following include files: > Xatom.h, Xutil.h, Xlib.h called within forms.h are missing. > the question is where do i get them, to which package they belong? > i checked also the reply by jean-marc lasgouttes > ([EMAIL PROTECTED]/msg02797.html) My problem is different, since I do have these files. The files should have been installed when you installed XFree86 I think. Here is the header from one: /* $XConsortium: Xutil.h,v 11.78 94/04/17 20:21:56 rws Exp $ */ /* $XFree86: xc/lib/X11/Xutil.h,v 3.0 1996/12/09 11:49:36 dawes Exp $ */ On my system, the files reside at /usr/X11R6/include/X11/ Bill
xforms woes
Apparently the xforms installer does not work. I just tried "make demo", and got a string of error messages, and no executable demos. The errors are like this: collect2: ld returned 1 exit status make[1]: [folder] Error 1 (ignored) gcc -c -O -I../FORMS -I/usr/X11R6/include -Ifd popup.c gcc -O -s popup.o -o popup -L../FORMS -lforms -L/usr/X11R6/lib -lX11 -lm ../FORMS/libforms.so: undefined reference to `_xstat' I am not sure what to do at this point to get lyx installed (first xforms).. Thanks for any help! Bill
Re: xforms woes
> It seems that the configure doesn't realize that forms.h was installed in > /usr/local/include. I meant: /usr/include/forms.h Bill
Re: xforms woes
On 8 Nov 1999, Jean-Marc Lasgouttes wrote: > >>>>> "Bill" == Bill Simpson <[EMAIL PROTECTED]> writes: > > Bill> I am trying to install Lyx on a RedHat Linux machine. > Bill> [root@cbe207 xforms]# make install cp FORMS/libforms.a > Bill> /usr/lib;chmod 644 /usr/lib/libforms.a cp DESIGN/fdesign > Bill> /usr/local/bin; chmod 711 /usr/local/bin/fdesign cp fd2ps/fd2ps > Bill> /usr/local/bin; chmod 711 /usr/local/bin/fd2ps cp FORMS/forms.h > Bill> /usr/include;\ chmod 644 /usr/include/forms.h cp FORMS/xforms.5 > Bill> /usr/man/man5; chmod 644 /usr/man/man5/xforms.5 cp > Bill> DESIGN/fdesign.1 /usr/man/man1; chmod 644 > Bill> /usr/man/man1/fdesign.1 cp fd2ps/fd2ps.1 /usr/man/man1; chmod > Bill> 644 /usr/man/man1/fd2ps.1 > > Bill> seemed to go OK. > > Bill> [root@cbe207 FORMS]# find / -name "libforms*" find: /proc/6/fd: > Bill> Permission denied /usr/lib/libforms.a /usr/lib/libforms.so.0.88 > Bill> /usr/lib/libforms.so > > Bill> ldconfig -v > > Bill> BUT now when I try to compile Lyx, in the configuration phase I > Bill> get message: > > Bill> ** Can't find libforms or libxforms. Please check that the > Bill> xforms library is correctly installed on your system. > > What does the config.log file say about xforms? It might be another > error... Hi JMarc, Thanks for your help. I have attached the file. The first related problem I see is: configure:3222: checking for X11/forms.h configure:3232: g++ -E -I/usr/X11R6/include conftest.C >/dev/null 2>conftest.$ configure:3228: X11/forms.h: No such file or directory It seems that the configure doesn't realize that forms.h was installed in /usr/local/include. I would think that the xforms "make install" would put these various files in "standard" places where LyX would see them. Any ideas? Thanks! Bill This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:626: checking for lyx configure:684: checking whether make sets ${MAKE} configure:722: checking for a BSD compatible install configure:779: checking for gcc configure:892: checking whether the C compiler (gcc ) works configure:908: gcc -o conftestconftest.c 1>&5 configure:934: checking whether the C compiler (gcc ) is a cross-compiler configure:939: checking whether we are using GNU C configure:948: gcc -E conftest.c configure:967: checking whether gcc accepts -g configure:1001: checking for POSIXized ISC configure:1022: checking how to run the C preprocessor configure:1043: gcc -E conftest.c >/dev/null 2>conftest.out configure:1102: checking for AIX configure:1127: checking for HP-UX configure:1143: checking for SunOS 4.x configure:1158: checking for SCO 3.2v4 configure:1184: checking for Cygwin environment configure:1200: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:1196: `__CYGWIN32__' undeclared (first use in this function) configure:1196: (Each undeclared identifier is reported only once configure:1196: for each function it appears in.) configure: failed program was: #line 1189 "configure" #include "confdefs.h" int main() { #ifndef __CYGWIN__ #define __CYGWIN__ __CYGWIN32__ #endif return __CYGWIN__; ; return 0; } configure:1217: checking for mingw32 environment configure:1229: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:1225: `__MINGW32__' undeclared (first use in this function) configure:1225: (Each undeclared identifier is reported only once configure:1225: for each function it appears in.) configure: failed program was: #line 1222 "configure" #include "confdefs.h" int main() { return __MINGW32__; ; return 0; } configure:1248: checking for executable suffix configure:1258: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1288: checking for a working C++ compiler configure:1319: g++ -o conftestconftest.C 1>&5 configure:1359: checking whether the C++ compiler (g++ ) is a cross-compiler configure:1363: checking whether we are using GNU C++ configure:1372: g++ -E conftest.C configure:1415: checking whether g++ accepts -g configure:1448: checking how to run the C++ preprocessor configure:1466: g++ -E conftest.C >/dev/null 2>conftest.out configure:1493: checking for sin in -lm configure:1515: g++ -o conftest -g -O2 conftest.C -lm 1>&5 configure:1508: warning: declaration of `char sin(...)' configure:1508: warning: conflicts with built-in declaration `double sin(double)' configure:1543: checking for fopen in -lc configure:1565: g++ -o conftest -g -O2 conftest.C -lc -lm 1>&5 configure:1597: checking size of void * co
xforms woes
I am trying to install Lyx on a RedHat Linux machine. [root@cbe207 xforms]# make install cp FORMS/libforms.a /usr/lib;chmod 644 /usr/lib/libforms.a cp DESIGN/fdesign /usr/local/bin; chmod 711 /usr/local/bin/fdesign cp fd2ps/fd2ps /usr/local/bin; chmod 711 /usr/local/bin/fd2ps cp FORMS/forms.h /usr/include;\ chmod 644 /usr/include/forms.h cp FORMS/xforms.5 /usr/man/man5; chmod 644 /usr/man/man5/xforms.5 cp DESIGN/fdesign.1 /usr/man/man1; chmod 644 /usr/man/man1/fdesign.1 cp fd2ps/fd2ps.1 /usr/man/man1; chmod 644 /usr/man/man1/fd2ps.1 seemed to go OK. [root@cbe207 FORMS]# find / -name "libforms*" find: /proc/6/fd: Permission denied /usr/lib/libforms.a /usr/lib/libforms.so.0.88 /usr/lib/libforms.so ldconfig -v BUT now when I try to compile Lyx, in the configuration phase I get message: ** Can't find libforms or libxforms. Please check that the xforms library is correctly installed on your system. Any ideas what is wrong, and how to fix? Thanks very much for any help! Bill
RE: Thank you for the LyX (how to put in a book)
> #:O) This type of stuff gives us (developers) a boost to continue, > so we see that we do something people are using and get real > work done with it (as Garst does all the time with his books, > I've seen the one you sent Alejandro the one with the poems ;) > > Jürgen Juergen and all the other developers---thanks from me as well! I have been using LyX for about 2 yrs now exclusively for all my documents (scientific papers). I switched to linux from Mac so I could use LyX. Bill
adjust interfig distance?
I have a multiplot figure, like this: | | | | | | | | | | | | I was wondering if it is possible to reduce the vertical distance between the two sub-plots. Thanks very much for any help. Bill
Re: apa.cls
I use Lyx withOUT apa.cls to write APA style manuscripts and submit to APA journals with no complaints yet. I use natbib and BibTeX at start of document put \usepackage{natbib} in latex preamble On my system natbib is here: /usr/lib/teTeX/texmf/tex/latex/misc/natbib.sty I have attached my own "custom" apa.bst which I think I just modified from someplace else. The original had some deviations from APA style in reference format. This version is better. Stick apa.bst somewhere. I put mine in my own home dir. But then you have to tell LaTeX where it is. I put the following in .bash_profile: export BIBINPUTS=/home/wsimpson/papers/bib export BSTINPUTS=/home/wsimpson/papers/bst I put the .bib files in /home/wsimpson/papers/bib and the .bst files in /home/wsimpson/papers/bst At the top of the document to get abstract on its own page I use (TeX--red): /maketitle /begin{abstract} blah blah /end{abstract} Layout->Document class: article spacing: double extra options: titlepage [NB one word] section number depth: -1 Layout->paper set the margins to 1in. (I actually use top:0.25in and bottom 0.75in, not sure why this is nec, but otherwise the margins are wrong) That's it. Once I tried to get apa.cls working and couldn't. The problem is that you need to LyXify it I think. And that is hard. Bill %% %% This is file `apa.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% merlin.mbs (with options: `,ay,nat,seq-lab,nm-rev,dt-beg,yr-par,note-yr,vol-it,volp-com,bkpg-par,add-pub,edpar,pp,ed,abr,amper') %% %% *** APA style, e.g. Psychological Review *** %% %--- % The original source file contains the following version information: % \ProvidesFile{merlin.mbs}[1996/05/29 3.8 (PWD)] % % NOTICE: % This file may be used for non-profit purposes. % It may not be distributed in exchange for money, % other than distribution costs. % % The author provides it `as is' and does not guarantee it in any way. % % Copyright (C) 1994, 1995, 1996 Patrick W. Daly %--- % For use with BibTeX version 0.99a or later %--- % This bibliography style file is intended for texts in ENGLISH % This is an author-year citation style bibliography. As such, it is % non-standard LaTeX, and requires a special package file to function properly. % Such a package isnatbib.sty by Patrick W. Daly % The form of the \bibitem entries is % \bibitem[Jones et al.(1990)]{key}... % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}... % The essential feature is that the label (the part in brackets) consists % of the author names, as they should appear in the citation, with the year % in parentheses following. There must be no space before the opening % parenthesis! % With natbib v5.3, a full list of authors may also follow the year. % In natbib.sty, it is possible to define the type of enclosures that is % really wanted (brackets or parentheses), but in either case, there must % be parentheses in the label. % The \cite command functions as follows: % \cite{key} ==>>Jones et al. (1990) % \cite[]{key} ==>> (Jones et al., 1990) % \cite[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2) % \cite[e.g.][]{key} ==>>(e.g. Jones et al., 1990) % \cite[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32) % \citeauthor{key} Jones et al. % \citefullauthor{key} Jones, Baker, and Smith % \citeyear{key} 1990 %--------- % hand edited by Bill Simpson to get capitalization right for books ENTRY { address author booktitle chapter edition editor howpublished institution journal key month note number organization pages publisher school series title type volume year } {} { label extra.label sort.label short.list } INTEGERS { output.state before.all mid.sentence after.sentence after.block } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { add.period$ " " * write$ } if$ } if$
Re: quotes in mathmode?
OK I did your suggestion \newcommand{\prbigger}{\mbox{$\Pr(\mbox{``bigger''})$}} then in mathed I put \prbigger It works! Seems awkward though (compared to ordinary LaTeX way of doing it), and I don't understand why it mathed doesn't like `` Bill
Re: quotes in mathmode?
Hi J-P, I guess I didn't understand what you wrote. I thought you said that it was not possible to do Pr(``bigger'') in mathmode in LaTeX. But I checked and it is possible: -- \documentclass{article} \begin{document} $\Pr(\mbox{``bigger''})=0.5$ \end{document} - This works no problem at all. (I actually want it as a numbered displayed equation) So I don't understand why I can't do this in LyX. Thanks for any help! Bill
Re: quotes in mathmode?
> The math text mode does not accept punctuation I guess. Well someone on comp.text.tex told me that you can do it in LaTeX. I think you are right and he is wrong. I just tried editing the LyX file directly. It has \begin_inset Formula \[ \Pr(\mbox{``bigger''})=1-F[(c-s)/\sigma ]=F[(s-c)/\sigma ]\] \end_inset And it is still the same problem. The `` don't get printed. Hmm. The LaTeX masters out there don't have a trick for me? The only thing that occurs to me is to use a pair of \prime for for single quotes. Bill
Re: quotes in mathmode?
> > AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode > as TeX /LaTeX does, so that the keystrokes after \mbox are still in math > with the corresponding restrictions. I don't really understand this. However using \mbox{text} seems to work--looks like normal text, not italic. The problem is just the quotes > Have you tried the math text mode (M-m m) instead of \mbox ? Same problem. Can't type `` or ". So is this a bug in LyX? Bill
quotes in mathmode?
I want to do, in mathmode, Pr(``bigger'') I tried \Pr(\mbox{"bigger"}) using double quotes. The quotes are absent when I veiw with dvi. I tried \Pr(\mbox{``bigger''}) but I can't get Lyx to "accept" the single left-hand `` quotes. When I type them they don't show up at all. (Also absent from dvi view--the right hand ones '' show up fine) Please tell me what to do. Thanks! I am using Lyx 1.0.0pre2 Bill
Re: .ps from Mac in LyX
Thanks Kayvan for the info on the Bounding Box. I tried setting it manually and still LyX and dvi choked on it. Thanks J-P for your suggestions. I used your method to get the BB using ghostview. I still had problems. I tried converting the file from ps to eps using ps2epsi. No luck. At this point I am thinking of converting the file from ps to eps on the Mac, then transferring that file over. These ps files on the Mac were created using the print dialogue, which allows you to print to a .ps file. Perhaps it just creates weird output. Maybe a newer sys version would help. Bill
.ps from Mac in LyX
I have several .ps files created by a Mac that I want to include in a LyX document. I attach one. I ftped them over as binary, then converted tr "\r" "\n" < fig1.ps > fig1.ps.new to get rid of the weird mac end-of-lines. The files look OK in ghostview. HOWEVER they just create a string of errors if I try to include them in a LyX document. Does anyone have any guesses what is wrong and how to fix? My guess is that the problem has to do with the line: %%BoundingBox: ? ? ? ? But I don't know how to fix it. Thanks very much for any help. Bill Simpson fig1.ps.new
Re: bibtex and publications list in CV
Thanks J-P! I will try your suggestions. Bill
bibtex and publications list in CV
I am writing my CV using LyX. I am happy using the article class. The only question I have is as follows. I have a section Publications in the CV with subsections: Publications Papers in refereed journals Manahilov V., & Simpson W.A. (1999) Energy model for contrast detection: Spatiotemporal characteristics of human vision. Biological Cybernetics, 81, 61-71. Simpson, W.A., & Newman, A. (1998) Motion detection and directional tuning. Vision Research, 38, 1593-1604. ... Manuscripts submitted for publication ... Conference proceedings ... Currently I have just typed these all in manually and made them "Description". (Which is OK, though it makes the first author's name bold) I was wondering if there is a way to use BibTeX (with natbib) to create these several reference listings (just the refs, no headings)? It seems wasteful and error-prone to be retyping all this manually when the info is already in my .bib file. But I don't see how to get the ref list without having printed citations in the text. Thanks very much for any help. Bill Simpson
A0 poster using lyx
I was inspired by http://www.cstr.ed.ac.uk/~robert/posters.html to try to make my next conference poster all on one big A0 piece of paper using using latex. My univ has one of these A0 printers. Before going any further I should ask if anyone has produced an A0poster using LyX, and if anyone has therefore set up a LyX A0 poster textclass? I am trying to get the method from the web site working. He has included an example .tex file. The opening of his .tex file refers to a0poster.cls, which I attach. I have installed this .cls in /usr/lib/teTeX/texmf/latex/misc and ran texhash. How make this work from LyX? I have read the customization.lyx section 6 on this. But I still am not clear on it. Is there some fairly "automatic" way to make a .layout file from a .cls file? It appears that I have to write a file a0poster.layout and save it in /usr/local/share/lyx/layouts. Once this is done, I should be able to select Layout->Document->Class->a0poster. The big problem: how to write a .layout file? I looked at the ones in the directory and all I know is that they are not latex, so I can't just rename a0poster.cls to a0poster.layout. Thanks very much for any help! Bill Simpson %% %% This is file `a0poster.cls' %% %% Copyright (C) 07.05.97 Gerlinde Kettl and Matthias Weiser %% %% Problems, bugs and comments to %% [EMAIL PROTECTED] %% \ProvidesClass{a0poster}[1997/05/07 v1.21b a0poster class (GK, MW)] \NeedsTeXFormat{LaTeX2e}[1995/06/01] \LoadClass{article} \newif\ifportrait \newif\ifanullb \newif\ifanull \newif\ifaeins \newif\ifazwei \newif\ifadrei \newif\ifdraft \newcount\xkoord \newcount\ykoord \newcount\xscale \newcount\yscale \DeclareOption{a0b}{ \anullbtrue \xkoord=2594 % big points (1 bp=1/72 inch) \ykoord=3370 % big points (1 bp=1/72 inch) \xscale=2 \yscale=2 } \DeclareOption{a0}{ \anulltrue\anullbfalse \xkoord=2380 % big points (1 bp=1/72 inch) \ykoord=3368 % big points (1 bp=1/72 inch) \xscale=2 \yscale=2 } \DeclareOption{a1}{ \aeinstrue\anullbfalse \xkoord=1684 % big points (1 bp=1/72 inch) \ykoord=2380 % big points (1 bp=1/72 inch) \xscale=3 \yscale=3 } \DeclareOption{a2}{ \azweitrue\anullbfalse \xkoord=1190 % big points (1 bp=1/72 inch) \ykoord=1684 % big points (1 bp=1/72 inch) \xscale=4 \yscale=4 } \DeclareOption{a3}{ \adreitrue\anullbfalse \xkoord=842 % big points (1 bp=1/72 inch) \ykoord=1190 % big points (1 bp=1/72 inch) \xscale=6 \yscale=6 } \DeclareOption{landscape}{ \portraitfalse } \DeclareOption{portrait}{ \portraittrue } \DeclareOption{draft}{ \drafttrue } \DeclareOption{final}{ \draftfalse } \DeclareOption*{\PackageWarning{a0poster}{Unknown Option \CurrentOption}} \ExecuteOptions{landscape,a0b,final} \ProcessOptions\relax \ifanullb \setlength{\paperwidth}{119cm} \setlength{\paperheight}{87cm} \setlength{\textwidth}{114cm} \setlength{\textheight}{87cm} \else\ifanull \setlength{\paperwidth}{118.82cm} \setlength{\paperheight}{83.96cm} \setlength{\textwidth}{114.82cm} \setlength{\textheight}{79.96cm} \else\ifaeins \setlength{\paperwidth}{83.96cm} \setlength{\paperheight}{59.4cm} \setlength{\textwidth}{79.96cm} \setlength{\textheight}{55.4cm} \else\ifazwei \setlength{\paperwidth}{59.4cm} \setlength{\paperheight}{41.98cm} \setlength{\textwidth}{55.4cm} \setlength{\textheight}{37.98cm} \else\ifadrei \setlength{\paperwidth}{41.98cm} \setlength{\paperheight}{29.7cm} \setlength{\textwidth}{37.98cm} \setlength{\textheight}{25.7cm} \else\relax \fi \fi \fi \fi \fi \ifportrait \newdimen\tausch \setlength{\tausch}{\paperwidth} \setlength{\paperwidth}{\paperheight} \setlength{\paperheight}{\tausch} \setlength{\tausch}{\textwidth} \setlength{\textwidth}{\textheight} \setlength{\textheight}{\tausch} \else\relax \fi %% Setting proper dimensions for a DIN A0 printer \setlength{\headheight}{0 cm} \setlength{\headsep}{0 cm} \setlength{\topmargin}{0 cm} \setlength{\oddsidemargin}{0 cm} \catcode`\%=11 \newwrite\Ausgabe \immediate\openout\Ausgabe=a0header.ps \write\Ausgabe{%%BeginFeature *PageSize ISOA0/ISO A0} \ifdraft\write\Ausgabe{2 dict dup /PageSize [595 842] put dup /ImagingBBox null put} \else\write\Ausgabe{2 dict dup /PageSize [\number\xkoord\space \number\ykoord] put dup /ImagingBBox null put}\fi \write\Ausgabe{setpagedevice} \ifdraft\write\Ausgabe{38 84 translate} \write\Ausgabe{0.\number\xscale\space 0.\number\yscale\space scale}\else\relax\fi \write\Ausgabe{%%EndFeature} \closeout\Ausgabe \catcode`\%=14 \special{header=./a0he
Re: list address
On Sun, 11 Apr 1999 [EMAIL PROTECTED] wrote: > > I would just like release one more warning that from next Wednesday, this > lyx-users' list will only accept messages sent to the address > > [EMAIL PROTECTED] > I tried sending a message with the subject unsubscribe to [EMAIL PROTECTED] But it didn't work. Can someone out there tell me the right way? Thanks! Bill