Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using a custom bibliography style I created with makebst. For some reason, the references are not aligned to the left, only the first line is aligned to the left and the rest seems to be indented. How can I fix that. I use the package natbib and author-cite type of citations.

Screenshot of bibliography layout in LyX

This is the preamble of my document

\documentclass[12pt,a4paper,twoside,french]{article}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\pagestyle{headings}
\usepackage[authoryear]{natbib}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth

\newcommand{\noun}[1]{\textsc{#1}}

\makeatother

\usepackage{babel}
\addto\extrasfrench{%
   \providecommand{\og}{\leavevmode\flqq~}%
   \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}

\begin{document}

It shows the bibliography the same way in LyX and TeXmaker. I uploaded the bst file as well : http://hu.lk/d5pn8ebdwjy8 How can I fix it ?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Given that you use natbib, the indentation of the lines after the first one is controlled by the length \bibhang. You can change it by using

\setlength{\bibhang}{0pt}
share|improve this answer
    
Thanks a lot it works like a charm. –  esmitex Nov 15 '12 at 17:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.