LaTeX forum ⇒ TeXworksTexstudio, Citavi (Windows 7) - can't use Bibtex

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
jiragana
Posts: 6
Joined: Wed Jun 10, 2015 1:45 pm

Texstudio, Citavi (Windows 7) - can't use Bibtex

Postby jiragana » Wed Jun 10, 2015 7:18 pm

Hi,
does anyone know what do with this:
I've exported a bibliography from Citavi with a specific style I've defined.
Q 1: Do I need to adapt this style in Bibtex or is it exported with this file and defined Citavi style?

Export seems to have worked fine.
But whenever I try to compile the file, I get this error message by Texstudio:

Couldn't start default compiler:PdfLatex:pdflatex.exe-synctex== 1-interaction=nonstopmode "[name of file]".tex


From what I've read so far, I may need to do something with biber, but I don't know where to find it. Under the "Configure TexStudio -> Commands -> Biber", I entered the supposed name where the system can find it:
"C:/Program Files/MiKTeX 2.9/tpm/packages/miktex-biber-bin.tpm" %

Doesn't help.

I also realize there's a certain order in which I need to compile and recompile, but I don't get how to run Bibtex. (It also doesn't work with TexWorks, just nothing happens.)
Q 2: How do I run Bibtex?

Here's my code, which I'm sure is wrong somewhere:

  1. \documentclass[11pt]{article}
  2. \usepackage{cite} %I don't even want to cite, I only want a bibliography
  3. \title{References}
  4. \author{xx}
  5. \date{Today}
  6.  
  7. \begin{document}
  8.  
  9. \maketitle
  10.  
  11.  
  12. %This file was created with Citavi 4.4.0.28
  13.  
  14. @article{Abel.2003,
  15. author = {Abel, Beate},
  16. year = {2003},
  17. title = {English idioms in the first language and second language lexicon: a dual representation approach},
  18. pages = {329--358},
  19. volume = {19},
  20. number = {4},
  21. journal = {Second Language Research},
  22. doi = {10.1191/0267658303sr226oa}
  23. }
  24.  
  25. [i](tons more references)[/i]
  26.  
  27. \bibliography{mybib}{YoP} %is there something wrong here? Do I have change "mybib"?
  28. \bibliographystyle{plain}
  29. \end{document}\bibliographystyle{YoP} %<-style I defined in citavi before; I get the same compiling error message when I leave it empty or enter "plain".
  30.  
  31. $ latex paper transparency bibliography %I realize these probably don't help
  32. $ bibtex paper transparency bibliography %<- name of the file, .bib
  33. $ latex paper transparency bibliography
  34. $ latex paper transparency bibliography


I hope this helps and someone can help me.
So Q 3: Why do I get this error message and what can I do?

Many thanks in advance!

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jun 10, 2015 9:22 pm

I did not know that Citavi can output a bst-file, in which the style is defined in a way LaTeX can understand.

The error you are getting is that pdflatex cannot be run. There is at least one space missing to separate the different arguments.

Can you compile a simple document without a bibliograohy? According to the error, you should not.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

jiragana
Posts: 6
Joined: Wed Jun 10, 2015 1:45 pm

Postby jiragana » Thu Jun 11, 2015 12:33 pm

Can you compile a simple document without a bibliograohy? According to the error, you should not.


Yes, I can. I could yesterday when I had the problem and I can now. So the first error message seems to be gone now. Now, something else is weird:

Johannes_B wrote:I did not know that Citavi can output a bst-file, in which the style is defined in a way LaTeX can understand.


That's the thing, I'm not sure it actually can. It can export the content, but that seems to be it...right?
What I did now is this:
I took my file called "blabla.bib" (which Texstudio can't seem to be able to do anything with, can't open it), changed its name to "blabla.bib.tex". From here, I can make a document (as long as it's a tex-file). However, it looks extremely messy, there's no style, it's not a bibliography.
Here's the code:

  1. \documentclass[11pt]{article}
  2. \usepackage{cite}
  3. \title{References}
  4. \author{xx}
  5. \date{Today}
  6.  
  7. \begin{document}
  8.  
  9. \maketitle
  10.  
  11.  
  12. %This file was created with Citavi 4.4.0.28
  13.  
  14. @article{Abel.2003,
  15. author = {Abel, Beate},
  16. year = {2003},
  17. title = {English idioms in the first language and second language lexicon: a dual representation approach},
  18. pages = {329--358},
  19. volume = {19},
  20. number = {4},
  21. journal = {Second Language Research},
  22. doi = {10.1191/0267658303sr226oa}
  23. }
  24.  
  25. \bibliography{mybib}{YoP}
  26. \bibliographystyle{plain}
  27. \end{document}\bibliographystyle{YoP}
  28.  
  29. $ latex paper transparency bibliography
  30. $ bibtex paper transparency bibliography
  31. $ latex paper transparency bibliography
  32. $ latex paper transparency bibliography


and here's what it produces:

References
dm
Today
This le was created with Citavi 4.4.0.28
@articleAbel.2003, author = Abel, Beate, year = 2003, title = English
idioms in the rst language and second language lexicon: a dual representation
approach, pages = 329{358, volume = 19, number = 4, journal =
Second Language Research, doi = 10.1191/0267658303sr226oa


So I'm sure what I did there has nothing to do with creating a bibliography, does it?

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jun 11, 2015 3:08 pm

Citavi is a program managing the contents of a bibliography. It exports the raw data in a database.
Citavi, with respect to LaTeX, has absolutely no advantage. A simple manager like Jabref, or even any Texteditor (notepad, gedit, etc) can do the job. You should be able to open it.

In the old days, you had LaTeX to typeset, BibTeX along with a style file (bst) to format and sort the bibliography. Packages like natbib were helping out.
A more modern approach was introduced almost 10 years ago with package biblatex. That package make all support packages of the old system obsolete, it takes care of everything, even formatting the bibliography. To get all the new features to work, a new database processor was introduced, called biber. biber replaces BibTeX.
biblatex/biber can work with utf8-encoding, which bibtex simply can't. biblatex, a fairly recent thing, fully supports urls and DOIs, while on the other hand, the BibTeX system with styles that are around for 25 years, mostly do not support it.

Customizing a bibliography is very very time consuming if you want to make a robust and good bibliography. With biblatex, those are simple LaTeX macros and it is quite easy with a bit of experience. Hacking an old style file for the BibTeX system is simply a pain in the foot, because the language is quite strange.

Try to run the following, you can check the output by clicking on Open in writelatex just above the code box.
  1. % arara: pdflatex
  2. % arara: biber
  3. % arara: pdflatex
  4. % arara: pdflatex
  5. \begin{filecontents}{\jobname.bib}
  6. @article{Abel.2003,
  7. author = {Abel, Beate},
  8. year = {2003},
  9. title = {English idioms in the first language and
  10. second language lexicon: a dual representation
  11. approach},
  12. pages = {329--358},
  13. volume = {19},
  14. number = {4},
  15. journal = {Second Language Research},
  16. doi = {10.1191/0267658303sr226oa}
  17. }
  18. \end{filecontents}
  19. \documentclass[11pt]{article}
  20. \usepackage[
  21. style=authoryear,
  22. % style=numeric
  23. ]{biblatex}
  24. \addbibresource{\jobname.bib}
  25. \begin{document}
  26. \cite{Abel.2003}
  27.  
  28. \parencite{Abel.2003}\footcite{Abel.2003}
  29.  
  30. \printbibliography
  31.  
  32. \end{document}


How to set up biber in my editor can help you. The very same applies if you want to add arara for you convenience.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

jiragana
Posts: 6
Joined: Wed Jun 10, 2015 1:45 pm

Postby jiragana » Thu Jun 11, 2015 5:57 pm

Thanks very much for clarifying all that!
I get it a bit better now.

I tried your code in Texstudio. What did you mean how I should have inserted it, into the main document (the article) or in a separate one? It works in neither, although I got the problem messages down to 2:
- "biber.sty not found" although I just downloaded both biblatex (fine) and biber into a Texstudio folder. But since biber got extracted to a .gz file only, I don't know where I should put it so Tex finds it?
- next is a warning: "[name of file].bib created" (or not creatable b/c it already exists). But what would I do with this file, anyway?

Secondly, I looked at the output of your code online which is good, but I would have to adapt a few things.
I've never written a macro before. Is there any other way to modify stuff like getting rid of quotation marks, brackets, italicize etc.?

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jun 11, 2015 6:45 pm

I see i have to translate my german introduction to the bib stuff into english to save me some time in the future ;-)


The bib-file is your database, that what citavi exports. I used my own here and used a little LaTeX feature to write to a new file (which LaTeX will not overwrite).

The code i posted should have been run as a completely new document, not inserted into any existing document.

biber is a helper program, no package. That error should not have been occuring. You can download it from sourceforge. You need to place it in the same folder as pdflatex, the bin directory of MikTeX.


First we need to get everything up and running, than we can troubleshoot the appearance of the bibliography. But that would be several new threads, we have space for thousands of new threads ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

jiragana
Posts: 6
Joined: Wed Jun 10, 2015 1:45 pm

Postby jiragana » Thu Jun 11, 2015 7:59 pm

Hi again,
okay, I moved the biber.sty file and I set biber to default bibliography as it says here: http://tex.stackexchange.com/questions/154751/biblatex-with-biber-configuring-my-editor-to-avoid-undefined-citations/154754#154754
It produces output.

But if I stupidly copy your code into a new document and compile it in my Texstudio, though, it doesn't give me the reference, it only gives me a quote, not the bibliography entry. It only gives me this (please see attachment).
Attachments
test datei.pdf
(50.93 KiB) Downloaded 583 times

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jun 11, 2015 8:02 pm

There is the german word for file, i'll just assume you can read german and link wichtige Hinweise zur Erstellung von Literaturverzeichnissen.


If you can't read german, please leave a note.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jun 15, 2015 5:12 pm

Are there any news? I had to run on thursday so i couldn't leave any explanations. Did you succeed in producing a bibliography?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest