Generalproblems with biobliography formatting

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kiltanen
Posts: 5
Joined: Thu Sep 17, 2009 1:37 pm

problems with biobliography formatting

Post by kiltanen »

I'm trying to prepare my thesis for publication in internet, but I can't get biobliography with urls to work properly. I have to use the hyperref package for links, but for some reason when I try to use breakurl package I can't view the biobliography pages with urls. error message given by yap is later. I can view one biobliography page that doesn't contain urls. How I fix this problem? I have almost 40 pictures so I don't want to start converting them from eps to pdf to try pdftex. After all breakurl and hyperrref combination should work.

main file in latex document:

Code: Select all

\documentclass[a4paper,finnish,12pt]{article}
\usepackage[finnish]{thesis}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[dvips]{graphicx}
\usepackage{amsmath,amssymb,epic,eepic} %,psfrag amsbsy,
\usepackage[version=3]{mhchem}
\usepackage{fancyhdr}
\usepackage{a4,epsfig,tabularx,array,longtable}
\usepackage{verbatim}

\usepackage{thesis}
\usepackage{color}

\usepackage[pdfpagemode=None,colorlinks=true,urlcolor=red,linkcolor=blue,citecolor=black,pdfstartview=FitH]{hyperref}
%\usepackage{url}
\usepackage{breakurl}

%% Vaakasuunnan mitat, ÄLÄ KOSKE!
\setlength{\hoffset}{-1in}
\setlength{\oddsidemargin}{35mm}
\setlength{\evensidemargin}{25mm}
\setlength{\textwidth}{15cm}
%% Pystysuunnan mitat, ÄLÄ KOSKE!
\setlength{\voffset}{-1in}
\setlength{\headsep}{7mm}
\setlength{\headheight}{1em}
\setlength{\topmargin}{25mm-\headheight-\headsep}
\setlength{\textheight}{23cm}
%% Vasensuora-asettelu, joka opinnäytteessä vaaditaan. ÄLÄ KOSKE
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}

\graphicspath{{./kuvat/}}

\begin{document}

\Language{Finnish}{Suomi}

\pagenumbering{roman}
\thispagestyle{empty}
\selectlanguage{finnish}

\input{abstract2.tex}
\setcounter{tocdepth}{2}
\addcontentsline{toc}{section}{Sisällysluettelo}
\tableofcontents
%\newpage
%
%\pagestyle{fancy}
%\input{symbols.tex}
%\newpage

\cleardoublepage
\storeinipagenumber
\pagenumbering{arabic}
\setcounter{page}{1}

\input{johdanto.tex}
%\newpage
\clearpage
\input{teoria.tex}
%\newpage
\clearpage
\input{testit.tex}
%\newpage
\clearpage
\input{kokeet.tex}
%\newpage
\clearpage
\input{johtopaatokset.tex}
%\pagebreak

\clearpage

%\addcontentsline{toc}{chapter}{Viitteet}
\addcontentsline{toc}{section}{Viitteet}

\bibliographystyle{plain}
\bibliography{./viitteet/A,./viitteet/B,./viitteet/K,./viitteet/W}

\clearpage
\appendix
%\addcontentsline{toc}{chapter}{Liite A}
\addcontentsline{toc}{section}{Liite A}
\input{liitteet.tex}

\end{document}
example of bibtex-entry:

Code: Select all

@misc{A4,
  title     = "{SRIM Special - Range Statistics}",
  howpublished = "\url{http://www.srim.org/SRIM/Tutorials/SRIM Special - Range Statistics.doc}"
}
error message from yap:

Code: Select all

MiKTeX Problem Report
Message: The page could not be rendered.
Data: Error: /undefined in BU.SS
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1893   1   3   %oparray_pop   1892   1   3   %oparray_pop   1876   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1155/1684(ro)(G)--   --dict:0/20(G)--   --dict:73/200(L)--   --dict:179/300(L)--   --dict:39/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1

Source: C:\work3\miktex-2.8\Libraries\MiKTeX\Dvi\DviPage.cpp
Line: 1045
MiKTeX: 2.8
OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
SystemAdmin: yes
PowerUser: no
Root0: C:\Documents and Settings\Teekkari\Application Data\MiKTeX\2.8
Root1: C:\Documents and Settings\Teekkari\Local Settings\Application Data\MiKTeX\2.8
Root2: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8
Root3: C:\Program Files\MiKTeX 2.8
UserInstall: C:\Documents and Settings\Teekkari\Application Data\MiKTeX\2.8
UserConfig: C:\Documents and Settings\Teekkari\Application Data\MiKTeX\2.8
UserData: C:\Documents and Settings\Teekkari\Local Settings\Application Data\MiKTeX\2.8
CommonInstall: C:\Program Files\MiKTeX 2.8
CommonConfig: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8
CommonData: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problems with biobliography formatting

Post by Stefan Kottwitz »

Hi kiltanen,

welcome to the board!
For posting LaTeX code to the forum there's a code environment, available by clicking the code button above the edit field when writing. I've corrected that in your first posting to show it.

Concerning your problem you could try the hypdvips package.

Stefan
LaTeX.org admin
kiltanen
Posts: 5
Joined: Thu Sep 17, 2009 1:37 pm

Re: problems with biobliography formatting

Post by kiltanen »

Use of hypdvips package didn't fix the error message caused by breakurl package and urls in bibliography are still problem because they won't break. hypdvips package itself doesn't seem to able to break urls in bibtex bibliography. What should I try to fix the problem?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problems with biobliography formatting

Post by Stefan Kottwitz »

Try the option breaklinks=true for hyperref and load hypdvips after hyperref instead of breakurl.

Stefan
LaTeX.org admin
kiltanen
Posts: 5
Joined: Thu Sep 17, 2009 1:37 pm

Re: problems with biobliography formatting

Post by kiltanen »

Didn't work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problems with biobliography formatting

Post by Stefan Kottwitz »

On my system (TeX Live 2009 on Linux) it's working, also the url is wrapped:
viitteet.png
viitteet.png (5.01 KiB) Viewed 4296 times
I just had to make some changes to your original file to make it compilable at all.
What should be your final output format? dvi, pd or pdf?

Stefan
LaTeX.org admin
kiltanen
Posts: 5
Joined: Thu Sep 17, 2009 1:37 pm

Re: problems with biobliography formatting

Post by kiltanen »

final file will be pdf. I use MikTex 2.8 on windows XP.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: problems with biobliography formatting

Post by Stefan Kottwitz »

In that case I suggest to convert to ps and then to pdf to test the final output. It's possible that Yap cannot show a document though the ps and pdf version would be ok.

Stefan
LaTeX.org admin
kiltanen
Posts: 5
Joined: Thu Sep 17, 2009 1:37 pm

Re: problems with biobliography formatting

Post by kiltanen »

with breakurl in ps file bibliography pages with urls didn't render and with hypdvips package and breaklinks=true settings in ps- and pdf-file urls weren't broken.
Post Reply