Re: [Solved] Error "file ended while scanning use of \@@BOOKMARK" ?
On Monday 21 of February 2011 19:57:37 Nikos Alexandris wrote: > Nikos Alexandris wrote: > > > > (using Lyx 1.6.10 with book(KOMA-script)) > > > > > > > > I am counting down days before submitting... (it's really a deadline > > > > I can't miss to deliver my work) and I used to compile my > > > > koma-script-based document in draft mode. Now, I try to compile it > > > > correctly and it insist returning this error: "file ended while > > > > scanning use of \@@BOOKMARK". > > > > > > > > Is it in the .bib file maybe? I've checked all strange names (non > > > > utf8 characters) and have formatted them using, for example {\'a} > > > > and {\=a} as well as {\'e} (all this I did in kbib, which I like a > > > > lot). > > > > > > [...] > > > > > > Bahh... I switched the whole bookmark thing off and it works. Don't > > > really know how to debug this and time is short. > > Wolfgang: > > What about removing half of the document content, check the export, if > > ok, take half of the other half etc, until you have found the faulty > > part? > > I've heard of this way to treat problems before. In fact, I wanted to try > it out. But I have no time... :-/ Maybe I'll give it a go the last day. ... Solved! Fe it was a label in a subsection, or the copy-pasted (from the net) title of this subsection itself!!! Thanks Wolfgang, Nikos
Re: BibTeX and Natbib
On 23/02/2011 6:30 PM, Eduardo de Oliveira Horta wrote: So it seems all that was needed to do was to select the plainnat.bst as the bibliography style. Now it`s working fine. I have another question, though: is it possible to configure the style in the references section when I added it the way I mentioned in my previous mail (that is, insert> List/TOC> BibTeX bibliography...)? I guess this configuration is controlled by some bst or sty file, but have no clue as to which, neither as how to edit them... The various styles (.bst files) are documented in many places. One such place is here: http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html See if you can find a style that matches your need. Alternatively you can create your own style by answering questions using a command-line tool (custom-bib, bib-it) If you are adventurous you can learn bibtex's stack language syntax and modify an existing style to your liking or write your own. Good luck, Julien Any help would be welcome. Thanks, and best regards, Eduardo -- Julien
Re: BibTeX and Natbib
So it seems all that was needed to do was to select the plainnat.bst as the bibliography style. Now it`s working fine. I have another question, though: is it possible to configure the style in the references section when I added it the way I mentioned in my previous mail (that is, insert > List/TOC > BibTeX bibliography...)? I guess this configuration is controlled by some bst or sty file, but have no clue as to which, neither as how to edit them... Any help would be welcome. Thanks, and best regards, Eduardo On Tue, Feb 22, 2011 at 11:37 PM, Eduardo de Oliveira Horta wrote: > Thanks! I'll see if I can manage to make it work and then I'll let you know. > > Eduardo > > On Tue, Feb 22, 2011 at 10:58 PM, Richard Heck wrote: >> On 2/22/11 4:38 PM, Eduardo de Oliveira Horta wrote: >>> >>> Hello LyX community, >>> >>> I'm facing a little problem which I'm sure is a recurrent (and >>> hopefully easy to solve) one. >>> >>> I have a .bib file with all my references, and I've added the >>> bibliography as usual through >>> >>> insert> List/TOC> BibTeX bibliography... >>> >>> The file exports to pdf as a charm, with all citations numbered, >>> within brackets and no author names. Ok. Now I would like my citations >>> to be formated as author-year. I've changed the citation style to >>> Natbib (in Document> Settings> Bibliography> Citation Style). The >>> LyX file displays the citations correctly, but when I compile it to >>> pdf, they appear messy, like >>> >>> (author?) [1] >>> >>> for example. Interestingly, the link [1] takes me to the correct place >>> in the bibliography. >>> >>> Is there a way to overcome this issue? >>> >> This means that there is an error in your bib file that is preventing BibTeX >> from reading the author-year combination correctly. It can be many things >> that cause it, but a missing year is often the culprit. The best way to >> debug is to export to LaTeX and compile the file manually. Then you should >> see error messages sufficient to locate the problem. >> >> rh >> >> >
SV: Error in Latex output, LyX adds an extra brace
> >Can you try to isolate the issue? I.e., remove everything you can until >the problem is all that is left? It is difficult to remove anymore than the lyx file enclosed in the first email. :) However, I tried to make a a how to reproduce, and that were a little bit more complicated. But at least I succeeded: 1. make a margin note inset and put some "text" in it 2. Choose the "text" and chose anything other than plain layout environment and LyX adds an extra closing brace in the LaTeX-code Why this happened the first time, I do not know. It might happen in converting from an old file-format, as this file were started in the 1.3-series of LyX and have been converted as new LyX-version have come along, or It might have been an error when I made a new paragraph and accidentally marked the wrong part of the text... Ingar Pareliussen
Re: Error in Latex output, LyX adds an extra brace
On 02/23/2011 07:28 AM, Ingar Pareliussen wrote: Hi I am working on a large document and there seem to be an error where LyX adds an extra brace to the LaTeX code. Removing the margin note from the paragraph-environment fixes the error, so the workaround is easy. However, I think this is an error, should I report it the bugtracker? Can you try to isolate the issue? I.e., remove everything you can until the problem is all that is left? rh
Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%
On 23/02/2011 7:15 AM, Matthieu Stigler wrote: Hi Asking again for some help on how to prevent Lyx to add automatically \usepackage{subgif} when using subfig. Richard kindly gave advices (see below), which did not work unfortunately. Any help will be much appreciated! Thanks a lot! Matthieu - Don't insert floats within floats the LyX way, instead use TeX code (ERT) to do the same thing. Add the necessary TeX preamble code to your document as necessary. - Write a LyX module with a custom inset "subfloat" which handles the TeX code for you. Use your custom inset within your floats. -- Julien
Error in Latex output, LyX adds an extra brace
Hi I am working on a large document and there seem to be an error where LyX adds an extra brace to the LaTeX code. Removing the margin note from the paragraph-environment fixes the error, so the workaround is easy. However, I think this is an error, should I report it the bugtracker? Ingar braces_error.lyx Description: braces_error.lyx
Re: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%
Hi Asking again for some help on how to prevent Lyx to add automatically \usepackage{subgif} when using subfig. Richard kindly gave advices (see below), which did not work unfortunately. Any help will be much appreciated! Thanks a lot! Matthieu Le 22. 02. 11 14:56, Matthieu Stigler a écrit : Dear Richard Thanks a lot for your detailed explanation! Unfortunately, the suggested procedure was without effect: even after inserting/reconfiguring/loading the {no subfig} module, Lyx adds automatically the lines: \@ifundefined{showcaptionsetup}{}{% \PassOptionsToPackage{caption=false}{subfig}} \usepackage{subfig} Did it work on your Lyx configuration? I have Lyx 1.6.5 on Ubuntu 10.4 Your help is much appreciated! Matthieu Le 21. 02. 11 21:54, Richard Heck a écrit : On 02/21/2011 11:41 AM, Matthieu Stigler wrote: Dear Richard Thanks for your answer! I unfortunately did not understand exactly where I should put this command? When in Lyx preamble or in the custom .sty it results into error... Did I miss something? The suggested Provides subfig 1 command is a LyX layout command, and needs to go into some appropriate layout file or module. See chapter 5 of the Customization manual for details. In this case, something as simple as what is at the end will do. Put it into the layout/ subdirectory of your LyX user directory (~/.lyx/, by default, on Linux), and then reconfigure. Then you can choose the "No subfig" module from Document>Settings>Modules, and LyX won't (shouldn't!) try to load subfig for you. Note that you could also add you other custom commands to such a module and not have to do it manually. Furthermore, yes Lyx still adds preamble commands after user defined, see: [snip] Due to requirements on package-loading order, some such things do get done later. Richard #\DeclareLyXModule{No subfig} #DescriptionBegin #Supresses loading of subfig package. #DescriptionEnd Format 11 Provides subfig 1