Re: Can't convert graphviz DOT format to PDF
Paul A. Rubin wrote: > John, > > John Pye wrote: >>> Works fine for me here. Keep in mind that there are at least three >>> PDF file formats defined within LyX, because different compilation >>> methods (ps2pdf, pdflatex, dvipdfm) have different requirements. On >>> my box those are designated pdf, pdf2 and pdf3 respectively, and I'm >>> pretty sure that's standard across installations. If you create a >>> converter from DOT to pdf3, say, and then use View -> PDF (pdflatex) >>> to see the output (which is creating pdf2 output), presumably >>> something will break. >> >> I tried this many times but no success. I am aware of the pdflatex (etc) >> issue. It is not called 'pdf3' on my system, it is called 'PDF >> (pdflatex)'. > > Should be both: in Tools -> Preferences -> File formats, if I > highlight 'PDF (pdflatex)', that's the entry in the 'GUI name', while > the entry in 'Format' is pdf2. FWIW, if you want to do a file export > from the command line, you use pdf2 as the argument to the export > flag. Shouldn't have anything to do with the converter working or not, > though, so long as the converter entry points to the right output GUI > name. > >> That is the standard on Fedora and Ubuntu systems, if not >> elsewhere, so I don't think you're right about 'pdf3' etc. >> >> This converter system is way too delicate IMHO: if you get it wrong, you >> get minimal and rather cryptic error messages. > > I tend to agree here, to the extent that if LyX gets an error message > from an external command, it should forward it to the user. I don't > think that's always the case, though. I suspect that sometimes LyX > runs an external process and the child process exits with a nonzero > error code but not much else. LyX can't tell you what it doesn't know > (i.e., LyX is not an academic). > >> It's also impossible for >> someone to help to diagnose a problem, because you can't just "sent me >> your config file" (AFAIK) and you can't tell what stuff is different on >> my system compared to your system. > > Actually, you can send a piece of an appropriate config file. In your > LyX home directory, there's a file named 'preferences'. It should > contain a line defining the DOT file type and additional lines for > each related converter you added. Mine read as follows: > > \format "dot" "dot" "Dot" "" "auto" "auto" "vector" > \converter "dot" "pdf2" "dot -Tpdf $$i -o $$o" "" > > Note that this is exactly what I entered in the "all-powerful GUI". :-) > >> FWIW, I think that rather than an all-powerful GUI for editing >> converters, file formats, etc, these things should be stored in flat >> platform-specific configuration files that can be packaged for >> distribution as 'plugins' eg a set of LyX configuration files + linux >> package dependences = support for Graphviz in LyX. This would take the >> voodoo out of the job of getting LyX working with various different file >> formats, and allow end-users to make use of *the tools they know >> already* in order to get extra features working with LyX. I say this, >> but I'm not going to come and help, so you best ignore me here :-) >> > > Well, it would not be hard for someone to provide a patch file that > one could apply to the preferences file. The user would have to know > how to merge in a patch file (or else LyX would have to provide a > patch merge utility). Unfortunately, these things are not entirely > one-size-fits-all, even within operating systems. For instance, my > converter above works because I have the dot executable on my system > command path. Otherwise I need to provide the path to it someplace -- > which means your plug-in installer needs to detect the location of dot > on my system, or else open up a dialog and ask me to locate it. I think that that is the wrong approach. It is the job of the person writing the plugin to specify the correct location for 'dot' or whatever else. LyX should not take on the job of going out and finding all the necessary tools.= The usual solution for this problem is to provide a '#include' type functionality for configuration files. For example, in the case of Apache on Fedora you have /etc/httpd/conf/httpd.conf which contains: > # > # Load config files from the config directory "/etc/httpd/conf/conf.d". > # > Include conf.d/*.conf This mechanism allo
Re: Can't convert graphviz DOT format to PDF
Hi Paul Paul A. Rubin wrote: > John Pye wrote: > >> >> If I make a DOT->PNG converter and use that, it works fine. So there >> is nothing wrong with LyX's ability to make some form of file >> conversion here. It fails when I attempt to configure a conversion >> from DOT to PDF. >> > > Works fine for me here. Keep in mind that there are at least three > PDF file formats defined within LyX, because different compilation > methods (ps2pdf, pdflatex, dvipdfm) have different requirements. On > my box those are designated pdf, pdf2 and pdf3 respectively, and I'm > pretty sure that's standard across installations. If you create a > converter from DOT to pdf3, say, and then use View -> PDF (pdflatex) > to see the output (which is creating pdf2 output), presumably > something will break. I tried this many times but no success. I am aware of the pdflatex (etc) issue. It is not called 'pdf3' on my system, it is called 'PDF (pdflatex)'. That is the standard on Fedora and Ubuntu systems, if not elsewhere, so I don't think you're right about 'pdf3' etc. This converter system is way too delicate IMHO: if you get it wrong, you get minimal and rather cryptic error messages. It's also impossible for someone to help to diagnose a problem, because you can't just "sent me your config file" (AFAIK) and you can't tell what stuff is different on my system compared to your system. FWIW, I think that rather than an all-powerful GUI for editing converters, file formats, etc, these things should be stored in flat platform-specific configuration files that can be packaged for distribution as 'plugins' eg a set of LyX configuration files + linux package dependences = support for Graphviz in LyX. This would take the voodoo out of the job of getting LyX working with various different file formats, and allow end-users to make use of *the tools they know already* in order to get extra features working with LyX. I say this, but I'm not going to come and help, so you best ignore me here :-) Cheers JP
Re: Can't convert graphviz DOT format to PDF
Konrad Hofbauer wrote: John Pye wrote: HOWEVER, it doesn't fix the problem. When I switch DOT to a vector format, I get a blank two page document, with page numbers but nothing else, instead of the expected PDF with one page and diagram. Could it be that now the actual DOT->PDF conversion fails? Don't know. The command works fine from the command line, and there are no embedded filename references that could be causing problems with 'file copiers'. And there is no error message from LyX. Just a blank two-page document. If I make a DOT->PNG converter and use that, it works fine. So there is nothing wrong with LyX's ability to make some form of file conversion here. It fails when I attempt to configure a conversion from DOT to PDF. Make sure to check your console.log and system.log for error messages. Where will I find those files? There are not in the same directory as the document, and they are not in ~/.lyx. And they are not listed in the LyX menus, and no path for log files is given in Preferences. And nothing on Google. Did it work for you with the test document I sent? I did not try. I do not use Graphviz, and as well I would not have your converters defined. Sorry. The whole problem here is in the user interface for the definition of converters. LyX gives very poor feedback on errors related to file formats and converters. Cheers JP
Re: Can't convert graphviz DOT format to PDF
Hi Konrad, Konrad Hofbauer wrote: John Pye wrote: I have a simple problem with setting up converters in LyX. I want to be able to embed Graphviz DOT files (http://www.graphviz.org) into my LyX document. I have added the DOT file type via the preferences, and I have added a DOT->PDF (pdflatex) file format converter as well, and then I attempt to render my document using the View->PDF (pdflatex) menu item. Have you also defined a "File formats" for DOT in the preferences, and checked the box "Vector graphics format"? Thanks for that suggestion. I hadn't noticed the 'Vector graphics format' checkbox before now. HOWEVER, it doesn't fix the problem. When I switch DOT to a vector format, I get a blank two page document, with page numbers but nothing else, instead of the expected PDF with one page and diagram. Did it work for you with the test document I sent? Cheers JP
Can't convert graphviz DOT format to PDF
Hi all I have a simple problem with setting up converters in LyX. I want to be able to embed Graphviz DOT files (http://www.graphviz.org) into my LyX document. I have added the DOT file type via the preferences, and I have added a DOT->PDF (pdflatex) file format converter as well, and then I attempt to render my document using the View->PDF (pdflatex) menu item. It doesn't seem to matter what I do, I always get the error "No information for converting DOT format files to png. Define a converter in the preferences.". Note that if I do as it asks and provided a DOT->PNG converter, then my PDF includes a bitmap rendering of the Graphviz diagram, which is not what I want. I want nice clean edges which means I need LyX to use a vector graphics format to render the DOT file. I have attached a simple test file. If someone could tell me the correct way to fix this it would be a great help. I am using LyX 1.5.3 on Ubuntu 8.04. More generally: how can I get LyX to explain its clearly *wrong* logic that says that the format converter that it is 'missing' is this DOT->PNG converter. At least it should show the *end target* format, which I presume for pdflatex would be any of a number of possible options: PDF, PNG, JPEG and GIF, right? Cheers JP simple.lyx Description: application/lyx
Re: Version Control
Abdelrazak Younes wrote: > James Mansion wrote: >> Is it possible to get LyX to use my Subversion system for version >> control? > > If you mean the old RCS support then no (which we should probably > ditch). But the LyX format is perfectly diff-able as it is a plain > text format and that is all you need IMHO. I never had a merge > conflict problem with SVN but even so, it is easy to fix the conflict > manually. Just make sure you don't use the 'compressed' option for the file (somewhere in the document settings). Cheers JP
Re: Compare Changes/Differences between LyX Documents
Bo Peng wrote: > On Jan 22, 2008 1:44 PM, Juergen Spitzmueller <[EMAIL PROTECTED]> wrote: > >> Ken wrote: >> >> >>> Is there an easy way to compare the changes or differences between two >>> LyX documents? >>> >> http://www.cs.bgu.ac.il/~dekelts/ldiff/ >> > > Quite interesting, do you see any hope of integrating this to lyx? > > Bo > Just FYI, a nice way of doing file comparisons against a subversion repository for Windows/Word users exists, it would be great to see this functionality one day in LyX: http://newgeeks.blogspot.com/2006/08/word-document-management-using-svn.html Cheers JP
Missing Greek letters in equations on Ubuntu
Hi all A note for anyone running LyX on Ubuntu Feisty. If you are using mathematical formulae/formulas in your documents, you will need to to manually install the additional package 'latex-xft-fonts' on your system. This package *should* be a dependency of LyX but is currently only a 'recommended' package, meaning that you don't get it by default. Without this package your greek letters will show up as red text 'mu' or 'Delta' instead of as blue greek letters. Hope that helps someone. Cheers JP PS: bug link is https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/68971 -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia. john.pye AT student DOT unsw.edu.au
messed up chapter numbering
Hi all I have a software manual composed of about 15 files using LyX. When read using LyX, the chapter are correctly numbered eg Chapter 1, Chapter 2, Chapter 3, etc, and the sub-sections and so on take the correct numbering as well. However, when I then create output using PDFLatex, I find that all my chapter number disappear (as if I had used the 'Chapter *' style, and all my subsections are numbered with a leading '0'. The files I am editing were originally created using LyX 1.4 on FC5, but I am now editing them with LyX 1.5 on FC7 (standard RPM version). Can anyone give me some suggestions as to what could be happening here? It's not a problem I have seen before. Cheers JP PS the LyX files can be obtained here: http://ascendcode.cheme.cmu.edu/viewvc.cgi/code/branches/extfn/doc/ or 'svn co http://ascendsvn.cheme.cmu.edu/ascend/code/branches/extfn/doc ascend-doc'
Re: Improving images for printing?
Hi Jeremy I suspect that your problem will be coming from the fact that screenshots are ~75-90 dpi, but that you are then printing them on a page at something like 300 dpi. Normally this means that the images are scaled up so that they have the right number of pixels on the page. This means adding new pixels, which are added by interpolation, meaning that your nice crisp screenshot images are ending up blurred. The solution to this as far as I can tell is to resize the images up to something close to 300 dpi using some tool *outside* LyX. In GIMP this can be done using the Image->Scaling then selecting Interpolation->'None (Fastest)' after entering a new pixel size. I figure this will probably fix your problem -- please reply to the list if you still have problems. Possibly there is a better/automatic way to do this using Latex or LyX configuration options. Someone else may be able to advise on that. Normally, with photos and the like, this blurry kind of resizing is probably more likely to be what you want. Cheers JP Jeremy C. Reed wrote: > I have a black and white book with about 30 images. Many are screenshots > of X11 clients or X displays. I had Lulu print-on-demand print a copy so I > could see the images and many were blurry. > > I read at the Lulu website > (http://www.lulu.com/help/index.php?fSymbol=make_sure_pdf_prints_right) > the following: > > - Do not downsample your images unless they are fully rasterized. If they > are fully rasterized and the DPI is greater than 300, downsample to 300 > DPI. > > - Image compression should be set to ZIP if you want lossless (no > artifacts/distortion-free) images. To reduce filesize, use JPEG -> High. > > - If you are printing a color book that has black & white images in it, > the black & white images should have the colorspace set to grayscale. > > - Leave the images' colorspace in their original profiles. Do not convert > CMYK to RGB or vice versa. > > - Do not use CCITT or LZW compression. LZW compression creates multi-strip > images, which may show white lines when printed. > > - Use ZIP encoding for grayscale images. > > - The gamma of a grayscale image should be between 2.2 and 2.4. > > - DPI should be between 300 and 600 DPI. > > Any hints on doing any of this with pdflatex? > > Most of my screenshots need to be remade, so any suggestions on doing it > correctly? > > I think I saw some wiki pages about this, but a google search didn't help > me find them. > > Also I hve a few charts I need to redraw. Would it be best to generate in > a tool that can export in PDF? And then import that in my book? > (In a previous book, I used EPS files that I created and exported with > inkscape.) > > Jeremy C. Reed >
Tables and figures going in different directions with 'rotate sideways'
Hi all I have a number of large figures in my document that are placed in floats with the 'rotate sideways' option selected via the GUI (LyX 1.4.4. on FC6). The problem is that on left pages, the figures are rotated so that the bottom of the figure (and its caption) is on the left, but on the right pages, the figures are rotated so that the bottom of the figure is on the right. The format I would like would be for all of the figures to be rotated in the same direction, so that the bottoms of the rotated figures are always on the right. A quick check of a couple of textbooks shows that this seems to be the usual approach. Is there any way I can add an option somewhere so that my figures are rotated all in the same way? Cheers JP
Re: Fully contained lyx + miktex distribution!
These issues relating to single-file installers just keep coming up repeatedly across different unix/linux originated projects that are being ported to Windows. Off the top of my head: GIMP, Inkscape, MinGW, LyX,GAIM, K-3D, and scipy. The problem is that each project tackles the problem in isolation -- each one has a bespoke way of providing a one-file installer. So many better things could have been done instead if a common approach had be available. I would like to see some kind of general solution, a dependency-handling program for FOSS on Windows that plays nice with 'add/remove programs' in some way... but that also works with Wine... Dieter Krachtus wrote: > Hi, > > With the first release of lyx on Windows I build a home-cooked fully > contained lyx + miktex distribution in a single zip-file. Moving from a > desktop to laptop was as easy as extracting this zip-file. > > Why can't it be that easy with the new Lyx bundle at > http://wiki.lyx.org/Windows/Windows ? It somehow does everything > automatically, e.g. gets missing parts of MikTex etc. I don't like that, > since you don't always have an internet connection, especially on travels > and it is somehow stupid to download and launch the installer on every > computer you have at home and then download the necessary MikTex > packages. > Even worse, when working with Lyx and you use some special Latex > features, > sometimes Lyx needs to download these missing featrues - this is > user-unfriendly and annoying. > > Therefore, I suggest that there is a big lyx distribution in the form > of a > single zip-file or CD .iso that contains really everything - MikTex > (everything) + Lyx + pdf viewer + etc. I guess it is difficult it > would also > be beneficial to have an lyx-.iso distribution which you simply mount and > start working - a.k.a. PortableLYX. > > Cheers, > Dieter >
texvc & lyx
Hi all I just wanted to pass this on in case noone knew. Mediawiki, the software behind Wikipedia, comes with a little program called 'texvc' that just might be of some use in LyX. This program AFAICT includes a latex math parser and can give useful feedback about syntax errors. It also deals with screen rendering of equations; Apparently it uses 'dvipng' to convert to bitmap form. If it's not something that's been considered for use in LyX, perhaps it would be worth taking a look at it. http://en.wikipedia.org/wiki/Texvc Cheers JP
'Algorithm' float in a multiple-file document
Hi all I have recently tried to put an 'Algorithm' float into one chapter of my thesis (each chapter being a separate file). When I render that chapter by itself in pdflatex, it works OK. But when I attempt to render the whole thesis, it doesn't work. I presume there is some incompatibility arising from my document preamble, which contains as below. Can anyone tell me if any of those things (lmodern, url, listings, hyperref) cause problems with Algorithm floats? The error message that I get is related to a syntax error in my reference to the float \ref{alg:xxx}. It says "Undefined control sequence". If I convert my 'algorithm' float into a 'table' float, the problem goes away. As I said, if I just render the one chapter by itself (empty preamble) it works fine. What is it that I'm missing here? This is with LyX 1.4.3 on Ubuntu 7.04 (standard .deb install) Cheers JP --8<- \usepackage[bookmarks,bookmarksnumbered=true, bookmarksopenlevel=0, pdfstartview=FitH,bookmarksopen=true]{hyperref} \usepackage{lmodern} \usepackage{url} \usepackage{color} \definecolor{darkred}{rgb}{0.55,0,0} \definecolor{darkgreen}{rgb}{0,0.55,0} \usepackage{listings} \lstdefinelanguage{ascend}{ morekeywords=[1]{ REQUIRE,IMPORT,NOTES, ATOM,MODEL,METHOD,METHODS, UNIVERSAL,CONSTANT,DIMENSION,DEFAULT, END,FOR,CREATE,DO,EXTERNAL, CONDITIONAL,SATISFIED,WHEN,CASE,OTHERWISE,TRUE, FALSE,SELF, }, morekeywords=[2]{ REFINES,IS_A,WILL_BE,ALIASES,INPUT,OUTPUT,DATA, FIX,FREE,RUN,ARE_THE_SAME }, morekeywords=[3]{ solver_var,integer_constant }, sensitive=true, morecomment=[s][\color{blue}]{(*}{*)}, morestring=[b][\color{darkgreen}]', morestring=[b][\color{darkgreen}]", morecomment=[s][\color{darkgreen}]{\{}{\}}, } \lstnewenvironment{ascend} {\lstset{basicstyle=\ttfamily\small, keywordstyle=\color{darkred}}} {} --8<- -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: downsampling in pdflatex output?
Helge Hafting wrote: > John Pye wrote: >> Hi all >> >> I would like to know if there's a way I can easily downsample (or >> 'degrade') images in my LyX document when creating output using >> pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my >> PDF file is starting to become large and I'm sure there must be some >> too-high resolution images in there. I found the graphics/degrade >> package on CTAN but that seems to require that I use ERT for all my >> images, which I'd rather avoid. >> >> If it's not possible from within LyX, perhaps there's a post-processing >> tool that someone can recommend: one that does the downsampling of a PDF >> file, without killing my hyperlinks and bookmarks, would be what I'd >> want. >> >> Any suggestions? >> > Just look at the size of your image files. Then, downsample > the biggest ones. If you want to keep the originals, make new > filenames for the downsampled files, and change the document > accordingly. > > Helge Hafting Hi Helge, I was really looking for an automated approach. For example on Windows, there is 'PDF Factory' (although I haven't tried it with hyperlinks). So I was hoping for something similar on Linux. One reason why an automated approach would be good is that the file can be big and appear big on the page: it /needs/ to be big. But if it's big and appears /small/ on the page, then it needs to be downsampled. Another reason: a LyX document can embed PDFs, SVGs, and I imagine other 'image' files, that can in turn embed bitmaps. One needs a tool that examines the resulting PDF output, rather than the input files. Cheers JP
Re: Multiple document cross-reference problems?
Tim Holy wrote: > Hello, > > I'm relatively new to using LyX. I'd played around with it a year or two ago, > but (perhaps out of inertia more than anything else) returned to directly > writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to > say that I'm quite impressed. Thanks to the developers for some great work! > > One of the many things that impressed me was the apparent ability to > cross-reference between documents. (Our use case is to refer back and forth > between the "main text" and "supplementary information" for a scientific > paper.) While LyX makes it easy to insert the cross-document cross-reference, > I have yet to figure out how to make that cross reference actually work in > the PDF-exported document---it appears as "??" when the PDF is generated. > > Attached are two small files that illustrate the problem. I open both files, > verify that the cross-reference from doc1 points to a label in doc2, and then > select View -> PDF (pdflatex). An internal cross-reference works just fine, > but the cross-document one does not. > I suggest that, as Helge suggested, you create a master document that contains 'Input' tags for the two subdocuments. Then create your PDF by calling pdflatex on the master document. Then, if you really want to split the resulting sngle document back into separate PDFs, use 'pdftk' as a post-processing step. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
downsampling in pdflatex output?
Hi all I would like to know if there's a way I can easily downsample (or 'degrade') images in my LyX document when creating output using pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my PDF file is starting to become large and I'm sure there must be some too-high resolution images in there. I found the graphics/degrade package on CTAN but that seems to require that I use ERT for all my images, which I'd rather avoid. If it's not possible from within LyX, perhaps there's a post-processing tool that someone can recommend: one that does the downsampling of a PDF file, without killing my hyperlinks and bookmarks, would be what I'd want. Any suggestions? Cheers JP
Re: Citing websites?
Richard Heck wrote: > There's no terribly easy way to do this now. It's a limitation in the > existing BibTeX styles. You can put a URL in the url field, and many > styles will print it, but probably not how you want. Where can I found out about using other 'styles'? I am just using whatever the default is, I presume. I found that: For 'unpublished' items in Jabref, put the URL in the 'note' field. For 'techreport' items, use the 'title' field. For 'misc' items, use the 'howpublished' field. but none of them are clickable and none of the URL fields from Jabref are displaying for 'article' or 'inproceedings' types. Almost every paper in my .bib file has either a URL or a DOI. From you say, it's a limitation in BibTex, rather than LyX. If anyone can suggest a not too painful workaround that works now, that would be be much appreciated. Polluting the 'title' and 'note' fields with URLs seems like a poor solution at this stage. > But if you load > hyperref, you should get it as a clickable link. > This is my preamble: \usepackage[bookmarks]{hyperref} \usepackage{lmodern} * *Does that mean I am using hyperref already? > BibLaTeX will handle this much better. Will BibLaTex work with my current tools like Jabref etc, or is it a whole separate thing? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Citing websites?
Hi all I am using a very standard LyX installation with Jabref and the 'book' template to do references for my thesis. What is the easiest way to cite websites in this case, such that they come up in my bibliograpy showing a clickable URL, and hopefully a last-accessed date? I haven't managed to work it out so far, and I don't know if it's a lack in Jabref or LyX or what. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: Bounding box on OpenOffice PDFs
Point is that it doesn't NEED cropping. If I open the file in Evince, it correctly shows the image not needing cropping. I have got to pains to change the page size in OpenOffice to just that which is requred. The point is that LyX is not detecting the BoundingBox correctly from the file, AFAICT. I can send a sample file if you wish. JP Paul Smith wrote: > On 3/31/07, John Pye <[EMAIL PROTECTED]> wrote: >> Hi all >> >> Any time I export a 'Draw' page from OpenOffice as a PDF, and then try >> to import it with LyX, LyX fails to correctly find the Bounding Box. >> >> If I open the PDF with Evince it shows the correct bounding box. >> >> Is there something that I can do to make LyX correctly detect the >> bounding box? Have other people seen this? >> >> I'm using LyX 1.4.3 on Ubuntu 6.10. >> >> FWIW I saw this thread and it seems it might also be a problem with >> 1.4.4. >> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg54249.html > > John, > > Try ps2epsi, which will crop your picture. > > Paul
Bounding box on OpenOffice PDFs
Hi all Any time I export a 'Draw' page from OpenOffice as a PDF, and then try to import it with LyX, LyX fails to correctly find the Bounding Box. If I open the PDF with Evince it shows the correct bounding box. Is there something that I can do to make LyX correctly detect the bounding box? Have other people seen this? I'm using LyX 1.4.3 on Ubuntu 6.10. FWIW I saw this thread and it seems it might also be a problem with 1.4.4. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg54249.html Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: Embedding highlighed external source code files in a LyX document
Do both of these approaches work OK with producing sane-looking HTML as well as PDFs? Are then any examples of output from your 'highlight' approach, Gunnar? Cheers JP Gunnar Lindholm wrote: >> I know that this has 'been done' but I'm not sure how to go about it >> myself. I would like to link to an external source code file and 'pull >> it in' to my compiled document when I use pdflatex. I would like to >> apply source code highlighting, although that's not essential (the >> language I'm using is not one that is supported by any of the tools). >> > What language? Highlight manages over 120 of them. > > >> I worked out how to import external code, but not how to maintain a >> link. Do I need to use ERT? Can LyX be set to use 'highlight' on-the-fly >> as for graphics formats, or must I prepare the latex by hand? >> > Here are how I do it. When setup, it works automatically. > > http://www.taljaren.se/MinLyXTutorial.html > (same as pdf) http://www.taljaren.se/MinLyXTutorial.pdf >
Re: Embedding highlighed external source code files in a LyX document
Hi Daniel Where and how do I get this 'listings' package? I looked on the LyX homepage and on the Wiki but couldn't find it. The 'highlight' approach from Gunnar Lindholm is quite separate though, right -- no connection at all? Cheers JP Daniel Lohmann wrote: > John Pye wrote: > >> Hi all >> >> I know that this has 'been done' but I'm not sure how to go about it >> myself. I would like to link to an external source code file and 'pull >> it in' to my compiled document when I use pdflatex. I would like to >> apply source code highlighting, although that's not essential (the >> language I'm using is not one that is supported by any of the tools). >> >> I worked out how to import external code, but not how to maintain a >> link. Do I need to use ERT? Can LyX be set to use 'highlight' on-the-fly >> as for graphics formats, or must I prepare the latex by hand? >> > > > Hi John, > > I strongly recommend the listings package for this purpose, which > provides excellent means to print and format listings, highlight your > own identifiers, refer to line number etc. And it comes with a very good > documentation. > > You need to do that in ERT, though. However, this is very simple. Take a > look at the attached example. > > > Daniel > >
Re: Embedding highlighed external source code files in a LyX document
Gunnar Lindholm wrote: >> I know that this has 'been done' but I'm not sure how to go about it >> myself. I would like to link to an external source code file and 'pull >> it in' to my compiled document when I use pdflatex. I would like to >> apply source code highlighting, although that's not essential (the >> language I'm using is not one that is supported by any of the tools). >> > What language? Highlight manages over 120 of them. It's a mathematical modelling language called ASCEND. It's not on the list! http://ascendwiki.cheme.cmu.edu/ I have created a highlighting syntax file for 'gedit' and 'TextPad' but nothing for 'highlight' just yet. Cheers JP
Embedding highlighed external source code files in a LyX document
Hi all I know that this has 'been done' but I'm not sure how to go about it myself. I would like to link to an external source code file and 'pull it in' to my compiled document when I use pdflatex. I would like to apply source code highlighting, although that's not essential (the language I'm using is not one that is supported by any of the tools). I worked out how to import external code, but not how to maintain a link. Do I need to use ERT? Can LyX be set to use 'highlight' on-the-fly as for graphics formats, or must I prepare the latex by hand? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: degree symbol in lyx on ubuntu with the Compose key
Hi Ignacio You are right -- thanks! (The sequence Compose o o worked for me; the other one didn't -- I don't have an AltGr key). But any thoughts on why this compose sequence is different from that required in GNOME programs like gnome-terminal and gedit, etc? If I have to learn different compose sequences for different programs, that's really fairly poor, right? Cheers JP Ignacio García wrote: > In Ubuntu GNU/Linux (Gnome Desktop) the degree symbol insert directly by > 1. the binding AltGr-S-^-^ (ALtGr Shift and two ^) > 2. If the Compose key is OK, with the binding Compose-o-o > > Regards > Ignacio
Re: degree symbol in lyx on ubuntu with the Compose key
Helge Hafting wrote: > Are you sure you're getting a degree symbol and not a zero exponent? > Those two are different - degree is a perfect circle while the zero > exponent > is a tiny "0". > > When I type ^0 I get a zero exponent: ⁰ > Typing ALT 0 (in an xterm) gives me the degree: ° > > The degree symbol works when I paste it into LyX. The zero exponent > does not print unless I change the document encoding to utf8x. > This encoding is available in LyX 1.5 - I don't know about earlier > releases. > > Helge Hafting On my keyboard, the r-alt ^ 0 sequence gives me the degree symbol: ° Interestingly, the sequence r-alt 0 ^ also gives me that. So obviously the r-alt 0 can't work in this case. I don't know what gives me the 0 exponent. I haven't messed with any mappings other than to set right-alt as my compose key. This is a standard Ubuntu 6.10 system. Cheers JP
Re: degree symbol in lyx on ubuntu with the Compose key
Hi Michael, I'm still trying to work out what's stopping my degree symbol from showing up.. Michael Wojcik wrote: > You could probably suppress that by filtering the LyX output through > something to strip out the control characters. For example: > > lyx -dbg key 2>&1 | tr -dc '[:print:]\n' > > That should remove all characters that aren't printable, except newline. That worked very nicely! You are wasted on the Windows world! The output is at the bottom (ctrl-N r-alt ' e r-alt ^ 0). Lyx says "Oof. Can't encode the text !" -- which sounds like an error message, maybe? Cheers JP Init key to 65535, Greek_psi isOK is 1 isOK is 1 Init key to 65535, Greek_omega isOK is 1 isOK is 1 Init key to 65535, Greek_switch isOK is 1 isOK is 1 Warning: this system's locale uses Unicode. Language code:en_US Setting new encoding for Qt:iso8859-1 Setting key to 4129, KeySym is Control_L isOK is 1 isMod is 1 isModifier true Setting key to 78, KeySym is isOK is 1 isMod is 0 encoding is Using codec ISO 8859-1 ISOEncoded returning value 14 void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) action first set to [3] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state)action now set to [3] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) Key [action=3][Ctrl+N] sending IMStart with 0 chars to 0x86031c8 sending IMEnd with 1 chars to 0x86031c8, text= Setting key to 0, KeySym is isOK is 1 isMod is 0 encoding is iso8859-1 Using codec ISO 8859-1 ISOEncoded returning value 233 void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) action first set to [-1] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state)action now set to [-1] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) Key [action=-1][] isText for key 0 isPrint is 1 isText() is true, inserting. Cannot decode: SelfInsert arg[`'] Setting key to 4128, KeySym is Shift_L isOK is 1 isMod is 1 isModifier true sending IMStart with 0 chars to 0x86031c8 sending IMEnd with 1 chars to 0x86031c8, text= Setting key to 0, ? KeySym is ? isOK is 1 isMod is 0 encoding is iso8859-1 Using codec ISO 8859-1 Oof. Can't encode the text ! ISOEncoded returning value 0 void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) action first set to [-1] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state)action now set to [-1] void LyXFunc::processKeySym(boost::shared_ptr, key_modifier::state) Key [action=-1][] isText for key 0 isPrint is 1 isText() is true, inserting. Save changed document? The document newfile1.lyx has unsaved changes. Do you want to save the document or discard the changes? Assuming answer is &Save &Discard &Cancel [EMAIL PROTECTED]:~/ascend$
Re: degree symbol in lyx on ubuntu with the Compose key
Hi Michael Thanks for replying. I tried pasting the degree symbol and viewing with pdflatex. All looks fine. I pasted some accented latin-1 letters as well, all worked fine. When I ran the debug thing like you said, I got some crazy output. The sort of thing I usually see when I've got memory-related bugs in code I've written. The following (see below) is from opening LyX as you said, and typing EXACTLY: ctrl-N right-alt ' e right-alt ^ 0 exit via window manager [X]. The first symbol (é) showed up in LyX. The second (°) did not. Have not pasted *all* the output, as a lot of it was repetitive stuff like this: Init key to 65535, Greek_epsilon isOK is 1 isOK is 1 Init key to 65535, Greek_zeta isOK is 1 ... Thoughts? Cheers JP Warning: this system's locale uses Unicode. Language code:en_US Setting new encoding for Qt:iso8859-1 Setting key to 4129, KeySym is Control_L isOK is 1 isMod is 1 isModifier true Setting key to 78, K␊≤S≤└ ␋⎽ ␋⎽OK ␋⎽ 1 ␋⎽M⎺␍ ␋⎽ 0 ␊┼␌⎺␍␋┼± ␋⎽ U⎽␋┼± ␌⎺␍␊␌ ISO 8859-1 ISOE┼␌⎺␍␊␍ ⎼␊├┤⎼┼␋┼± ┴▒┌┤␊ 14 ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) ▒␌├␋⎺┼ °␋⎼⎽├ ⎽␊├ ├⎺ [3] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊)▒␌├␋⎺┼ ┼⎺┬ ⎽␊├ ├⎺ [3] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) K␊≤ [▒␌├␋⎺┼=3][C├⎼┌+N] ⎽␊┼␍␋┼± IMS├▒⎼├ ┬␋├ 0 ␌▒⎼⎽ ├⎺ 0│8603198 ⎽␊┼␍␋┼± IME┼␍ ┬␋├ 1 ␌▒⎼⎽ ├⎺ 0│8603198, ├␊│├=é S␊├├␋┼± ┐␊≤ ├⎺ 0, é K␊≤S≤└ ␋⎽ é ␋⎽OK ␋⎽ 1 ␋⎽M⎺␍ ␋⎽ 0 ␊┼␌⎺␍␋┼± ␋⎽ ␋⎽⎺8859-1 U⎽␋┼± ␌⎺␍␊␌ ISO 8859-1 ISOE┼␌⎺␍␊␍ ⎼␊├┤⎼┼␋┼± ┴▒┌┤␊ 233 ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) ▒␌├␋⎺┼ °␋⎼⎽├ ⎽␊├ ├⎺ [-1] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊)▒␌├␋⎺┼ ┼⎺┬ ⎽␊├ ├⎺ [-1] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) K␊≤ [▒␌├␋⎺┼=-1][] ␋⎽T␊│├ °⎺⎼ ┐␊≤ 0 ␋⎽P⎼␋┼├ ␋⎽ 1 ␋⎽T␊│├() ␋⎽ ├⎼┤␊, ␋┼⎽␊⎼├␋┼±. C▒┼┼⎺├ ␍␊␌⎺␍␊: é S␊┌°I┼⎽␊⎼├ ▒⎼±[◆é'] S␊├├␋┼± ┐␊≤ ├⎺ 4128, K␊≤S≤└ ␋⎽ S␋°├_L ␋⎽OK ␋⎽ 1 ␋⎽M⎺␍ ␋⎽ 1 ␋⎽M⎺␍␋°␋␊⎼ ├⎼┤␊ ⎽␊┼␍␋┼± IMS├▒⎼├ ┬␋├ 0 ␌▒⎼⎽ ├⎺ 0│8603198 ⎽␊┼␍␋┼± IME┼␍ ┬␋├ 1 ␌▒⎼⎽ ├⎺ 0│8603198, ├␊│├=â° S␊├├␋┼± ┐␊≤ ├⎺ 0, ? K␊≤S≤└ ␋⎽ ? ␋⎽OK ␋⎽ 1 ␋⎽M⎺␍ ␋⎽ 0 ␊┼␌⎺␍␋┼± ␋⎽ ␋⎽⎺8859-1 U⎽␋┼± ␌⎺␍␊␌ ISO 8859-1 O⎺°. C▒┼'├ ␊┼␌⎺␍␊ ├␊ ├␊│├ ! ISOE┼␌⎺␍␊␍ ⎼␊├┤⎼┼␋┼± ┴▒┌┤␊ 0 ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) ▒␌├␋⎺┼ °␋⎼⎽├ ⎽␊├ ├⎺ [-1] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊)▒␌├␋⎺┼ ┼⎺┬ ⎽␊├ ├⎺ [-1] ┴⎺␋␍ L≤XF┤┼␌::⎻⎼⎺␌␊⎽⎽K␊≤S≤└(␉⎺⎺⎽├::⎽▒⎼␊␍_⎻├⎼, ┐␊≤_└⎺␍␋°␋␊⎼::⎽├▒├␊) K␊≤ [▒␌├␋⎺┼=-1][] ␋⎽T␊│├ °⎺⎼ ┐␊≤ 0 ␋⎽P⎼␋┼├ ␋⎽ 1 ␋⎽T␊│├() ␋⎽ ├⎼┤␊, ␋┼⎽␊⎼├␋┼±. S▒┴␊ ␌▒┼±␊␍ ␍⎺␌┤└␊┼├? T␊ ␍⎺␌┤└␊┼├ ┼␊┬°␋┌␊1.┌≤│ ▒⎽ ┤┼⎽▒┴␊␍ ␌▒┼±␊⎽. D⎺ ≤⎺┤ ┬▒┼├ ├⎺ ⎽▒┴␊ ├␊ ␍⎺␌┤└␊┼├ ⎺⎼ ␍␋⎽␌▒⎼␍ ├␊ ␌▒┼±␊⎽? A⎽⎽┤└␋┼± ▒┼⎽┬␊⎼ ␋⎽ &S▒┴␊ &D␋⎽␌▒⎼␍ &C▒┼␌␊┌ [EMAIL PROTECTED]:·$ Michael Wojcik wrote: > John Pye wrote: >> >> Under Ubuntu, one can use the Keyboard preferences to set up a 'Compose' >> key (I chose 'right ALT'). Once that is done, I can open a text editor >> (gedit) and get all the accented characters é and ô and ñ etc very >> nicely. I can even get the degree symbol using the sequence of keys >> (pressed and released in sequence): right-alt ^ 0. Like so: ° >> >> But when I move over to LyX, the accented character come out correctly, >> but the degree symbol does not appear. Nothing appears when I use the >> same key sequence as above. >> >> I can copy the degree symbol and paste into LyX using Paste External >> Selection As Paragraphs, but I cannot generate the character directly in >> LyX. > > Try running LyX with "lyx -dbg key" and see what debug output you get > when you try to insert the degree symbol using your compose key. > > When you paste the degree symbol into a document, does it appear > correctly in DVI and PDF output? >
degree symbol in lyx on ubuntu with the Compose key
Hi all I have been trying to work out how to make the degree symbol appear in Lyx. There was a thread on this recently but it was all about using mathematical equations, whereas I want to just insert the symbol as a regular character. Under Ubuntu, one can use the Keyboard preferences to set up a 'Compose' key (I chose 'right ALT'). Once that is done, I can open a text editor (gedit) and get all the accented characters é and ô and ñ etc very nicely. I can even get the degree symbol using the sequence of keys (pressed and released in sequence): right-alt ^ 0. Like so: ° But when I move over to LyX, the accented character come out correctly, but the degree symbol does not appear. Nothing appears when I use the same key sequence as above. I can copy the degree symbol and paste into LyX using Paste External Selection As Paragraphs, but I cannot generate the character directly in LyX. This is ubuntu 6.10 running standard deb package LyX 1.4.3. Has anyone using Ubuntu been able to make this work correctly? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: 'subfigure' package on windows
Hi again, I did try the Repository menu. I just pointed it to a directory where I had placed the single file, "subfigure.cab". Obviously it requires some kind of index file in addition, but i can't find out what that should be. It seems silly to download the whole repository just for this one file -- a file that I already have. Cheers JP TechTonics wrote: > John Pye wrote: >> Hi Stephen >> >> Surely there's a better way, right? Is there not like an index file or >> something like that that I need to put into the local folder to make >> Miktex happy? I guess this is a question for the Miktex list instead. >> >> Cheers >> JP >> > > Did you try using the "Repository" menu option > to change from the internet, to a local directory > with the browse button. After it synchronizes it > should present you with subfigure.cab which you > select and then click the + button at the top of window to > install. Repository is at the top in Miktex Update Manager. > > http://www.tug.org/ftp/tex/miktex/ > contains the .bz2 iso image for > making a cd with all the 2.4 cabs > which probably hasn't changed for > subfigure.cab (and some other cabs) between versions. > > mot juste, > > cyberdiction > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: 'subfigure' package on windows
Hi Stephen Surely there's a better way, right? Is there not like an index file or something like that that I need to put into the local folder to make Miktex happy? I guess this is a question for the Miktex list instead. Cheers JP TechTonics wrote: > John Pye wrote: > >> Hi all >> >> I'm in a bit of a bind with getting LyX 1.4.2 to run under Windows. >> >> For some crazy reason over which I have no control, our local firewall >> doesn't allow PASV FTP connections. So I downloaded the 'bundle' >> installer and thought I would be fine, but I find that I need support >> for the 'subfigure' package. This isn't included in the standard bundle >> (could it be added?) and because of the PASV problem, I can't use the >> MikTex configuration utility to install it. I managed to download the >> subfigure.cab file and put it in a local folder, which I thought would >> do the trick, however when I point MikTex at this folder, it says that >> the folder "does not seem to be a local package repository". >> >> What's the right way to get around this, does anyone know? >> >> Cheers >> JP >> > > I suppose another way is to unpack the cab file into > the right Miktex directories, run Refresh database, and > LyX Reconfigure, which requires knowing the TDS (.zip). > > Regards, > Stephen > > > > >
syntax highlighting for inline source code
Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code into a report, and explain it. Where the code appears in my report, I would like the keywords to appear bold, and the variables to appear blue, etc, etc -- but I want LyX to sort that all out automatically. It seems that the 'highlight' tool will be of use, however I'm not sure how one can use it: http://www.andre-simon.de/index.html This would be a bit like using the 'conversion filters' used for graphics, but it would need to apply somehow to text. I'd be quite happy with an ERT way of doing this -- anything really. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
'subfigure' package on windows
Hi all I'm in a bit of a bind with getting LyX 1.4.2 to run under Windows. For some crazy reason over which I have no control, our local firewall doesn't allow PASV FTP connections. So I downloaded the 'bundle' installer and thought I would be fine, but I find that I need support for the 'subfigure' package. This isn't included in the standard bundle (could it be added?) and because of the PASV problem, I can't use the MikTex configuration utility to install it. I managed to download the subfigure.cab file and put it in a local folder, which I thought would do the trick, however when I point MikTex at this folder, it says that the folder "does not seem to be a local package repository". What's the right way to get around this, does anyone know? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: Flow Chart Drawing For LaTeX/LyX
Hi, For UML diagrams, consider taking a look at Gaphor which is a purpose built UML program that runs on Linux, Windows & Mac (using Python and GTK+). It's also worth taking a look at Graphviz (dot, neato), especially if you think you might like to automate the production of your diagrams. Cheers JP Rich Shepard wrote: The last time I tried counting I found more than 17 different vector drawing applications that are suitable for use with LaTeX/LyX documents. I've used Tgif, Xfig, jpicedt, IDE, and PSTricks. Each has strengths and weaknesses, so I use whichever seems to be the best for a particular type of illustration. What I want to draw now are software flowcharts that illustrate how a model is structured and how data flow from one component to another. What would be ideal is a set of primatives for various standard nodes: data entry, decision points, printer, database storage, etc. Does anyone know of any such library of pre-built images that can be incorporated into a larger figure? TIA, Rich -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: placing a large table in landscape orientation
Belated thanks to you both. The ERT "\scriptsize" ... "\normalsize" around the table was good, and I combined it with the rotated table float, and got just what I needed. Thanks a lot! JP José Matos wrote: On Tuesday 08 August 2006 06:54, John Pye wrote: Hi all, I have moderately wide table that I would like to place on a page of my LyX document in landscape format. I have been able to do this, although note that it comes out wrong in the DVI viewer, but appears not bad in the pdflatex output. The problem is that the text is a little too large, and even with the landscape orientation, my table is too big for the page. How can I shrink down the size of the text used in the table? See attached file. Alternatively, how can I make the table's caption show in landscape format as well, rather than above the rotated figure? No idea here. I don't know latex commands, so if I must use ERT for this, please specify what it is that must do. Any tips would be much appreciated. Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
placing a large table in landscape orientation
Hi all, I have moderately wide table that I would like to place on a page of my LyX document in landscape format. I have been able to do this, although note that it comes out wrong in the DVI viewer, but appears not bad in the pdflatex output. The problem is that the text is a little too large, and even with the landscape orientation, my table is too big for the page. How can I shrink down the size of the text used in the table? Alternatively, how can I make the table's caption show in landscape format as well, rather than above the rotated figure? I don't know latex commands, so if I must use ERT for this, please specify what it is that must do. Any tips would be much appreciated. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: please consolidate the documentation
Hi all, I'd like to say congratulations to all on the re-inauguration of the LyX documentation team ;-) ! The scattered documentation of LyX has frustrated me too. I have some thoughts and ideas to mention... First, I think that the shining example of the *delivery* of software documentation is the PHP manual, which is at http://www.php.net/manual/en/. In its favour: anyone can annotate a page in the manual with their own tips and clarifications. This is great and it prevents quite the same degree of random organic growth that occurs when people feel that they should jot things into a wiki. I would imagine it makes things easier for editors too: the community tells you where information is missing or unclear. Here is an example of an annotated page: http://au.php.net/manual/en/function.array-sum.php Perhaps a limitation of the PHP manual's user-notes feature is that whole new pages are hard for people to add. So there's still a place for Wiki but it shouldn't be one of the primary resources, I don't think. The PHP people have also done a great job of providing translations of their manual, and also provide the documentation in lots of different formats, eg CHM for reading online with Windows, and online/offline HTML and PDF, eg see http://au.php.net/docs.php. There is a Linux documentation format standard over at freedesktop.org that we should comply with too. I don't think that we should expect people to use LyX as their documentation browser. Operating systems all provide good standard ways of accessing help: Installed LyX documentation should play nice with those so that there's one less thing for new users to learn. I think that the LyX manual should serve as a model example of a well-published document, with HTML and PDF versions, downloadable in various formats, etc. It should be the type of end-result document that a person setting out to write a book or a software manunal with LyX would aspire to produce, not an exposition of the LyX GUI. There should be a good self-updating HTML version of the LyX manual. Ideally a local search engine could be installed that would search both the HTML manual and the Wiki side-by-side with a single installation of lucene, xapian, swish-e, etc. We should aspire to the PDF version of the manual being a last port of call: online searching, CHM, Yelp (under GNOME), etc should be able to provide nicer and more efficient ways to read and search. Although, given what LyX is, it's important to produce a good looking PDF to prove what LyX can do. We're meanwhile trying to use LyX for documenting a project I've worked on: the ASCEND modelling environment. So we're very interested in taking the right approach here. I'm sure a lot of other writers, especially of software documentation, must be as well. Cheers JP Jean-Pierre Chretien wrote: >>>Date: Thu, 20 Jul 2006 03:05:50 -0700 >>>To: Jean-Pierre Chretien <[EMAIL PROTECTED]> >>>CC: lyx-users@lists.lyx.org >>>Subject: Re: please consolidate the documentation >>>From: Stephen Harris <[EMAIL PROTECTED]> >>> >>> >[...] > > >>>swish-e is supposed to be capable of indexing a Wiki. >>>Perhaps this categorizing scheme will be quite productive. >>> >>> > >PmWiki includes it own indexing scheme: the search field in each page is able >to retrieve >match in wiki pages. > >swish-e (or similar, htdig e.g.) are useful for segmented HTML publication >indexing. > > >
Revisited: chopped-off brackets in printed PDF
Hi all, A little while ago I wrote a message asking if anyone had seen this problem with chopped-off brackets in printed PDFs. Paul Rubin (on this list) suggested that I send example files so here they are. See attached LyX file, the generated PDF and a scan of my printed output (on a Kyocera FS-1010 printer on Win 2k). Steps to reproduce: (1) on LyX 1.4.1 on FC5, I created the attached LyX document. (2) export to PDF (pdflatex) (3) copy to my windows machine (Win2k) (4) open with Acrobat version 4.0. (5) print directly Kyocera FS-1010 printer (6) print indirectly to Kyocera FS-1010 print via FinePrint version 5.51 Versions printed at steps (5) and (6) both came out as shown in the scanned attachment. Interestingly, the FinePrint preview showed the chopped brackets as well. Here's the really surprising part. When I copy the same PDF file to another machine (also Win2k, also Acrobat 4.0), it prints out fine, without the brackets chopped. So I guess the conclusion is that I have a crazy local problem perhaps with Acrobat or with my printer driver, or with FinePrint (which is from fineprint.com, btw). If anyone has any other ideas, please let me know. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/ chopped.pdf Description: Adobe PDF document #LyX 1.4.1 created this file. For more info see http://www.lyx.org/ \lyxformat 245 \begin_document \begin_header \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize default \use_geometry false \use_amsmath 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \end_header \begin_body \begin_layout Standard Minimal example of bracket-chopping problem \end_layout \begin_layout Standard \begin_inset Formula \[ y=\left(\frac{x+1}{x-1}\right)\] \end_inset \end_layout \end_body \end_document
Re: SVGs with alpha channel transparency
sam2p mentions that "alpha channel and transparency supported only for Indexed images: only one color may be transparent" http://www.inf.bme.hu/~pts/sam2p/ This effectively means that sam2p does *not* support real alpha channel, since indexed images such as GIF support a single "special" color for complete (100%) transparency, as opposed to various 'cellophane' colors as permitted when a full alpha channel implementation is provided. Cheers JP Jean-Pierre Chretien wrote: Date: Wed, 21 Jun 2006 17:56:40 +0200 (MEST) From: Jean-Pierre Chretien <[EMAIL PROTECTED]> Subject: Re: SVGs with alpha channel transparency To: lyx-users@lists.lyx.org Date: Wed, 21 Jun 2006 09:57:10 +1000 From: John Pye <[EMAIL PROTECTED]> To: Jean-Pierre Chretien <[EMAIL PROTECTED]> CC: lyx-users@lists.lyx.org Subject: Re: SVGs with alpha channel transparency Hi Jean-Pierre, [...] A side conclusion of this thread (which was about svg export in general, not specific to transparency), it came out that inkscape export could only provide transparency with bitmap output (png). Uwe pointed out that a recent version of inkscape provides a transparent pdf output. Another pointer, borrowed from the TexLive mailing list: http://www.inf.bme.hu/~pts/sam2p/ I read there that "sam2p can create EPS and PDF images with transparency" Alas, sam2p starts from bitmaps, not from vector graphics... -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: SVGs with alpha channel transparency
Your approach defeats the purpose of using SVG in the first place, and will result in much large PDF files that I am currently getting. I really want to work out how use my SVG-with-alpha directly in LyX, or at least some vector format that will look OK. I wonder if there's an SVG-to-EPS converter that doesn't something smart with regard to alpha channels? It would need to flatten the layers of the vector image in a vectorised way, rather than the bitmapped way that most renderers no double work. Perhaps I just need to give up on the alpha-channel idea... Cheers JP Stephen Harris wrote: John Pye wrote: Hi Uwe, This approach (save as PDF from Inkscape) did not give me alpha channel transparency in my PDF. For example: On the left is a PNG exported from Inkscape (or alternatively, generated using 'rsvg-convert'. On the right is the PDF exported by Inkscape. So I'm still stuck with no alpha channel; the only approach still is to use a PNG conversion filter, which means blurry figures. I'm hoping that rsvg-convert's PDF output might do a better job than Inkscape's, but haven't succeeded with that (the LyX builtin 'convert' convert seems to get in the way for some reason). Cheers JP This is a recommended method I found before: Alternatively, SVG to EPS or PDF 1. Open with inkscape. 2. Export to png (huge hi-resolution) 3. Open with the GIMP 4. Save as .eps 5. gsview (or linux command) convert to .ps 6. ps2pdf convert .ps to .pdf Regards, Stephen -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: SVGs with alpha channel transparency
Hi Jean-Pierre, Re: Lyx 1.4.0pre3 + SVG + pdflatex Georg Baum Tue, 31 Jan 2006 00:56:43 -0800 Alfonso Gazo wrote: > After, when generating the PDF file, it produces a messy graphic just in > the place the SVG graphic should be. I've found that LyX is somewhat > converting from SVG to EPS and then to PNG. Finally, PNG image is > included in PDF file. Correct. This is unfortunately hardcoded in LyX. Is that still true? I take it to mean that I can't bypass LyX's use of 'convert' in converting my SVG first to a PNG? Cheers JP Jean-Pierre Chretien wrote: Date: Wed, 21 Jun 2006 01:24:22 +1000 From: John Pye <[EMAIL PROTECTED]> To: "lyx-users@lists.lyx.org" Subject: SVGs with alpha channel transparency Hi all What's the right string of tools to embed an SVG with alpha-channel transparency into a LyX document so that I get the alpha channel appearing right in the end-product PDF file? I've tried a few combinations such as intermediate EPS and PS file (no transparency) and 'convert' (it goes to bitmap so I lose my hard-edged lines). I think that I need to go for an 'encapsulated PDF' somehow, perhaps using 'rsvg-convert' but so far haven't been able to make it work. My particular case is contour plot with coloured regions overlaid, generated from Matplotlib and hand-edited a little with Inkscape. Has anyone had some experience with this that they could pass on? There is a thread about SVG in the archive: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg45269.html Transparency is not discussed however. HTH -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: SVGs with alpha channel transparency
Hi Uwe, This approach (save as PDF from Inkscape) did not give me alpha channel transparency in my PDF. For example: On the left is a PNG exported from Inkscape (or alternatively, generated using 'rsvg-convert'. On the right is the PDF exported by Inkscape. So I'm still stuck with no alpha channel; the only approach still is to use a PNG conversion filter, which means blurry figures. I'm hoping that rsvg-convert's PDF output might do a better job than Inkscape's, but haven't succeeded with that (the LyX builtin 'convert' convert seems to get in the way for some reason). Cheers JP Uwe Stöhr wrote: John Pye wrote: What's the right string of tools to embed an SVG with alpha-channel transparency into a LyX document so that I get the alpha channel appearing right in the end-product PDF file? Transform your SVG to PDF. Inkscape supports alpha channels in SVG and in PNG, see http://wiki.inkscape.org/wiki/index.php/InkscapeFeatures The new version 0.44 of Inkscape: http://sourceforge.net/project/showfiles.php?group_id=93438&package_id=99112 comes with a native PDF export, so that the alpha channel should be included in the PDF. The resulting PDF image can directly be used in LyX when you use pdflatex to generate the PDF output. regards Uwe -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
SVGs with alpha channel transparency
Hi all What's the right string of tools to embed an SVG with alpha-channel transparency into a LyX document so that I get the alpha channel appearing right in the end-product PDF file? I've tried a few combinations such as intermediate EPS and PS file (no transparency) and 'convert' (it goes to bitmap so I lose my hard-edged lines). I think that I need to go for an 'encapsulated PDF' somehow, perhaps using 'rsvg-convert' but so far haven't been able to make it work. My particular case is contour plot with coloured regions overlaid, generated from Matplotlib and hand-edited a little with Inkscape. Has anyone had some experience with this that they could pass on? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: OT: Tool to convert from LaTeX to SVG
You might find that the mathtext component in Matplotlib does what you need. Its support for latex equations is basic: no support for \frac, for example. But for your simpler all-on-one-line equations with symbols, it's ok. It's also not a stand-alone 'tool', which is what you were looking for. Cheers JP Paul Smith wrote: Dear All Is there some tool to convert from LaTex equations to SVG? I have tried pstoedit, but it does not apparently work here. Thanks in advance, Paul -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
chopped-off brackets in printed PDF
Hi all, I have created a PDF using using pdflatex export from LyX 1.4.1-7.fc5 on Fedora Core 5. When I view the PDF under Windows 2000 with Acrobat version 4, it all looks fine. But when I print it, all the large parentheses (those enclosing expressions with fractions) are chopped off at slightly above the level of the line between the numerator and denominator. Does anyone know if this a problem with Acrobat or a problem with my printer, or a problem with windows, or a problem with the fonts embedded in the PDF, or what? I presume other people have seen this? I can send a scanned example, or the PDF itself, if anyone wants it. Please let me know if there's a better place to raise this issue, too. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: funny math fonts with lyx 1.4.1 on winxp
Hi Uwe, Uwe Stöhr wrote: > John Pye wrote: > >> I've been using LyX 1.4.2 (from the win installer complete 2-01) > > > the installer version ships LyX 1.4.1. Yes, you're right. I got confused between the 1.4.1 and the 2-01. > But anyway: > >> I've found then when I enter math fonts, I get strange >> effects like \delta showing up as a 'one half' character, and \tau >> showing up as an upside-down question mark. > > > it seems that the math fonts couldn't correctly be installed. Probably > another prevents this. You could try to reinstall LyX using the > installer and if this doesn't help install the fonts manually as Paul > Smith pointed you to the webpage where you can find the fonts. I had recently uninstalled the Lyx 1.3.7 'complete installer', then I installed the new LyX. Does the uninstaller sometimes delete files during reboot? Perhaps these files were replaced by the new installed, but marked for deletion by the old uninstaller? Could that be happening? BTW where do these files live once installed -- can I check if they're there or not? I'll install the extra fonts when I'm back at that machine. Thanks both of you for the help, Cheers JP
funny math fonts with lyx 1.4.1 on winxp
Hi all I've been using LyX 1.4.2 (from the win installer complete 2-01) on Windows XP. I've found then when I enter math fonts, I get strange effects like \delta showing up as a 'one half' character, and \tau showing up as an upside-down question mark. Presumably this is to do with LyX having a wrong character map for the font(s) it's using for the live rendering of the equations. If I turn on the 'instant preview' feature then the preview versions show correctly. But this makes it hard to actually write the equations. Has anyone got any suggestions for how to fix this? How can I check that LyX has its necessary maths fonts? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Re: crash inserting citation with lyx-gtk 1.4.1
I understand that. I do really like the look of the GTK interface though -- really nice, so I wanted to report this in case it was unknown. At what point will we be able to assume that the developers *don't* know about crashes in the GTK interface? Cheers JP Georg Baum wrote: > John Pye wrote: > > >> Hi all >> >> I have a reproducible crash in LyX 1.4.1 (Ling Li's lyx-gtk RPM on FC5). >> > > Crashes in lyx-gtk are expected due to some unimplemented dialogs. It is > experimental and not ready for serious work yet. > > > Georg > > > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: crash inserting citation with lyx-gtk 1.4.1
Just checked this -- it's a GTK-only bug. Ling Li's lyx-qt package doesn't have the same crash. Cheers JP John Pye wrote: > Hi all > > I have a reproducible crash in LyX 1.4.1 (Ling Li's lyx-gtk RPM on FC5). > I have a document with some graphics and formulae. I have a master > document with about 10 "Input" boxes to include the various chapters. > Only the master document contains the "Bibtex" box at the end -- the > chapters do not. > > I opened my chapter 4 document from the recent documents menu of lyx-gtk > (Ling Li's RPM for FC5). > Then I opened my master document, also from the recent documents menu. > Then I clicked on the chapter 4 "input" and clicked "load" to jump to > that document. > Then I scrolled down and just after a citation element and just before a > figure float, I selected insert citation. > Then I scrolled down the list of references and double clicked the > bibtex key that I wanted. > Then I clicked OK. > > LyX crashed with this message: > >> [EMAIL PROTECTED] Thesis]$ ControlCitation::initialiseParams >> citation LatexCommand \cite{} >> \end_inset >> >> LyX: Attempting to save document /home/john/dsg-docs/Thesis/04 - >> Absorber Pipe Flow Model.lyx >> /home/john/dsg-docs/Thesis/04 - Absorber Pipe Flow Model.lyx.emergency >> Save seems successful. Phew. >> LyX: Attempting to save document /home/john/dsg-docs/Thesis/Thesis.lyx >> /home/john/dsg-docs/Thesis/Thesis.lyx.emergency >> Save seems successful. Phew. >> >> lyx: SIGSEGV signal caught >> Sorry, you have found a bug in LyX. Please read the bug-reporting >> instructions in Help->Introduction and send us a bug report, if >> necessary. Thanks ! >> > Since the feedback page http://www.lyx.org/feedback.php says to mail you > I haven't filed a bug. > > I can send the source documents to someone who wants to investigate, if > desired. > > Cheers > JP > > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
crash inserting citation with lyx-gtk 1.4.1
Hi all I have a reproducible crash in LyX 1.4.1 (Ling Li's lyx-gtk RPM on FC5). I have a document with some graphics and formulae. I have a master document with about 10 "Input" boxes to include the various chapters. Only the master document contains the "Bibtex" box at the end -- the chapters do not. I opened my chapter 4 document from the recent documents menu of lyx-gtk (Ling Li's RPM for FC5). Then I opened my master document, also from the recent documents menu. Then I clicked on the chapter 4 "input" and clicked "load" to jump to that document. Then I scrolled down and just after a citation element and just before a figure float, I selected insert citation. Then I scrolled down the list of references and double clicked the bibtex key that I wanted. Then I clicked OK. LyX crashed with this message: > [EMAIL PROTECTED] Thesis]$ ControlCitation::initialiseParams > citation LatexCommand \cite{} > \end_inset > > LyX: Attempting to save document /home/john/dsg-docs/Thesis/04 - > Absorber Pipe Flow Model.lyx > /home/john/dsg-docs/Thesis/04 - Absorber Pipe Flow Model.lyx.emergency > Save seems successful. Phew. > LyX: Attempting to save document /home/john/dsg-docs/Thesis/Thesis.lyx > /home/john/dsg-docs/Thesis/Thesis.lyx.emergency > Save seems successful. Phew. > > lyx: SIGSEGV signal caught > Sorry, you have found a bug in LyX. Please read the bug-reporting > instructions in Help->Introduction and send us a bug report, if > necessary. Thanks ! Since the feedback page http://www.lyx.org/feedback.php says to mail you I haven't filed a bug. I can send the source documents to someone who wants to investigate, if desired. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Lyx crash under Fedora Core 5
Hi all I've just tried to load my LyX thesis documents on my new FC5 system. Scrolling down through a document that I was working on last week with FC4, LyX crashes with a segfault. The document contains PNG images, formulae and I think an EPSI image. I performed a reconfigure but it still happens the same. Is this issue known about? Do I need to investigate further, or wait for a patch? :-) I'm happy to send the problem document to anyone who wants to look. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: Question about Bibtex - which is the best GUI?
I've used Jabref for my thesis bibliography, and it's mostly been fine. I've used it from both Windows and Fedora Core 4. The sorting and searching work well, and I like the way it makes your DOIs and PDFs click-through-able with icons in the main list. I like how it integrates with LyX via the LyX pipe, and I like that it runs on both windows and linux. I have had some fairly bad problems with non-ASCII characters though -- don't know what the right way to put in umlauts and so on is, via JabRef. Also, It can be a bit slow at times, for some reason. Unfortunately there is no nicely-packaged version of JabRef for Fedora at this stage, although I've had a bit of discussion about this over at http://jpackage.org. This makes it a little harder for new users to try. I tried some little KDE and GNOME-based bibtex editors but nothing seemed to be anywhere near as mature as JabRef. I haven't tried the other ones you mentioned. Cheers JP Tim Vaughan wrote: Hi, I plan on using Bibtex to handle the citations needed for a series of essays I am writing. I have come across two Java GUIs, JabRef and Bib-it and an OS X one, BibDesk. I'm happy to try them all out but I was wondering if people had experience with these programs or others and which they would recommend? Tim
Testing example code in LyX documents
Hi all I recently came across BoostBook and also python's DocTest module. These systems are designed your documentation to include sample code (ie examples of how to do stuff) in such a way that those code examples can be incorporated into test harnesses etc. This means that you can automatically run all of your code examples each time you update your documentation, and therefore be confident that your latest changes (to either you example or to your main code) haven't stopped your examples from working as expected. Is anyone using techniques like these with LyX? If so, how? Cheers JP -- John Pye Department of Mechanical and Manufacturing Engineering University of New South Wales, Sydney, Australia http://pye.dyndns.org/
Pasting into tables in Lyx 1.4?
Hi all It seems to me that the nifty middle-click trick for pasting text into tables is broken in the latest LyX, version 1.4. I copy some cells from Open Office, I position my LyX cursor in the first row, first column of my new LyX table (in a float) and click the middle button. All the text comes out in that first cell, rather than distributed through the table cells as I believe it was previously. Can anyone else confirm this? Is there another way of (easily) importing tabular data into a LyX document? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: FYI: Lyx recently added to Fedora Core 4 Extras
Hi Todd I think you should be able to add an 'exclude' line to your yum.conf. Type 'man yum.conf' for all the details. Cheers JP Todd Denniston wrote: John Pye wrote: In case people hadn't noticed, Lyx 1.4 was recently added to the Fedora Core 4 Extras repository. So, if you are running on Fedora Core 4, you can easily update to the latest Lyx using 'yum update', provided you have your repositories set up correctly. Further info here: http://fedoraproject.org/wiki/Extras/UsingExtras Cheers JP You wouldn't happen to know how to 'pin' a yum/FC package at a particular rev would you? I dislike when my tools take major jumps in their interfaces, while I am in the middle of a project, like now.
FYI: Lyx recently added to Fedora Core 4 Extras
In case people hadn't noticed, Lyx 1.4 was recently added to the Fedora Core 4 Extras repository. So, if you are running on Fedora Core 4, you can easily update to the latest Lyx using 'yum update', provided you have your repositories set up correctly. Further info here: http://fedoraproject.org/wiki/Extras/UsingExtras Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: Thesis formatting problems, need help
Hi, John McCabe-Dansted wrote: > On 3/14/06, Nate Mullins <[EMAIL PROTECTED]> wrote: > >> 2. I have some tables that won't fit the page horizontally unless I make >> the font really small (too small). I need to enlarge the font, but would >> you suggest I a) orient the tables to Landscape and span them multiple >> pages or b) make the columns narrower? >> > > How can you make the columns narrower without reducing the font size? I had this problem as well. It's covered in the User's Manual under section 4.4.4 (the chapter on tables). Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: Strange cropping of SVG?
Hi again, Georg Baum wrote: > John Pye wrote: > > >> The drawing showed up in lyx, but only approximately the left two-thirds >> and the top two-thirds were showing. The rest was chopped off. This was >> the same in both the Lyx edit view and the DVI view (ctrl-D). >> >> This seems like a bug -- is that correct? Or am I doing something illegal? >> > > This is not illegal. What you see has nothing to do with LyX, but with the > converter from SVG to EPS/PNG. Look up what converter is used in the > preferences. maybe you can find out some commandline parameters to make it > work, or find a better one, although I understand that all existing SVG -> > EPS converters are suboptimal. > This is what puzzled me: I expected to see a SVG->xx converter in my LyX preferences menu. But there is none shown. Nevertheless LyX seems to know what to do with my SVG document; it just happens to do it wrong. If the SVG->whatever converter is not shown in my preferences menu, then where to do the settings for it live? Maybe there's a default embedded in the compiled code, or something like that? Also the SVG format is not shown in the File Formats list. >> Could this be related to the fact that I have the 'Zoom %' set to 150% >> in my view preferences? >> > > I don't know. > I can confirm that this *isn't* the problem. I changed text zoom to 100% but the problem with the SVG persisted. Also, don't know if this related: on the console, I see: > xset: bad font path element (#90), possible causes are: > Directory does not exist or has wrong permissions > Directory missing fonts.dir > Incorrect font server address or syntax > Unable to add font path. > This is dvips(k) 5.95a Copyright 2005 Radical Eye Software > (www.radicaleye.com) > ' TeX output 2006.03.10:2027' -> 0lyxpreview.ps > . > > [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] > [14] [15] > [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] > [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] > [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] > [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] > [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] > [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] > [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] > [116] [117] > [118] [119] [120] [121] [122] [123] [124] > pnmcrop: The image is entirely background; there is nothing to crop. > pnmcrop: Error reading magic number from Netpbm image stream. Most > often, this means your input file is empty. > convert: unable to read font > `/usr/share/fonts/default/TrueType/arial.ttf'. > Mutex destroy failure: Device or resource busy Is it possible that NetPBM is being used to handle SVG via some kind of fallback? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Strange cropping of SVG?
Hi all, Using Lyx 1.3.7 on FC4, I am seeing strange cropping of even very simple SVG diagrams. I have generated for example a triangle with sides labelled 'a', 'b' and 'c', using Inkscape. I changed the 'document properties' so that the 'page' for the SVG was just a little outside the limits of my drawing. Then I saved the SVG and inserted it into a Figure Float in my Lyx document. The drawing showed up in lyx, but only approximately the left two-thirds and the top two-thirds were showing. The rest was chopped off. This was the same in both the Lyx edit view and the DVI view (ctrl-D). This seems like a bug -- is that correct? Or am I doing something illegal? Could this be related to the fact that I have the 'Zoom %' set to 150% in my view preferences? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: typewriter font
Just on this... I'd like to vote that the 'typewriter' style be added to the default menus along with 'noun style', 'bold style', etc, under the Layout menu. Most new users use the menus as their first source for learning keyboard shortcuts, so the menu option should be there with its keyboard shortcut (Alt-C, P) clearly shown there. I shouldn't have to consult the user's manual for this... Cheers JP Peter Lempel Søndergaard wrote: Perfect, that worked. For some reason, all fonts were set to "Bistream Charter". Setting the typewriter font to "Bitstream Vera Sans Mono" makes it work again. Cheers. Peter man, 06 03 2006 kl. 23:17 -0600, skrev Paul Johnson: Did you try "edit / preferences /screeen fonts" where you can select which font shows? pj On 3/6/06, Peter Lempel Søndergaard <[EMAIL PROTECTED]> wrote: Dear list, I just opgraded to lyx-1.4.0pre6 to test it out. I am running Fedora core 4 with the rpms that was needed for 1.3.7. I have compiled from source and erased the .lyx dir to get the new defaults. LyX runs fine, but there is no visual clue if I change some text to use the typewriter font. 1.3.7 showed the text with a typewriter font on screen. If I view .dvi everything also works. Is there some new fonts I need to install? Cheers, Peter -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Re: importing chart from excel ?
This might be useful as well -- I seem to remember that it's possible to get out a WMF file of the chart somehow. If so, you could convert using this (I haven't tried it though): http://www.skynet.ie/~caolan/Packages/libwmf.html Talking of PDF printers, I use "PDF Factory" and also "FinePrint". I just checked the fineprint.com site and it says that you can export printed-output in a "number of useful formats" including JPEG, TIF, BMP. Maybe there is a vector format that it can export as well...? See the bottom of this page: http://www.fineprint.com/products/fineprint/benefits.html Cheers JP PS A very easy to use (but non-free) PDF printer is "PDF Factory". And btw, it goes really well with with its paper-saving sibling, "FinePrint". I think it's at fineprint.com. Mael Hilléreau wrote: is there any way to input the chart into lyx without loosing quality...? Export to PDF from excel (using PDF995, or another PDF printer or openoffice if not available) and then include the PDF into LyX. Regards, Mael.
Re: software manuals using Lyx
Hi Abdel, You suggested exporting HTML then importing that to the CHM tool from MS. That is what i would plan to do, but note that one needs various support files for using the index feature, and for creating the navigation hierarchy on the left hand side of the CHM window. These are things that Lyx needs to provide. For example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconprjcmp.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconoveridx.asp Furthermore, I don't believe I can export using 'htlatex' if I am working on a docbook-lyx document. I need to use docbook-lyx format in order to support GNOME help ('yelp') output. Cheers JP Abdelrazak Younes wrote: > Jose' Matos a écrit : > >> On Friday 17 February 2006 07:55, John Pye wrote: >> >>> Hi there, >>> >>> Can anyone tell me if there is an up-to-date HOWTO somewhere for using >>> Lyx for DocBook output of software user's manuals? >> >> >> No, that has been in my TODO list for a long time. :-( >> >>> In particular, I want to be able to generate 'chm' files for Windows, >>> and DocBook XML for GNOME ('yelp' help browser). Is this something that >>> other people on the list are doing? >> >> >> You need to find a tool that converts docbook to chm, and then use >> the traditional way of configuring lyx. > > > Or just export to html with htlatex and use Microsoft free chm tool. > > Abdel. > >> >> 1) Add format, with its viewer >> 2) Define how to convert from docbook to chm >> >>> I found this but it's 5 years old, and hopefully things have become >>> easier... >>> http://bgu.chez-alice.fr/doc/db4lyx/ >>> >>> If such a HOWTO /doesn't/ exist, maybe there'd be someone willing to >>> collaborate on putting it together? >> >> >> I can explain why lots of things are the way they are, and if >> possible/necessary fix those bugs. >> >>> Cheers >>> JP >> >> > > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: software manuals using Lyx
What version was it that you tried with? I think (am hoping) that 1.3.7 and then 1.4 should be better... Cheers JP Bo Peng wrote: Can anyone tell me if there is an up-to-date HOWTO somewhere for using Lyx for DocBook output of software user's manuals? Personally I am using python/manual.cls and an adapted layout file. This works reasonably well but there is no chm output and other fancy stuff. I tried the lyx/docbook before, following the same kinds of tutorials, but none of them worked. This may be because I am not familiar with XML/docbook etc but the bizarre error messages, incompatible tool sets, limited support from lyx really dismayed me. Maybe things have been better now. Cheers, Bo
software manuals using Lyx
Hi there, Can anyone tell me if there is an up-to-date HOWTO somewhere for using Lyx for DocBook output of software user's manuals? In particular, I want to be able to generate 'chm' files for Windows, and DocBook XML for GNOME ('yelp' help browser). Is this something that other people on the list are doing? I found this but it's 5 years old, and hopefully things have become easier... http://bgu.chez-alice.fr/doc/db4lyx/ If such a HOWTO /doesn't/ exist, maybe there'd be someone willing to collaborate on putting it together? Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: xforms needed question
Did you try http://apt.ling.li/rpms/lyx/ Works for me, although I use the Qt version. But the xforms file is there as well. JP Tom Poe wrote: I checked for xforms download, and ran into problems trying to locate the proper file. The Redhat link for rpm, for example, gave me an error message that it couldn't change ftp directory. Does anyone know where I can download Xforms files? Or, should I try to use QT, and follow the INSTALL directions? I'm using the Gnome GUI, not the KDE GUI. Here's message when I tried to install 1.3.7 on FC4: Configuration Host type: i686-pc-linux-gnu Special build flags:xforms-image-loader use-pspell use-ispell C Compiler: gcc C Compiler flags: -g -O2 C++ Compiler: g++ (4.0.2) C++ Compiler flags: -O Linker flags: Frontend: xforms libXpm version: 4.11 libforms version: Packaging: posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx The following problems have been detected by configure. Please check the messages below before running 'make'. (see the section 'Problems' in the INSTALL file) ** Cannot find libforms or libxforms. Please check that the xforms library is correctly installed on your system. ** Cannot find forms.h. Please check that the forms library is correctly installed on your system. [EMAIL PROTECTED] lyx-1.3.7]
Re: Convert framemaker to docbook-lyx -- safest path?
Hi Stephen As we already have the framemaker source files its seems inefficient to go via raster and OCR and back. I think that XSLT applied to mif2xml is going to be a better plan, unless I find that the mif2lyx script can be used, in which case that would be best. Sounds like an interesting project though. Cheers JP Stephen Harris wrote: - Original Message - From: "John Pye" <[EMAIL PROTECTED]> To: "Georg Baum" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, February 08, 2006 2:42 AM Subject: Re: Convert framemaker to docbook-lyx -- safest path? Hi Georg, Georg Baum wrote: John Pye wrote: Can anyone offer any comments on what would be the 'safest path' for converting Framemaker files into Docbook Lyx files? I thought you might have a chance with Infty http://www.inftyproject.org/en/demo.html#0002 "3. Online Recognition Test of InftyReader Ver.2.4.3d You can test the recognition of YOUR math documents by InftyReader, ONLINE,. Click HERE" SH: You can use Omnipage Pro(or other?) to convert your docs to png or tiff. Infty claims that it can convert those formats at 400 or 600 dpi to several formats including tex. I tested the Online conversion with English selected and it used Japanese anyway. I download Infty and it output tex but only a soso (English) conversion. One can also save pdf as ps. I've seen ps2html and html2latex scripts but they appear to have been abandoned, hard to find. I think your best chance is an OCR/image conversion to latex. http://www.susqu.edu/brakke/PlateauBook/PlateauBook.html I've had some success using Acrobat's Snapshot tool which can copy a table and be saved ->->as an image file. Perhaps that could be inserted as a LyX graphic, if that helps at all. Regards, Stephen OCR breaks even at 94% accuracy (or rekey), Stephen
Re: Convert framemaker to docbook-lyx -- safest path?
Hi Georg, Georg Baum wrote: John Pye wrote: Can anyone offer any comments on what would be the 'safest path' for converting Framemaker files into Docbook Lyx files? You know http://www.cs.brandeis.edu/~pablo/mif2lyx/ ? It is somewhat limited, but it might be possible to extend it. The perl module cited as prereq doesn't exist on CPAN. Not that I could find with search. Is a (nearly) lossless conversion from framemaker to latex possible? Then you could use tex2lyx (see http://wiki.lyx.org/LaTeX/LatexToLyx) to produce the LyX files. If tex2lyx fails to convert something then it is probably easy to fix. The big advantage of this method is that you don't have to worry about the LyX format. Nope. Converting from frame to latex is a flakey process. No point going via latex here. Another possibility would be to read the MIF or XML files with a python script and use $LYXDIR/lib/lyx2lyx/LyX.py to create the LyX document. LyX.py has no support for tables yet, so you'll have to write that, but this would need to happen sometimes anyway. That might be interesting. Is there no XML-based Lyx file format yet? What does lyx2lyx do, I can't see any documentation on the net. Come to that, is there a lyx file format reference somewhere? My best best really does seem to be to write an XSLT to convert from either mif2xml output (or the direct Framemaker XML-export output) to a *structured file format* that Lyx can read reliably. I tried to write out XML directly but it seemed really hard to resolve the whitespace problems. You can see my efforts at https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2lyx.xsl?rev=310&view=markup also, see my somewhat more successful https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2html.xsl?rev=310&view=markup Cheers JP
Re: Convert framemaker to docbook-lyx -- safest path?
Hi Krishnan, I did manage to preserve the cross-references when converting from the XML-exported data from Framemaker to my Lyx files. This is probably harder to do when converting from MIF files, but I'm not sure. When converting from XML files, you get HTML-like labels like and references like Section 2.1, â€Converting the word description into an ASCEND model,†on page 7 So it's simple enough to translate those into Lyx references, which is what the and do in the following file: https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2lyx.xsl?rev=310&view=markup My big problems here are related to converting framemaker tables to lyx tables, sticking figures into lyx 'floats' and getting some kind of line-numbered code listing format. The documents we have references to specific lines in the code listings, and it's hard to get that to work correctly in LyX. Also, the code listing have captions, but Lyx doesn't seem to let you have a caption unless you're inside a 'float'. WRT equations, Framemaker's XML export exports equations as images (GIFs) so a first-pass translation from Framemaker to LyX can simply embed these images into the LyX file. Cheers JP Krishnan Chittur wrote: > > John, > > My limited experience is that when there are equations and > references to sections/chapters and so on - I have not had > a lot of luck in going from one format to another - > (my personal preference has been latex/pdflatex and > tth/hevea or latex2html for html conversion) > > I would be happy to attempt some clean-up of latex or even > lyx documentation - (even the most recent windoze version > of lyx had some difficulty with some of my latex files - > need to pursue that angle carefully) (no experience with > framemaker) > > On Wed, 8 Feb 2006, John Pye wrote: > >> Hi all, >> >> Can anyone offer any comments on what would be the 'safest path' for >> converting Framemaker files into Docbook Lyx files? >> >> I have the exported 'MIF' and 'XML' files from Framemaker version 5. >> I also have the original .fm5 files, and I have the PDFs that were >> generated by Framemaker. This is some old user's documentation for a >> project that I'm working on: the documents have embedded images and >> equations, multi-page line-numbered code listings, an index, marginal >> notes, footnotes, and cross-references between sections, tables, >> equations, etc. Also tabular text, bold, italic and 'typewriter' >> code. It has 'parts', 'chapters' and then two or three levels of >> sub-headings. >> >> I've already written a hacky XSLT-based transformation from the >> Framemaker-exported XML files direct to LyX document format using an >> XSLT transformation, but I found that I just couldn't make LyX do >> anything sensible with the tags that I generated - the >> lyx format seemed to be so sensitive to whitespace. And I recently >> received updated original Framemaker files, and I don't want to have >> to re-do all the hand-tweaking that I did to make this approach work. >> Also, framemaker's exported XML doesn't seem to contain *all* of the >> original structure of the framemaker document. >> >> If I'm to use existing tools, it seems that mif2xml then a homemade >> XSLT to transform to HTML, then...? >> >> I ultimately want to be able to export docbook and then generate >> online documentation for GNOME and windows, as well as PDFs, as per >> http://live.gnome.org/GnomeDocUtilsMigrationHowTo >> and also Microsoft CHM format >> http://en.wikipedia.org/wiki/Microsoft_Compressed_HTML_Help >> >> Any suggestions? >> >> Would I have more luck trying this with new new 1.4 version? >> >> Cheers >> JP >> >> PS the document's I'm trying to transform are actually these: >> http://ascend.cheme.cmu.edu/pdfhelp.htm >> for which the source material is at >> https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/?rev=338 >> >> > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Convert framemaker to docbook-lyx -- safest path?
Hi all, Can anyone offer any comments on what would be the 'safest path' for converting Framemaker files into Docbook Lyx files? I have the exported 'MIF' and 'XML' files from Framemaker version 5. I also have the original .fm5 files, and I have the PDFs that were generated by Framemaker. This is some old user's documentation for a project that I'm working on: the documents have embedded images and equations, multi-page line-numbered code listings, an index, marginal notes, footnotes, and cross-references between sections, tables, equations, etc. Also tabular text, bold, italic and 'typewriter' code. It has 'parts', 'chapters' and then two or three levels of sub-headings. I've already written a hacky XSLT-based transformation from the Framemaker-exported XML files direct to LyX document format using an XSLT transformation, but I found that I just couldn't make LyX do anything sensible with the tags that I generated - the lyx format seemed to be so sensitive to whitespace. And I recently received updated original Framemaker files, and I don't want to have to re-do all the hand-tweaking that I did to make this approach work. Also, framemaker's exported XML doesn't seem to contain *all* of the original structure of the framemaker document. If I'm to use existing tools, it seems that mif2xml then a homemade XSLT to transform to HTML, then...? I ultimately want to be able to export docbook and then generate online documentation for GNOME and windows, as well as PDFs, as per http://live.gnome.org/GnomeDocUtilsMigrationHowTo and also Microsoft CHM format http://en.wikipedia.org/wiki/Microsoft_Compressed_HTML_Help Any suggestions? Would I have more luck trying this with new new 1.4 version? Cheers JP PS the document's I'm trying to transform are actually these: http://ascend.cheme.cmu.edu/pdfhelp.htm for which the source material is at https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/?rev=338
Re: OT: Converter matrix to picture
Hi Paul Just to specify a bit, you should take a look at the 'spy' and 'spy2' commands from matplotlib JP Paul Smith wrote: On 2/3/06, John Pye <[EMAIL PROTECTED]> wrote: You should try Matplotlib under python. You've got a lot of the MATLAB functionality re-implemented in python. http://matplotlib.sourceforge.net/ There is a sample sparsity diagram that I produced, see here (scroll down to near the bottom) https://pse.cheme.cmu.edu/wiki/view/Ascend/PythonWrapper Using matplotlib you can also render directly to various formats including SVG, I believe. Thanks, John. That is a quite useful set of commands. Paul
Re: OT: Converter matrix to picture
You should try Matplotlib under python. You've got a lot of the MATLAB functionality re-implemented in python. http://matplotlib.sourceforge.net/ There is a sample sparsity diagram that I produced, see here (scroll down to near the bottom) https://pse.cheme.cmu.edu/wiki/view/Ascend/PythonWrapper Using matplotlib you can also render directly to various formats including SVG, I believe. Hope that helps JP Paul Smith wrote: >Dear All > >This may be a bit out of topic. I have a matrix of ones and zeros with >which I would like to produce a picture in such a way that the ones >would be represented in black, say, and the zeros in yellow. Does >somebody know of a program (for Linux) to create my picture? > >Thanks in advance, > >Paul > > > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
Re: A Newbie's Experience with LyX
Hellmut Weber wrote: > For business reasons I'm obliged to produce some documents in > Word-Format. The copy/paste-comfort offered by Windows is to be > considered THE reference for any system which wants to compete. > I think that the 'rich' copy/paste technology clearly exists on Linux, but it seems that only a few applications are using it effectively: it works fine for 'rich' text from open office to thunderbird, and from firefox to thunderbird. It works for copying rich text with graphics and tables from firefox to openoffice. It works for copying bitmap selections from Kolour Paint to Open Office. It doesn't for the GIMP, and it doesn't work for DIA. It appears not to work from Inkscape to OpenOffice. I haven't tried AbiWord either. I found that there is a reference to cut/paste in freedesktop.org, which ties together KDE and GNOME common functionality: http://freedesktop.org/wiki/ClipboardManager That in turn refers to http://tronche.com/gui/x/icccm/sec-2.html#s-2.6.3 So it seems that it's a case of getting Lyx to be a bit aware of how this is done and hopefully reproduce some of that functionality. I'm sure it's not simple, but maybe it's something that could get put on the list if enough people would use it. Cheers
Re: A Newbie's Experience with LyX
Mistakenly sent off-list by Dr. Hellmut Weber: > Hi list, > >>> If other users are also concerned about the copy&paste-situation, >>> please >>> make your opinion visible on this list as well. (in a friendly way, of >>> course) >> > > I've been a LaTeX user for many years until I found LyX which is now > my favorite already for several years. > > Quite often I encounter the copy/paste-problem, since for raw text or > program code I'm an old vi- (now ViM-) addict. > So in the case ViM --> LyX ihave first to mark the area (which > requires careful selction of the area) then I can paste it with ctrl-v > into LyX loosing the line breaks. > > Not understanding the details, I suppose nevertheless the reason for > the copy/paste-problem is the neither LyX nor ViM are really > integrated into KDE. Is this assumption correct? > > > For business reasons I'm obliged to produce some documents in > Word-Format. The copy/paste-comfort offered by Windows is to be > considered THE reference for any system which wants to compete. > > I'm very sorry about that but that's one of the arguments I hear often > when discussing Windows/Linux even with people who are intereseted and > willing to consider a move. > > > I'm working on an IBM T22 Laptop with gentoo-Linux, KDE-3.5.0, > tetex-2.0.2, LyX-1.3.5, Word 2000 under Windows 98 running in a > Win4Lin-5.0 box. > > > Greetings from Munich > > Hellmut > > -- > Dr. Hellmut Weber > Degenfeldstraße 2, D - 80803 München-Schwabing > tel (+49 89) 3081172, mobil (+49 172) 8450321 > [EMAIL PROTECTED] > --
Re: A Newbie's Experience with LyX
Sven Schreiber wrote: >If other users are also concerned about the copy&paste-situation, please >make your opinion visible on this list as well. (in a friendly way, of >course) > > This has been an issue for me too. Other programs like ms office, mozilla/thunderbird and openoffice do a great job of accepting different text formats in external pasted text. As I understand it, it centers on the source document making copied data available in a number of different formats, and then target document chooses and inserts whichever format of the data it can best utilise, for example bitmap, text, html, rtf. MS Office and OpenOffice make this process transparent with their 'Paste Special' commands (which should be the nomenclature used by LyX, I think -- there shouldn't be a separate internal clipboard, either, since 'ctrl-v' should *always* paste in the 'best format' of whatever you just copied, regardless of where it came from). For me the cut-and-paste text formatting features that would be most useful would be paragraphs, bold, italic and typewriter styles, followed by ordered/unordered lists and then tables and then images. This would useful for cutting and pasting from web pages, wordprocessor documents and PDFs. The current 'paste as lines' and 'paste as paragraphs' are good for pasting in plain text but become frustrating when you start having bold/italics and other markup in your text. BTW we are trying to use LyX after migrating some old FrameMaker files (painfully) for the ASCEND project, https://pse.cheme.cmu.edu/wiki/view/Ascend/DocumentingAscend Cheers JP http://pye.dyndns.org/
Re: jabref and lyx
Just an aside, you might be interested to know that I have an RPM version of JabRef that makes installation and general use a bit easier on Fedora Core and other RPM-based distros. It's not hosted anywhere yet but we are working on getting it into jpackage.org, see https://www.jpackage.org/bugzilla/show_bug.cgi?id=163 Let me know if you'd like the RPM or src RPM. Cheers JP Wolfgang Engelmann wrote: >Am Donnerstag, 26. Januar 2006 22:08 schrieb Caspar: > > >>Having seen that this is possible. i'd like to do the same, alas i am >>having problems >> >>on OSX and just transferred to LyX137 >>so i changed my JabRef lyxpipe entry to.. >> >>~/Library/Application Support/LyX/.lyxpipe >> >>gave me an error that i ought to verify that lxypipe is valid >> >> > >have you checked that /.lyx/ contains lyxpipe.in and lyxpipe out? > >Wolfgang > > > -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
PDfs from Linux have nasty fonts
Hi there, I use the Lyx pdflatex option to produce a PDF of my thesis-in-progress. When I view the PDF in Linux (I'm using standard FC4 packages, evince 4.0.0 is the PDF viewer) the characters in the (standard) font looks slightly bunched up. When I view the same PDF in Windows (Acrobat 4.0) the fonts look OK at high levels of zoom, but at normal two-pages-on-a screen zoom, the fonts are almost illegible. And when I print out the document from Windows, the fonts look rather jagged. I've got PDFs from other Linux / Latex users which have fonts that look fine. This seems to be a very common problem with PDFs produced on Linux which are then used by Windows people. Is there a known solution? I've tried to find information on this but haven't seen anything relevant. I can send screenshots if you need. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/