General ⇒ Blank Image and Bibliography
Blank Image and Bibliography
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
NEW: TikZ book now 40% off at Amazon.com for a short time.

Blank Image and Bibliography
Hi,
the problem with the figures might be caused by the draft class option. Search the .cls file for something like
and comment out, or delete, draft.
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,...]{...}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Blank Image and Bibliography
Omit the draft option in the option list of the document class.dpath2o wrote:[...] Basically the figure box is drawn and the path to the file is only thing inside the figure box. [...]
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.dpath2o wrote:[...] Also the Bibliography section is empty. [...]
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
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Blank Image and Bibliography
Most excellent and most helpful. THANK YOU!
Works like a charm, and knowledge is passed on ...
Works like a charm, and knowledge is passed on ...