Re: Several Questions concerning formatting

"Katrin Althans" <[email protected]> Fri, 20 Oct 2006 15:22:12 -0000
Newsgroups gmane.comp.tex.bibtex.jurabib.user
Message-ID <[email protected]>
First of all: jurabib is AMAZING! I tried a little more (and erred
much more), but now I get to understand how jurabib (or any style)
works. And after newcommanding, renewcommanding etc., I finally got
the desired results complying with the MLA style guide. At least for
the less complicated kinds... There are only a few questions left:

1) the \jbbstasep is written in the same font as the authors it
separates, which looks strange when the authors are set in smallcaps;
using sth. like \renewcommand*{\jbbstasep}{\normalfont{, and }}
doesn't work, as it not only sets the separator but also the last
author to normal font

2) http://groups.yahoo.com/group/jurabib/message/35 explained how to
exchange editor and title in edited books, and it worked fine with the
old version, but not with the new beta :(

3) again the edited book: the bibliography says surnameauthor,
firstnameauthor; surnameeditor, firstnameeditor, \editorname. title
etc; is there a possibility to change it to \Edbyname firstnameeditor
surnameeditor? Due to \citationreversed, that is the case in the
footnotes.

4) which sequence controls the optional []-argument in citations
(where the e.g. the pagenumber can be inserted); I'd like to change it
via \renewcommand to a fullstop.


--- In [email protected], Jens Berger <jberger@...> wrote:

> Sounds good to me. But do a system wide search for an old
jurabib.sty an remove it.

Did that, and found out that I had a copy in my \texmf\tex\latex... To
my excuse: there are so many files, and the .sty was at the very end.
Did it all again, and it works perfectly.

 
> For your problem d) try:
> 
> \renewcommand{\jbshorttitlefont}[1]{%
>      \ifthenelse{\equal{\jb@@title}{\@empty}}{}{%
>          \ifthenelse{\equal{\jb@@type}{article}}{%
>              ``#1''%
>          }{%
>              \ifthenelse{\equal{\jb@@type}{book}}{%
>                  \textit{#1}
>              }{%
>                  #1%
>              }%
>          }%
>      }%
> }
> \makeatother

That's it! Thanks a lot for that. And I tried, after having read a
similar post in the German de.comp.text.tex group, to modify it to
include periodicals and incollections as well (I guess that is what
Charles suggested?). When modifying Jens' example didn't work,I simply
added another 
\ifthenelse{\equal{\jb@@type}{article}}{%
              ``#1''%
          }{%
, I copied that other post verbatim and inserted a comma:

\makeatletter
    \renewcommand*{\jbshorttitlefont}[1]{%
        \ifthenelse{%
            \equal{\jb@@type}{article}%
         \or
            \equal{\jb@@type}{periodical}%
          \or
             \equal{\jb@@type}{incollection}%
    }{%
        "#1,"%
    }{%
         \textit{#1}%
    }%
    }
\makeatother

But both won't work with incollection. I've worked around this by
defining \jbtitlefont globally the way it should look like for
articles and than redefine it again with Jens' code to suit books.

Cheers, Katrin

Here's my minimal example for the non-working parts:

\documentclass[12pt, oneside, a4paper, BCOR14.5mm, DIV12, headsepline,
normalheadings]{scrreprt}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx,textcomp,booktabs,amsmath}
\usepackage[UKenglish]{babel}
\usepackage[onehalfspacing]{setspace}
\usepackage[includehead, top=1.7cm, bottom=3.4cm]{geometry}
\usepackage{jurabib}

\jurabibsetup{
	authorformat={reducedifibidem,citationreversed},
	citefull=first
	}

\AddTo\bibsenglish{%	
	\renewcommand*{\jbauthorfont}{\textsc}
	\renewcommand*{\jbbtasep}{ and } 
	\renewcommand*{\jbbfsasep}{, } 
	\renewcommand*{\jbbstasep}{, and }
}

\makeatletter
    \renewcommand*{\jbshorttitlefont}[1]{%
        \ifthenelse{%
            \equal{\jb@@type}{article}%
         \or
            \equal{\jb@@type}{periodical}%
          \or
             \equal{\jb@@type}{incollection}%
    }{%
        ``#1,''%
    }{%
         \textit{#1}%
    }%
    }
\makeatother

\begin{document}
\bibliographystyle{jurabib}

Das\footnote{Cf. \cite{Ashcroft2000}} ist das Folgezitat\footnote{Cf.
\cite{Ashcroft2000}}, weil hier\footnote{Cf. \cite{Ashcroft2001}} noch
ein anderer Titel ist.\footcite{Luckhurst2001} Bei
Zeitschriftenaufsätzen\footcite{Luckhurst2002} funktioniert
es.\footcite{Luckhurst2002} As to the other problems\footnote{Cf.
\cite{AGT2002}} mentioned above:\footnote{\cite{Thackeray1848}} here
they are!\footnote{Cf. \cite{AGT2002}}
\newpage
\bibliographystyle{jurabib}
\bibliography{literatur}
\end{document}
literatur.bib has the following entries:

@INCOLLECTION{Ashcroft2000,
  author = {Ashcroft, Bill},
  title = {Resistance and Transformation},
  booktitle = {English Literatures in International Contexts},
  publisher = {Winter},
  year = {2000},
  editor = {Antor, Heinz and Stierstorfer, Klaus},
  address = {Heidelberg},
  pages = {15-27}
}

@book{Ashcroft2001,
  author = {Ashcroft, Bill},
  title = {Postcolonial Transformation: all about it},
  year = {2001},
  publisher = {Routledge},
  shorttitle = {Postcolonial Transformation},
  address = {London}
}

@book{AGT2002,
  author = {Ashcroft, Bill and Griffiths, Gareth and Tiffin, Helen},
  title = {The Empire Writes Back},
  gender = {pm},
  titleaddon = {1989},
  edition = {2},
  year = {2002},
  publisher = {Routledge},
  shorttitle = {The Empire Writes Back},
  address = {London}
}

@article{Luckhurst2002,
  author = {Luckhurst, Roger},
  title = {The Contemporary London Gothic and the Limits of the
Spectral Turn},
  journal = {Textual Practice},
  gender = {pm},
  year = {2002},
  volume = {16},
  pages = {527-46},
  number = {3},
  shorttitle = {Spectral Turn}
}

@book{Luckhurst2001,
  author = {Luckhurst, Roger},
  title = {The Contemporary London Gothic and the Limits of the
Spectral Turn},
  year = {2001},
  address = {London},
  publisher = {Routledge}
}

@BOOK{Thackeray1848,
  title = {Vanity Fair: A Novel without a Hero},
  titleaddon = {1848},
  gender = {pm},
  publisher = {Penguin Books},
  year = {2003},
  editor = {Carey, John},
  author = {Thackeray, William Makepeace},
  series = {Penguin Classics},
  address = {London},
}




-- 

Please remember -- this is an international english speaking mailing list!

If you have a problem, please provide a complete minimal example document (with a small bibliography database), which runs out of he box without any superfluous packages loaded, otherwise we could not help. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jurabib/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/jurabib/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/