GeneralBlank Image and Bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dpath2o
Posts: 2
Joined: Thu Aug 14, 2008 5:01 pm

Blank Image and Bibliography

Post by dpath2o »

dpath2o.tex
(16.54 KiB) Downloaded 186 times
dpath2o.log
(4.68 KiB) Downloaded 176 times
Hello,

This is great forum. Thanks for putting it together.

I am learning latex on a Mac OS X as I write my masters thesis at UC Santa Cruz. Initially I tried using TexShop as one stop editing environment for my latex work but did not really like it compared to the nice editing environment of Aquamacs Emacs. Ultimately, I had trouble getting images (jpeg and png) in pdflatex under TexShop so I decided to switch and wrote a very simple bash script (see below) that works well and produces this document: http://cencalcurrents.org/~dpath2o/docs ... utline.pdf

#!/bin/bash
#given the prefix of a .tex file this simple command will attempt to
#convert the file into a pdf document
latex $1.tex
dvips $1 -o $1.ps
ps2pdf $1.ps $1.pdf

OK, now for my current problem: Since my outline has been approved I'm now starting to write the actual thesis of which there is a fairly sophisticated template for (see attached ucthesis.cls). This is nice in that I'm not having to re-invent the wheel, but it also assumes a deeper understanding of latex than I have at this moment. So when I run the above base script on this new document I cannot seem to get the figure inserted or any bibliography. I have attached the .log, .tex as well, in hopes someone here might have a look and immediately see what's going wrong. Basically the figure box is drawn and the path to the file is only thing inside the figure box. Also the Bibliography section is empty.

I have read the log file and see where it is failing for the Bibliography, but cannot come up with a work around since ``thebibliography'' section does not appear to be empty, as the log is explaining it is.

I can find no useful information in the log as to why the image is not showing.

Any insight is greatly appreciated.

Thanks,
dpath2o
Attachments
ucthesis.cls
(44.68 KiB) Downloaded 168 times

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Blank Image and Bibliography

Post by gmedina »

Hi,

the problem with the figures might be caused by the draft class option. Search the .cls file for something like

Code: Select all

\documentclass[...,draft,...]{...}
and comment out, or delete, draft.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Blank Image and Bibliography

Post by localghost »

dpath2o wrote:[...] Basically the figure box is drawn and the path to the file is only thing inside the figure box. [...]
Omit the draft option in the option list of the document class.
dpath2o wrote:[...] Also the Bibliography section is empty. [...]
You have to do an intermediate BibTeX run to create the bibliography. Afterwards the source has to be processed at least twice. Modify your shell script an include this run.

Code: Select all

#!/bin/bash
#given the prefix of a .tex file this simple command will attempt to
#convert the file into a pdf document
latex $1.tex
bibtex $1
latex $1.tex
latex $1.tex
dvips $1 -o $1.ps
ps2pdf $1.ps $1.pdf
This should create the bibliography file (*.bbl) and include the bibliography into the document.


Best regards
Thorsten¹
dpath2o
Posts: 2
Joined: Thu Aug 14, 2008 5:01 pm

Re: Blank Image and Bibliography

Post by dpath2o »

Most excellent and most helpful. THANK YOU!

Works like a charm, and knowledge is passed on ...
Post Reply