BibTeX, biblatex and biberproblems with achemso and ref alignment

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
jnreece
Posts: 3
Joined: Thu Jun 24, 2010 8:18 am

problems with achemso and ref alignment

Post by jnreece »

Hi,

I'm having one problem with the achemso package that I cannot seem to solve.
I'm able to generate my references and everything just fine but when I do, the final reference is not properly aligned and instead of being single spaced it is double spaced.
For example: (ignore the lines)

_______[35] blah, blah and blah
____________more blah

[36] blah, blah and blah (<---I want to fix this one)

_____more blah

I got the entire package recently from CTAN and I have not added any updated .cls or .bst files so I'm a bit stumped.

Code: Select all

\documentclass{chem,dissertation,blah,blah}
\usepackage{achemso}
\begindocument
some words and such. \cite{harry03}
\bibliographystyle{achemso}
\bibliography{bibfile1}
\end{document}
Hopefully I just forgot something trivial. I've done a sort of speed crash course with this stuff over the last month. Please let me know if you need any more information.

Thank you (in advance, hopefully)

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: problems with achemso and ref alignment

Post by josephwright »

You will need to post a proper example that we can compile. This is quite possibly a document class issue, but from the code you give it's impossible to tell. achemso itself does not alter the LaTeX part of the bibliography formatting process.
Joseph Wright
jnreece
Posts: 3
Joined: Thu Jun 24, 2010 8:18 am

problems with achemso and ref alignment

Post by jnreece »

Oh, I'm sorry.

Sorry if I haven't chosen the best way for this. This is an example of my chapter file. I use the thesis.tex file to compile everything and I'm not having much luck condensing thesis.tex and ch3.tex. There's also the .bib for the chapter and the .cls I'm using.

Code: Select all

\chapter{blah}

Phenyl radicals play important roles in organic synthesis and the biological activity of certain drugs, for example. organic syntheses.
There are been several studies focused on these species in both the gas and solution phase. 
\cite{Dean97,Sander99,Nicolaou91,Hoffner98,Bridger63,Pryor64,Scaiano83,Sommeling93,Yu94,Fahr88,Chen89} 

\newpage

\bibliographystyle{achemso}
\bibliography{ch3}

\newpage
This is where you can find the .sty file needed for things to run.
https://engineering.purdue.edu/~mark/pu ... gtable.sty

I hope this is what is needed.

Thank you answering.
Attachments
thesis060810.tex
(3.34 KiB) Downloaded 189 times
ch3.bib
(9.35 KiB) Downloaded 184 times
puthesis.cls
(47.86 KiB) Downloaded 166 times
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

problems with achemso and ref alignment

Post by josephwright »

This is nothing like a minimal example: you need to work on things yourself to come up with something that the rest of us can help with. In your case, you have

Code: Select all

\makeatletter
\renewenvironment{thebibliography}[1]
  {
    \section{References}
    \vspace{12pt}
    \list
      {\@biblabel{\arabic{enumiv}}}
      {
        \settowidth\labelwidth{\@biblabel{#1}}
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \if@openbib
          \advance\leftmargin\bibindent
          \itemindent -\bibindent
          \listparindent \itemindent
          \parsep \z@
        \fi
        \@@thebibliographyparsep
        \usecounter{enumiv}
        \let\p@enumiv\@empty
        \renewcommand{\theenumiv}{\arabic{enumiv}}
        \baselineskip=12pt
      }
    \if@openbib
      \renewcommand{\newblock}{\par}
    \else
      \renewcommand{\newblock}{\hskip .11em \@plus.33em \@minus.07em}
    \fi
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=\@m
  }
  {}
\makeatother   
in your preamble. This alters the formatting of the bibliography, and it's nothing to do with achemso. Where did you get this from? (More generally, your entire TeX file seems to be cobbled together from low-level hacks, which is generally a bad thing.)
Joseph Wright
jnreece
Posts: 3
Joined: Thu Jun 24, 2010 8:18 am

Re: problems with achemso and ref alignment

Post by jnreece »

Ahh. I'm sorry. A friend of mine in my department wrote most of it. I removed the bibliography altering lines from the preamble and that fixed everything. Thank you so very much for being patient and helping me. I'll be sure to review the preambles and codes better before posting.

Thank you again.
Post Reply