Re: Problem using old Lyx document
Thanks for your quick reply and sorry for the confusion. The .lyx document can be printed now, and every letter and picture is on the pages. So, in principle the main problem (text outside the page boundaries) is solved. But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. With the document class changed to article (KOMA-script) the empty pages disappear and the newpage lyx command is ignored. Regards, Michael Uwe Stöhr schrieb: Hmm, so don't specify the paper size. This is not necessary, the default should do the job. Also assure that you don't have set margins explicitly in the document settings. Finally, set the document class to article (KOMA-script) (or another KOMA-script class). This class comes with the best print space calculation I know. Therefore by just using it, will automatically calculate everything correctly. If you still don#t get it to work, have a look in the document settings of the LyX UserGuide (except of its preamble). Take these settings and it will work. regards Uwe p.s. see also my private mail
Re: Import and export to many formats...
Νίκος: All this is very far from what the statement implies (e.g. out-of-the-box import/export). Isn't, this statement, a bit/too much? Uwe: Personally, I agree with you but there are several users around using tex4ht on TeXLive who are confident with the OpenDocument conversion capabilities of tex4ht. (Just for the records) # install texlive sudo apt-get install texlive #run texhash sudo texhash # reconfigure LyX (...a couple of times?) # quit re-launch LyX - Indeed, some entries (HTML and OpenDocument) poped-up in the import/export options. - HTML seems to work (but I could perform this, .tex.html, before, also using texmacs) and its more or less acceptable. - OpenDocument doesn't work as already mentioned several time in the list. Perhaps it works with (over-)simple(-ified) documents (?) - Export to HTML (M$-Word) (that is the option under export) != M$-Word (what the Features page implies). - .rtf still does not work. Please, let me know if I am doing something wrong, or forgot an important package to install. Kind regards, Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: In the Features [1] page the visitor reads, among other details: Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII, HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable converters. Am I the only LyX user who is having so much trouble to export .lyx files in these file formats? Please, let me know how I could export, _without_ the need to search in the internet for just a simple example, lets say to... M$ Windowz. The conversions depends on external software. This must be installed before conversion is possible. Some conversions can be done in several ways, with different programs. Some programs do a better job than others, so you might get bad results if all you have is the worst program. Do not expect all the conversions to yield good results in all cases. Most of the formats you can export to, is only partially compatible with LyX. So the converted document will at best be different, and at worst be useless. Conversion to latex is about the only conversion that always works perfectly. Conversions to pdf, dvi and postscript goes through latex and is normally perfect. But documents using special features may fail in some of these conversions. For example, dvi does not support pstricks. All other formats have less than perfect conversions. ASCII obviously looses most of the formatting, as it doesn't support fonts and images. But then, nobody expects more from ASCII. Not all features are supported in HTML, so some things may be missing. Still, LyX can be ok for writing html if you avoid some features. opendocument/rtf/word is particularly troublesome. The three are compatible, and therefore all have the same problems. This is a word processor format with a simpler feature set than LyX, so a perfect conversion will never be possible. In particular, any such conversion will loose the good line and page breaking and the hyphenation that LyX does so well. After conversion, a document can merely look like a word document, not better. Also, this converter is far from finished. Much better conversion to word is _possible_, but it looks like nobody/few is interested in working on that for free. Developers tend to want to improve LyX itself rather than the converters, removing the need for word rather than adding compatibility. Helge Hafting
Re: Use \nprounddigits for all cells in a table
Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). I 've installed the numprint package which does the rounding of the numbers. But I wonder: how I could perform rounding-up numbers contained in (all) cells in a given table at once? Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? If you have enough cells, then consider writing a script to modify the lyx file. It might be less work. How come you have a big table with too many decimals anyway? I guess you didn't actually type in lots of unnecessary decimals, is this table produced automatically somehow? Maybe it could be produced with rounding from the start? Helge Hafting
Re: Problem using old Lyx document
Michael Born schrieb: But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? Yes. But in your files no page margins were set. The margins were once created by the a4 package. The bug was that LyX once used such a deprecated package. (a4 was already deprecated when LyX 1.1 was actual.) My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. Then you have no other choice than to install LyX 1.1 AND an old TeX-distribution, I assume teTeX 2.0.2. If this is not possible, have a look in forums to be able to use the a4 package correctly. With the document class changed to article (KOMA-script) the empty pages disappear Yes, because this is an article class and because your document is single-sided. If you need white pages, then at least use double-sided. and the newpage lyx command is ignored. I cannot reproduce this. This works fine in the LyX documentation files that also use KOMA-script. regards Uwe
Re: Import and export to many formats...
Νίκος Αλεξανδρής schrieb: All this is very far from what the statement implies (e.g. out-of-the-box import/export). Isn't, this statement, a bit/too much? Personally, I agree with you but there are several users around using tex4ht on TeXLive who are confident with the OpenDocument conversion capabilities of tex4ht. Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? OK, then please report this issue again on the lyx-devel mailing list. If there is nobody who can show you that it works, we'll remove the statement about the converters from our web page. regards Uwe
Re: Import and export to many formats...
On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. Best, Ethan
Re: Problem using old Lyx document
On 2010-03-03, Michael Born wrote: But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? Why can't you measure the margins and set them manually (DokumentEinstellungenSeitenränder)? Alternatively, you can search the web (or your hard disk) for a4.sty and look up the dimensions there. My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. With the document class changed to article (KOMA-script) the empty pages disappear and the newpage lyx command is ignored. KOMA-script will do some more changes (for the better, in my opinion) but when the PDF shall look like the old printout, you'd better leave the documentclass as is. Günter
Re: Use \nprounddigits for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). I 've installed the numprint package which does the rounding of the numbers. But I wonder: how I could perform rounding-up numbers contained in (all) cells in a given table at once? Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? If you have enough cells, then consider writing a script to modify the lyx file. It might be less work. Yes, that would be another solution (under bash for me, should not be difficult). But, hey, why not within LyX/LaTeX? There is also rccol (I am reading about it right now...). How come you have a big table with too many decimals anyway? I guess you didn't actually type in lots of unnecessary decimals, of course not! is this table produced automatically somehow? Yes. Eigenvectors, result of a Principal Component Analysis derived (exported as csv) from R and imported in LyX, many tables. Maybe it could be produced with rounding from the start? Yes, it can. But I want to keep the values just in case... and I thought it would be less work to just round-up them up in LyX/LaTeX than produce another table from R. Maybe it isn't that easy after all. + (very important) I am keen to learn how this is to be done in LyX/LaTeX. Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? Ethan Metsger wrote: It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: Please, let me know if I am doing something wrong, or forgot an important package to install. apt-get install tex4ht latex2rtf At some point the tex4ht package in Debian was not working but now it is in good shape, I think. Nevertheless tex4ht is a complex and fragile beast. Specially at the end of an odt conversion, tex4ht uses a small java program to create the odt zip file and that program only works with the sun java (curse, curse java). It is better to run tex4ht from the command line on an exported LaTeX file than to do it from the menu. There, you can see the error messages. Charles
Re: Import and export to many formats...
Hi Nikos, To get ODF to work, you must have Sun Java installed from the restricted repositories. If you don't install that version, it won't work. Cheers, Rob Oakes Sent from Rob's Palm On Mar 3, 2010, at 8:17 AM, Νίκος Αλεξανδρής nikos.alexand...@felis. uni-freiburg.de wrote: Νίκος Αλεξανδρής wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? Ethan Metsger wrote: It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] On Wed, 2010-03-03 at 10:42 -0500, Ethan Metsger wrote: I put together the attached files. It doesn't look like the references are perfectly resolved, though for the most part it seems okay to me. Again, this is pretty simple, and I haven't done much work with indexing and cross-reference in my documents, but for the most part it seems okay. It didn't work when I embedded Unicode (no surprises there), but the export otherwise worked nicely enough. My Ubuntu install is pretty stock, outside of whatever work requirements for development are installed--I haven't installed anything extra that should make it work differently for you. Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) Nikos
Re: Import and export to many formats...
On Wed, 2010-03-03 at 08:43 -0700, Rob Oakes wrote: Hi Nikos, To get ODF to work, you must have Sun Java installed from the restricted repositories. If you don't install that version, it won't work. I'll check this out although I think I have Sun's java as default in my system. Thank you, Nikos signature.asc Description: This is a digitally signed message part
Re: Box with heading?
Mats Andrén wrote: I wonder if it is somehow possible to create a text box in LyX that has a heading in the border line of the box? What I am looking for is possible in html/ccs, and you can see one example here at the bottom of the page where it says Membership blah blah: http://www.salc-sssk.org/?p=join Depending on what output format you need, you can at least come close. You'll need the fancybox and pstricks packages. I'm attaching a small example, using code I shamelessly cribbed from the fancybox documentation (ca. page 16). View Postscript and View PDF (ps2pdf) produce something plausible. View DVI and View PDF (dvipdfm) produce everything except the box border. View PDF (pdflatex) causes dogs to howl. /Paul titledbox.lyx Description: application/lyx
Re: References not numbering correctly
Thanks to rgheck I now have a workaround. I can use the short title option on the captions with references (insertshort title) and into the short title I insert my caption with the reference replaced by a manually entered number. Slightly clunky but it works. Cheers -- View this message in context: http://n2.nabble.com/References-not-numbering-correctly-tp4654231p4668661.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Branches…
Hello, thank you all. I will indeed make a copy an delete the parts I do not want to be printed, this is less effort definitely. I am everything, but a programmer… Thanks again, best Jess Yes, this would be a way, but a uncomfortable way: As my main text is very long and has lots of branches, it would be much more convenient, if there would be a possibility to disable the main text. Otherwise I would have to put quite a few parts into a new branch. Is there no other way? LyX offer no other way. There is no way to disable anything that is not in some branch. I can see two ways: * Add all those branches to the rest. * Make a copy of the document, where you delete what you don't want. If you are a programmer, then you have more options: * Make a script that removes anything not in a branch from a copy of the .lyx file. Then open the reduced copy in lyx, and print it. Might not be that hard, if you use a scripting language that is good for text processing. * Or, make a script that stuffs everything that isn't in some branch already, into a new branch. * If you know C++: implement what you want in LyX.
Bibtex question. How do I insert scans of covers.
hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe Hope it is clear. Thanks a lot mario
Re: Use rccol for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). ... Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? OK, I've done some progress. I can load \usepackage{rccol} in the Preamble, and then, in the Table Settings, in the LaTeX argument field fill in something like: R[,][.]13 (without the quotes of course). Now this works when the value in this cell has a comma as a separator, e.g.: 0,3364205. The result in the pdf is, as expected, 0.336 I came up of using a comma because this would not work with a point (?). I use in the arguments the following: R[.][.]13 (which, according to the rccol manual can be written as R[.]13) but nothing... I get a strange result which is: 03364205.000. Looking closer at the source (in LyX) I see that there is a _space_ between the integer and the decimals of the cell-number. Why is that so? Is this the problem? And why does it work with the comma then? I know that the package is set to use comma as default. The option [point] or [english] while loading rccol in the Preamble does not help as well. Any idea(s)? And let's say this will work somehow (using the point), is there a magic way to apply a given LaTeX argument to all cells in a table? Thanks, Nikos signature.asc Description: This is a digitally signed message part
Re: Bibtex question. How do I insert scans of covers.
On 03/03/2010 12:22 PM, mario wrote: hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe This is what the crossref field is for. Put the key of the other entry, e.g.: @INCOLLECTION{HeckMay:FregesContribution, author = {Richard Heck and Robert May}, title = {Frege's Contribution to Philosophy of Language}, pages = {3--39}, crossref = {LeporeSmith:PhilLang}, owner = {rgheck}, timestamp = {2008.06.18} } rh
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:51:50 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) I don't know of any reason this would be a problem--like I said, Beamer presentations were converted, although the formatting was lost and very ugly. I don't use ODF much at all, so I honestly can't tell you what could be wrong. You can check the output of the tex4ht process if you run lyx in a terminal. Maybe it will provide some additional clues. Best, Ethan
lyx and beamer class
Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Thanks, Giovanni
Re: lyx and beamer class
Giovanni Bacci s206...@... writes: Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Start an itemize list, put the cursor at the start of the first item, click Insert Short Title (the fact that the menu label is not intuitive has been discussed before), and type in +- (but not the brackets). /Paul
Re: Re: Bibtex question. How do I insert scans of covers.
Hi thanks mario ps nice paper too! -- rgheck wrote: On 03/03/2010 12:22 PM, mario wrote: hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe This is what the crossref field is for. Put the key of the other entry, e.g.: @INCOLLECTION{HeckMay:FregesContribution, author = {Richard Heck and Robert May}, title = {Frege's Contribution to Philosophy of Language}, pages = {3--39}, crossref = {LeporeSmith:PhilLang}, owner = {rgheck}, timestamp = {2008.06.18} } rh
Re: lyx and beamer class
mercoledì 03 marzo 2010, 20:07, Paul Rubin: Giovanni Bacci s206...@... writes: Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Start an itemize list, put the cursor at the start of the first item, click Insert Short Title (the fact that the menu label is not intuitive has been discussed before), and type in +- (but not the brackets). worked like a charm! Thanks for the trick. G.
Re: Import and export to many formats...
On Wed, 03 Mar 2010 08:58:57 -0500 Ethan Metsger emets...@obj-sys.com wrote: On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. Best, Ethan I have mentioned this before, but even I keep forgetting it. oolatex (the script in tex4ht that does the conversion to OO files) will choke on the non-Sun Java JRE that is installed by default on Debian. It looks like it runs, but gives an empty document. I have converted textbooks of some 600 pages using many cross-references, multiple indexes and bibliographies using the Memoir class. It is seldom perfect, but plenty good enough for publishers (I think mine still uses hot type, but I could be mistaken :-)). Cheers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206
Re: Import and export to many formats...
Hi Nikos, 2010/3/2 Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de: Fortunately or Unfortunately, I am aware of all the things you mention. - I've been testing eLyXer since its first days (thanks to Alexander again for this nice tool) Thanks to you! - I (also?) believe the best way (currently) is to export (somehow) in html and then OOo/abiword - M$-Word. To export to Word the best way is IMHO to export using eLyXer with the --html option: $ elyxer --html input.lyx output.html And then import from Word. The reason for this --html option is that Word does not like the default XHTML too much. The same can be said for OpenOffice; I have had no luck importing from Abiword at all. Alex.
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:10 +0100, Alex Fernandez wrote: To export to Word the best way is IMHO to export using eLyXer with the --html option: $ elyxer --html input.lyx output.html And then import from Word. The reason for this --html option is that Word does not like the default XHTML too much. The same can be said for OpenOffice; I have had no luck importing from Abiword at all. You have a point here. Comparing the different tests I did, it seems to be (currently) the best option. Nikos
Re: Import and export to many formats...
On 2010-03-03, Νίκος Αλεξανδρής wrote: On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). Is your article in Greek? Maybe this is the showstopper. Also, running the conversion by hand and reporting the errors might give more insight to us all. Günter
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:36 +, Guenter Milde wrote: On 2010-03-03, Νίκος Αλεξανδρής wrote: On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). Is your article in Greek? Maybe this is the showstopper. No, no Guenter. It's all english stuff. Just the usual stuff: title, sections, subsections, tables, nested items, a few footnotes, references, LyX labels, LyX notes, no figures yet. [Below some details.] Also, running the conversion by hand and reporting the errors might give more insight to us all. Right. I'll try to spend some time on this tomorrow. Thanks, Nikos //---// #LyX 1.6.5 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % colors \usepackage{color} % trying to round-up numbers \usepackage[english]{rccol} % landscaped table \usepackage{lscape} % scale tables \usepackage{graphicx} % ? \usepackage{epsfig} \end_preamble \use_default_options false \begin_modules logicalmkup minimalistic \end_modules \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \float_placement h \paperfontsize default \spacing double \use_hyperref true \pdf_title ... \pdf_author Nikos Alexandris \pdf_subject ... \pdf_keywords ... \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 0 \pdf_breaklinks false \pdf_pdfborder true \pdf_colorlinks true \pdf_backref section \pdf_pdfusetitle true \papersize a4paper \use_geometry true \use_amsmath 0 \use_esint 0 \cite_engine basic \use_bibtopic false \paperorientation portrait \leftmargin 2cm \topmargin 2cm \rightmargin 2cm \bottommargin 2cm \secnumdepth 2 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 0 9 -1 \bullet 2 1 31 -1 \bullet 3 0 17 -1 \tracking_changes false \output_changes false \author \author \end_header //---//
REVTeX 4.1 layout: alpha
Hi lyx-users, REVTeX 4.1 was recently released and all APS and AIP journals require this format which may be backwards-incompatible with v4.0. I've the extended revtex4.layout that accompanies LyX to revtex4-1.layout and am attaching it. I request help with testing the layout. I have ported the sample document aipsamp.tex that comes with the REVTeX 4.1 distribution to a lyx file and the PDFs generated from both sources are almost identical so I believe I have addressed most of the issues. This list doesn't accept emails over 60kB so I am able to attach only the layout. Should someone be interested in the other files, please contact me directly by email at this address. Thanks, Manoj Rajagopalan #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{article (REVTeX 4.1)} # RevTeX 4.1 textclass definition file. Based on: # AMS-Article textclass definition file. Taken from initial LyX source code # and from the Article textclass definition file, following the AMS sample # paper testmath.tex of January, 1995 # Author : David L. Johnson d...@lehigh.edu (AMS) # Marc Mengel (RevTeX) # Amir Karger (LyX v11.34 style modifications) # Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 # Manoj Rajagopalan (RevTeX 4.1) 1/2010 Format 19 Columns 1 Sides 1 PageStyle Headers Provides natbib-internal1 Provides url1 # Default textclass options. The user may need to modify this. ClassOptions Other manuscript End Preamble \...@ifundefined{textcolor}{} {% \definecolor{BLACK}{gray}{0} \definecolor{WHITE}{gray}{1} \definecolor{RED}{rgb}{1,0,0} \definecolor{GREEN}{rgb}{0,1,0} \definecolor{BLUE}{rgb}{0,0,1} \definecolor{CYAN}{cmyk}{1,0,0,0} \definecolor{MAGENTA}{cmyk}{0,1,0,0} \definecolor{YELLOW}{cmyk}{0,0,1,0} } EndPreamble Style Standard MarginStatic LatexType Paragraph LatexName dummy ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left, Right, Center LabelType No_Label End # Idea from aapaper: declare all layouts here (Style Foo\nEnd\n) # so that they appear in a specific order in the layout dropdown menu. Input stdinsets.inc Input stdsections.inc Input numrevtex.inc Style Section Align Center AlignPossible Block, Center, Left Font Series Medium Shape Smallcaps SizeLarge EndFont TocLevel 1 End Style Subsection Font Series Bold SizeNormal EndFont TocLevel 2 End Style Subsubsection Font # Shape Italic SizeNormal EndFont TocLevel 3 End Style Paragraph TopSep0.7 ParSep0.4 Font Shape Italic SizeNormal EndFont TocLevel 4 End # then define the unumbered sections, based on the numbered ones. Input stdstarsections.inc NoStyle Chapter NoStyle Chapter* NoStyle Subparagraph NoStyle Subparagraph* Input stdlayouts.inc Input stdlists.inc Input stdtitle.inc Input stdstruct.inc Style Preprint MarginRight_Address_Box LatexType Command InTitle 1 LatexName preprint ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left End Style Title Font Series Bold SizeLarge EndFont OptionalArgs 1 End Style Author Font SizeLarge # Shape Smallcaps EndFont End Style Date LabelType Static LabelString Date: LabelFont Shape Italic SizeLarge EndFont End Style Affiliation MarginDynamic LatexType Command InTitle 1 LatexName affiliation ParSkip 0.4 # BottomSep1.5 # ParSep 1.5 Align Center AlignPossible Block, Left, Right, Center LabelType Static LabelSep M LabelString Affiliation: LabelFont Shape Italic EndFont End Style AltAffiliation CopyStyle Affiliation PassThru
Re: Problem using old Lyx document
Thanks for your quick reply and sorry for the confusion. The .lyx document can be printed now, and every letter and picture is on the pages. So, in principle the main problem (text outside the page boundaries) is solved. But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. With the document class changed to article (KOMA-script) the empty pages disappear and the newpage lyx command is ignored. Regards, Michael Uwe Stöhr schrieb: Hmm, so don't specify the paper size. This is not necessary, the default should do the job. Also assure that you don't have set margins explicitly in the document settings. Finally, set the document class to article (KOMA-script) (or another KOMA-script class). This class comes with the best print space calculation I know. Therefore by just using it, will automatically calculate everything correctly. If you still don#t get it to work, have a look in the document settings of the LyX UserGuide (except of its preamble). Take these settings and it will work. regards Uwe p.s. see also my private mail
Re: Import and export to many formats...
Νίκος: All this is very far from what the statement implies (e.g. out-of-the-box import/export). Isn't, this statement, a bit/too much? Uwe: Personally, I agree with you but there are several users around using tex4ht on TeXLive who are confident with the OpenDocument conversion capabilities of tex4ht. (Just for the records) # install texlive sudo apt-get install texlive #run texhash sudo texhash # reconfigure LyX (...a couple of times?) # quit re-launch LyX - Indeed, some entries (HTML and OpenDocument) poped-up in the import/export options. - HTML seems to work (but I could perform this, .tex.html, before, also using texmacs) and its more or less acceptable. - OpenDocument doesn't work as already mentioned several time in the list. Perhaps it works with (over-)simple(-ified) documents (?) - Export to HTML (M$-Word) (that is the option under export) != M$-Word (what the Features page implies). - .rtf still does not work. Please, let me know if I am doing something wrong, or forgot an important package to install. Kind regards, Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: In the Features [1] page the visitor reads, among other details: Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII, HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable converters. Am I the only LyX user who is having so much trouble to export .lyx files in these file formats? Please, let me know how I could export, _without_ the need to search in the internet for just a simple example, lets say to... M$ Windowz. The conversions depends on external software. This must be installed before conversion is possible. Some conversions can be done in several ways, with different programs. Some programs do a better job than others, so you might get bad results if all you have is the worst program. Do not expect all the conversions to yield good results in all cases. Most of the formats you can export to, is only partially compatible with LyX. So the converted document will at best be different, and at worst be useless. Conversion to latex is about the only conversion that always works perfectly. Conversions to pdf, dvi and postscript goes through latex and is normally perfect. But documents using special features may fail in some of these conversions. For example, dvi does not support pstricks. All other formats have less than perfect conversions. ASCII obviously looses most of the formatting, as it doesn't support fonts and images. But then, nobody expects more from ASCII. Not all features are supported in HTML, so some things may be missing. Still, LyX can be ok for writing html if you avoid some features. opendocument/rtf/word is particularly troublesome. The three are compatible, and therefore all have the same problems. This is a word processor format with a simpler feature set than LyX, so a perfect conversion will never be possible. In particular, any such conversion will loose the good line and page breaking and the hyphenation that LyX does so well. After conversion, a document can merely look like a word document, not better. Also, this converter is far from finished. Much better conversion to word is _possible_, but it looks like nobody/few is interested in working on that for free. Developers tend to want to improve LyX itself rather than the converters, removing the need for word rather than adding compatibility. Helge Hafting
Re: Use \nprounddigits for all cells in a table
Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). I 've installed the numprint package which does the rounding of the numbers. But I wonder: how I could perform rounding-up numbers contained in (all) cells in a given table at once? Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? If you have enough cells, then consider writing a script to modify the lyx file. It might be less work. How come you have a big table with too many decimals anyway? I guess you didn't actually type in lots of unnecessary decimals, is this table produced automatically somehow? Maybe it could be produced with rounding from the start? Helge Hafting
Re: Problem using old Lyx document
Michael Born schrieb: But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? Yes. But in your files no page margins were set. The margins were once created by the a4 package. The bug was that LyX once used such a deprecated package. (a4 was already deprecated when LyX 1.1 was actual.) My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. Then you have no other choice than to install LyX 1.1 AND an old TeX-distribution, I assume teTeX 2.0.2. If this is not possible, have a look in forums to be able to use the a4 package correctly. With the document class changed to article (KOMA-script) the empty pages disappear Yes, because this is an article class and because your document is single-sided. If you need white pages, then at least use double-sided. and the newpage lyx command is ignored. I cannot reproduce this. This works fine in the LyX documentation files that also use KOMA-script. regards Uwe
Re: Import and export to many formats...
Νίκος Αλεξανδρής schrieb: All this is very far from what the statement implies (e.g. out-of-the-box import/export). Isn't, this statement, a bit/too much? Personally, I agree with you but there are several users around using tex4ht on TeXLive who are confident with the OpenDocument conversion capabilities of tex4ht. Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? OK, then please report this issue again on the lyx-devel mailing list. If there is nobody who can show you that it works, we'll remove the statement about the converters from our web page. regards Uwe
Re: Import and export to many formats...
On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. Best, Ethan
Re: Problem using old Lyx document
On 2010-03-03, Michael Born wrote: But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? Why can't you measure the margins and set them manually (DokumentEinstellungenSeitenränder)? Alternatively, you can search the web (or your hard disk) for a4.sty and look up the dimensions there. My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of official document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. With the document class changed to article (KOMA-script) the empty pages disappear and the newpage lyx command is ignored. KOMA-script will do some more changes (for the better, in my opinion) but when the PDF shall look like the old printout, you'd better leave the documentclass as is. Günter
Re: Use \nprounddigits for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). I 've installed the numprint package which does the rounding of the numbers. But I wonder: how I could perform rounding-up numbers contained in (all) cells in a given table at once? Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? If you have enough cells, then consider writing a script to modify the lyx file. It might be less work. Yes, that would be another solution (under bash for me, should not be difficult). But, hey, why not within LyX/LaTeX? There is also rccol (I am reading about it right now...). How come you have a big table with too many decimals anyway? I guess you didn't actually type in lots of unnecessary decimals, of course not! is this table produced automatically somehow? Yes. Eigenvectors, result of a Principal Component Analysis derived (exported as csv) from R and imported in LyX, many tables. Maybe it could be produced with rounding from the start? Yes, it can. But I want to keep the values just in case... and I thought it would be less work to just round-up them up in LyX/LaTeX than produce another table from R. Maybe it isn't that easy after all. + (very important) I am keen to learn how this is to be done in LyX/LaTeX. Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? Ethan Metsger wrote: It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: Please, let me know if I am doing something wrong, or forgot an important package to install. apt-get install tex4ht latex2rtf At some point the tex4ht package in Debian was not working but now it is in good shape, I think. Nevertheless tex4ht is a complex and fragile beast. Specially at the end of an odt conversion, tex4ht uses a small java program to create the odt zip file and that program only works with the sun java (curse, curse java). It is better to run tex4ht from the command line on an exported LaTeX file than to do it from the menu. There, you can see the error messages. Charles
Re: Import and export to many formats...
Hi Nikos, To get ODF to work, you must have Sun Java installed from the restricted repositories. If you don't install that version, it won't work. Cheers, Rob Oakes Sent from Rob's Palm On Mar 3, 2010, at 8:17 AM, Νίκος Αλεξανδρής nikos.alexand...@felis. uni-freiburg.de wrote: Νίκος Αλεξανδρής wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? Ethan Metsger wrote: It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] On Wed, 2010-03-03 at 10:42 -0500, Ethan Metsger wrote: I put together the attached files. It doesn't look like the references are perfectly resolved, though for the most part it seems okay to me. Again, this is pretty simple, and I haven't done much work with indexing and cross-reference in my documents, but for the most part it seems okay. It didn't work when I embedded Unicode (no surprises there), but the export otherwise worked nicely enough. My Ubuntu install is pretty stock, outside of whatever work requirements for development are installed--I haven't installed anything extra that should make it work differently for you. Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) Nikos
Re: Import and export to many formats...
On Wed, 2010-03-03 at 08:43 -0700, Rob Oakes wrote: Hi Nikos, To get ODF to work, you must have Sun Java installed from the restricted repositories. If you don't install that version, it won't work. I'll check this out although I think I have Sun's java as default in my system. Thank you, Nikos signature.asc Description: This is a digitally signed message part
Re: Box with heading?
Mats Andrén wrote: I wonder if it is somehow possible to create a text box in LyX that has a heading in the border line of the box? What I am looking for is possible in html/ccs, and you can see one example here at the bottom of the page where it says Membership blah blah: http://www.salc-sssk.org/?p=join Depending on what output format you need, you can at least come close. You'll need the fancybox and pstricks packages. I'm attaching a small example, using code I shamelessly cribbed from the fancybox documentation (ca. page 16). View Postscript and View PDF (ps2pdf) produce something plausible. View DVI and View PDF (dvipdfm) produce everything except the box border. View PDF (pdflatex) causes dogs to howl. /Paul titledbox.lyx Description: application/lyx
Re: References not numbering correctly
Thanks to rgheck I now have a workaround. I can use the short title option on the captions with references (insertshort title) and into the short title I insert my caption with the reference replaced by a manually entered number. Slightly clunky but it works. Cheers -- View this message in context: http://n2.nabble.com/References-not-numbering-correctly-tp4654231p4668661.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Branches…
Hello, thank you all. I will indeed make a copy an delete the parts I do not want to be printed, this is less effort definitely. I am everything, but a programmer… Thanks again, best Jess Yes, this would be a way, but a uncomfortable way: As my main text is very long and has lots of branches, it would be much more convenient, if there would be a possibility to disable the main text. Otherwise I would have to put quite a few parts into a new branch. Is there no other way? LyX offer no other way. There is no way to disable anything that is not in some branch. I can see two ways: * Add all those branches to the rest. * Make a copy of the document, where you delete what you don't want. If you are a programmer, then you have more options: * Make a script that removes anything not in a branch from a copy of the .lyx file. Then open the reduced copy in lyx, and print it. Might not be that hard, if you use a scripting language that is good for text processing. * Or, make a script that stuffs everything that isn't in some branch already, into a new branch. * If you know C++: implement what you want in LyX.
Bibtex question. How do I insert scans of covers.
hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe Hope it is clear. Thanks a lot mario
Re: Use rccol for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). ... Is there an alternative (faste, easier) to numprint? If not, is there a way to loop over all cells and apply something like \nprounddigits{3}? OK, I've done some progress. I can load \usepackage{rccol} in the Preamble, and then, in the Table Settings, in the LaTeX argument field fill in something like: R[,][.]13 (without the quotes of course). Now this works when the value in this cell has a comma as a separator, e.g.: 0,3364205. The result in the pdf is, as expected, 0.336 I came up of using a comma because this would not work with a point (?). I use in the arguments the following: R[.][.]13 (which, according to the rccol manual can be written as R[.]13) but nothing... I get a strange result which is: 03364205.000. Looking closer at the source (in LyX) I see that there is a _space_ between the integer and the decimals of the cell-number. Why is that so? Is this the problem? And why does it work with the comma then? I know that the package is set to use comma as default. The option [point] or [english] while loading rccol in the Preamble does not help as well. Any idea(s)? And let's say this will work somehow (using the point), is there a magic way to apply a given LaTeX argument to all cells in a table? Thanks, Nikos signature.asc Description: This is a digitally signed message part
Re: Bibtex question. How do I insert scans of covers.
On 03/03/2010 12:22 PM, mario wrote: hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe This is what the crossref field is for. Put the key of the other entry, e.g.: @INCOLLECTION{HeckMay:FregesContribution, author = {Richard Heck and Robert May}, title = {Frege's Contribution to Philosophy of Language}, pages = {3--39}, crossref = {LeporeSmith:PhilLang}, owner = {rgheck}, timestamp = {2008.06.18} } rh
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:51:50 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) I don't know of any reason this would be a problem--like I said, Beamer presentations were converted, although the formatting was lost and very ugly. I don't use ODF much at all, so I honestly can't tell you what could be wrong. You can check the output of the tex4ht process if you run lyx in a terminal. Maybe it will provide some additional clues. Best, Ethan
lyx and beamer class
Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Thanks, Giovanni
Re: lyx and beamer class
Giovanni Bacci s206...@... writes: Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Start an itemize list, put the cursor at the start of the first item, click Insert Short Title (the fact that the menu label is not intuitive has been discussed before), and type in +- (but not the brackets). /Paul
Re: Re: Bibtex question. How do I insert scans of covers.
Hi thanks mario ps nice paper too! -- rgheck wrote: On 03/03/2010 12:22 PM, mario wrote: hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe This is what the crossref field is for. Put the key of the other entry, e.g.: @INCOLLECTION{HeckMay:FregesContribution, author = {Richard Heck and Robert May}, title = {Frege's Contribution to Philosophy of Language}, pages = {3--39}, crossref = {LeporeSmith:PhilLang}, owner = {rgheck}, timestamp = {2008.06.18} } rh
Re: lyx and beamer class
mercoledì 03 marzo 2010, 20:07, Paul Rubin: Giovanni Bacci s206...@... writes: Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[+-] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Start an itemize list, put the cursor at the start of the first item, click Insert Short Title (the fact that the menu label is not intuitive has been discussed before), and type in +- (but not the brackets). worked like a charm! Thanks for the trick. G.
Re: Import and export to many formats...
On Wed, 03 Mar 2010 08:58:57 -0500 Ethan Metsger emets...@obj-sys.com wrote: On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. Best, Ethan I have mentioned this before, but even I keep forgetting it. oolatex (the script in tex4ht that does the conversion to OO files) will choke on the non-Sun Java JRE that is installed by default on Debian. It looks like it runs, but gives an empty document. I have converted textbooks of some 600 pages using many cross-references, multiple indexes and bibliographies using the Memoir class. It is seldom perfect, but plenty good enough for publishers (I think mine still uses hot type, but I could be mistaken :-)). Cheers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206
Re: Import and export to many formats...
Hi Nikos, 2010/3/2 Νίκος Αλεξανδρής nikos.alexand...@felis.uni-freiburg.de: Fortunately or Unfortunately, I am aware of all the things you mention. - I've been testing eLyXer since its first days (thanks to Alexander again for this nice tool) Thanks to you! - I (also?) believe the best way (currently) is to export (somehow) in html and then OOo/abiword - M$-Word. To export to Word the best way is IMHO to export using eLyXer with the --html option: $ elyxer --html input.lyx output.html And then import from Word. The reason for this --html option is that Word does not like the default XHTML too much. The same can be said for OpenOffice; I have had no luck importing from Abiword at all. Alex.
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:10 +0100, Alex Fernandez wrote: To export to Word the best way is IMHO to export using eLyXer with the --html option: $ elyxer --html input.lyx output.html And then import from Word. The reason for this --html option is that Word does not like the default XHTML too much. The same can be said for OpenOffice; I have had no luck importing from Abiword at all. You have a point here. Comparing the different tests I did, it seems to be (currently) the best option. Nikos
Re: Import and export to many formats...
On 2010-03-03, Νίκος Αλεξανδρής wrote: On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). Is your article in Greek? Maybe this is the showstopper. Also, running the conversion by hand and reporting the errors might give more insight to us all. Günter
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:36 +, Guenter Milde wrote: On 2010-03-03, Νίκος Αλεξανδρής wrote: On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). Is your article in Greek? Maybe this is the showstopper. No, no Guenter. It's all english stuff. Just the usual stuff: title, sections, subsections, tables, nested items, a few footnotes, references, LyX labels, LyX notes, no figures yet. [Below some details.] Also, running the conversion by hand and reporting the errors might give more insight to us all. Right. I'll try to spend some time on this tomorrow. Thanks, Nikos //---// #LyX 1.6.5 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % colors \usepackage{color} % trying to round-up numbers \usepackage[english]{rccol} % landscaped table \usepackage{lscape} % scale tables \usepackage{graphicx} % ? \usepackage{epsfig} \end_preamble \use_default_options false \begin_modules logicalmkup minimalistic \end_modules \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \float_placement h \paperfontsize default \spacing double \use_hyperref true \pdf_title ... \pdf_author Nikos Alexandris \pdf_subject ... \pdf_keywords ... \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 0 \pdf_breaklinks false \pdf_pdfborder true \pdf_colorlinks true \pdf_backref section \pdf_pdfusetitle true \papersize a4paper \use_geometry true \use_amsmath 0 \use_esint 0 \cite_engine basic \use_bibtopic false \paperorientation portrait \leftmargin 2cm \topmargin 2cm \rightmargin 2cm \bottommargin 2cm \secnumdepth 2 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 0 9 -1 \bullet 2 1 31 -1 \bullet 3 0 17 -1 \tracking_changes false \output_changes false \author \author \end_header //---//
REVTeX 4.1 layout: alpha
Hi lyx-users, REVTeX 4.1 was recently released and all APS and AIP journals require this format which may be backwards-incompatible with v4.0. I've the extended revtex4.layout that accompanies LyX to revtex4-1.layout and am attaching it. I request help with testing the layout. I have ported the sample document aipsamp.tex that comes with the REVTeX 4.1 distribution to a lyx file and the PDFs generated from both sources are almost identical so I believe I have addressed most of the issues. This list doesn't accept emails over 60kB so I am able to attach only the layout. Should someone be interested in the other files, please contact me directly by email at this address. Thanks, Manoj Rajagopalan #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{article (REVTeX 4.1)} # RevTeX 4.1 textclass definition file. Based on: # AMS-Article textclass definition file. Taken from initial LyX source code # and from the Article textclass definition file, following the AMS sample # paper testmath.tex of January, 1995 # Author : David L. Johnson d...@lehigh.edu (AMS) # Marc Mengel (RevTeX) # Amir Karger (LyX v11.34 style modifications) # Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 # Manoj Rajagopalan (RevTeX 4.1) 1/2010 Format 19 Columns 1 Sides 1 PageStyle Headers Provides natbib-internal1 Provides url1 # Default textclass options. The user may need to modify this. ClassOptions Other manuscript End Preamble \...@ifundefined{textcolor}{} {% \definecolor{BLACK}{gray}{0} \definecolor{WHITE}{gray}{1} \definecolor{RED}{rgb}{1,0,0} \definecolor{GREEN}{rgb}{0,1,0} \definecolor{BLUE}{rgb}{0,0,1} \definecolor{CYAN}{cmyk}{1,0,0,0} \definecolor{MAGENTA}{cmyk}{0,1,0,0} \definecolor{YELLOW}{cmyk}{0,0,1,0} } EndPreamble Style Standard MarginStatic LatexType Paragraph LatexName dummy ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left, Right, Center LabelType No_Label End # Idea from aapaper: declare all layouts here (Style Foo\nEnd\n) # so that they appear in a specific order in the layout dropdown menu. Input stdinsets.inc Input stdsections.inc Input numrevtex.inc Style Section Align Center AlignPossible Block, Center, Left Font Series Medium Shape Smallcaps SizeLarge EndFont TocLevel 1 End Style Subsection Font Series Bold SizeNormal EndFont TocLevel 2 End Style Subsubsection Font # Shape Italic SizeNormal EndFont TocLevel 3 End Style Paragraph TopSep0.7 ParSep0.4 Font Shape Italic SizeNormal EndFont TocLevel 4 End # then define the unumbered sections, based on the numbered ones. Input stdstarsections.inc NoStyle Chapter NoStyle Chapter* NoStyle Subparagraph NoStyle Subparagraph* Input stdlayouts.inc Input stdlists.inc Input stdtitle.inc Input stdstruct.inc Style Preprint MarginRight_Address_Box LatexType Command InTitle 1 LatexName preprint ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left End Style Title Font Series Bold SizeLarge EndFont OptionalArgs 1 End Style Author Font SizeLarge # Shape Smallcaps EndFont End Style Date LabelType Static LabelString Date: LabelFont Shape Italic SizeLarge EndFont End Style Affiliation MarginDynamic LatexType Command InTitle 1 LatexName affiliation ParSkip 0.4 # BottomSep1.5 # ParSep 1.5 Align Center AlignPossible Block, Left, Right, Center LabelType Static LabelSep M LabelString Affiliation: LabelFont Shape Italic EndFont End Style AltAffiliation CopyStyle Affiliation PassThru
Re: Problem using old Lyx document
Thanks for your quick reply and sorry for the confusion. The .lyx document can be printed now, and every letter and picture is on the pages. So, in principle the main problem (text outside the page boundaries) is solved. But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of "official" document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. With the document class changed to "article (KOMA-script)" the empty pages disappear and the "newpage" lyx command is ignored. Regards, Michael Uwe Stöhr schrieb: > Hmm, so don't specify the paper size. This is not necessary, the default > should do the job. Also assure that you don't have set margins > explicitly in the document settings. > Finally, set the document class to "article (KOMA-script)" (or another > KOMA-script class). This class comes with the best print space > calculation I know. Therefore by just using it, will automatically > calculate everything correctly. > > If you still don#t get it to work, have a look in the document settings > of the LyX UserGuide (except of its preamble). Take these settings and > it will work. > > regards Uwe > > p.s. see also my private mail >
Re: Import and export to many formats...
Νίκος: > > > All this is very far from what the statement implies (e.g. > > > out-of-the-box import/export). Isn't, this statement, a bit/too much? Uwe: > > Personally, I agree with you but there are several users around using > > tex4ht on TeXLive who are > > confident with the OpenDocument conversion capabilities of tex4ht. (Just for the records) # install texlive sudo apt-get install texlive #run texhash sudo texhash # reconfigure LyX (...a couple of times?) # quit & re-launch LyX - Indeed, some entries (HTML and OpenDocument) poped-up in the import/export options. - HTML seems to work (but I could perform this, .tex>.html, before, also using texmacs) and its more or less acceptable. - OpenDocument doesn't work as already mentioned several time in the list. Perhaps it works with (over-)simple(-ified) documents (?) - Export to HTML (M$-Word) (that is the option under export) != M$-Word (what the "Features" page implies). - .rtf still does not work. Please, let me know if I am doing something wrong, or forgot an important package to install. Kind regards, Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: In the Features [1] page the visitor reads, among other details: "Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII, HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable converters". Am I the only LyX user who is having so much trouble to export .lyx files in these file formats? Please, let me know how I could export, _without_ the need to search in the internet for just a simple example, lets say to... M$ Windowz. The conversions depends on external software. This must be installed before conversion is possible. Some conversions can be done in several ways, with different programs. Some programs do a better job than others, so you might get bad results if all you have is the worst program. Do not expect all the conversions to yield good results in all cases. Most of the formats you can export to, is only partially compatible with LyX. So the converted document will at best be different, and at worst be useless. Conversion to latex is about the only conversion that always works perfectly. Conversions to pdf, dvi and postscript goes through latex and is normally perfect. But documents using special features may fail in some of these conversions. For example, dvi does not support pstricks. All other formats have less than perfect conversions. ASCII obviously looses most of the formatting, as it doesn't support fonts and images. But then, nobody expects more from ASCII. Not all features are supported in HTML, so some things may be missing. Still, LyX can be ok for writing html if you avoid some features. opendocument/rtf/word is particularly troublesome. The three are compatible, and therefore all have the same problems. This is a word processor format with a simpler feature set than LyX, so a perfect conversion will never be possible. In particular, any such conversion will loose the good line and page breaking and the hyphenation that LyX does so well. After conversion, a document can merely look like a word document, not better. Also, this converter is far from finished. Much better conversion to word is _possible_, but it looks like nobody/few is interested in working on that for free. Developers tend to want to improve LyX itself rather than the converters, removing the need for word rather than adding compatibility. Helge Hafting
Re: Use \nprounddigits for all cells in a table
Νίκος Αλεξανδρής wrote: Hi! I was wondering how I could avoid manipulating each cell of a table separately in order to reduce the number of decimal numbers printed out (=rounding up). I 've installed the numprint package which does the rounding of the numbers. But I wonder: how I could perform rounding-up numbers contained in (all) cells in a given table at once? Is there an alternative (faste, easier) to numprint? If not, is there a way to "loop" over all cells and apply something like "\nprounddigits{3}"? If you have enough cells, then consider writing a script to modify the lyx file. It might be less work. How come you have a big table with too many decimals anyway? I guess you didn't actually type in lots of unnecessary decimals, is this table produced automatically somehow? Maybe it could be produced with rounding from the start? Helge Hafting
Re: Problem using old Lyx document
Michael Born schrieb: But, the pdf file I can generate now has a different page number compared to the printout from year 2000. I would like the pdf to look exactly like the old printout... and therefore all the paper margins have to be the same, don't they? Yes. But in your files no page margins were set. The margins were once created by the a4 package. The bug was that LyX once used such a deprecated package. (a4 was already deprecated when LyX 1.1 was actual.) My problem is that the library has this document (diploma thesis) from 2000 as a printout. Now, they want a pdf of this thesis and it should look the same. Because a thesis is some kind of "official" document and it's not allowed to change it afterwards. Thus, I would like to get the same page numbers and table of contents from the .lyx document. Then you have no other choice than to install LyX 1.1 AND an old TeX-distribution, I assume teTeX 2.0.2. If this is not possible, have a look in forums to be able to use the a4 package correctly. With the document class changed to "article (KOMA-script)" the empty pages disappear Yes, because this is an article class and because your document is single-sided. If you need white pages, then at least use double-sided. and the "newpage" lyx command is ignored. I cannot reproduce this. This works fine in the LyX documentation files that also use KOMA-script. regards Uwe
Re: Import and export to many formats...
Νίκος Αλεξανδρής schrieb: All this is very far from what the statement implies (e.g. out-of-the-box import/export). Isn't, this statement, a bit/too much? Personally, I agree with you but there are several users around using tex4ht on TeXLive who are confident with the OpenDocument conversion capabilities of tex4ht. Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? OK, then please report this issue again on the lyx-devel mailing list. If there is nobody who can show you that it works, we'll remove the statement about the converters from our web page. regards Uwe
Re: Import and export to many formats...
On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρήςwrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. Best, Ethan
Re: Problem using old Lyx document
On 2010-03-03, Michael Born wrote: > But, the pdf file I can generate now has a different page number > compared to the printout from year 2000. I would like the pdf to look > exactly like the old printout... and therefore all the paper margins > have to be the same, don't they? Why can't you measure the margins and set them manually (Dokument>Einstellungen>Seitenränder)? Alternatively, you can search the web (or your hard disk) for a4.sty and look up the dimensions there. > My problem is that the library has this document (diploma thesis) from > 2000 as a printout. Now, they want a pdf of this thesis and it should > look the same. Because a thesis is some kind of "official" document and > it's not allowed to change it afterwards. Thus, I would like to get the > same page numbers and table of contents from the .lyx document. > With the document class changed to "article (KOMA-script)" the empty > pages disappear and the "newpage" lyx command is ignored. KOMA-script will do some more changes (for the better, in my opinion) but when the PDF shall look like the old printout, you'd better leave the documentclass as is. Günter
Re: Use \nprounddigits for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: > Νίκος Αλεξανδρής wrote: > > Hi! > > > > I was wondering how I could avoid manipulating each cell of a table > > separately in order to reduce the number of decimal numbers printed out > > (=rounding up). > > > > I 've installed the numprint package which does the rounding of the > > numbers. But I wonder: how I could perform rounding-up numbers contained > > in (all) cells in a given table at once? > > > > Is there an alternative (faste, easier) to numprint? > > If not, is there a way to "loop" over all cells and apply something like > > "\nprounddigits{3}"? > > If you have enough cells, then consider writing a script to modify > the lyx file. It might be less work. Yes, that would be another solution (under bash for me, should not be difficult). But, hey, why not within LyX/LaTeX? There is also rccol (I am reading about it right now...). > How come you have a big table with too many decimals anyway? > I guess you didn't actually type in lots of unnecessary decimals, of course not! > is this table produced automatically somehow? Yes. Eigenvectors, result of a Principal Component Analysis derived (exported as csv) from R and imported in LyX, many tables. > Maybe it could > be produced with rounding from the start? Yes, it can. But I want to keep the values just in case... and I thought it would be less work to just round-up them up in LyX/LaTeX than produce another table from R. Maybe it isn't that easy after all. + (very important) I am keen to learn how this is to be done in LyX/LaTeX. Nikos signature.asc Description: This is a digitally signed message part
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: > > Seriously, I really would like to see it, just one example please under > > Ubuntu/ Debian somebody? Ethan Metsger wrote: > It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. > > The transformation of a multi-page internal design document went smoothly, > including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] > The formatting needs minor tweaks as OO.org doesn't include spacings > for some of the styles that are attractive, but otherwise it seemed to > work pretty well. > Just for fun, I ran a beamer presentation through just to see if I could > break it, and it seemed to handle it ok. The formatting was certainly > FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
Νίκος Αλεξανδρής wrote: > Please, let me know if I am doing something wrong, or forgot an > important package to install. > apt-get install tex4ht latex2rtf At some point the tex4ht package in Debian was not working but now it is in good shape, I think. Nevertheless tex4ht is a complex and fragile beast. Specially at the end of an odt conversion, tex4ht uses a small java program to create the odt zip file and that program only works with the sun java (curse, curse java). It is better to run tex4ht from the command line on an exported LaTeX file than to do it from the menu. There, you can see the error messages. Charles
Re: Import and export to many formats...
Hi Nikos, To get ODF to work, you must have Sun Java installed from the restricted repositories. If you don't install that version, it won't work. Cheers, Rob Oakes Sent from Rob's Palm On Mar 3, 2010, at 8:17 AM, Νίκος Αλεξανδρήςwrote: Νίκος Αλεξανδρής wrote: Seriously, I really would like to see it, just one example please under Ubuntu/ Debian somebody? Ethan Metsger wrote: It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. The transformation of a multi-page internal design document went smoothly, including some equations I threw in just for fun. That's good news. Do you use labels/indices in your .lyx document? [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] The formatting needs minor tweaks as OO.org doesn't include spacings for some of the styles that are attractive, but otherwise it seemed to work pretty well. Just for fun, I ran a beamer presentation through just to see if I could break it, and it seemed to handle it ok. The formatting was certainly FUBAR, as you might expect, but the text and graphics were all there. That's positive :-). Hopefully one day it'll be a single-step away to get an acceptable conversion (of what can be actually converted) to the most widespread formats :-) Nikos
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: > > > That's good news. Do you use labels/indices in your .lyx document? > > [ Hmmm... my attempts (today) produce only an empty .odt file :-( ] On Wed, 2010-03-03 at 10:42 -0500, Ethan Metsger wrote: > I put together the attached files. It doesn't look like the references > are perfectly resolved, though for the most part it seems okay to me. > Again, this is pretty simple, and I haven't done much work with indexing > and cross-reference in my documents, but for the most part it seems okay. > > It didn't work when I embedded Unicode (no surprises there), but the > export otherwise worked nicely enough. My Ubuntu install is pretty stock, > outside of whatever work requirements for development are installed--I > haven't installed anything extra that should make it work differently for > you. Thanks, works as expected! Seems that the problem is my complex (?) article (still I use the normal article document class though). ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) Nikos
Re: Import and export to many formats...
On Wed, 2010-03-03 at 08:43 -0700, Rob Oakes wrote: > Hi Nikos, > > To get ODF to work, you must have Sun Java installed from the > restricted repositories. If you don't install that version, it won't > work. I'll check this out although I think I have Sun's java as default in my system. Thank you, Nikos signature.asc Description: This is a digitally signed message part
Re: Box with heading?
Mats Andrén wrote: I wonder if it is somehow possible to create a text box in LyX that has a "heading" in the border line of the box? What I am looking for is possible in html/ccs, and you can see one example here at the bottom of the page where it says "Membership blah blah": http://www.salc-sssk.org/?p=join Depending on what output format you need, you can at least come close. You'll need the fancybox and pstricks packages. I'm attaching a small example, using code I shamelessly cribbed from the fancybox documentation (ca. page 16). View > Postscript and View > PDF (ps2pdf) produce something plausible. View > DVI and View PDF (dvipdfm) produce everything except the box border. View > PDF (pdflatex) causes dogs to howl. /Paul titledbox.lyx Description: application/lyx
Re: References not numbering correctly
Thanks to rgheck I now have a workaround. I can use the short title option on the captions with references (insert>short title) and into the short title I insert my caption with the reference replaced by a manually entered number. Slightly clunky but it works. Cheers -- View this message in context: http://n2.nabble.com/References-not-numbering-correctly-tp4654231p4668661.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Branches…
Hello, thank you all. I will indeed make a copy an delete the parts I do not want to be printed, this is less effort definitely. I am everything, but a programmer… Thanks again, best Jess Yes, this would be a way, but a uncomfortable way: As my main text is very long and has lots of branches, it would be much more convenient, if there would be a possibility to disable the main text. Otherwise I would have to put quite a few parts into a new branch. Is there no other way? LyX offer no other way. There is no way to disable "anything that is not in some branch". I can see two ways: * Add all those branches to the rest. * Make a copy of the document, where you delete what you don't want. If you are a programmer, then you have more options: * Make a script that removes anything not in a branch from a copy of the .lyx file. Then open the reduced copy in lyx, and print it. Might not be that hard, if you use a scripting language that is good for text processing. * Or, make a script that stuffs everything that isn't in some branch already, into a new branch. * If you know C++: implement what you want in LyX.
Bibtex question. How do I insert scans of covers.
hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe Hope it is clear. Thanks a lot mario
Re: Use "rccol" for all cells in a table
On Wed, 2010-03-03 at 13:47 +0100, Helge Hafting wrote: > Νίκος Αλεξανδρής wrote: > > Hi! > > > > I was wondering how I could avoid manipulating each cell of a table > > separately in order to reduce the number of decimal numbers printed out > > (=rounding up). ... > > Is there an alternative (faste, easier) to numprint? > > If not, is there a way to "loop" over all cells and apply something like > > "\nprounddigits{3}"? OK, I've done some progress. I can load "\usepackage{rccol}" in the Preamble, and then, in the Table Settings, in the LaTeX argument field fill in something like: "R[,][.]13" (without the quotes of course). Now this works when the value in this cell has a comma as a separator, e.g.: 0,3364205. The result in the pdf is, as expected, 0.336 I came up of using a comma because this would not work with a point (?). I use in the arguments the following: R[.][.]13 (which, according to the rccol manual can be written as "R[.]13") but nothing... I get a strange result which is: 03364205.000. Looking closer at the source (in LyX) I see that there is a _space_ between the integer and the decimals of the cell-number. Why is that so? Is this the problem? And why does it work with the comma then? I know that the package is set to use "comma" as default. The option [point] or [english] while loading "rccol" in the Preamble does not help as well. Any idea(s)? And let's say this will work somehow (using the point), is there a "magic" way to apply a given LaTeX argument to all cells in a table? Thanks, Nikos signature.asc Description: This is a digitally signed message part
Re: Bibtex question. How do I insert scans of covers.
On 03/03/2010 12:22 PM, mario wrote: hello I have a new question on bibtex/biblatex. How do I do when a bibliographic item refers to another one: [1] -- Author, Title, in [2] [2]-- BlaBla, edited by Joe Doe This is what the crossref field is for. Put the key of the other entry, e.g.: @INCOLLECTION{HeckMay:FregesContribution, author = {Richard Heck and Robert May}, title = {Frege's Contribution to Philosophy of Language}, pages = {3--39}, crossref = {LeporeSmith:PhilLang}, owner = {rgheck}, timestamp = {2008.06.18} } rh
Re: Import and export to many formats...
On Wed, 03 Mar 2010 10:51:50 -0500, Νίκος Αλεξανδρήςwrote: ( I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any possible conflict here? ) I don't know of any reason this would be a problem--like I said, Beamer presentations were converted, although the formatting was lost and very ugly. I don't use ODF much at all, so I honestly can't tell you what could be wrong. You can check the output of the tex4ht process if you run lyx in a terminal. Maybe it will provide some additional clues. Best, Ethan
lyx and beamer class
Hi all! I'm trying to do a presentation with the beamer class inside LyX. I'd like to pass an option to the itemize environment. In plain latex: \begin{itemize}[<+->] It's possible to do this directly in LyX, without writing all the itemize code in an ERT? Thanks, Giovanni
Re: lyx and beamer class
Giovanni Bacciwrites: > Hi all! I'm trying to do a presentation with the beamer class inside > LyX. I'd like to pass an option to the itemize environment. In plain > latex: > \begin{itemize}[<+->] > > It's possible to do this directly in LyX, without writing all the > itemize code in an ERT? > Start an itemize list, put the cursor at the start of the first item, click Insert > Short Title (the fact that the menu label is not intuitive has been discussed before), and type in <+-> (but not the brackets). /Paul
Re: Re: Bibtex question. How do I insert scans of covers.
Hi thanks mario ps nice paper too! -- rgheck wrote: > On 03/03/2010 12:22 PM, mario wrote: > > hello > > > > I have a new question on bibtex/biblatex. > > > > How do I do when a bibliographic item refers to another one: > > > > [1] -- Author, Title, in [2] > > > > [2]-- BlaBla, edited by Joe Doe > > > > > This is what the crossref field is for. Put the key of the other entry, > e.g.: > > @INCOLLECTION{HeckMay:FregesContribution, >author = {Richard Heck and Robert May}, >title = {Frege's Contribution to Philosophy of Language}, >pages = {3--39}, >crossref = {LeporeSmith:PhilLang}, >owner = {rgheck}, >timestamp = {2008.06.18} > } > > rh > >
Re: lyx and beamer class
mercoledì 03 marzo 2010, 20:07, Paul Rubin: > Giovanni Bacciwrites: > > > Hi all! I'm trying to do a presentation with the beamer class > > inside LyX. I'd like to pass an option to the itemize environment. > > In plain latex: > > \begin{itemize}[<+->] > > > > It's possible to do this directly in LyX, without writing all the > > itemize code in an ERT? > > Start an itemize list, put the cursor at the start of the first item, > click Insert > Short Title (the fact that the menu label is not > intuitive has been discussed before), and type in <+-> (but not the > brackets). worked like a charm! Thanks for the trick. G.
Re: Import and export to many formats...
On Wed, 03 Mar 2010 08:58:57 -0500 "Ethan Metsger"wrote: > On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής > wrote: > > > Seriously, I really would like to see it, just one example please > > under Ubuntu/ Debian somebody? > > It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10. > > The transformation of a multi-page internal design document went > smoothly, including some equations I threw in just for fun. The > formatting needs minor tweaks as OO.org doesn't include spacings for > some of the styles that are attractive, but otherwise it seemed to > work pretty well. > > Just for fun, I ran a beamer presentation through just to see if I > could break it, and it seemed to handle it ok. The formatting was > certainly FUBAR, as you might expect, but the text and graphics were > all there. > > Best, > > Ethan > > I have mentioned this before, but even I keep forgetting it. oolatex (the script in tex4ht that does the conversion to OO files) will choke on the non-Sun Java JRE that is installed by default on Debian. It looks like it runs, but gives an empty document. I have converted textbooks of some 600 pages using many cross-references, multiple indexes and bibliographies using the Memoir class. It is seldom perfect, but plenty good enough for publishers (I think mine still uses hot type, but I could be mistaken :-)). Cheers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206
Re: Import and export to many formats...
Hi Nikos, 2010/3/2 Νίκος Αλεξανδρής: > Fortunately or Unfortunately, I am aware of all the things you mention. > - I've been testing eLyXer since its first days (thanks to Alexander > again for this nice tool) Thanks to you! > - I (also?) believe the best way (currently) is to export (somehow) in > html and then OOo/abiword -> M$-Word. To export to Word the best way is IMHO to export using eLyXer with the --html option: $ elyxer --html input.lyx output.html And then import from Word. The reason for this --html option is that Word does not like the default XHTML too much. The same can be said for OpenOffice; I have had no luck importing from Abiword at all. Alex.
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:10 +0100, Alex Fernandez wrote: > To export to Word the best way is IMHO to export using eLyXer with the > --html option: > $ elyxer --html input.lyx output.html > And then import from Word. > > The reason for this --html option is that Word does not like the > default XHTML too much. The same can be said for OpenOffice; I have > had no luck importing from Abiword at all. You have a point here. Comparing the different tests I did, it seems to be (currently) the best option. Nikos
Re: Import and export to many formats...
On 2010-03-03, Νίκος Αλεξανδρής wrote: > On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: > Thanks, works as expected! Seems that the problem is my complex (?) > article (still I use the normal article document class though). Is your article in Greek? Maybe this is the showstopper. Also, running the conversion "by hand" and reporting the errors might give more insight to us all. Günter
Re: Import and export to many formats...
On Wed, 2010-03-03 at 23:36 +, Guenter Milde wrote: > On 2010-03-03, Νίκος Αλεξανδρής wrote: > > On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote: > > > Thanks, works as expected! Seems that the problem is my complex (?) > > article (still I use the normal article document class though). > > Is your article in Greek? Maybe this is the showstopper. No, no Guenter. It's all english stuff. Just the usual stuff: title, sections, subsections, tables, nested items, a few footnotes, references, LyX labels, LyX notes, no figures yet. [Below some details.] > Also, running the conversion "by hand" and reporting the errors might > give more insight to us all. Right. I'll try to spend some time on this tomorrow. Thanks, Nikos //---// #LyX 1.6.5 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % colors \usepackage{color} % trying to round-up numbers \usepackage[english]{rccol} % landscaped table \usepackage{lscape} % scale tables \usepackage{graphicx} % ? \usepackage{epsfig} \end_preamble \use_default_options false \begin_modules logicalmkup minimalistic \end_modules \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \float_placement h \paperfontsize default \spacing double \use_hyperref true \pdf_title "..." \pdf_author "Nikos Alexandris" \pdf_subject "..." \pdf_keywords "..." \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 0 \pdf_breaklinks false \pdf_pdfborder true \pdf_colorlinks true \pdf_backref section \pdf_pdfusetitle true \papersize a4paper \use_geometry true \use_amsmath 0 \use_esint 0 \cite_engine basic \use_bibtopic false \paperorientation portrait \leftmargin 2cm \topmargin 2cm \rightmargin 2cm \bottommargin 2cm \secnumdepth 2 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 0 9 -1 \bullet 2 1 31 -1 \bullet 3 0 17 -1 \tracking_changes false \output_changes false \author "" \author "" \end_header //---//
REVTeX 4.1 layout: alpha
Hi lyx-users, REVTeX 4.1 was recently released and all APS and AIP journals require this format which may be backwards-incompatible with v4.0. I've the extended revtex4.layout that accompanies LyX to revtex4-1.layout and am attaching it. I request help with testing the layout. I have ported the sample document aipsamp.tex that comes with the REVTeX 4.1 distribution to a lyx file and the PDFs generated from both sources are almost identical so I believe I have addressed most of the issues. This list doesn't accept emails over 60kB so I am able to attach only the layout. Should someone be interested in the other files, please contact me directly by email at this address. Thanks, Manoj Rajagopalan #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{article (REVTeX 4.1)} # RevTeX 4.1 textclass definition file. Based on: # AMS-Article textclass definition file. Taken from initial LyX source code # and from the Article textclass definition file, following the AMS sample # paper "testmath.tex" of January, 1995 # Author : David L. Johnson(AMS) # Marc Mengel (RevTeX) # Amir Karger (LyX v11.34 style modifications) # Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 # Manoj Rajagopalan (RevTeX 4.1) 1/2010 Format 19 Columns 1 Sides 1 PageStyle Headers Provides natbib-internal1 Provides url1 # Default textclass options. The user may need to modify this. ClassOptions Other "manuscript" End Preamble \...@ifundefined{textcolor}{} {% \definecolor{BLACK}{gray}{0} \definecolor{WHITE}{gray}{1} \definecolor{RED}{rgb}{1,0,0} \definecolor{GREEN}{rgb}{0,1,0} \definecolor{BLUE}{rgb}{0,0,1} \definecolor{CYAN}{cmyk}{1,0,0,0} \definecolor{MAGENTA}{cmyk}{0,1,0,0} \definecolor{YELLOW}{cmyk}{0,0,1,0} } EndPreamble Style Standard MarginStatic LatexType Paragraph LatexName dummy ParIndent MM ParSkip 0.4 Align Block AlignPossible Block, Left, Right, Center LabelType No_Label End # Idea from aapaper: declare all layouts here ("Style Foo\nEnd\n") # so that they appear in a specific order in the layout dropdown menu. Input stdinsets.inc Input stdsections.inc Input numrevtex.inc Style Section Align Center AlignPossible Block, Center, Left Font Series Medium Shape Smallcaps SizeLarge EndFont TocLevel 1 End Style Subsection Font Series Bold SizeNormal EndFont TocLevel 2 End Style Subsubsection Font # Shape Italic SizeNormal EndFont TocLevel 3 End Style Paragraph TopSep0.7 ParSep0.4 Font Shape Italic SizeNormal EndFont TocLevel 4 End # then define the unumbered sections, based on the numbered ones. Input stdstarsections.inc NoStyle Chapter NoStyle Chapter* NoStyle Subparagraph NoStyle Subparagraph* Input stdlayouts.inc Input stdlists.inc Input stdtitle.inc Input stdstruct.inc Style Preprint MarginRight_Address_Box LatexType Command InTitle 1 LatexName preprint ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left End Style Title Font Series Bold SizeLarge EndFont OptionalArgs 1 End Style Author Font SizeLarge # Shape Smallcaps EndFont End Style Date LabelType Static LabelString "Date:" LabelFont Shape Italic SizeLarge EndFont End Style Affiliation MarginDynamic LatexType Command InTitle 1 LatexName affiliation ParSkip 0.4 # BottomSep1.5 # ParSep 1.5 Align Center AlignPossible Block, Left, Right, Center LabelType Static LabelSep M LabelString "Affiliation:" LabelFont Shape Italic EndFont End Style AltAffiliation CopyStyle Affiliation