Re: includeonly
On 2009-02-24, Rudi Gaelzer wrote: > On Friday 17 October 2008 04:57:07 Jürgen Spitzmüller wrote: >> Guenter Milde wrote: >> > none of e.g. >> > >> > \includeonly{thermisch} >> > >> > or >> > >> > \includeonly{Thermisch/thermisch} >> > >> > seems to work. >> Yes. This doesn't work with LyX, unfortunately. >> > Is there some kind of filename mangling when the tex files are generated >> > in the temporary dir? >> Yes, this is the reason. > What is the alternative for LyX 1.6.1? > I mean, if one wants to process a single chapter in the middle of a > multi- chapter document, but needs to retain all the previous > information, such as page/chapter numbering, cross-references, etc, how > can this be accomplished by LyX? It works, if you have all the sub-documents in the same directory. You can also try to disable the "use temporary directory" option (this was in pre 1.6 maybe you get this by leaving the Document>Settings>Paths: Temp setting empty now.) You could search in the temporary dir (/tmp/lyx_tmpdir*/ on my Debian system) for the given filename. But this is likely to change with every re-opening of LyX. Otherwise you really need to process the whole document and then select the appropriate pages in the viewer. Last but not least: File an enhancement request to bugzilla or vote for it if it is already there. Günter
Re: Printing is weird... funny hash lines
On Tuesday 24 February 2009, Paul A. Rubin wrote: > Kenward Vaughan wrote: > > Sorry, I don't know whether this is LyX or LaTeX. When I print out > > documents generated by LyX, I see weird marks on the paper not seen > > in the screen copy. They are horizontal, very small, and seem to ... > Can you post a small example (LyX file plus DVI or PDF showing the > spurious lines)? > > /Paul That's what was weird. It happened with the printed version, not the screen version. I'm thinking it may have been an issue outside of LyX, unless LyX provides the default fonts used (which I know it doesn't). The reason for using past tense is that I can no longer reproduce it. Having been concentrating on that one document for the time being, and then grading in the interim, I hadn't experienced anything new until your response... ;-) Now it won't come up. I've upgraded the system at least once, and know texlive was part of that, so I think it was a font issue within the package. Hope so, at least. For the moment, a non-problem. I appreciate your response, though, Paul. Thank you! Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
Re: Exporting to DOC or RTF
On 2009-02-25, Typhoon wrote: >> > And you're sure it's in your path? Basically, the short version >> > here is: Make sure it works from the command line; if not, it won't >> > work in LyX; if yes, it should. > LyX uses the oolatex script to export to open document. On my Debian > Lenny, tex4ht is in the path, but oolatex is > in /usr/share/tex4ht/oolatex, which is NOT on the path. Since Ubuntu is > a Debian rip-off :-) it may be the same there. > Fix with a symbolic link: > ln -s /usr/local/bin/oolatex /usr/share/tex4ht/oolatex Or with the converter entry as in Debian: mk4ht oolatex $$i as mk4ht is a perl wrapper script around oolatex which is in the path. However, exporting a doc with the single line "hello world" produced a corrupted file (ooffice asked whether to repair it and showed an empty file then, while abiword displayed some garbage: pk???...@y:¤íMF???S??? Debian/testing with tex4ht.c (2007-11-07-16:08 kpathsea) Günter
html footnotes
Hi, My footnotes are all coming out in italics when I export to html. This does not happen with DVI or PDF. But I use html export a lot so am looking for a solution. In Preferences > File Handling > Converters > LaTeX -> HTML I've been successfully using htlatex to export html files. And it works great. But,... My original problem was that footnotes were all placed in separately-linked html files. I didn't like that. So I searched and found an addition to the parameters that solved that --- by adding ",fn-in" to the parameters. htlatex $$i "xhtml,fn-in" I've failed to find the parameter change or addition to format the footnotes normally. Does anyone here know the secret? thanks much, jamie faunt
Re: Exporting to DOC or RTF
On Wed, 25 Feb 2009 06:06:09 +0100 Nikos Alexandris wrote: > On Mon, 2009-02-23 at 21:48 -0500, rgheck wrote: > > Nikos Alexandris wrote: > > > On Tue, 2009-02-24 at 09:10 +0800, Waluyo Adi Siswanto wrote: > > > > > >>> Yes, I have installed the tex4ht package long ago. And never > > >>> had luck nor for odt export neither for html export. > > >>> > > >>> Nikos > > >>> > > >>> I am in Ubuntu 8.04, I just know from this forum that LyX can > > >>> export to > > >> OpenDocument, with the help of LaTeX package tex4ht. I then > > >> installed text4ht from Synaptic and it requires the dependent > > >> text4ht-common. Perhaps you need to double check whether you > > >> installed this common file, not only tex4ht. > > >> Now It works for me (after reconfigure LyX).. I can see File > > > >> Export > OpenDocument. I tested ... yes it creates odt file > > >> which I can open in OpenOffice 3. > > >> --- > > >> was > > >> > > > > > > Hi was! > > > > > > Both tex4ht and -common installed. Also the entry OpenDocument is > > > there since long ago. Nothing works unfortunately. I don't have > > > the time to try tracing the problem currently. > > > > > > > > And you're sure it's in your path? Basically, the short version > > here is: Make sure it works from the command line; if not, it won't > > work in LyX; if yes, it should. > > > > rh > > Richard, > > # /usr/bin is in $PATH (...imagine a linux-box without /usr/bin in > $PATH :-O). > > and > > $ whereis tex4ht > tex4ht: /usr/bin/tex4ht /etc/tex4ht /usr/share/tex4ht > /usr/share/man/man1/tex4ht.1.gz > > So, it's not that. I am still learning LyX and LaTeX so it's not easy > to recognize where I should start searching. And, as I already said, > my time is limited (like every-one's of course :-). LyX uses the oolatex script to export to open document. On my Debian Lenny, tex4ht is in the path, but oolatex is in /usr/share/tex4ht/oolatex, which is NOT on the path. Since Ubuntu is a Debian rip-off :-) it may be the same there. Fix with a symbolic link: ln -s /usr/local/bin/oolatex /usr/share/tex4ht/oolatex Cheers, Alan > > Thanks for your concern, Nikos > >
Re: Exporting to DOC or RTF
On Mon, 2009-02-23 at 21:48 -0500, rgheck wrote: > Nikos Alexandris wrote: > > On Tue, 2009-02-24 at 09:10 +0800, Waluyo Adi Siswanto wrote: > > > >>> Yes, I have installed the tex4ht package long ago. And never had luck > >>> nor for odt export neither for html export. > >>> > >>> Nikos > >>> > >>> I am in Ubuntu 8.04, I just know from this forum that LyX can export to > >>> > >> OpenDocument, with the help of LaTeX package tex4ht. I then installed > >> text4ht from Synaptic and it requires the dependent text4ht-common. > >> Perhaps you need to double check whether you installed this common file, > >> not only tex4ht. > >> Now It works for me (after reconfigure LyX).. I can see File > Export > > >> OpenDocument. I tested ... yes it creates odt file which I can open in > >> OpenOffice 3. > >> --- > >> was > >> > > > > Hi was! > > > > Both tex4ht and -common installed. Also the entry OpenDocument is there > > since long ago. Nothing works unfortunately. I don't have the time to > > try tracing the problem currently. > > > > > And you're sure it's in your path? Basically, the short version here is: > Make sure it works from the command line; if not, it won't work in LyX; > if yes, it should. > > rh Richard, # /usr/bin is in $PATH (...imagine a linux-box without /usr/bin in $PATH :-O). and $ whereis tex4ht tex4ht: /usr/bin/tex4ht /etc/tex4ht /usr/share/tex4ht /usr/share/man/man1/tex4ht.1.gz So, it's not that. I am still learning LyX and LaTeX so it's not easy to recognize where I should start searching. And, as I already said, my time is limited (like every-one's of course :-). Thanks for your concern, Nikos
Re: Package manager
Stefano Franchi wrote: > On Tuesday 24 February 2009 10:38:50 Ehud Kaplan wrote: >> I realize that this is not a specific Lyx question, but someone here >> might know the answer. >> My main problem in running Lyx (or Latex) on Linux is the lack of a nice >> package manager like Miktex is on Windows. >> I heard that TexLive has a package manager, but I have not been able to >> find it. >> Can anyone help? >> Thanks, > > I believe the latest TexLive (2008) has a package manager. However, many > Linux distribution (like (K)Ubuntu) are still stuck withTexLive > 2007---hence no > package manager. One option is to download the TexLive 2008 DVD and > install it manually. Another option is to wait for the next version of > (K)Ubuntu which should have TeXLive 2008. > > See here for TeXlive package manager and various caveats: > > http://www.tug.org/texlive/tlmgr.html > > the DVD download canbe reached from here: > > http://www.tug.org/texlive/index.html > 1. What's wrong with yum as package manager? 2. You can install tl2008. I have been using it on fedora f10 with good results.
Re: I cannot compile to a pdf
Thank you everyone. I found the error. Really I needed a deep breath. The problem was in the figures. When I inserted the figures (I had a lot of pair of figures (subfigures) like floating) I used the lyx 1.44 and I couldn't center all the figures editing the preamble, so I marked every pairs of figures and I centered with the corresponding button. Then I installed the new versions and in the version 1.6.1 it appeared a latex command before and after these figures. I don't know exactly why, some of these figures didn't work and the export to pdf stopped without any mistake. I suspect that the problem was in how I selected the figures to center it, because a few of them worked and other one didn't...
Re: Figure Numbering Error
On Tue, Feb 24, 2009 at 3:24 PM, Makhoma wrote: > > I don't think this has been answered before, but I am running into an 'error > undefined' problem when trying to export to pdf. I have placed the > \counterwithin{figure}{section} to the preamble and selected the AMS package > as I should, I was able to get \numberwithin{equation}{section} to work that > way. When I have it in the preamble it gives me the error, when I take it > out it exports normally, but all my figures are numbered sequentially > throughout. > > Perhaps I am missing a file, and if so: what file is it and where do I put > it so this works? > > If this is needed, I am running Ubuntu 8.04 and am using Lyx version 1.5.3 > -- > View this message in context: > http://n2.nabble.com/Figure-Numbering-Error-tp2380764p2380764.html > Sent from the LyX - Users mailing list archive at Nabble.com. > > Isn't it: \numberwithin{figure}{section} not: \counterwithin{figure}{section} Cheers, /Bob
Re: Jumping back from Pdf file to LyX (Latex) source?
Pavel Sanda wrote: > anyway the same seems to be doable in linux as well with some kind of tweaking > around. one need to use xdvi and pass some external script which sends > proper server-goto-file-row lfun to lyx. or even simpler: lyxclient -g file line pavel
Figure Numbering Error
I don't think this has been answered before, but I am running into an 'error undefined' problem when trying to export to pdf. I have placed the \counterwithin{figure}{section} to the preamble and selected the AMS package as I should, I was able to get \numberwithin{equation}{section} to work that way. When I have it in the preamble it gives me the error, when I take it out it exports normally, but all my figures are numbered sequentially throughout. Perhaps I am missing a file, and if so: what file is it and where do I put it so this works? If this is needed, I am running Ubuntu 8.04 and am using Lyx version 1.5.3 -- View this message in context: http://n2.nabble.com/Figure-Numbering-Error-tp2380764p2380764.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Jumping back from Pdf file to LyX (Latex) source?
Pavel Sanda wrote: > > lyxeditor "@file" @line > > > > The same should be possible with any other better DVI/PDF viewer. So in LyX > > the necessary infrastructure is there (at least on Mac and Linux). > > you claim this works out of the box? havent you changed your convertor scripts > / document header or so? > > where does this 'lyxeditor' points to? now i see we distribute in our tarball :) it seems to be mac-related script and also looking http://wiki.lyx.org/Mac/Mac#toc11 seems other things need to be done. anyway the same seems to be doable in linux as well with some kind of tweaking around. one need to use xdvi and pass some external script which sends proper server-goto-file-row lfun to lyx. i have even found some old reference to cygwin solution http://www.mail-archive.com/lyx-users@lists.lyx.org/msg63984.html pavel
Re: Jumping back from Pdf file to LyX (Latex) source?
Konrad Hofbauer wrote: > Stefano Franchi wrote: >> If I understood the bugzilla exchange correctly, the situation is: >> 1. Reverse seaerching (I guess that's the term) works from kdvi to a Latex >> file opened in a standard editor > > It works on the Mac using Skim as pdf-viewer and pdfsync (no > synctex-support as of now in LyX). > > Skim simply calls > lyxeditor "@file" @line > > The same should be possible with any other better DVI/PDF viewer. So in LyX > the necessary infrastructure is there (at least on Mac and Linux). you claim this works out of the box? havent you changed your convertor scripts / document header or so? where does this 'lyxeditor' points to? pavel
Re: Jumping back from Pdf file to LyX (Latex) source?
Stefano Franchi wrote: If I understood the bugzilla exchange correctly, the situation is: 1. Reverse seaerching (I guess that's the term) works from kdvi to a Latex file opened in a standard editor It works on the Mac using Skim as pdf-viewer and pdfsync (no synctex-support as of now in LyX). Skim simply calls lyxeditor "@file" @line The same should be possible with any other better DVI/PDF viewer. So in LyX the necessary infrastructure is there (at least on Mac and Linux). /Konrad
Re: I cannot compile to a pdf
Nina, you might have solved your problem in the meantime. If not, just one thought: What happens, if you take out the Bibliography at the end of you document and run it again? If a reference is the offending part, it should run. Are you incidently using koma-script and two column page style? I have often problems with it, but do get a latex-log output of this kind pdftex error \pdfendlink ended up in different nesting level than \pd The error is not easy to find, have a look at: http://ftp.tug.org/mail-archives/pdftex/2002-February/002216.html and read the remedy below latex log: fstartlink. \endgroup \...@typeset@protect l.3087 remedy: add 'draft' option to hyperref: \usepackage[draft]{hyperref} recompile document >pdf output citation whose latter half begins the page where pdflatex aborted rearrange text to avoid linebrake remove draft option
Re: Jumping back from Pdf file to LyX (Latex) source?
Stefano Franchi wrote: > On Tuesday 24 February 2009 11:42:30 Pavel Sanda wrote: > > Stefano Franchi wrote: > > > I am starting to work on the final editing of a long manuscript and I > > > would very much appreciate the option to click on a page in the pdf > > > viewer app and jump directly to the corresponding block of text in the > > > source file. > > > > > > I do not think this is possible with LyX, presently---am I wrong? > > > > http://bugzilla.lyx.org/show_bug.cgi?id=94 > > > > pavel > > > Thanks Pavel. > > If I understood the bugzilla exchange correctly, the situation is: there was very lenghty discussion http://www.mail-archive.com/lyx-de...@lists.lyx.org/msg87046.html from which is seems everybody wanted it in the tree so it seems like a mystery its not already there :) > > 1. Reverse seaerching (I guess that's the term) works from kdvi to a Latex > file > opened in a standard editor > > 2. Georg Baum provided a patch that would make it work from kdvi to LyX, but > the patch never made into released version of Lyx, for reasons unknown (as of > 2/24/09) > > > So there is a workaround, and there is hope! i just tried to use this patch, unfortunately most of the code moved around so its not easy to patch it again. on the other hand, the changes which are needed look like more of mechanical work then some actual rewrite... CC-ing to Georg, Joao and lyx-devel. may be somebody knows what was the problem. pavel
Re: Jumping back from Pdf file to LyX (Latex) source?
On Tuesday 24 February 2009 11:42:30 Pavel Sanda wrote: > Stefano Franchi wrote: > > I am starting to work on the final editing of a long manuscript and I > > would very much appreciate the option to click on a page in the pdf > > viewer app and jump directly to the corresponding block of text in the > > source file. > > > > I do not think this is possible with LyX, presently---am I wrong? > > http://bugzilla.lyx.org/show_bug.cgi?id=94 > > pavel Thanks Pavel. If I understood the bugzilla exchange correctly, the situation is: 1. Reverse seaerching (I guess that's the term) works from kdvi to a Latex file opened in a standard editor 2. Georg Baum provided a patch that would make it work from kdvi to LyX, but the patch never made into released version of Lyx, for reasons unknown (as of 2/24/09) So there is a workaround, and there is hope! Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Minitoc and book (KOMA-Script) under LyX
Just reporting that I use the following in the Preamble which gives nice mini-tables: % Mini Table of Contents % package: minitoc (aka mini-table) \usepackage{minitoc} % title of minitoc % e.g. for "Overview" use "\mtcsettitle{minitoc}{Overview}" % for empty title \mtcsettitle{minitoc}{} % turn off rules before and after the minitoc's \mtcsetrules{minitoc}{off} % turn off page numbering in minitoc's \mtcsetpagenumbers{minitoc}{off} Don't forget: * In the beginning of the document use an "\dominitoc" ERT * For each chapter a "\minitoc" ERT is required. * For "\Add*" commands an extra "\mtcadd*" is required Kind regards, Nikos
Re: Jumping back from Pdf file to LyX (Latex) source?
Stefano Franchi wrote: > I am starting to work on the final editing of a long manuscript and I would > very much appreciate the option to click on a page in the pdf viewer app and > jump directly to the corresponding block of text in the source file. > > I do not think this is possible with LyX, presently---am I wrong? http://bugzilla.lyx.org/show_bug.cgi?id=94 pavel
Jumping back from Pdf file to LyX (Latex) source?
I am starting to work on the final editing of a long manuscript and I would very much appreciate the option to click on a page in the pdf viewer app and jump directly to the corresponding block of text in the source file. I do not think this is possible with LyX, presently---am I wrong? If not, does anyone know of a similar facility for LaTeX? I vaguely remember something along this line as (perhaps) an Emacs mode plus a specific pdf (or dvi, I am not sure) reader. I tried googling, but I am not sure how this option would be called, so my results were meagre. Thanks for the help, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Package manager
By the way-- if I chose to install texlive from the ISO image, do I need to uninstall the previous version? Stefano Franchi wrote: On Tuesday 24 February 2009 10:38:50 Ehud Kaplan wrote: I realize that this is not a specific Lyx question, but someone here might know the answer. My main problem in running Lyx (or Latex) on Linux is the lack of a nice package manager like Miktex is on Windows. I heard that TexLive has a package manager, but I have not been able to find it. Can anyone help? Thanks, I believe the latest TexLive (2008) has a package manager. However, many Linux distribution (like (K)Ubuntu) are still stuck withTexLive 2007---hence no package manager. One option is to download the TexLive 2008 DVD and install it manually. Another option is to wait for the next version of (K)Ubuntu which should have TeXLive 2008. See here for TeXlive package manager and various caveats: http://www.tug.org/texlive/tlmgr.html the DVD download canbe reached from here: http://www.tug.org/texlive/index.html Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237 -- Ehud Kaplan, Ph.D. Jules and Doris Stein Research to Prevent Blindness Professor Director, The laboratory of Visual Neuroscience Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology, The Mount Sinai School of Medicine One Gustave Levy Place NY, NY, 10029
Re: Package manager
On Tuesday 24 February 2009 10:38:50 Ehud Kaplan wrote: > I realize that this is not a specific Lyx question, but someone here > might know the answer. > My main problem in running Lyx (or Latex) on Linux is the lack of a nice > package manager like Miktex is on Windows. > I heard that TexLive has a package manager, but I have not been able to > find it. > Can anyone help? > Thanks, I believe the latest TexLive (2008) has a package manager. However, many Linux distribution (like (K)Ubuntu) are still stuck withTexLive 2007---hence no package manager. One option is to download the TexLive 2008 DVD and install it manually. Another option is to wait for the next version of (K)Ubuntu which should have TeXLive 2008. See here for TeXlive package manager and various caveats: http://www.tug.org/texlive/tlmgr.html the DVD download canbe reached from here: http://www.tug.org/texlive/index.html Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Package manager
I realize that this is not a specific Lyx question, but someone here might know the answer. My main problem in running Lyx (or Latex) on Linux is the lack of a nice package manager like Miktex is on Windows. I heard that TexLive has a package manager, but I have not been able to find it. Can anyone help? Thanks, -- Ehud Kaplan
Re: includeonly
On Friday 17 October 2008 04:57:07 Jürgen Spitzmüller wrote: > Guenter Milde wrote: > > none of e.g. > > > > \includeonly{thermisch} > > > > or > > > > \includeonly{Thermisch/thermisch} > > > > seems to work. > > Yes. This doesn't work with LyX, unfortunately. > > > Is there some kind of filename mangling when the tex files are generated > > in the temporary dir? > > Yes, this is the reason. > > Jürgen What is the alternative for LyX 1.6.1? I mean, if one wants to process a single chapter in the middle of a multi- chapter document, but needs to retain all the previous information, such as page/chapter numbering, cross-references, etc, how can this be accomplished by LyX? Thanks. -- Rudi Gaelzer Department of Physics Institute of Physics and Mathematics Federal University of Pelotas BRAZIL Registered linux user # 153741
Re: I cannot compile to a pdf
On Tuesday 24 February 2009 06:04:36 am NinaNutz wrote: > Hello all, > > I have a big problem... My thesis is finished and I cannot compile the > complete pdf. When I export to pdf (any option) I only export 52 pages. My > thesis is 350 pages more or less... but I cannot compile the complete one. > The list of contents, figures and tables doesn't appears either. > > What can I do? Lyx doesn't show any mistake, every works ok apparently, but > I only can export 52 pages... > > The version of lyx that I'm using is lyx 1.6.1 > > Please, I need help... OK, first take a deep breath, stretch, and calm down. It's just a technical problem, you'll solve it. First things first: Back up your existing file so if you screw it up farther you can get back to where you are now. Once backed up, continue... In addition to the other suggestions you've received, I'd like you to try export to .dvi, using the following: lyx -e dvi myfile.lyx dvisee myfile.dvi or xdvi myfile.dvi or if you use Windows, whatever dvi viewer you have. Either you'll get 350 pages, 52 pages, no result, or something else. If you get 52 pages, it's not specific to PDF -- there's something else going on. More on that later. If it's 350 pages, there's something different about the way you're exporting to PDF. Take the next step and convert the dvi to postscript like this: dvips -o myfile.ps myfile.dvi Does it still have 350 pages? If so, convert from there to PDF: ps2pdf myfile.ps Does it still have 350? The preceding procedure will help you figure out where in the lyx->dvi->ps->pdf conversion chain the problem is happening. If that doesn't yield good results, don't worry, there are many other diagnostic tests you can perform to get to the root of the problem. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Minitoc and book (KOMA-Script) under LyX
On Tue, 2009-02-24 at 11:17 -0500, Steve Litt wrote: > On Tuesday 24 February 2009 09:06:47 am Nikos Alexandris wrote: > > Hi all! > > > > [Using LyX 1.6.1 under Ubuntu II/ 64-bit, book(KOMA-Script)] > > > > I've decided to use the minitoc package. I would like to have (as many > > others would like to have :-) a _SectionToC_ for each Chapter (except > > the 1st) in the beginning, of course, of each Chapter, listing Sections > > (x.x) and Subsections (x.x.x). > > >* * > \ o / > \|/ > | C O O L > / \ _ > / \/ >/ > - > > I've been looking for a way to put a list of sections on the chapter start > page for years. Minitoc package, huh? I'll have to try it. > > Thanks > > SteveT It works... finally :D I needed to add the "\mtcaddchapter" command in the Introduction (since my Introduction was defined with "\Addchap") just before the "\minitoc" command. It really looks nice. I am playing around with it since I don't want the page number to appear... just the structure. Cheers, Nikos --- BTW: SteveT, thanks for your valuable experience you offer in the list from time to time.
Re: Minitoc and book (KOMA-Script) under LyX
On Tuesday 24 February 2009 09:06:47 am Nikos Alexandris wrote: > Hi all! > > [Using LyX 1.6.1 under Ubuntu II/ 64-bit, book(KOMA-Script)] > > I've decided to use the minitoc package. I would like to have (as many > others would like to have :-) a _SectionToC_ for each Chapter (except > the 1st) in the beginning, of course, of each Chapter, listing Sections > (x.x) and Subsections (x.x.x). * * \ o / \|/ | C O O L / \ _ / \/ / - I've been looking for a way to put a list of sections on the chapter start page for years. Minitoc package, huh? I'll have to try it. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Removing languages
On 2009-02-24, Dotan Cohen wrote: >> Please, explain exactly how you see this.. >> ..then implementing this would me much faster. >> Where do you set the languages used in toggling ? >> Should this be stored in the LyX file ? > I would imagine a button on the toolbar, that would toggle between > preconfigured input languages. Somewhere in the options these > languages would be configured. > Anyone with a language bar on their task bar will be familiar with the > concept. I'd rather "outsource" the "Language" setting from Edit>Text Style>Custom to a separate menu item or dialogue and toggle between the document language ("Revert" in the current dialogue) and the last-used Language from the new widget. First time use of the button would pop-up the Language selector. Günter
Re: Printing is weird... funny hash lines
Kenward Vaughan wrote: Sorry, I don't know whether this is LyX or LaTeX. When I print out documents generated by LyX, I see weird marks on the paper not seen in the screen copy. They are horizontal, very small, and seem to mark the heights of (some of) the characters on the page. Those capitals which have it are most apparent, but some other lowercase letters have this line as well. Now all the lowercase t's now have cute forward "hat visors" on them (for lack of a better way to describe it). I've narrowed the problem down to the use of the default font. If I choose Roman or Sans Serif for the font family it goes away. ??? What's messed up? Who should I complain to? This is Debian Sid (behaving appropriately at the moment... ;-) Thanks for any help! Can you post a small example (LyX file plus DVI or PDF showing the spurious lines)? /Paul
Re: xy-pic oddities
Pol wrote: While the single arrow in command \xymatrix{A \ar[r] B} is displayed by lyx, three arrow graph in command \xymatrix{ & & p,a & \\ p \ar[r] \ar[ur] \ar[dr] & & p,n & \\ & & p,e & } is undisplayed (yet correctly printed out) Any ideas? Any matrix or array specifications needed in the preamble? thank you ---P FWIW, I pasted your three arrow code into a new document in LyX (with \usepackage[all]{xy} in the preamble), and instant preview displayed it with three arrow heads but only one arrow (the middle one). I also threw in another math inset with an integral, and instant preview did not display the integral sign. Then I saved and closed the document and reopened it (without leaving LyX) and IP got everything right. I've had other adventures like this with IP -- not sure what goes on. This is LyX 1.6.1 + MiKTeX 2.7 + Windows XP. /Paul
Problem compiling IEEEtran Standard Template (bare_jrnl.tex)
My apologies if this has been asked before, but I couldn't find anything directly relevant in the archives. I'm hitting a problem with IEEEtran and LyX; it would be great if anyone could help to work out whether it is a problem in what I'm doing, or perhaps a bug. I should add that I'm reasonably familiar with TeX/LaTeX, but new to LyX, so apologies if I'm missing something obvious. Versions: LyX 1.6.1 (linux and Mac OSX versions both show the problem) pdfTeX pi-1.40.9-2.2 (Web2C 7.5.7) from the TeXLive distribution IEEEtran bare_jrnl.tex V1.3 IEEEtran.cls V1.7a IEEEtran.layout - no version number that I can find, but the one included with LyX 1.6.1 I downloaded the most recent version of the IEEEtran template document from the IEEE website, imported it into LyX, and tried to typeset it (unchanged) using ps2pdf. Result: Error popup from LyX / LaTeX: Paragraph ended before \markboth was complete. An error also appears on standard error (I'm launching LyX from a terminal): Error in latexParagraphs: You should not mix title layouts with normal ones. On the other hand, typesetting bare_jrnl.tex with LaTeX works fine. I think the problem might lie in the importing. Once imported into LyX, only the first argument to \markboth shows as having markboth style (the second argument just shows as standard), but I'm not certain how the styles of a two-argument macro are normally treated in LyX. I realise there have been previously reported bugs relating IEEEtran, LyX and babel, but my understanding is that those were fixed in LyX 1.5. It's not an urgent problem for me (I just deleted the whole markboth section, since I'm just using it for a class demo, and markboth isn't relevant - this fixed the problem), but I thought I should report it. Thanks for any feedback. Bob
Re: Program Listing
Paul A. Rubin writes: Thanks Paul, that works fine. I was using float. Graham
Re: Minitoc and book (KOMA-Script) under LyX
I am testing the \mtcaddchapter command. I'll probably figure this out. If not I will _bump_ :-p Sorry the for the mail-traffic, Nikos
Re: Removing languages
> Please, explain exactly how you see this.. > > ..then implementing this would me much faster. > > Where do you set the languages used in toggling ? > Should this be stored in the LyX file ? > > Vincent > I would imagine a button on the toolbar, that would toggle between preconfigured input languages. Somewhere in the options these languages would be configured. Anyone with a language bar on their task bar will be familiar with the concept. In any case, I am not getting the confirmation mail from bugzilla. Who can troubleshoot this? It's not my spam filters. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: listings package problem
Nikos: I guess it's a font-specific issue. Too bad because Bera looks great. Guenter: > >> Txtt: > >> Set the typewriter font to Default in the GUI and write in the preamble > >> \renewcommand{\ttdefault}{txtt} Nikos: > > Not bad (the font in general). Yet: > > i. the backticks still look like ticks Guenter: > How do they look like in the first place? A minimal example file might help. Nikos: No need for an example here I think. It' simple: a backtick is _`_, a tick (or a single-quote!?) is _'_. The backtick is usually below the Esc key in most keyboards. The single wuote is well, usually in the same key where the double quote lies. They should appear in the pdf like here in this e-mail. Instead one cannot tell their difference in the output when I use Bera as a typewriter font. Courier shows them better but, again, I can't scale the font (I think...). [ Sorry if I messed-up the terms a bit (tick ~ single-quote) ] Any experiences for using long bash-like commands with LyX, KOMA-Script? Kind regards, Nikos
Re: listings package problem
On Mon, 2009-02-23 at 11:20 +0100, Manveru wrote: > 2009/2/22 Nikos Alexandris : > > [ I am posting a listing-related problem here instead of starting a new > > thread. ] > > > > I now realise how powerful is the listing package. I used some R code > > and setting the fonts to BeraMono gives a very nice and highlighted code > > in the output. > > > > There is only one *important* problem though: usually the _backticks_ > > (used in *nix-like OSes to execute a command within, let's say, from > > another command) appear as to have a top-left to bottom-right direction. > > With my current setting (Typewriter font set to BeraMono and language > > set to _bash_) the _backticks_ look very similar to the... well, the > > _ticks_! > > > > I guess it's a font-specific issue. Too bad because Bera looks great. > > > > Any other recommendation? Kind regards, Nikos > > If you use bash, there is another form of commands substitution other > than `backticks`. It is $(command) form. It may solve problems with > formatting and become more recognizable in your code examples. > Manveru, thanks for the tip. However, I insist in using the backticks. It's easy and gives a bettwe overview in a command like... NEWNAME="MOD${YEAR}_${RESOLUTION}_`echo ${i} | cut -d':' -f5 | cut -d"_" -f1,2,3 | sed 's+\_1++g' | sed 's+\_250m++g' | sed 's+\_500m++g'`" Cheers, Nikos
Minitoc and book (KOMA-Script) under LyX
Hi all! [Using LyX 1.6.1 under Ubuntu II/ 64-bit, book(KOMA-Script)] I've decided to use the minitoc package. I would like to have (as many others would like to have :-) a _SectionToC_ for each Chapter (except the 1st) in the beginning, of course, of each Chapter, listing Sections (x.x) and Subsections (x.x.x). I have read a lot of stuff [1] [2] [3] but I would like to have beforehand a more complex example implemented with LyX (more complex than the example given in [4]) in order to get going. Currently I use: * "\usepackage{minitoc}" in the Preamble * "\dominitoc" somewhere in the beginning of my document * "\minitoc" in the Introduction (note: Introduction is "Addchap" and all of its Sections are "Addsec"), in Chapter 2, in Chapter 3 and in Chapter 4. The result is that: * the "minitoc" does not appear in the Introduction (probably it has to do with the "Add*" commands) * it does not appear in the 2nd Chapter. * it does appear in Chapter 3. _But_ it does not correspond to Chapter 2. Instead it lists the Sections of the Introduction! * it doeas appear in Chapter 4, but as above, it shows the Sections of the previous Chapter, that is Chapter 3. Would be nice to have an option in LyX for that. Kind regards, Nikos --- [1] ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minitoc/minitoc.pdf [2] Several posts in the LyX-mailing list archive (search-keyword: minitoc) [3] (In German, almost in the end of the page) http://www.matthiaspospiech.de/latex/vorlagen/allgemein/preambel/13/#toc-verzeichnisse [4] http://wiki.lyx.org/Examples/Minitoc
RE: Removing languages
>> >>> +1 (from an end-user) for a separate _language_ button. >> >> So who is going to file an enhancement request to bugzilla.lyx.org? >> > >Give me a few minutes... > Please, explain exactly how you see this.. ..then implementing this would me much faster. Where do you set the languages used in toggling ? Should this be stored in the LyX file ? Vincent
Re: Removing languages
> >> +1 (from an end-user) for a separate _language_ button. > > So who is going to file an enhancement request to bugzilla.lyx.org? > Give me a few minutes... -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: Removing languages
On 2009-02-23, Nikos Alexandris wrote: > On Mon, 2009-02-23 at 07:27 +, Guenter Milde wrote: >> IMO, there is room for a better UI than hiding language switching >> under Edit>Text-Style>Custom. >> Also, the "apply last style" button would become more useful if it would >> not mix change of font size (or family) with change of language. >> How about a separate toggle-language button? In most cases, a document >> switches between at most 2 languages (native language and English, say). >> Günter > +1 (from an end-user) for a separate _language_ button. So who is going to file an enhancement request to bugzilla.lyx.org? GM
Re: English appearing backwards
Thanks, Gunter. I will put some time into this. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: English appearing backwards
On 2009-02-23, Dotan Cohen wrote: >> For LyX (or LaTeX) it is important to know in what language you are >> writing. Not only the directionality, but also font encoding (while LyX >> uses Unicode by now, LaTeX does not) and hyphenation depend on this. > I see, I did not realize that LaTeX does not support unicode. I > suppose that it never will, from what I've been reading the past few > days it looks like there will be no new features added. The TeX descendant XeTeX fully supports Unicode and OpenFont fonts. It is currently not directly supported by LyX (but workarounds exist, search wiki.lyx.org). >> Still, a keyboard switch "hotkey" could also be programmed to send a >> language changing command to lyx via the lyxserver. > I would very much like to know how to do that. This depends on your OS and Desktop. Some desktops allow keybindings to start a specified command: now this command could be a script performing both tasks. * The lyxserver is described in the LyX documentation. I use it from Python with my "PyLyX" package (http://wiki.lyx.org/Tools/PyClient). * I do not know anything about keyboard layout switching except that there are programms/commands doing this. >> I remember that one Israeli user reported to use an English keyboard >> setting on the system level together with the hebrew kmap in LyX, so >> this might be a starting point... > Would you happen to know his name, email address, or a text snippet > that I could google to find his post? If I remember right, it was Dekel Tsur responding to my suggestion to drop support of kmaps in LyX some years ago. But looking in Help>Configuration for kmaps and in the LYXDIR for hebrew.kmap will help. Günter
Re: listings package problem
On 2009-02-23, Nikos Alexandris wrote: > On Mon, 2009-02-23 at 08:12 +, Guenter Milde wrote: >> On 2009-02-22, Nikos Alexandris wrote: >> > I guess it's a font-specific issue. Too bad because Bera looks great. >> Txtt: >> Set the typewriter font to Default in the GUI and write in the preamble >> \renewcommand{\ttdefault}{txtt} > Not bad (the font in general). Yet: > i. the backticks still look like ticks How do they look like in the first place? A minimal example file might help. > ii. I loose the "scale" option which is there in the gui (I suppose I > can scale all typewriter fonts through the preamble as well) Yes and No, * you can scale all fonts, if you read and understand fntguide.pdf and write the cumbersome medium-level latex code in the preamble. * you can only scale fonts with a simple option if the font package supports this (in the LyX GUI, the scale box will grey out if the package does not support scaling). Günter
Re: How to get a modified Enumerate style?
On 2009-02-24, Laser Yuan wrote: > I need to write an description for an algorithm in my paper, which includes > several steps . Basically the Enumerate style will fit my purpose. Except > that I want a sequence like this: > Step 1 ... >... > Step 2 >... > instead of > 1. . > ... > 2. . > ... > Any method could achieve this style? Thanks in advance! Have a look at the customization possibilities of the enumitem package: http://dante.ctan.org/CTAN/help/Catalogue/entries/enumitem.html available for LyX with the enumitem module: http://wiki.lyx.org/Tips/Enumitem Günter
Re: I cannot compile to a pdf
NinaNutz wrote: I have a big problem... My thesis is finished and I cannot compile the complete pdf. When I export to pdf (any option) I only export 52 pages. My thesis is 350 pages more or less... but I cannot compile the complete one. The list of contents, figures and tables doesn't appears either. Is there anything suspicious (warnings or errors) in Document->Latex Log (there probably is)? Make a copy of your LyX file, and then in that copy, delete big parts of the document, export to PDF, see if it works, put the part back in (undo), delete a smaller part, ... Thus, trying to narrow down where the problem comes from. Usually within half an hour or so (or much shorter), you know what the offending part is. HTH, Konrad
RE: Re: I cannot compile to a pdf
>NinaNutz writes: > >I tried to uninstall and reinstall the previous version 1.5.6 and it happens the same... > >I really don't know what to do... > Isn't there something strange at the 53th page. Look for possible sources of error there. Otherwise try to compile the document from the command line and look for error messages (Export->Latex plain and then run latex). Vincent
Re: I cannot compile to a pdf
NinaNutz writes: I tried to uninstall and reinstall the previous version 1.5.6 and it happens the same... I really don't know what to do...
Re: Problem reading (import) Mathcad html file:XML input
If the Mathcad proram can output XML, there might be a chance to use that. I found a lot of texts about using TeX for outputting XML, but very few for inputting XML in TeX. The best references are: Numerical Algorithms Group (NAG) xmltex: A non validating (and not 100% conforming) namespace aware XML parser implemented in TeX http://www.dcarlisle.demon.co.uk/xmltex/manual.html Available from http://www.ctan.org/tex-archive/macros/xmltex/base/ For Python programmers: http://www.pytex.org/#XML And an unevaluated link: http://www.elml.ch/website/en/html/output_latex.html : From XML to PDF via LaTeX Sincerely, Hubert -- Hubert Christiaen Bloesemlaan 17 3360 Korbeek-Lo Belgium
I cannot compile to a pdf
Hello all, I have a big problem... My thesis is finished and I cannot compile the complete pdf. When I export to pdf (any option) I only export 52 pages. My thesis is 350 pages more or less... but I cannot compile the complete one. The list of contents, figures and tables doesn't appears either. What can I do? Lyx doesn't show any mistake, every works ok apparently, but I only can export 52 pages... The version of lyx that I'm using is lyx 1.6.1 Please, I need help...