Document Classesnew and with problems :)

Information and discussion about specific document classes and how to create your own document classes.
radsim
Posts: 12
Joined: Mon Jun 02, 2008 10:12 am

new and with problems :)

Post by radsim »

Hi guys, I finally decided to switch to the cross-platform and powerful tool LaTeX, since I'm a linguist and need some creepy pictures now and then :). The first impressions are very good. However, I've been dealing with some non-trivial (as far as I can tell) problems right from the beginning.

First, I can't make the natbib package work. All the components are in place (I've just tried out this: http://www.mpi.nl/world/persons/private/robstu/latex/how_to/bibtex.html). It gives no error but it never produces any in-text citation or bibliography. It just gives ? instead of any citation. This happens at both my windows system (miktex) at work and at my apple at home.

Second, while my apple tex distribution reads [utf8]{inputenc}, my miktex at windows can't make it. Any suggestions/redirections to threads?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: new and with problems :)

Post by balf »

For natbib: did you 1)(pdf)latex; 2) bibtex; 3) latex again; 4)latex once more? A number of auxiliary files need to be created in order to incorporate the bibliography and cross-reference it.

B.A.
radsim
Posts: 12
Joined: Mon Jun 02, 2008 10:12 am

new and with problems :)

Post by radsim »

balf wrote:For natbib: did you 1)(pdf)latex; 2) bibtex; 3) latex again; 4)latex once more? A number of auxiliary files need to be created in order to incorporate the bibliography and cross-reference it.

B.A.
What precisely does the second step refer to? How should I 'bibtex' something? I tried to (pdf)latex several times, nothing new happens. The only new thing to me happened when I used the Quick Build function (texmaker) - it produced the file but gave me an error: it wrote that the citations used are "undefined".
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: new and with problems :)

Post by balf »

You have to create a bibliographic database ( .bib file); on a Mac, BibDesk helps you doing that, JabRef under Windows.Then bibtex it (you should have a menu item in TeXshop for that), applying a certain style (.bst file) in order to obtain a bibliography file usable by LaTeX (it is a .bbl file). Only then LaTeX can incorporate the actual references. You also need a third compilation with LaTeX to completely resolve the cross-references (page numbers, &c.).

You can take a look at the following document:
http://www.tex.ac.uk/tex-archive/info/b ... ttb_en.pdf

B.A.
radsim
Posts: 12
Joined: Mon Jun 02, 2008 10:12 am

new and with problems :)

Post by radsim »

Thank you so much! Finally I found the BibTeX thing and it works. Any suggestions as for my second problem?
radsim wrote:Second, while my apple tex distribution reads [utf8]{inputenc}, my miktex at windows can't make it. Any suggestions/redirections to threads?
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: new and with problems :)

Post by balf »

Maybe your windows editor doesn't manage correctly utf8... Maybe it is a compatibility problem between Mac and Windows. Personally, I do not use utf8 ; under windows, try \usepackage[ansinew]{inputenc}.

B.A.
radsim
Posts: 12
Joined: Mon Jun 02, 2008 10:12 am

Re: new and with problems :)

Post by radsim »

It shouldn't be a compatibility problem - I didn't transfer any data from one to another, I was simply trying the same in Windows. So probably you're right, Windows doesn't seem to be able to cope with utf8. I've tried [ansinew] and it does the job only partly. It can parse some symbols but not others, e.g. the Czech {\v{r}}, i.e. a "r" with a little hook on top of it. Probably, I'll need something specific for Czech. Any further suggestions greatly appreciated, thanks so far!!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

new and with problems :)

Post by Stefan Kottwitz »

Hi Radsim,
radsim wrote:Probably, I'll need something specific for Czech.
Try cslatex, see csTeX Homepage.
Also czech fonts are mentioned there and you will find them on CTAN (csfonts, csfonts-t1) too.

Stefan
LaTeX.org admin
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: new and with problems :)

Post by balf »

By the way, did you specify \usepackage[T1]{fontenc} ? The default knows only ascii characters and has problems with diacritics and accented letters, especially for hyphenation.

B.A.
radsim
Posts: 12
Joined: Mon Jun 02, 2008 10:12 am

Re: new and with problems :)

Post by radsim »

Dear Balf and Stefan, thank you both very much. Now I'm out of work (at my Mac where everything works fine :)), so tomorrow I'll try it out again. R.
Post Reply