Re: problems with urls not breaking at end of line
Uwe Stöhr wrote: Rainer M Krug schrieb: These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Don't use the URL inset in this case. Use hyperref's \href command instead, see the attached example LyX-file. This has the advantage that you can treat the URL text like every other LyX text: You can change ist format, can enter forced linebreaks, hyphenation points, etc. as I demonstrated in the attached file. regards Uwe Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? I am using SyuSE 10.2 and LyX 1.4.3. Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED] newfile3.pdf Description: Adobe PDF document
Re: Resume Enumerate
Bruce Pourciau wrote: \begin{enumerate}[resume] Currently, this is not yet possible without such changes as Richard describes. LyX 1.5 will have the ability to insert optional arguments (a.k.a. Short Title) to environments, as you can do now for commands (like section). Jürgen
Re: tex4ht and LaTeX music applications?
Jamie Faunt wrote: For rhythmic and also standard notation however, I do have occasional needs. I would really prefer to use typography rather than bitmaps. So I was wondering if you or any other reader on this list knew of any music notation packages that use or export to LaTeX so that I might be able to use these in conjunction with my LyX docs. The LaTeX main package is called MusiXTeX. Beside, LilyPond, there is also NoteEdit. Cheers, Charles -- http://www.kde-france.org
Re: OpenOffice vs. LyX
Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. FYI, with latest 1.5, I can open a 1200 pages document (the UserGuide copiedpasted 12 times) and type in it without any speed problem on my 1.8 GHz laptop. Saving this doc is quite fast (3 seconds) and loading it is 10 seconds. If you can find a word processor that fast I pay you a beer ;-) Abdel.
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? You use other page margins, so you have to readjust the hyphenation points. regards Uwe
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: You use other page margins, so you have to readjust the hyphenation points. I must checked in the document properties - the page margins are set to default. On my system the default is A4, on yours probably letter. Just set hyphenation points at the regions where the URL should be broken and it will work. regards Uwe
Re: putting image on first page of pdf
Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe
Re: searching for referenced bibtex source
On Mon, 29 Jan 2007, Tobias Krause wrote: is there a way to search for a referenced bibtex source? Or do I have to search for in the .lyx file with a text editor, go back to LyX and search for the surrounding text? I'm guessing the latter so I can't help you. However, I think you should file this as a feature request in bugzilla. Maybe it should be combined with the ability to search for labels, and references to labels. That'd be good way to find where you refer to figures/equations/etc. Regards, /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: File refuses to conform to letter size...
On Monday 29 January 2007 7:37:13 am Kenward Vaughan wrote: On Sun, 2007-01-28 at 20:32 -0600, Les Denham wrote: On Sunday 28 January 2007 18:55, Kenward Vaughan wrote: Hello folks, I have an older LyX file for my classes which I opened for the semester, and cannot get the file to properly print out using US letter in landscape mode. It insists on being A4. I have never had this happen before, and am frustrated because I've no clue what the issue is. I'm using Debian Sid/LyX 1.4.3. Is someone able to quickly glance at it and tell me what weird thing has happened? I'd really appreciate it. I've attached it (I don't think it's too big, but please correct me if wrong). Kenward, I loaded it into Lyx 1.4.1 on Gentoo Linux and it came out in Letter without me doing anything (see attached). The margins could be evened a little, but it's definitely Letter. There may be something different in 1.4.3. Les I get the same for pdf output no matter what I set for the margins, when I use Acrobat. When I use xpdf, it looks great. When I use gv it does not work. I don't understand the pdf differences, but do know that my students (from Windows land, with nary a glimpse at much beyond Word/Acrobat) won't get the proper layout. ??? very frustrating. Which path (alternative) do you use to generate the pdf? pdflatex dvipdfm ps2pdf other? Thanks for the input, Les! Kenward ps. what the heck is xdg-open? It keeps popping up iceweasel to display something, which is a very wasteful move. I'm slowly changing various format viewers over to what I expect for them--it's faster, more intelligent (IMHO), and not irritating. Please report the bug to Debian. IIRC the Debian maintainer is very responsive and is reads regularly this list. xdg-open is the freedesktop route to an automatic viewer. It uses the system (desktop environment) default to use the different kind of files. As an example I use kde, as my pdf viewer is kpdf I would like that lyx would use that as the default without having to configure it everytime I install it in a new machine. -- José Abílio
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 12:35:02 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell nutritional-epi-text.lyx Description: application/lyx attachment: willet-nutritional-epi-0001.jpeg
Re: OpenOffice vs. LyX
On Jan 28, 2007, at 10:44 AM, Stefano Franchi wrote: 1. Framemaker has the concept of a book: a multifile work to which you can add chapters (and indexes, etc). Once you have a book set up, you can find and replace across chapters, change the formatting across the whole book, etc. This makes it very easy, for instance, to switch from draft-style to final style when printing out a publication. LyX/LaTex still does not (and never will, I think) understand a similar concept. \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. William -- William Adams senior graphic designer Fry Communications This email message and any files transmitted with it contain information which is confidential and intended only for the addressee(s). If you are not the intended recipient(s), any usage, dissemination, disclosure, or action taken in reliance on it is prohibited. The reliability of this method of communication cannot be guaranteed. Email can be intercepted, corrupted, delayed, incompletely transmitted, virus-laden, or otherwise affected during transmission. Reasonable steps have been taken to reduce the risk of viruses, but we cannot accept liability for damage sustained as a result of this message. If you have received this message in error, please immediately delete it and all copies of it and notify the sender.
Re: tex4ht and LaTeX music applications?
Les Denham wrote: Are you familiar with Lilypond (http://lilypond.org)? It produces beautiful results, and can be integrated with LaTeX. So putting it together with Lyx should be practical, though I haven't tried it. I'd recommend that, too. The upcoming LyX 1.4.4 will check for lilypond, so that you can simply include lilypond files in the graphics inset. In 1.4.3 you have to define your own lilypond format and converter. Since it takes some time to learn lilypond I also recommend noteedit, which can export to lilypond. Georg
Re: Section numbers in left margin?
This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Also memoir: \chapterstyle{hangnum} this did not not touch (sub)sections at all. pavel
Re: Resume Enumerate
On Jan 29, 2007, at 2:13 AM, Jürgen Spitzmüller wrote: Bruce Pourciau wrote: \begin{enumerate}[resume] Currently, this is not yet possible without such changes as Richard describes. LyX 1.5 will have the ability to insert optional arguments (a.k.a. Short Title) to environments, as you can do now for commands (like section). Jürgen So in contrast to the mdwlist package, there's no simple LyX way (that is, a way requiring just a little ERT in a LyX file) to resume a particular enumeration with the enumitem package? I'm not talking about making it the global default behavior, but rather just resuming one particular enumeration. Bruce
Bibliography layout problems using the Document Class - Report(koma-script)
I have added a bibliography to a document which uses the Document Class - Report (koma-script). Although the rest of the document is a single column, the bibliography seems to be formatted as a two column. I use the word seems, because only the right column is being used. The left column is empty. Is there a default setting for the Bibliography to be two-column. Is there something else going on that I am missing. Thanks ahead of time. Will DeShazer
Re: Resume Enumerate
Bruce Pourciau wrote: So in contrast to the mdwlist package, there's no simple LyX way (that is, a way requiring just a little ERT in a LyX file) to resume a particular enumeration with the enumitem package? I'm not talking about making it the global default behavior, but rather just resuming one particular enumeration. No, not yet (but it is in the forthcoming 1.5). You probably have to use ERT. Jürgen
Re: Section numbers in left margin?
Pavel Sanda wrote: \chapterstyle{hangnum} this did not not touch (sub)sections at all. It's called chapterstyle, after all ;-) Jürgen
Centering symbols in tables
Hello everybody! I need to produce a line of mathematical text resembling the one at http://www.cpt.univ-mrs.fr/~mustatea/right.png . What you see was produced in LaTeX by inserting graphics in an array, a thing that apparently I cannot do with LyX. Instead, I chose to use tables and even though I choose to align my symbols centered and middle, I keep obtaining lines like the one at http://www.cpt.univ-mrs.fr/~mustatea/wrong.png . Could you please help me to center the plus and equal symbols? Thank you. A. M.
Re: putting image on first page of pdf
In a recent message [EMAIL PROTECTED], Russell Davie [EMAIL PROTECTED] wrote. [...] Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell [ A MIME application / x-lyx part was included here. ] [ A MIME image / jpeg part was included here. ] These files work exactly in the way you want on my system (Latest LyX alpha release, Win-XP). -- Nick Hopton and Anne Hopton Caversham, Reading, England [EMAIL PROTECTED] nutritional-epi-text-preview.pdf Description: nutritional-epi-text-preview.pdf
Re: Footnotes in Greek
On 27 Jan, 2007, at 5:54 PM, Uwe Stöhr wrote: Declan O'Byrne schrieb: I've been trying to get a way to insert some greek text into a document. Having installed the relevant bits from texlive, I tried putting \usepackage[greek,british]{babel} into the preamble. You don't need to do this manually. Simply take your british document and use the textstyle dialog to mark parts of the text as greek. LyX will then take care about the babel options, character encoding and will set the \selectlanguage correctly. Attached is an example file. In the upcoming LyX 1.5 it is possible that greek characters are also displayed as such. That's a great solution I didn't know of. But the attached file doesn't work for me. LyX does pass greek and english to the documentclass declaration, but it does not insert appropriate babel declarations. Is this supposed to be done by the article class? The end result, on my configuration, is that all the resulting text is in English, not Greek. Looking at the exported LaTeX file, I noticed that when Greek text is supposed to begin LyX inserts only: \inputencoding{iso-8859-7} Isn't supposed to insert also a \textanguage{greek} ? Cheers, S. regards Uwe newfile1.lyx __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: Centering symbols in tables
Alexandru Mustatea wrote: Hello everybody! I need to produce a line of mathematical text resembling the one at http://www.cpt.univ-mrs.fr/~mustatea/right.png . What you see was produced in LaTeX by inserting graphics in an array, a thing that apparently I cannot do with LyX. Instead, I chose to use tables and even though I choose to align my symbols centered and middle, I keep obtaining lines like the one at http://www.cpt.univ-mrs.fr/~mustatea/wrong.png . Could you please help me to center the plus and equal symbols? Thank you. A. M. Can you post the LaTeX code you used to generate the correct image? I think it might be possible to do it in LyX, although the approach I have in mind might be a bit awkward. /Paul
Re: OpenOffice vs. LyX
Abdelrazak Younes wrote: Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. FYI, with latest 1.5, I can open a 1200 pages document (the UserGuide copiedpasted 12 times) and type in it without any speed problem on my 1.8 GHz laptop. Saving this doc is quite fast (3 seconds) and loading it is 10 seconds. If you can find a word processor that fast I pay you a beer ;-) I'll guess that beer's pretty safe. I've got the book I'm presently writing spread out over several files. This leads to certain challenges relating to file inclusion---see the wiki for my solutions---but otherwise I've had no problems at all. There have been a few times I've wanted to do global search-and-replaces, but most of those times what I've wanted to do has been complicated enough that I've needed the power of perl's regular expressions to do it anyway. It's so simple to write filters in perl: while () { ... } that it's really a non-issue. Indeed, the following: #!/usr/bin/perl use strict; use warnings; #my %sr = (@ARGV); my $text = do { local($/); STDIN; }; for (my $i = 0; $i scalar @ARGV; $i += 2) { my $k = $ARGV[$i]; my $v = $ARGV[$i + 1]; #We use the null character as delimiter #and specify multiline matches and global replacement my $code = \$text =~ s\000$k\000$v\000sg; eval $code or die(Error in pattern for $k = $v.\n); } print $text; is a complete such program. (We should really add options to allow the choice of multiline, case insensitive, etc. Not hard to do.) Save it as srfilter.pl, make it executable, and use it like this: srfilter.pl 'hello' 'goodbye' 'I\'m' 'I am' '([A-Z])\*=)' '\wanc{$1}' input.lyx That will replace hello with goodbye, I'm with I am, and something like Q*= with \wanc{Q} globally in input.lyx and write the new file to the screen. (The last is something I actually had to do, along with several other such replacements.) Note the use of single quotes to protect shell metacharacters from expansion or interpolation. Of course, you can also use sed, or the perl-based srep (on CPAN). If you want to apply srfilter.pl it to a bunch of files at once, use the shell's own mechanisms: for fil in *.lyx; do srfilter.pl 'hello' 'goodbye' $fil new.$fil; done That's bash. If you use something else, adapt as necessary. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Flush Text with Graphics
Hi, I'm having a devil of a time making LyX distribute extra vertical whitespace it is adding when it encounters a graphic in a 'proper' style. Consider the following. Document Class: book Page Layout (Custom): Custom (11.25 x 8.75) Page Margins (Custom): 1.25 x 1.25 x 1.25 x 1.25 Float Placement: Here definitely Here is what I get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] Here is what I am trying to get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] If I change the 'Float Placement:' to default, then everything works as desired. However, it means that the Figures are no longer with the appropriate paragraph, which makes for a confusing document. Also, if I change the margin and page layout settings to use the defaults, then LyX performs as desired. The downside here is that the PDF is then generated at the incorrect size, which renders it useless for printing. Also quite undesirable. Any ideas? Many thanks! Dave
Re: searching for referenced bibtex source
On Mon 29 Jan 2007, Christian Ridderström wrote: On Mon, 29 Jan 2007, Tobias Krause wrote: is there a way to search for a referenced bibtex source? Or do I have to search for in the .lyx file with a text editor, go back to LyX and search for the surrounding text? I'm guessing the latter so I can't help you. However, I think you should file this as a feature request in bugzilla. Maybe it should be combined with the ability to search for labels, and references to labels. That'd be good way to find where you refer to figures/equations/etc. And, until then, you don't need to use a text editor to do the search. Just run the file through grep: grep -C5 Frege:Grundgesetze myfile.lyx will give you all the occurrences of that citation, together with the preceding and succeeding five lines. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Flush Text with Graphics
Float placement in LaTeX is a black art. The default float placement allows LaTeX to put figures in the places it deems best considering the various page-breaking requirements. This is not that unusual in books and articles: A figure might go at the top of the page on which its referenced, etc. The here definitely option forces LaTeX to put the figure where it occurs in the text. This can cause problems with page breaks: If there's not enough room for the figure on the current page, it will get bumped to the next page, and you'll be left with a lot of white space. It seems likely that something along these lines is happening here. If you have something like: Figure 1.1 GRAPHIC IMAGE Some text. Figure 1.2 GRAPHIC IMAGE More text. then you'll get ugly pages if Some Text only takes us two thirds of the way down the page but the second graphic is too big to fit. What you're seeing with changing margins probably has to do with the same thing. One solution may be to use the here definitely option only on certain figures, if the placement seems too far from what you'd like. You can add this option (just an h, I'd think) in the extra options pane of the graphics dialog. Note what this means: If you want always to have the figure with the paragraph, you're going to have to do a lot of tweaking with its placement to avoid bad page breaks. That's a sign you may be trying to control layout too much. Richard Dave Jarvis wrote: Hi, I'm having a devil of a time making LyX distribute extra vertical whitespace it is adding when it encounters a graphic in a 'proper' style. Consider the following. Document Class: book Page Layout (Custom): Custom (11.25 x 8.75) Page Margins (Custom): 1.25 x 1.25 x 1.25 x 1.25 Float Placement: Here definitely Here is what I get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] Here is what I am trying to get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] If I change the 'Float Placement:' to default, then everything works as desired. However, it means that the Figures are no longer with the appropriate paragraph, which makes for a confusing document. Also, if I change the margin and page layout settings to use the defaults, then LyX performs as desired. The downside here is that the PDF is then generated at the incorrect size, which renders it useless for printing. Also quite undesirable. Any ideas? Many thanks! Dave -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Flush Text with Graphics
Dave Jarvis wrote: The book Entanglement by Amir D. Aczel does exactly the style that I want. He references his images beforehand and sacrifices a bit of whitespace at the bottom of the page if the images do not fit nicely. However, the text is always flush with the graphic. And, as I mentioned, I can use the default margins to get exactly the behaviour that I want. As soon as I tweak the margins, though, the vertical spacing goes haywire. Surely there's a way to do this in LyX or (La)TeX? As I said, it seems as if the margins can't really be the problem. You're probably just getting lucky with the default margins. But I suppose it is possible that you're seeing some weird interaction between the geometry package, which is what LyX uses to control page sizing, and the float placement mechanisms. You might try using one of the koma-script classes and the scrpage2 package. You'd have to set page size manually, in the preamble, to do that. There are probably other ways to handle margins as well. The other option is to get real familiar with LaTeX page layout and float placement. I'm no expert on this. In fact, I never use floats---I'm a philosopher---so haven't had any reason to study it. But there is a good treatment in the /LaTeX Companion/. You might also just try the here if possible setting and see how close that gets you. Oh, and you might try putting \raggedbottom in ERT right at the beginning of your document. This will allow the bottoms of pages not to line up. That they do, by default, is why you're seeing lots of whitespace in the middle of the page. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Centering symbols in tables (2)
This is in reply to Paul A. Rubin's request (sorry for breaking the thread, email problem). The LaTeX code that produced the good output is below. I also forgot to mention that I'm using LyX 1.4.3. Now, the workaround would be to export to LaTeX and then hack the resulting file manually, but maybe things could be done more elegantly in LyX. \be \begin{array}{c} \includegraphics[width=3cm]{q-skein1sf.eps}\end{array}=A(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein2sf.eps}\end{array}+B(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein3sf.eps}\end{array}. \ee A.M.
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 12:35:02 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell nutritional-epi-text.lyx Description: application/lyx attachment: willet-nutritional-epi-0001.jpeg
Re: putting image on first page of pdf
Russell Davie schrieb: No special settings, just the default vanilla article. Why is this called vanilla? Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. Everything works fine here, the image is correctly displayed on the first page. What does not work? Viewing the file as PDF works but the image is missing or do you get errors when you want to view the file? Itf the latter is the case, your ImageMagick installation is broken. regards Uwe
Re: Footnotes in Greek
Stefano Franchi schrieb: That's a great solution I didn't know of. But the attached file doesn't work for me. LyX does pass greek and english to the documentclass declaration, but it does not insert appropriate babel declarations. What do you need? You only need to load greek for babel when you want to have e.g. the section heading names appear in Greek. But as you document is in English and you only have text snippets in Greek, there's no need for that. Looking at the exported LaTeX file, I noticed that when Greek text is supposed to begin LyX inserts only: \inputencoding{iso-8859-7} Isn't supposed to insert also a \textanguage{greek} ? If yes, then it should be \selectlanguage{greek} regards Uwe
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 22:02:43 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: No special settings, just the default vanilla article. Why is this called vanilla? oh, I meant plain, as in default, eg with nothing in preamble. I didn't mean to confuse you! Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. Everything works fine here, the image is correctly displayed on the first page. What does not work? Viewing the file as PDF works but the image is missing or do you get errors when you want to view the file? Itf the latter is the case, your ImageMagick installation is broken. It happens when the image is scanned in at full size ~A4 and is almost the size of the page. Every thing works out when it is resized to smaller size, say 50%. thanks, its fixed now. regards Russell Send instant messages to your online friends http://au.messenger.yahoo.com
Using ACM and APA styles in LyX?
Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart
Re: Using ACM and APA styles in LyX?
LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Using ACM and APA styles in LyX?
I installed the texlive-publishers package recently on ubuntu-edgy and after a ToolsReconfigure, LyX recognized both APA and ACM. Bob Lounsbury On 1/29/07, Richard Heck [EMAIL PROTECTED] wrote: LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Using ACM and APA styles in LyX?
Sorry, I lied. I don't have ACM. Just APA. On 1/29/07, Bob Lounsbury [EMAIL PROTECTED] wrote: I installed the texlive-publishers package recently on ubuntu-edgy and after a ToolsReconfigure, LyX recognized both APA and ACM. Bob Lounsbury On 1/29/07, Richard Heck [EMAIL PROTECTED] wrote: LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Centering symbols in tables (2)
Alexandru Mustatea wrote: This is in reply to Paul A. Rubin's request (sorry for breaking the thread, email problem). The LaTeX code that produced the good output is below. I also forgot to mention that I'm using LyX 1.4.3. Now, the workaround would be to export to LaTeX and then hack the resulting file manually, but maybe things could be done more elegantly in LyX. \be \begin{array}{c} \includegraphics[width=3cm]{q-skein1sf.eps}\end{array}=A(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein2sf.eps}\end{array}+B(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein3sf.eps}\end{array}. \ee A.M. I was able to reproduce this in LyX, using the following steps: 1. If the image files are not in EPS format, use ImageMagick to convert them to EPS. (I copied the PNG file from your web page, chopped it into three separate images, and converted them to EPS.) 2. If the document is not going to contain any images outside math environments, add \usepackage{graphicx} to the document preamble. (LyX automatically does this for you if it sees images being included, but it does not see them if they are in math environments -- or headers/footers IIRC.) 3. Insert a displayed equation containing []=A(\lambda)[]+B(\lambda)[], where [] is my way of indicating a 1x1 array. The default inserted array is 2x2; you have to delete a row and a column. Fortunately, this is easy with toolbar buttons if you turn on the math toolbar (or by keyboard shortcuts). 4. Put the cursor in the first 1x1 array cell and type \includegraphics[width=3cm]{q-skein1sf.eps}. Make sure that, when you are done typing, the \ disappears (signaling that LyX recognized this as a command). Occasionally, when pasting things in, I forget to follow up with a space, and LyX ends up treating \includegraphics as literal text (detectable because the \ is still visible). That should do it. One other note, though. LyX currently does not have scrollable math insets, and even with the LyX window maximized I could not edit the last \includegraphics command. A workaround is to define abbreviations in the preamble. For instance, I put \newcommand{\Lx}{\includegraphics[width=3cm]{q-skein1sf.eps}} in the preamble and then just \Lx (followed by a space!) in the leftmost 1x1 array. This may be a bit tedious, but it works. HTH, /Paul
Re: OpenOffice vs. LyX
On 29 Jan, 2007, at 7:23 AM, William Adams wrote: \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. Well, that is true by definition---everything can be done in LaTeX! [for some very broad definition of 'everything,' at least ;-)] The above solution becomes less easy when you have several parameters you want to change at once and several files in a document. In fact the real solution wopould be to have different classes or customized classes. Which is basically what Framemaker does when you change from one template to another and export it to all the files. However, my point was that Framemaker makes this, and other tasks, easier. Read---less time consuming and error prone. On a similar point raised earlier: suggesting that multi-file search-and-replace could be done with a perl script seems to me to be beside the point. Or would you consider hacking perl 'easy'? Not for me, for sure, and, I would dare say, not for a large majority of writers. Is is nonetheless true that LyX has reached a point of maturity where this and other annoyances are outweighed by the benefits. One can only hope it will keep getting better and better S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: OpenOffice vs. LyX
On 28 Jan, 2007, at 6:21 PM, Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. Well, I can tell you from very recent experience that even a relatively short 250 pages book cannot be managed when three authors work on it concurrently. It has been hard enough with separate files. I look back in horror at the hours spent with diff and emacs on single chapters. I can only shudder at the thought of passing the whole file back and forth! S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
help: how to convert LyX to word file with many math equations?
Hi, Anyone know how to convert a LyX file with many math equations to a word file? Do I need to retype all those in-line math characters and equations? Thank you in advance!! bests, yiwei
texlive math problems
Hello, Are there any known issues with math characters and texlive? Under texlive and LyX 1.4.3 I opened a couple of chapters of my thesis and some math characters were displayed incorrectly. For instance, rho was displayed as 'ae' not a squirly 'p'. Because of this I uninstalled texlive and installed tetex. Now everything is displayed correctly. So I'm assuming there is a package that needs to be installed under texlive, but I'm not sure what it would be since no errors were detected under LyX the characters were just displayed incorrectly in LyX and corresponding pdf's. I tried eliminating everything in my preamble and setting everything to default and it still appeared. Then I tried with new documents and everything would be fine for awhile and then all of a sudden the characters would not be correct. I just couldn't pick up on any consistent behavior, it was very erratic. So I gave up and installed tetex. I don't really expect a resolution since I've already uninstalled texlive and tetex seems to work perfectly fine for me. I just wanted to see if anyone knew of any issues under ubuntu-edgy and LyX 1.4.3 with texlive. Thanks, Bob Lounsbury
Re: texlive math problems
Bob Lounsbury wrote: Hello, Are there any known issues with math characters and texlive? Under texlive and LyX 1.4.3 I opened a couple of chapters of my thesis and some math characters were displayed incorrectly. For instance, rho was displayed as 'ae' not a squirly 'p'. I use texlive and lyx-1.4.3, and have no such problems. Odd. What linux distribution do you use? I just wanted to see if anyone knew of any issues under ubuntu-edgy and LyX 1.4.3 with texlive. Very odd. isn't Ubuntu-edgy essentially debian etch? That is what I use. -- David L. Johnson And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing. [1 Corinth. 13:2]
tex4ht and LaTeX music applications?
I'm not sure this will help, my son uses Lilypond. While he complains about some difficulty, the program typesets in latex very easily, so you may be able to use it to include your notation in Lyx. The only two other programs he wants cost about $700.00. I installed Lilypond for him from Fink (for Mac) and didn't like it, so I googled it and downloaded direct and it works well, but I can't remember from where off hand. HTH Daniel Culver [EMAIL PROTECTED] On Jan 28, 2007, at 4:17 PM, Jamie Faunt wrote: Hi Jens, I just wanted to thank you for all the text4ht into and your own very helpful page on same. These resources are going to be very helpful as I continue to learn about TeX, LaTeX, XML and such. Being an author of music instruction materials as well, my primary use and interest in LyX/TeX is not as a mathematician or scientist. I love the way LyX let's me concentrate on the content, and avails me of a wide-range of symbols as I need them. Unlike many authors of music materials, my need for music notation is less critical because the type of things I teach (mainly to professional and other aspiring musicians). For rhythmic and also standard notation however, I do have occasional needs. I would really prefer to use typography rather than bitmaps. So I was wondering if you or any other reader on this list knew of any music notation packages that use or export to LaTeX so that I might be able to use these in conjunction with my LyX docs. thanks much, Jamie Faunt http://musicalskills.com lyx Daniel Culver [EMAIL PROTECTED]
Re: File refuses to conform to letter size...
On Mon, 2007-01-29 at 12:25 +, José Matos wrote: On Monday 29 January 2007 7:37:13 am Kenward Vaughan wrote: On Sun, 2007-01-28 at 20:32 -0600, Les Denham wrote: On Sunday 28 January 2007 18:55, Kenward Vaughan wrote: Hello folks, I have an older LyX file for my classes which I opened for the semester, and cannot get the file to properly print out using US letter in landscape mode. It insists on being A4. I have never had this ... I get the same for pdf output no matter what I set for the margins, when I use Acrobat. When I use xpdf, it looks great. When I use gv it does not work. I don't understand the pdf differences, but do know that my students (from Windows land, with nary a glimpse at much beyond Word/Acrobat) won't get the proper layout. ??? very frustrating. Which path (alternative) do you use to generate the pdf? pdflatex dvipdfm ps2pdf other? ... dvipdfm is the only one to give something that works properly in xpdf. The other two generate something which (in xpdf) appears to be a4 sized (it runs off the page). None display/print as desired in acrobat. gv cannot display the dvi, but does display the pdf file properly. It doesn't print out properly though (portrait or landscape mode gives a portrait print, with the table off the edge). I had just switched over to texlive in the past few weeks to be able to use some of the packages associated with it. Is there a chance this is a problem with that end of things? ps. what the heck is xdg-open? It keeps popping up iceweasel to display something, which is a very wasteful move. I'm slowly changing various format viewers over to what I expect for them--it's faster, more intelligent (IMHO), and not irritating. Please report the bug to Debian. IIRC the Debian maintainer is very responsive and is reads regularly this list. What kind of bug is this though? I use fluxbox normally, kde apps on occasion, and gnome is for my wife. I need to read the docs with that, since it may be something that the user needs to adjust. Is it something that LyX requires? Or does LyX use what it finds while configuring itself? Thanks for the help! Kenward xdg-open is the freedesktop route to an automatic viewer. It uses the system (desktop environment) default to use the different kind of files. As an example I use kde, as my pdf viewer is kpdf I would like that lyx would use that as the default without having to configure it everytime I install it in a new machine. -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: OpenOffice vs. LyX
Stefano Franchi wrote: On 29 Jan, 2007, at 7:23 AM, William Adams wrote: \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. Well, that is true by definition---everything can be done in LaTeX! [for some very broad definition of 'everything,' at least ;-)] The above solution becomes less easy when you have several parameters you want to change at once and several files in a document. In fact the real solution would be to have different classes or customized classes. Which is basically what Framemaker does when you change from one template to another and export it to all the files. However, my point was that Framemaker makes this, and other tasks, easier. Read---less time consuming and error prone. This kind of thing can be made easier, if you use file includes. Put what you need into a file preamble.sty---you don't need an entire class, just a package---and then include that from each of your subdocuments. Make whatever changes you need to make in preamble.sty, which may just mean commenting out some stuff and uncommenting other stuff. Or you can define a \newif and use a conditional to choose among different possibilities and then just change \ifdraftrue to \ifdraftfalse at the beginning of preamble.sty. There are issues that can arise here, but they aren't that hard to resolve. There's some stuff I posted on the wiki that's relevant. Note, however, that most of that will only be an issue when you are just compiling parts of the document. If you're compiling the whole document, then the commands in the preamble of the master document are the only ones LaTeX will see: The preambles of sub-documents are only visible to LyX. On a similar point raised earlier: suggesting that multi-file search-and-replace could be done with a perl script seems to me to be beside the point. Or would you consider hacking perl 'easy'? Not for me, for sure, and, I would dare say, not for a large majority of writers. I wasn't suggesting you should have to hack perl. The point was that there are simple scripts out there that can be used to do very powerful search and replace. The script I posted doesn't need to be hacked. It just needs to be saved and used. (Other scripts do the same thing. I just wrote it to kill time.) Don't want to use regexes? Don't have to. Granted, multi-file search and replace would be a nice thing to have within LyX, and a more important thing is that search and replace in LyX doesn't see everything in the file. So, yes, I think that's a place improvement would be welcome. Part of the issue here, I think, is that LyX isn't a stand-alone product but a front-end to LaTeX. It doesn't look that way, and it's not meant to look that way. A large part of the idea seems to be to let people do a whole lot without knowing any LaTeX at all, and a lot of people use LyX comfortably without ever having to go beyond that. But there are some of us who need or want to do more. Sometimes, such people need, as much as anything, to unlearn bad habits and stop trying to control the layout so much. But, as I said, some of us need to do more, and then that means getting down and dirty with LaTeX. There's really no way everything that's possible in LaTeX can be put on a menu. But if you do make heavy use of LaTeX, then it can easily seem like LyX gets in the way. It can make you want to have a document with nothing but ERT! (Speaking of which, sometimes the best solution to a search and replace problem is to export to LaTeX, do the edits there, and then re-import to LyX.) But mostly it's a matter of figuring out how to make the best of the combination. Fortunately, there are lots of people here who've had experience with that, so we don't all have to re-invent the wheel. File includes and redefinitions of commands seem to be the most useful techniques here. And if you want to post specific issues, I'd be happy to help work them out, as I'm sure many other people would, also. That, of course, is the really nice thing about F/OSS: The community that goes with it. Well, that said: It's nice to see another philosopher on the list! Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: problems with urls not breaking at end of line
Uwe Stöhr wrote: Rainer M Krug schrieb: These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Don't use the URL inset in this case. Use hyperref's \href command instead, see the attached example LyX-file. This has the advantage that you can treat the URL text like every other LyX text: You can change ist format, can enter forced linebreaks, hyphenation points, etc. as I demonstrated in the attached file. regards Uwe Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? I am using SyuSE 10.2 and LyX 1.4.3. Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED] newfile3.pdf Description: Adobe PDF document
Re: Resume Enumerate
Bruce Pourciau wrote: \begin{enumerate}[resume] Currently, this is not yet possible without such changes as Richard describes. LyX 1.5 will have the ability to insert optional arguments (a.k.a. Short Title) to environments, as you can do now for commands (like section). Jürgen
Re: tex4ht and LaTeX music applications?
Jamie Faunt wrote: For rhythmic and also standard notation however, I do have occasional needs. I would really prefer to use typography rather than bitmaps. So I was wondering if you or any other reader on this list knew of any music notation packages that use or export to LaTeX so that I might be able to use these in conjunction with my LyX docs. The LaTeX main package is called MusiXTeX. Beside, LilyPond, there is also NoteEdit. Cheers, Charles -- http://www.kde-france.org
Re: OpenOffice vs. LyX
Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. FYI, with latest 1.5, I can open a 1200 pages document (the UserGuide copiedpasted 12 times) and type in it without any speed problem on my 1.8 GHz laptop. Saving this doc is quite fast (3 seconds) and loading it is 10 seconds. If you can find a word processor that fast I pay you a beer ;-) Abdel.
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? You use other page margins, so you have to readjust the hyphenation points. regards Uwe
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: You use other page margins, so you have to readjust the hyphenation points. I must checked in the document properties - the page margins are set to default. On my system the default is A4, on yours probably letter. Just set hyphenation points at the regions where the URL should be broken and it will work. regards Uwe
Re: putting image on first page of pdf
Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe
Re: searching for referenced bibtex source
On Mon, 29 Jan 2007, Tobias Krause wrote: is there a way to search for a referenced bibtex source? Or do I have to search for in the .lyx file with a text editor, go back to LyX and search for the surrounding text? I'm guessing the latter so I can't help you. However, I think you should file this as a feature request in bugzilla. Maybe it should be combined with the ability to search for labels, and references to labels. That'd be good way to find where you refer to figures/equations/etc. Regards, /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: File refuses to conform to letter size...
On Monday 29 January 2007 7:37:13 am Kenward Vaughan wrote: On Sun, 2007-01-28 at 20:32 -0600, Les Denham wrote: On Sunday 28 January 2007 18:55, Kenward Vaughan wrote: Hello folks, I have an older LyX file for my classes which I opened for the semester, and cannot get the file to properly print out using US letter in landscape mode. It insists on being A4. I have never had this happen before, and am frustrated because I've no clue what the issue is. I'm using Debian Sid/LyX 1.4.3. Is someone able to quickly glance at it and tell me what weird thing has happened? I'd really appreciate it. I've attached it (I don't think it's too big, but please correct me if wrong). Kenward, I loaded it into Lyx 1.4.1 on Gentoo Linux and it came out in Letter without me doing anything (see attached). The margins could be evened a little, but it's definitely Letter. There may be something different in 1.4.3. Les I get the same for pdf output no matter what I set for the margins, when I use Acrobat. When I use xpdf, it looks great. When I use gv it does not work. I don't understand the pdf differences, but do know that my students (from Windows land, with nary a glimpse at much beyond Word/Acrobat) won't get the proper layout. ??? very frustrating. Which path (alternative) do you use to generate the pdf? pdflatex dvipdfm ps2pdf other? Thanks for the input, Les! Kenward ps. what the heck is xdg-open? It keeps popping up iceweasel to display something, which is a very wasteful move. I'm slowly changing various format viewers over to what I expect for them--it's faster, more intelligent (IMHO), and not irritating. Please report the bug to Debian. IIRC the Debian maintainer is very responsive and is reads regularly this list. xdg-open is the freedesktop route to an automatic viewer. It uses the system (desktop environment) default to use the different kind of files. As an example I use kde, as my pdf viewer is kpdf I would like that lyx would use that as the default without having to configure it everytime I install it in a new machine. -- José Abílio
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 12:35:02 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell nutritional-epi-text.lyx Description: application/lyx attachment: willet-nutritional-epi-0001.jpeg
Re: OpenOffice vs. LyX
On Jan 28, 2007, at 10:44 AM, Stefano Franchi wrote: 1. Framemaker has the concept of a book: a multifile work to which you can add chapters (and indexes, etc). Once you have a book set up, you can find and replace across chapters, change the formatting across the whole book, etc. This makes it very easy, for instance, to switch from draft-style to final style when printing out a publication. LyX/LaTex still does not (and never will, I think) understand a similar concept. \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. William -- William Adams senior graphic designer Fry Communications This email message and any files transmitted with it contain information which is confidential and intended only for the addressee(s). If you are not the intended recipient(s), any usage, dissemination, disclosure, or action taken in reliance on it is prohibited. The reliability of this method of communication cannot be guaranteed. Email can be intercepted, corrupted, delayed, incompletely transmitted, virus-laden, or otherwise affected during transmission. Reasonable steps have been taken to reduce the risk of viruses, but we cannot accept liability for damage sustained as a result of this message. If you have received this message in error, please immediately delete it and all copies of it and notify the sender.
Re: tex4ht and LaTeX music applications?
Les Denham wrote: Are you familiar with Lilypond (http://lilypond.org)? It produces beautiful results, and can be integrated with LaTeX. So putting it together with Lyx should be practical, though I haven't tried it. I'd recommend that, too. The upcoming LyX 1.4.4 will check for lilypond, so that you can simply include lilypond files in the graphics inset. In 1.4.3 you have to define your own lilypond format and converter. Since it takes some time to learn lilypond I also recommend noteedit, which can export to lilypond. Georg
Re: Section numbers in left margin?
This can certainly be done with the koma-script classes. See also the titlesec package. These will allow you to add arbitrary formatting commands to set the section titles. Also memoir: \chapterstyle{hangnum} this did not not touch (sub)sections at all. pavel
Re: Resume Enumerate
On Jan 29, 2007, at 2:13 AM, Jürgen Spitzmüller wrote: Bruce Pourciau wrote: \begin{enumerate}[resume] Currently, this is not yet possible without such changes as Richard describes. LyX 1.5 will have the ability to insert optional arguments (a.k.a. Short Title) to environments, as you can do now for commands (like section). Jürgen So in contrast to the mdwlist package, there's no simple LyX way (that is, a way requiring just a little ERT in a LyX file) to resume a particular enumeration with the enumitem package? I'm not talking about making it the global default behavior, but rather just resuming one particular enumeration. Bruce
Bibliography layout problems using the Document Class - Report(koma-script)
I have added a bibliography to a document which uses the Document Class - Report (koma-script). Although the rest of the document is a single column, the bibliography seems to be formatted as a two column. I use the word seems, because only the right column is being used. The left column is empty. Is there a default setting for the Bibliography to be two-column. Is there something else going on that I am missing. Thanks ahead of time. Will DeShazer
Re: Resume Enumerate
Bruce Pourciau wrote: So in contrast to the mdwlist package, there's no simple LyX way (that is, a way requiring just a little ERT in a LyX file) to resume a particular enumeration with the enumitem package? I'm not talking about making it the global default behavior, but rather just resuming one particular enumeration. No, not yet (but it is in the forthcoming 1.5). You probably have to use ERT. Jürgen
Re: Section numbers in left margin?
Pavel Sanda wrote: \chapterstyle{hangnum} this did not not touch (sub)sections at all. It's called chapterstyle, after all ;-) Jürgen
Centering symbols in tables
Hello everybody! I need to produce a line of mathematical text resembling the one at http://www.cpt.univ-mrs.fr/~mustatea/right.png . What you see was produced in LaTeX by inserting graphics in an array, a thing that apparently I cannot do with LyX. Instead, I chose to use tables and even though I choose to align my symbols centered and middle, I keep obtaining lines like the one at http://www.cpt.univ-mrs.fr/~mustatea/wrong.png . Could you please help me to center the plus and equal symbols? Thank you. A. M.
Re: putting image on first page of pdf
In a recent message [EMAIL PROTECTED], Russell Davie [EMAIL PROTECTED] wrote. [...] Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell [ A MIME application / x-lyx part was included here. ] [ A MIME image / jpeg part was included here. ] These files work exactly in the way you want on my system (Latest LyX alpha release, Win-XP). -- Nick Hopton and Anne Hopton Caversham, Reading, England [EMAIL PROTECTED] nutritional-epi-text-preview.pdf Description: nutritional-epi-text-preview.pdf
Re: Footnotes in Greek
On 27 Jan, 2007, at 5:54 PM, Uwe Stöhr wrote: Declan O'Byrne schrieb: I've been trying to get a way to insert some greek text into a document. Having installed the relevant bits from texlive, I tried putting \usepackage[greek,british]{babel} into the preamble. You don't need to do this manually. Simply take your british document and use the textstyle dialog to mark parts of the text as greek. LyX will then take care about the babel options, character encoding and will set the \selectlanguage correctly. Attached is an example file. In the upcoming LyX 1.5 it is possible that greek characters are also displayed as such. That's a great solution I didn't know of. But the attached file doesn't work for me. LyX does pass greek and english to the documentclass declaration, but it does not insert appropriate babel declarations. Is this supposed to be done by the article class? The end result, on my configuration, is that all the resulting text is in English, not Greek. Looking at the exported LaTeX file, I noticed that when Greek text is supposed to begin LyX inserts only: \inputencoding{iso-8859-7} Isn't supposed to insert also a \textanguage{greek} ? Cheers, S. regards Uwe newfile1.lyx __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: Centering symbols in tables
Alexandru Mustatea wrote: Hello everybody! I need to produce a line of mathematical text resembling the one at http://www.cpt.univ-mrs.fr/~mustatea/right.png . What you see was produced in LaTeX by inserting graphics in an array, a thing that apparently I cannot do with LyX. Instead, I chose to use tables and even though I choose to align my symbols centered and middle, I keep obtaining lines like the one at http://www.cpt.univ-mrs.fr/~mustatea/wrong.png . Could you please help me to center the plus and equal symbols? Thank you. A. M. Can you post the LaTeX code you used to generate the correct image? I think it might be possible to do it in LyX, although the approach I have in mind might be a bit awkward. /Paul
Re: OpenOffice vs. LyX
Abdelrazak Younes wrote: Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. FYI, with latest 1.5, I can open a 1200 pages document (the UserGuide copiedpasted 12 times) and type in it without any speed problem on my 1.8 GHz laptop. Saving this doc is quite fast (3 seconds) and loading it is 10 seconds. If you can find a word processor that fast I pay you a beer ;-) I'll guess that beer's pretty safe. I've got the book I'm presently writing spread out over several files. This leads to certain challenges relating to file inclusion---see the wiki for my solutions---but otherwise I've had no problems at all. There have been a few times I've wanted to do global search-and-replaces, but most of those times what I've wanted to do has been complicated enough that I've needed the power of perl's regular expressions to do it anyway. It's so simple to write filters in perl: while () { ... } that it's really a non-issue. Indeed, the following: #!/usr/bin/perl use strict; use warnings; #my %sr = (@ARGV); my $text = do { local($/); STDIN; }; for (my $i = 0; $i scalar @ARGV; $i += 2) { my $k = $ARGV[$i]; my $v = $ARGV[$i + 1]; #We use the null character as delimiter #and specify multiline matches and global replacement my $code = \$text =~ s\000$k\000$v\000sg; eval $code or die(Error in pattern for $k = $v.\n); } print $text; is a complete such program. (We should really add options to allow the choice of multiline, case insensitive, etc. Not hard to do.) Save it as srfilter.pl, make it executable, and use it like this: srfilter.pl 'hello' 'goodbye' 'I\'m' 'I am' '([A-Z])\*=)' '\wanc{$1}' input.lyx That will replace hello with goodbye, I'm with I am, and something like Q*= with \wanc{Q} globally in input.lyx and write the new file to the screen. (The last is something I actually had to do, along with several other such replacements.) Note the use of single quotes to protect shell metacharacters from expansion or interpolation. Of course, you can also use sed, or the perl-based srep (on CPAN). If you want to apply srfilter.pl it to a bunch of files at once, use the shell's own mechanisms: for fil in *.lyx; do srfilter.pl 'hello' 'goodbye' $fil new.$fil; done That's bash. If you use something else, adapt as necessary. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Flush Text with Graphics
Hi, I'm having a devil of a time making LyX distribute extra vertical whitespace it is adding when it encounters a graphic in a 'proper' style. Consider the following. Document Class: book Page Layout (Custom): Custom (11.25 x 8.75) Page Margins (Custom): 1.25 x 1.25 x 1.25 x 1.25 Float Placement: Here definitely Here is what I get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] Here is what I am trying to get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] If I change the 'Float Placement:' to default, then everything works as desired. However, it means that the Figures are no longer with the appropriate paragraph, which makes for a confusing document. Also, if I change the margin and page layout settings to use the defaults, then LyX performs as desired. The downside here is that the PDF is then generated at the incorrect size, which renders it useless for printing. Also quite undesirable. Any ideas? Many thanks! Dave
Re: searching for referenced bibtex source
On Mon 29 Jan 2007, Christian Ridderström wrote: On Mon, 29 Jan 2007, Tobias Krause wrote: is there a way to search for a referenced bibtex source? Or do I have to search for in the .lyx file with a text editor, go back to LyX and search for the surrounding text? I'm guessing the latter so I can't help you. However, I think you should file this as a feature request in bugzilla. Maybe it should be combined with the ability to search for labels, and references to labels. That'd be good way to find where you refer to figures/equations/etc. And, until then, you don't need to use a text editor to do the search. Just run the file through grep: grep -C5 Frege:Grundgesetze myfile.lyx will give you all the occurrences of that citation, together with the preceding and succeeding five lines. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Flush Text with Graphics
Float placement in LaTeX is a black art. The default float placement allows LaTeX to put figures in the places it deems best considering the various page-breaking requirements. This is not that unusual in books and articles: A figure might go at the top of the page on which its referenced, etc. The here definitely option forces LaTeX to put the figure where it occurs in the text. This can cause problems with page breaks: If there's not enough room for the figure on the current page, it will get bumped to the next page, and you'll be left with a lot of white space. It seems likely that something along these lines is happening here. If you have something like: Figure 1.1 GRAPHIC IMAGE Some text. Figure 1.2 GRAPHIC IMAGE More text. then you'll get ugly pages if Some Text only takes us two thirds of the way down the page but the second graphic is too big to fit. What you're seeing with changing margins probably has to do with the same thing. One solution may be to use the here definitely option only on certain figures, if the placement seems too far from what you'd like. You can add this option (just an h, I'd think) in the extra options pane of the graphics dialog. Note what this means: If you want always to have the figure with the paragraph, you're going to have to do a lot of tweaking with its placement to avoid bad page breaks. That's a sign you may be trying to control layout too much. Richard Dave Jarvis wrote: Hi, I'm having a devil of a time making LyX distribute extra vertical whitespace it is adding when it encounters a graphic in a 'proper' style. Consider the following. Document Class: book Page Layout (Custom): Custom (11.25 x 8.75) Page Margins (Custom): 1.25 x 1.25 x 1.25 x 1.25 Float Placement: Here definitely Here is what I get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] Here is what I am trying to get: Figure 1.1 Graphic GRAPHIC IMAGE GOES HERE Text starts here. [END of PAGE] If I change the 'Float Placement:' to default, then everything works as desired. However, it means that the Figures are no longer with the appropriate paragraph, which makes for a confusing document. Also, if I change the margin and page layout settings to use the defaults, then LyX performs as desired. The downside here is that the PDF is then generated at the incorrect size, which renders it useless for printing. Also quite undesirable. Any ideas? Many thanks! Dave -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Flush Text with Graphics
Dave Jarvis wrote: The book Entanglement by Amir D. Aczel does exactly the style that I want. He references his images beforehand and sacrifices a bit of whitespace at the bottom of the page if the images do not fit nicely. However, the text is always flush with the graphic. And, as I mentioned, I can use the default margins to get exactly the behaviour that I want. As soon as I tweak the margins, though, the vertical spacing goes haywire. Surely there's a way to do this in LyX or (La)TeX? As I said, it seems as if the margins can't really be the problem. You're probably just getting lucky with the default margins. But I suppose it is possible that you're seeing some weird interaction between the geometry package, which is what LyX uses to control page sizing, and the float placement mechanisms. You might try using one of the koma-script classes and the scrpage2 package. You'd have to set page size manually, in the preamble, to do that. There are probably other ways to handle margins as well. The other option is to get real familiar with LaTeX page layout and float placement. I'm no expert on this. In fact, I never use floats---I'm a philosopher---so haven't had any reason to study it. But there is a good treatment in the /LaTeX Companion/. You might also just try the here if possible setting and see how close that gets you. Oh, and you might try putting \raggedbottom in ERT right at the beginning of your document. This will allow the bottoms of pages not to line up. That they do, by default, is why you're seeing lots of whitespace in the middle of the page. Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Centering symbols in tables (2)
This is in reply to Paul A. Rubin's request (sorry for breaking the thread, email problem). The LaTeX code that produced the good output is below. I also forgot to mention that I'm using LyX 1.4.3. Now, the workaround would be to export to LaTeX and then hack the resulting file manually, but maybe things could be done more elegantly in LyX. \be \begin{array}{c} \includegraphics[width=3cm]{q-skein1sf.eps}\end{array}=A(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein2sf.eps}\end{array}+B(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein3sf.eps}\end{array}. \ee A.M.
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 12:35:02 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe Hi Uwe, No special settings, just the default vanilla article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell nutritional-epi-text.lyx Description: application/lyx attachment: willet-nutritional-epi-0001.jpeg
Re: putting image on first page of pdf
Russell Davie schrieb: No special settings, just the default vanilla article. Why is this called vanilla? Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. Everything works fine here, the image is correctly displayed on the first page. What does not work? Viewing the file as PDF works but the image is missing or do you get errors when you want to view the file? Itf the latter is the case, your ImageMagick installation is broken. regards Uwe
Re: Footnotes in Greek
Stefano Franchi schrieb: That's a great solution I didn't know of. But the attached file doesn't work for me. LyX does pass greek and english to the documentclass declaration, but it does not insert appropriate babel declarations. What do you need? You only need to load greek for babel when you want to have e.g. the section heading names appear in Greek. But as you document is in English and you only have text snippets in Greek, there's no need for that. Looking at the exported LaTeX file, I noticed that when Greek text is supposed to begin LyX inserts only: \inputencoding{iso-8859-7} Isn't supposed to insert also a \textanguage{greek} ? If yes, then it should be \selectlanguage{greek} regards Uwe
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 22:02:43 +0100 Uwe Stöhr [EMAIL PROTECTED] wrote: Russell Davie schrieb: No special settings, just the default vanilla article. Why is this called vanilla? oh, I meant plain, as in default, eg with nothing in preamble. I didn't mean to confuse you! Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. Everything works fine here, the image is correctly displayed on the first page. What does not work? Viewing the file as PDF works but the image is missing or do you get errors when you want to view the file? Itf the latter is the case, your ImageMagick installation is broken. It happens when the image is scanned in at full size ~A4 and is almost the size of the page. Every thing works out when it is resized to smaller size, say 50%. thanks, its fixed now. regards Russell Send instant messages to your online friends http://au.messenger.yahoo.com
Using ACM and APA styles in LyX?
Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart
Re: Using ACM and APA styles in LyX?
LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Using ACM and APA styles in LyX?
I installed the texlive-publishers package recently on ubuntu-edgy and after a ToolsReconfigure, LyX recognized both APA and ACM. Bob Lounsbury On 1/29/07, Richard Heck [EMAIL PROTECTED] wrote: LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Using ACM and APA styles in LyX?
Sorry, I lied. I don't have ACM. Just APA. On 1/29/07, Bob Lounsbury [EMAIL PROTECTED] wrote: I installed the texlive-publishers package recently on ubuntu-edgy and after a ToolsReconfigure, LyX recognized both APA and ACM. Bob Lounsbury On 1/29/07, Richard Heck [EMAIL PROTECTED] wrote: LyX does have an APA layout, so you should be able to use it. Check to make sure you do have the APA document class installed and that LaTeX can see it (run texhash as root) and then reconfigure LyX (Tools Reconfigure). You can use Tools Tex Info to check what LyX thinks is there. I don't see an ACM layout. Anybody got one? It's unlikely it'd be hard to create one if not. As for references, natbib isn't a bibliography style but something more general. You can use apalike with it, to be sure. You can also use apacite by itself (and the apa.layout file seems to load apacite.sty, which you'd also want). Just choose default for your citation style and then, when you put the bibliography in its place (Insert List Bibliography), choose apacite as your style. Of course, you'll need to make sure that's installed, too. Richard B. Bogart wrote: Hello all, I'm new to tex/latex/lyx but need to write papers in ACM and APA formats. I see that the package texlive-publishers includes APA and ACM document classes, and I have the package installed, but lyx does not see those templates. How can I use lyx to write APA and ACM papers? I also need my citations and bibliographies to be in the proper APA format, but lyx seems to only give three types citation styles? (default,natbib,jurabib) FYI I'm using the ubuntu edgy packages of lyx/tex Thanks all. B. Bogart -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: Centering symbols in tables (2)
Alexandru Mustatea wrote: This is in reply to Paul A. Rubin's request (sorry for breaking the thread, email problem). The LaTeX code that produced the good output is below. I also forgot to mention that I'm using LyX 1.4.3. Now, the workaround would be to export to LaTeX and then hack the resulting file manually, but maybe things could be done more elegantly in LyX. \be \begin{array}{c} \includegraphics[width=3cm]{q-skein1sf.eps}\end{array}=A(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein2sf.eps}\end{array}+B(\lambda)\begin{array}{c} \includegraphics[width=3cm]{q-skein3sf.eps}\end{array}. \ee A.M. I was able to reproduce this in LyX, using the following steps: 1. If the image files are not in EPS format, use ImageMagick to convert them to EPS. (I copied the PNG file from your web page, chopped it into three separate images, and converted them to EPS.) 2. If the document is not going to contain any images outside math environments, add \usepackage{graphicx} to the document preamble. (LyX automatically does this for you if it sees images being included, but it does not see them if they are in math environments -- or headers/footers IIRC.) 3. Insert a displayed equation containing []=A(\lambda)[]+B(\lambda)[], where [] is my way of indicating a 1x1 array. The default inserted array is 2x2; you have to delete a row and a column. Fortunately, this is easy with toolbar buttons if you turn on the math toolbar (or by keyboard shortcuts). 4. Put the cursor in the first 1x1 array cell and type \includegraphics[width=3cm]{q-skein1sf.eps}. Make sure that, when you are done typing, the \ disappears (signaling that LyX recognized this as a command). Occasionally, when pasting things in, I forget to follow up with a space, and LyX ends up treating \includegraphics as literal text (detectable because the \ is still visible). That should do it. One other note, though. LyX currently does not have scrollable math insets, and even with the LyX window maximized I could not edit the last \includegraphics command. A workaround is to define abbreviations in the preamble. For instance, I put \newcommand{\Lx}{\includegraphics[width=3cm]{q-skein1sf.eps}} in the preamble and then just \Lx (followed by a space!) in the leftmost 1x1 array. This may be a bit tedious, but it works. HTH, /Paul
Re: OpenOffice vs. LyX
On 29 Jan, 2007, at 7:23 AM, William Adams wrote: \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. Well, that is true by definition---everything can be done in LaTeX! [for some very broad definition of 'everything,' at least ;-)] The above solution becomes less easy when you have several parameters you want to change at once and several files in a document. In fact the real solution wopould be to have different classes or customized classes. Which is basically what Framemaker does when you change from one template to another and export it to all the files. However, my point was that Framemaker makes this, and other tasks, easier. Read---less time consuming and error prone. On a similar point raised earlier: suggesting that multi-file search-and-replace could be done with a perl script seems to me to be beside the point. Or would you consider hacking perl 'easy'? Not for me, for sure, and, I would dare say, not for a large majority of writers. Is is nonetheless true that LyX has reached a point of maturity where this and other annoyances are outweighed by the benefits. One can only hope it will keep getting better and better S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: OpenOffice vs. LyX
On 28 Jan, 2007, at 6:21 PM, Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. Well, I can tell you from very recent experience that even a relatively short 250 pages book cannot be managed when three authors work on it concurrently. It has been hard enough with separate files. I look back in horror at the hours spent with diff and emacs on single chapters. I can only shudder at the thought of passing the whole file back and forth! S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
help: how to convert LyX to word file with many math equations?
Hi, Anyone know how to convert a LyX file with many math equations to a word file? Do I need to retype all those in-line math characters and equations? Thank you in advance!! bests, yiwei
texlive math problems
Hello, Are there any known issues with math characters and texlive? Under texlive and LyX 1.4.3 I opened a couple of chapters of my thesis and some math characters were displayed incorrectly. For instance, rho was displayed as 'ae' not a squirly 'p'. Because of this I uninstalled texlive and installed tetex. Now everything is displayed correctly. So I'm assuming there is a package that needs to be installed under texlive, but I'm not sure what it would be since no errors were detected under LyX the characters were just displayed incorrectly in LyX and corresponding pdf's. I tried eliminating everything in my preamble and setting everything to default and it still appeared. Then I tried with new documents and everything would be fine for awhile and then all of a sudden the characters would not be correct. I just couldn't pick up on any consistent behavior, it was very erratic. So I gave up and installed tetex. I don't really expect a resolution since I've already uninstalled texlive and tetex seems to work perfectly fine for me. I just wanted to see if anyone knew of any issues under ubuntu-edgy and LyX 1.4.3 with texlive. Thanks, Bob Lounsbury
Re: texlive math problems
Bob Lounsbury wrote: Hello, Are there any known issues with math characters and texlive? Under texlive and LyX 1.4.3 I opened a couple of chapters of my thesis and some math characters were displayed incorrectly. For instance, rho was displayed as 'ae' not a squirly 'p'. I use texlive and lyx-1.4.3, and have no such problems. Odd. What linux distribution do you use? I just wanted to see if anyone knew of any issues under ubuntu-edgy and LyX 1.4.3 with texlive. Very odd. isn't Ubuntu-edgy essentially debian etch? That is what I use. -- David L. Johnson And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing. [1 Corinth. 13:2]
tex4ht and LaTeX music applications?
I'm not sure this will help, my son uses Lilypond. While he complains about some difficulty, the program typesets in latex very easily, so you may be able to use it to include your notation in Lyx. The only two other programs he wants cost about $700.00. I installed Lilypond for him from Fink (for Mac) and didn't like it, so I googled it and downloaded direct and it works well, but I can't remember from where off hand. HTH Daniel Culver [EMAIL PROTECTED] On Jan 28, 2007, at 4:17 PM, Jamie Faunt wrote: Hi Jens, I just wanted to thank you for all the text4ht into and your own very helpful page on same. These resources are going to be very helpful as I continue to learn about TeX, LaTeX, XML and such. Being an author of music instruction materials as well, my primary use and interest in LyX/TeX is not as a mathematician or scientist. I love the way LyX let's me concentrate on the content, and avails me of a wide-range of symbols as I need them. Unlike many authors of music materials, my need for music notation is less critical because the type of things I teach (mainly to professional and other aspiring musicians). For rhythmic and also standard notation however, I do have occasional needs. I would really prefer to use typography rather than bitmaps. So I was wondering if you or any other reader on this list knew of any music notation packages that use or export to LaTeX so that I might be able to use these in conjunction with my LyX docs. thanks much, Jamie Faunt http://musicalskills.com lyx Daniel Culver [EMAIL PROTECTED]
Re: File refuses to conform to letter size...
On Mon, 2007-01-29 at 12:25 +, José Matos wrote: On Monday 29 January 2007 7:37:13 am Kenward Vaughan wrote: On Sun, 2007-01-28 at 20:32 -0600, Les Denham wrote: On Sunday 28 January 2007 18:55, Kenward Vaughan wrote: Hello folks, I have an older LyX file for my classes which I opened for the semester, and cannot get the file to properly print out using US letter in landscape mode. It insists on being A4. I have never had this ... I get the same for pdf output no matter what I set for the margins, when I use Acrobat. When I use xpdf, it looks great. When I use gv it does not work. I don't understand the pdf differences, but do know that my students (from Windows land, with nary a glimpse at much beyond Word/Acrobat) won't get the proper layout. ??? very frustrating. Which path (alternative) do you use to generate the pdf? pdflatex dvipdfm ps2pdf other? ... dvipdfm is the only one to give something that works properly in xpdf. The other two generate something which (in xpdf) appears to be a4 sized (it runs off the page). None display/print as desired in acrobat. gv cannot display the dvi, but does display the pdf file properly. It doesn't print out properly though (portrait or landscape mode gives a portrait print, with the table off the edge). I had just switched over to texlive in the past few weeks to be able to use some of the packages associated with it. Is there a chance this is a problem with that end of things? ps. what the heck is xdg-open? It keeps popping up iceweasel to display something, which is a very wasteful move. I'm slowly changing various format viewers over to what I expect for them--it's faster, more intelligent (IMHO), and not irritating. Please report the bug to Debian. IIRC the Debian maintainer is very responsive and is reads regularly this list. What kind of bug is this though? I use fluxbox normally, kde apps on occasion, and gnome is for my wife. I need to read the docs with that, since it may be something that the user needs to adjust. Is it something that LyX requires? Or does LyX use what it finds while configuring itself? Thanks for the help! Kenward xdg-open is the freedesktop route to an automatic viewer. It uses the system (desktop environment) default to use the different kind of files. As an example I use kde, as my pdf viewer is kpdf I would like that lyx would use that as the default without having to configure it everytime I install it in a new machine. -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: OpenOffice vs. LyX
Stefano Franchi wrote: On 29 Jan, 2007, at 7:23 AM, William Adams wrote: \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. Well, that is true by definition---everything can be done in LaTeX! [for some very broad definition of 'everything,' at least ;-)] The above solution becomes less easy when you have several parameters you want to change at once and several files in a document. In fact the real solution would be to have different classes or customized classes. Which is basically what Framemaker does when you change from one template to another and export it to all the files. However, my point was that Framemaker makes this, and other tasks, easier. Read---less time consuming and error prone. This kind of thing can be made easier, if you use file includes. Put what you need into a file preamble.sty---you don't need an entire class, just a package---and then include that from each of your subdocuments. Make whatever changes you need to make in preamble.sty, which may just mean commenting out some stuff and uncommenting other stuff. Or you can define a \newif and use a conditional to choose among different possibilities and then just change \ifdraftrue to \ifdraftfalse at the beginning of preamble.sty. There are issues that can arise here, but they aren't that hard to resolve. There's some stuff I posted on the wiki that's relevant. Note, however, that most of that will only be an issue when you are just compiling parts of the document. If you're compiling the whole document, then the commands in the preamble of the master document are the only ones LaTeX will see: The preambles of sub-documents are only visible to LyX. On a similar point raised earlier: suggesting that multi-file search-and-replace could be done with a perl script seems to me to be beside the point. Or would you consider hacking perl 'easy'? Not for me, for sure, and, I would dare say, not for a large majority of writers. I wasn't suggesting you should have to hack perl. The point was that there are simple scripts out there that can be used to do very powerful search and replace. The script I posted doesn't need to be hacked. It just needs to be saved and used. (Other scripts do the same thing. I just wrote it to kill time.) Don't want to use regexes? Don't have to. Granted, multi-file search and replace would be a nice thing to have within LyX, and a more important thing is that search and replace in LyX doesn't see everything in the file. So, yes, I think that's a place improvement would be welcome. Part of the issue here, I think, is that LyX isn't a stand-alone product but a front-end to LaTeX. It doesn't look that way, and it's not meant to look that way. A large part of the idea seems to be to let people do a whole lot without knowing any LaTeX at all, and a lot of people use LyX comfortably without ever having to go beyond that. But there are some of us who need or want to do more. Sometimes, such people need, as much as anything, to unlearn bad habits and stop trying to control the layout so much. But, as I said, some of us need to do more, and then that means getting down and dirty with LaTeX. There's really no way everything that's possible in LaTeX can be put on a menu. But if you do make heavy use of LaTeX, then it can easily seem like LyX gets in the way. It can make you want to have a document with nothing but ERT! (Speaking of which, sometimes the best solution to a search and replace problem is to export to LaTeX, do the edits there, and then re-import to LyX.) But mostly it's a matter of figuring out how to make the best of the combination. Fortunately, there are lots of people here who've had experience with that, so we don't all have to re-invent the wheel. File includes and redefinitions of commands seem to be the most useful techniques here. And if you want to post specific issues, I'd be happy to help work them out, as I'm sure many other people would, also. That, of course, is the really nice thing about F/OSS: The community that goes with it. Well, that said: It's nice to see another philosopher on the list! Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: problems with urls not breaking at end of line
Uwe Stöhr wrote: Rainer M Krug schrieb: These URLs are entered via the URL command in the menue. As I don't like the borders around the URLs, I used the package hyperref, and the problems start: the URLs are now nicely formated in blue, but they don't break at the end of a line, even if I use the final=true or breaklinks=true options. Don't use the URL inset in this case. Use hyperref's \href command instead, see the attached example LyX-file. This has the advantage that you can treat the URL text like every other LyX text: You can change ist format, can enter forced linebreaks, hyphenation points, etc. as I demonstrated in the attached file. regards Uwe Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? I am using SyuSE 10.2 and LyX 1.4.3. Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Department of Conservation Ecology and Entomology University of Stellenbosch Matieland 7602 South Africa Tel:+27 - (0)72 808 2975 (w) Fax:+27 - (0)86 516 2782 Fax:+27 - (0)21 808 3304 (w) Cell: +27 - (0)83 9479 042 email: [EMAIL PROTECTED] [EMAIL PROTECTED] newfile3.pdf Description: Adobe PDF document
Re: Resume Enumerate
Bruce Pourciau wrote: > \begin{enumerate}[resume] Currently, this is not yet possible without such changes as Richard describes. LyX 1.5 will have the ability to insert optional arguments (a.k.a. "Short Title") to environments, as you can do now for commands (like section). Jürgen
Re: tex4ht and LaTeX music applications?
Jamie Faunt wrote: For rhythmic and also standard notation however, I do > have occasional needs. I would really prefer to use typography rather > than bitmaps. So I was wondering if you or any other reader on this > list knew of any music notation packages that use or export to LaTeX > so that I might be able to use these in conjunction with my LyX docs. > The LaTeX main package is called MusiXTeX. Beside, LilyPond, there is also NoteEdit. Cheers, Charles -- http://www.kde-france.org
Re: OpenOffice vs. LyX
Steve Litt wrote: Of course, if it were 1200 pages and different chapters were authored by different people (like Samba Unleashed), you probably couldn't do it as a single file. FYI, with latest 1.5, I can open a 1200 pages document (the UserGuide copied 12 times) and type in it without any speed problem on my 1.8 GHz laptop. Saving this doc is quite fast (3 seconds) and loading it is 10 seconds. If you can find a word processor that fast I pay you a beer ;-) Abdel.
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: Thanks - but if I create a pdf with pdflatex, then the second URL has no linebreaks. Is there something wrong with my setup? You use other page margins, so you have to readjust the hyphenation points. regards Uwe
Re: problems with urls not breaking at end of line
Rainer M Krug schrieb: You use other page margins, so you have to readjust the hyphenation points. I must checked in the document properties - the page margins are set to default. On my system the default is A4, on yours probably letter. Just set hyphenation points at the regions where the URL should be broken and it will work. regards Uwe
Re: putting image on first page of pdf
Russell Davie schrieb: I find each time I put an image and generate a pdf, a blank page is the first page, and the image is on the second. This depends on the settings you use. I assume that you have a special titlepage setting or use a special document class. Send a small LyX example file and we can have a look. regards Uwe
Re: searching for referenced bibtex source
On Mon, 29 Jan 2007, Tobias Krause wrote: is there a way to search for a referenced bibtex source? Or do I have to search for in the .lyx file with a text editor, go back to LyX and search for the surrounding text? I'm guessing the latter so I can't help you. However, I think you should file this as a feature request in bugzilla. Maybe it should be combined with the ability to search for labels, and references to labels. That'd be good way to find where you refer to figures/equations/etc. Regards, /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: File refuses to conform to letter size...
On Monday 29 January 2007 7:37:13 am Kenward Vaughan wrote: > On Sun, 2007-01-28 at 20:32 -0600, Les Denham wrote: > > On Sunday 28 January 2007 18:55, Kenward Vaughan wrote: > > > Hello folks, > > > > > > I have an older LyX file for my classes which I opened for the > > > semester, and cannot get the file to properly print out using US letter > > > in landscape mode. It insists on being A4. I have never had this > > > happen before, and am frustrated because I've no clue what the issue > > > is. I'm using Debian Sid/LyX 1.4.3. > > > > > > Is someone able to "quickly glance" at it and tell me what weird thing > > > has happened? I'd really appreciate it. I've attached it (I don't > > > think it's too big, but please correct me if wrong). > > > > Kenward, > > > > I loaded it into Lyx 1.4.1 on Gentoo Linux and it came out in Letter > > without me doing anything (see attached). The margins could be evened a > > little, but it's definitely Letter. There may be something different in > > 1.4.3. > > > > Les > > I get the same for pdf output no matter what I set for the margins, when > I use Acrobat. When I use xpdf, it looks great. When I use gv it does > not work. I don't understand the pdf differences, but do know that my > students (from Windows land, with nary a glimpse at much beyond > Word/Acrobat) won't get the proper layout. > > ??? very frustrating. Which path (alternative) do you use to generate the pdf? pdflatex dvipdfm ps2pdf other? > Thanks for the input, Les! > > > Kenward > > ps. what the heck is "xdg-open?" It keeps popping up iceweasel to > display something, which is a very wasteful move. I'm slowly changing > various format viewers over to what I expect for them--it's faster, more > intelligent (IMHO), and not irritating. Please report the bug to Debian. IIRC the Debian maintainer is very responsive and is reads regularly this list. xdg-open is the freedesktop route to an automatic viewer. It uses the system (desktop environment) default to use the different kind of files. As an example I use kde, as my pdf viewer is kpdf I would like that lyx would use that as the default without having to configure it everytime I install it in a new machine. -- José Abílio
Re: putting image on first page of pdf
On Mon, 29 Jan 2007 12:35:02 +0100 Uwe Stöhr <[EMAIL PROTECTED]> wrote: > Russell Davie schrieb: > > > I find each time I put an image and generate a pdf, a blank page is the > > first page, and the image is on the second. > > This depends on the settings you use. I assume that you have a special > titlepage setting or use a > special document class. Send a small LyX example file and we can have a look. > > regards Uwe Hi Uwe, No special settings, just the default "vanilla" article. Its so I can send images of pages in a text to an instructor who works a different uni to to one I borrow library books from. cheers Russell nutritional-epi-text.lyx Description: application/lyx <>
Re: OpenOffice vs. LyX
On Jan 28, 2007, at 10:44 AM, Stefano Franchi wrote: > 1. Framemaker has the concept of a "book": a multifile work to > which you can add chapters (and indexes, etc). Once you have a book > set up, you can find and replace across chapters, change the > formatting across the whole book, etc. This makes it very easy, for > instance, to switch from draft-style to final style when printing > out a publication. LyX/LaTex still does not (and never will, I > think) understand a similar concept. \documentclass[draft]{memoir} \documentclass[final]{memoir} Although the other issues aren't addressed AFAIK in LyX (yet), they're as easily solved in LaTeX by using the right packages appropriately. William -- William Adams senior graphic designer Fry Communications This email message and any files transmitted with it contain information which is confidential and intended only for the addressee(s). If you are not the intended recipient(s), any usage, dissemination, disclosure, or action taken in reliance on it is prohibited. The reliability of this method of communication cannot be guaranteed. Email can be intercepted, corrupted, delayed, incompletely transmitted, virus-laden, or otherwise affected during transmission. Reasonable steps have been taken to reduce the risk of viruses, but we cannot accept liability for damage sustained as a result of this message. If you have received this message in error, please immediately delete it and all copies of it and notify the sender.
Re: tex4ht and LaTeX music applications?
Les Denham wrote: > Are you familiar with Lilypond (http://lilypond.org)? It produces > beautiful > results, and can be integrated with LaTeX. So putting it together with > Lyx should be practical, though I haven't tried it. I'd recommend that, too. The upcoming LyX 1.4.4 will check for lilypond, so that you can simply include lilypond files in the graphics inset. In 1.4.3 you have to define your own lilypond format and converter. Since it takes some time to learn lilypond I also recommend noteedit, which can export to lilypond. Georg