6

I took the tex code from here and imported to LyX 2.1.0 to use BibLaTeX with MiKTeX on Windows 7. But I'm getting the following error:

! Package biblatex Error: Incompatible package 'backref'.

The problem persists even after updating the packages. I wonder how to figure out this problem. Any help will be highly appreciated. Thanks in advance.

Edited

The same code works fine in tex but after importing to LyX 2.1.0 it throws the error. Might be in the back-end LyX 2.1.0 using backref package too.

I also tried

Tools > Preferences > Output > LaTeX > Bibliography generation > Processor > Biber

but without any success.

MYaseen208
  • 8,587
  • Don't use the backref package with biblatex. Use the backref option biblatex has. – Juri Robl Jun 09 '14 at 20:51
  • Or do you use the exact same code as in the link? – Juri Robl Jun 09 '14 at 21:18
  • Yes, I'm using the exact code given in the link. – MYaseen208 Jun 10 '14 at 01:25
  • 1
    I've retracted my answer, as it seems that there is more going on than meets the eye. Something is loading the backref package, it would appear. biblatex includes a check/call with \@ifpackageloaded{backref}, and that is what is triggering the error, even if you haven't loaded it explicitly... Now, the question becomes, What could cause that? – cslstr Jun 10 '14 at 02:14
  • It seems that LyX is by default loading backref, try Document > Settings > PDF Properties > Backreferences > Off and have a look here Lyx bibliography displaying section number (the answer discussed there might not be what you want). This question How to surpress pagenumbers in bibliography section in LyX? seems to be almost identical and even has a nice screenshot (in German though) on what you have to do. – moewe Jun 10 '14 at 05:46
  • 1
    Did any of the answers I linked to help? – moewe Jun 12 '14 at 05:04
  • In LyX 2.1.0 I tried Document > Settings > PDF Properties and unchecked Use Hyperref Support. This compiled the file but doesn't show bibliography and show citation with only bibtex key. – MYaseen208 Jun 14 '14 at 05:49
  • 1
    biblatex uses biber by default, so do Document --> Settings --> Bibliography, and select biber as Processor. – Torbjørn T. Jun 14 '14 at 06:09
  • Thanks @TorbjørnT.. This does the trick in LyX. Could you change your comment to answer. Please also guide me how to get this work with TexnicCenter and TexStudio. – MYaseen208 Jun 14 '14 at 11:44
  • If you mean running biber, see http://tex.stackexchange.com/questions/154751/biblatex-with-biber-configuring-my-editor-to-avoid-undefined-citations – Torbjørn T. Jun 14 '14 at 14:31
  • Did only turning back-references off not work, or is there any other reason why you decided to entirely turn off the hyperref support? – moewe Jun 14 '14 at 15:54

2 Answers2

3

I tried the same, had the same problem with LyX2.1.4 on Win7. Followed all the above no luck. Been here many times before with 'hidden' LyX stettings clobbering imported LaTeX :-(

Solution: |Documents>Settings>PDF Properties>[Hyperlinks]Backreferences:[Off]

Typesets exactly as it should :-)

Not quite, because the backlinks are disabled unless you select |Document>Settings>Bibliography>Processor: to work with bibLaTeX as stated in the previous comment by Torbjørn T.

The universal solution would be for LyX to display all the LaTeX settingings it 'applies in the background'. You can |View>Source Pane>[Preamble Only] but you still have to search for where it is set! B.T.W. if you only change the menu biber setting LyX will NOT re-typeset the document to show it works (LyX2.1.4-Win7). You have to type something! :-(

Jethro Belle
  • 138
  • 6
  • If you have a specific idea for how this information could be displayed, please describe in detail your idea in an enhancement request at http://www.lyx.org/trac . We are always open to new ideas if they are well-planned. – scottkosty Feb 15 '16 at 04:22
  • THX @scottkosty, Maybe program the equiv of my manual approach |LyX|File>Export>latex(Plain)> & make preamble content auto. present in the |LyX|Document>Settings...>[LaTeX Preamble] (greyed out). Maybe a button Show LyX generated Preamble. Finding the 'hidden settings' would be find-search, if the user manual included the 'preamble content equivalent entry' against each setting. It would avoid days of turn-off experiences & reduce the LaTeX knowledge required to be effective. – Jethro Belle Feb 19 '16 at 06:38
  • Great ideas! Hope to see some of them pop up on http://www.lyx.org/trac – scottkosty Feb 19 '16 at 07:47
  • I did as you suggested Scott and it has already been rejected ;-( I am investigating the new LyX bug identified above at link It wasted days and undermined confidence in LyX/LaTeX until I realised what LyX is not doing. – Jethro Belle Feb 22 '16 at 07:17
  • Sorry to hear that Jethro. I hope that experience does not scare you away from making further bug reports/ enhancement requests. It is very important for LyX to have good user feedback. Thanks for your time and effort! – scottkosty Feb 22 '16 at 16:10
1

Tools > Preferences > Output > LaTeX > Bibliography generation > Processor > Biber

and

Document > Settings > Bibliography

and selecting biber and Processor did the trick in LyX 2.1.0.

MYaseen208
  • 8,587
  • 1
    You are aware that this doesn't answer the question as it stands? The problem that the question is about was answered by @moewe's comment about turning off backreferences in the Document settings. You have just answered the new problem that occurred afterwards, which is not at all mentioned in the question. At least make the answer complete, or let moewe answer. – Torbjørn T. Jun 14 '14 at 14:30