Newbie questions re. Lyx
Hello, I was advised on the tex newsgroup to post this here. Just a bit of background: I've done a graduate thesis, presentations, and conference papers in LaTex, but that was many years ago. I am highly, highly troubled by Word. I'm a fan of Framemaker 1st, and WordPerfect 2nd. However, the only tools accessible right now are Word and LaTex. I've installed LaTex and Lyx via the Cygwin installation, made LaTex work with the templates that we have to use, and dabbled with Lyx. I can view and export PDFs of little "Hello world" test files. I'm reading the online documentation, and see no navigation panel to navigate the chapters and subsections. There is only the "Table of Contents" (TOC) button, which only shows 1st level headings. So I tried to view the online docs as PDFs in hopes of seeing the full TOC, maybe even hyperlinked if I'm lucky. However, this always seems to crash Lyx. From the task manager, I can see all sorts of processes rising to the top of my list, sorted by CPU usage. So no one process is stalled, but there might be a script caught in a loop. Same thing happens if I restart Lyx and try to export to PDF. If I try to print to a PS file the PS file never shows up (looked in the default directory, as well as the directory I specified). I am able to print my HelloWorld file to PS, though. Are the online documents unprintable/unexportable in other Lyx installations? Since my aim is to replace Word, there is some functionality I'm hoping to see present. One is Word's "outline mode", which lets the user collapse or expand any hierarcy of text, promote/demote move entire subtrees of text, and generally move subtrees around. Is there such functionality in Lyx? I'm also interested in hyperlinking, both in the Lyx file and the final PDF file. I know I can generate hyperlinks in LaTeX, but only in the final PDF (since LaTeX is just text). Even that needs all sorts of files and commands embedded in the LaTeX file. I understand that the user has to make them known to Lyx. I'm not necessarily expecting someone to spell out step by step how to do it (though I wouldn't ignore it if someone did), I'd appreciate it if those who have tried going through the process can indicate how straightforward it is, assuming it is even possible. On the matter of making files known to Lyx, the template I'm using is for LaTeX use. How painless is it to make it available to Lyx? I'm thinking that as I navigate the online docs, there might be a section that says how to point Lyx to the tetex tree that I set up for LaTex (I'm a bit new to that, too, and it took about 1.5 days to get the template working, including fetching missing files from the web). Thanks for an advance idea of what can be expected. Finally, a question to those who had experience in LaTeX before going to Lyx -- was it worthwhile? Did you find it actually helped? Fred
Re: article (AMS)
"Paul Schwartz" a écrit > > "Paul A. Rubin" a écrit > >> Paul Schwartz wrote: >>> Is it forbidden to notch "two sided document" with this class of >>> document. >>> If I notch it, I got a error when displaying under PDF_(pdflatex) >>> >> >> Works for me with no problems. Perhaps it's something specific to your >> document? >> >> /Paul > will advise you if I find something > Regards In fact, it works perfectly if your document does not reach the second page, then as soon as you had something switching to the second page then you got the error. Paul
Re: article (AMS)
"Paul A. Rubin" a écrit > Paul Schwartz wrote: >> Is it forbidden to notch "two sided document" with this class of >> document. >> If I notch it, I got a error when displaying under PDF_(pdflatex) >> > > Works for me with no problems. Perhaps it's something specific to your > document? > > /Paul > Just for your information, here are the specs of the document with the corresponding error console. If I tick two-sided document I got the error, if not everything is ok. - Class of document : article (AMS) postscript driver: default - Text format font : default, size default, identation, line spacing simple - page format : personnalised , height 17.2 cm, width : 10.5 cm, portrait, two-sided document ticked - margins: (in cm) top 1.7, bottom:1.6, inner: 1, outer: 1.6, head sep: 0.4, head height : 1.3 - language : French use language's default encoding : ticked; quote style (french style) nothing else has been modified Upper windows error console: the same paragraph 4 times Use of \relax doen't match its definition. Use of \relax doen't match its definition. Use of \relax doen't match its definition. Missing number, treated as zero. Illegal unit of measure (pt inserted). Lower windows error console: if you say, e.g.,'\def\a1{...}', the you must always put'1' after '\a', since control sequence names are made up of letters only. the macro here has not been followed by the required stuff, so I'm ignoring it. I inserted some footnotes with greek using: "TEX$\alpha\iota\lambda\.$ will advise you if I find something Regards Paul
Re: article (AMS)
Paul Schwartz wrote: Is it forbidden to notch "two sided document" with this class of document. If I notch it, I got a error when displaying under PDF_(pdflatex) Works for me with no problems. Perhaps it's something specific to your document? /Paul
Re: article (AMS)
article.cls does declare have an option "twoside". Paul Schwartz wrote: Is it forbidden to notch "two sided document" with this class of document. If I notch it, I got a error when displaying under PDF_(pdflatex) thanks Paul
article (AMS)
Is it forbidden to notch "two sided document" with this class of document. If I notch it, I got a error when displaying under PDF_(pdflatex) thanks Paul
Re: LyX/Mac question
Enrico Forestieri wrote: I think that you could enter this in bugzilla. Done. /Paul
Re: how to specify order of bibliography
Michael Chen wrote: Thanks very much for your info, Richard. I found that somebody has done the hack, http://www.tug.org/tex-archive/biblio/bibtex/contrib/misc/plainyr.bst this .bst sorts entries by year (ascendant), author and title. If it is possible, would you please show me how to sort decently? That file sorts very strangely. You may be getting the results you want, but probably not for the right reason. I just ran it on a file and, yes, I got all the articles sorted by year. But then after the articles, I got all the books, sorted by author. Fields that aren't book, inbook, proceedings, or manual will get sorted by year; but those get sorted by author or editor or whatever. If you don't have any of those, then you'll get the results you want, indeed. But you may want to try the one I sent you before: FUNCTION {presort} { type$ "book" = type$ "inbook" = or 'author.editor.sort { type$ "proceedings" = 'editor.organization.sort { type$ "manual" = 'author.organization.sort 'author.sort if$ } if$ } if$ "" * year field.or.null sortify "" * swap$ * title field.or.null sort.format.title * #1 entry.max$ substring$ 'sort.key$ := } This will sort on year, ascending, unless there's no year, in which case it sorts by author or whatever. To get a descending sort, we'll have to hack a bit more. In fact, we'll have to hack a lot more. The obvious thing to do is to subtract the year from 1 and then sort on that. But the problem is that year is a string field, not an integer, so I think BibTeX will choke if we try to subtract it from something. And, so far as I can see, BibTeX itself provides us with no way to convert a string to an integer, though we can go the other way. We can work around this by writing a routine that will attempt to convert a 4-digit year to an integer, roughly: INTEGERS { iterator, year.desc } FUNCTION year.to.int { #0 'year.desc := #1 'iterator := { iterator #1 < } #while (iterator < 1) { iterator int.to.str$ year purify$ = if$ { iterator 'year.desc := %success... #1 'iterator := %end the iteration } 'skip$ } year.desc } So we leave the empty string on the stack if it wasn't an integer (less than 1). I've not tested that, and don't have time to do so right now. And note: It may take a while to do this for every entry! So, well, we've got that. Now, we can re-write presort: FUNCTION year.desc { year.to.int duplicate$ if$ { #1 - int.to.str$ { "Warning: Problem with year field in " cite$ * warning$ pop$ "" %You might want to push "", to get yearless things at the end } } And then, in the routine above, replace the line "year field.or.null sortify" with "year.desc". Again, I've not tested this. Actually, a better way to do year.to.int it would be (i) to use text.length$ to check that year is four characters; (ii) use substring$ to extract the characters from year one by one, and then use chr.to.int to convert them, one at a time, to the corresponding ASCII integers; (iii) make sure we're between 48 (ASCII '0') and 57 (ASCII '9'), i.e., that we have a digit, and then substract 48 to get the actual integer; (iv) reconstruct the integer for the year from those: 1000 * year[1] + 100 * year[2], etc. That'd be much faster. But I'd better go do some actual work right now Richard
Re: LyX 1.4.3-4 DVI Error on Windows XP
Enrico Forestieri wrote: Paul A. Rubin <[EMAIL PROTECTED]> writes: Enrico Forestieri wrote: I am sure this is a problem with yap in MikTeX 2.5. See this thread: http://www.mail-archive.com/lyx-devel-UqbJ+GOpo4+hPH1hqNUYSQ public.gmane.org/msg99140.html The link here gives me a 404 error. I see that gmane has mangled it :( Please, see if this link works (it is the same thread): http://thread.gmane.org/gmane.editors.lyx.devel/65967/focus=65967 Yes it does -- and I'm amused (chagrined?) to discover that it points to a thread I started, back when I had a few working memory cells left. /Paul
Re: How to actually use the LyX 1.4 Character Style Feature
>>From: Juergen Spitzmueller <[EMAIL PROTECTED]> >>To: lyx-users@lists.lyx.org >>Subject: Re: How to actually use the LyX 1.4 Character Style Feature >>Date: Mon, 2 Oct 2006 08:17:55 +0200 >> >>Daniel Lohmann wrote: >>> 1) I would like to use character styles in my documents. In our papers, we >>> frequently have to refer to identifiers from C++ listings that should be >>> set in "typewriter" and either "small" or "smaller" and I would like to >>> define a character style for that. >> >>Currently, charstyles are only available on a general (document-class or >>several-document-classes) level. >>You have to define your character styles either in the *.layout file or in a >>mycharstyles.inc file, which is then to be included in the layout file(s) >>with >> >>Input mycharstyles.inc >> >>All those files have to be placed in your ./lyx-directory. >> >>The char styles are then available through the menu (Input->Character Styles) >> >>The syntax is pretty straightforward, in your case it's something like: >> >>CharStyle Identifier >> LatexType Command >> LatexName identif >> LabelFont >>Family Typewriter >>Color blue >> EndFont >> Preamble >> \newcommand\identif[1]{\small\texttt{#1}} >> EndPreamble >>End Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. Is this known ? I found nothing in bugzilla. -- Jean-Pierre
Lyx-1.4.3 to Mandriva
Hello Rudi : Congratulations !!. I have installed Mandriva 2007 Free Edition and you rpm, work fine in this distro. The gurus of lyx can rename the rpm, for example lyx-1.4.3-1mdv2006-7.i586.rpm Thanks other time. Miguel
Re: Trouble with Floats and Graphic centering
That's it! Looks much better now. Bob, thank you. I really appreciate it. Regards, Stan Bob Lounsbury wrote: > > On Nov 2, 2006, at 8:29 PM, Stan Gatchel wrote: > >> Thanks for helping. I see no "centering" option in the float dialog >> window. Maybe it's not in 1.3.6? Here is a sample attached. >> >> Thanks, >> Stan >> > > Well, this is very very simple. > > 1) Put your cursor inside the graphic float and next to the picture. > 2) Select the paragraph settings dialog (the icon that looks like a > written text page) or go to Edit > Paragraph Settings. > 3) Select Center from the Alignment dialog box. > > Viola, you have a centered picture. See attached file. > > Bob Lounsbury >
Re: LynWinInstall Problems
Fidel Perez schrieb: I downloaded and isntalled : LyXWin143Complete-2-72.exe the lyx.bat file do nothing and lyx.exe says: LyXTextClassList::Read: no textclasses found! This known problem appears spmetimes but we couldn't fix right now. What should I do? Install debian on the labs I can't... Uninstall LyX !completely! using the delivered uninstaller and then reinstall LyX. This should work. If not, mail again. regards Uwe
Re: Trouble with Floats and Graphics
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. Use centered paragraph environment, as you would do with normal text. Marc. En/na Stan Gatchel ha escrit: > Sorry, but I am still using 1.3.6 (SuSE 10.1 apparently installs this > version and since YaST is broken, I can't update). Anyway I must use > this to finish a project. > > I am using "article" and inserted a float than a graphics above the > float. The figure title is centered and the graphic is left justified in > the float box. When I view (in DVI or PDF) the graphic is off-center > from the figure title. Looks kind of bad. > > Any ideas on how to center the graphic in the float box? > > Thanks, > > Stan > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSyqau4rFT+k3kmQRAvfDAJ9PMPNkUK1KKHjgSo0pFlytHTfdHwCeI82U x5diE0O6iSAKAP/oO7vNcqM= =jMj6 -END PGP SIGNATURE-
Re: MikTeX using HTTP mirrors
>>To: lyx-users@lists.lyx.org >>From: Jose Gomez <[EMAIL PROTECTED]> >>Subject: MikTeX using HTTP mirrors >>Date: Fri, 3 Nov 2006 08:57:49 + (UTC) >> >>Hi! >>I have installed LyX on my work computer (Win2k) using the "bundle" executable >>file. It all went fine, but for one MikTeX related thing (I am not familiar >>with >>lyx or miktex on win32): I do not have access to FTP, so while I configure >>miktex to use our HTTP proxy, it only shows up mirrors on FTP servers, to >>which >>I have no access. Short of downloading all those files by myself (might be an >>option _if_ they are available as a zip file in some webserver :D). I use proTeXt to install a fairly complete MikTeX, then the small installer. The compressed proTeXt archive is quite big (about 415 Mo), and updated once a year, but once installed, I guess you won't need on line package downloading. http://www.tug.org/protext/ftp/protext.exe is a http link. Available as well on the TeXLive DVD/CD distribution (including also a TeXLive for Windows, which requires more familiarity with the installation issues than the MiKTeX installer, but can exactly match the *nix or Mac TexLive installation). -- Jean-Pierre
MikTeX using HTTP mirrors
Hi! I have installed LyX on my work computer (Win2k) using the "bundle" executable file. It all went fine, but for one MikTeX related thing (I am not familiar with lyx or miktex on win32): I do not have access to FTP, so while I configure miktex to use our HTTP proxy, it only shows up mirrors on FTP servers, to which I have no access. Short of downloading all those files by myself (might be an option _if_ they are available as a zip file in some webserver :D). So how can I tell the MikTeX installer to download packages from HTTP mirrors rather than FTP mirrors? Other than that, LyX on win32 looks nearly as impressive as it does on linux :) Cheers! Jose
spellchecker problem
My default document language is polish. When trying to perform spell-checking I get window with message: "Could not communicate with the spell-checking program". My spellchecker is aspell and spell checking works with documents in english. Aspell for english and polish is correctly installed and I am able to perform spell checking with command "aspell check -d [polish | english] [file]". From lyx aspell is called with the command "aspell -a -d[current_document_language] -B -w''" I tried to use lyx versions 1.3.4 to 1.3.6 with the same result. Does anybody have a clue how to fix it ?? -- Wojtek Michalik <[EMAIL PROTECTED]>
Re: how to specify order of bibliography
>>Date: Fri, 3 Nov 2006 01:37:49 -0600 >>From: "Michael Chen" <[EMAIL PROTECTED]> >>To: "Jean-Pierre Chretien" <[EMAIL PROTECTED]> >>Subject: Re: how to specify order of bibliography >>Cc: [EMAIL PROTECTED], lyx-users@lists.lyx.org >> >>Thanks, Jean-Pierre. I tried bibsort for a while. however I tried >>"./configure && make all check install" as shown in its README file, >>and get not get it compiled. And its .jar file can not be executed by >>"java -jar bibsort-0.15.jar" neither. I believe that this is a well >>maintained software since it has gone through many revisions. I used the tar.gz version with success here on Solaris, just to check with the last version as I had 0.11 installed for years (I had to ./configure twice). >> >>By the way, it seems that bibsort will sort the *.bib file itself, >>instead of the entried in the final PDF output. is it correct? Yes, this is an external workaround (as compared to bst hacking), but it works with any existing unsorted bst file. The bst mentioned previously on the thread does not deal with references inside the same year (what bibsort -byyear would do). I guess you should insert \nocite{*} at the beginning of the document to force the loading of the whole bib file (and thus you must extract only the required entries in a specific bibfile beforehand, but this is easy with bib management GUIs (anyway it's always a god idea to split bibfiles and cat at will or give multiple file names - up to 20 AFAIR). Regards -- Jean-Pierre