## LaTeX forum ⇒ TeXworks ⇒ Texstudio, 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

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:

\documentclass[11pt]{article}\usepackage{cite} %I don't even want to cite, I only want a bibliography\title{References}\author{xx}\date{Today} \begin{document} \maketitle  %This file was created with Citavi 4.4.0.28 @article{Abel.2003,  author = {Abel, Beate},  year = {2003},  title = {English idioms in the first language and second language lexicon: a dual representation approach},  pages = {329--358},  volume = {19},  number = {4},  journal = {Second Language Research},  doi = {10.1191/0267658303sr226oa}} [i](tons more references)[/i] \bibliography{mybib}{YoP} %is there something wrong here? Do I have change "mybib"?\bibliographystyle{plain} \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". $latex paper transparency bibliography %I realize these probably don't help$ bibtex paper transparency bibliography   %<- name of the file, .bib$latex paper transparency bibliography$ 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?

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 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
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:

\documentclass[11pt]{article}\usepackage{cite}\title{References}\author{xx}\date{Today} \begin{document} \maketitle  %This file was created with Citavi 4.4.0.28 @article{Abel.2003,  author = {Abel, Beate},  year = {2003},  title = {English idioms in the first language and second language lexicon: a dual representation approach},  pages = {329--358},  volume = {19},  number = {4},  journal = {Second Language Research},  doi = {10.1191/0267658303sr226oa}} \bibliography{mybib}{YoP}\bibliographystyle{plain}\end{document}\bibliographystyle{YoP} $latex paper transparency bibliography$ bibtex paper transparency bibliography$latex paper transparency bibliography$ 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?

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4: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.
% arara: pdflatex% arara: biber% arara: pdflatex% arara: pdflatex\begin{filecontents}{\jobname.bib}	@article{Abel.2003,		author = {Abel, Beate},		year = {2003},		title = {English idioms in the first language and			second language lexicon: a dual representation		approach},		pages = {329--358},		volume = {19},		number = {4},		journal = {Second Language Research},		doi = {10.1191/0267658303sr226oa}	}\end{filecontents}\documentclass[11pt]{article}\usepackage[	style=authoryear,%	style=numeric]{biblatex}\addbibresource{\jobname.bib}\begin{document}\cite{Abel.2003} \parencite{Abel.2003}\footcite{Abel.2003} \printbibliography \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
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.?

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 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
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

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 pm
There is the german word for file, i'll just assume you can read german and link wichtige Hinweise zur Erstellung von Literaturverzeichnissen.

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 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.

### Who is online

Users browsing this forum: No registered users and 1 guest