multibib and apacite

157 views
Skip to first unread message

Bram Enning

unread,
Mar 27, 2008, 1:57:27 PM3/27/08
to LaTeX Users Group
Hi,

has anyone been able to combine multibib and apacite? The manual says
it should work but I'm getting:

"I found no \citation commands---while reading file lit.aux"

when I run bibtex lit

All suggestions are welcome

vvvv

unread,
Mar 29, 2008, 2:26:53 AM3/29/08
to LaTeX Users Group
I haven't used it, but I might need to for a project that I am doing
now. If you post a minimal example, I'll see what I can do with it.

Keep in mind that there are several way to compile a document that has
separate bibliographies. One is to compile the documents separately,
without page numbers but with their own index or bibliography, then
use pdfpages to combine them.

James McElhannon

unread,
Mar 29, 2008, 10:08:12 AM3/29/08
to Latex Lovers
Hi all,
 
Given that LaTeX floats my tables and figures, is there a way that I can tell where it will be floated and conditionally add some text?
 
For example, using a book layout.  Let's say the book is open to pages 6 (left) and 7 (right), and the paragraph where I'm going to reference the figure is on page 6. 
 
If the figure is on page 6 or 7, I want the reference to say: "Figure 123 shows ...".
If the figure is later in the text, I want the reference to say: "Figure 123 (on page 8) shows ..."

Thanks
James


Watch “Cause Effect,” a show about real people making a real difference. Learn more.

James McElhannon

unread,
Mar 29, 2008, 10:17:56 AM3/29/08
to Latex Lovers
Hi all,
 
In the index of my document, there are some items that I want to appear in color, or in italics, or in a different font, etc., but I can't figure out how to do it.
 
I've tried the following, and all of them turn every entry in the index blue...
 
\index{{\color{blue}hello}}
\index{{\color{blue}hello\color{black}}
 
I tried the following, but "hello" and "there" are sorted differently than "how", "are", and "you".  I looked at the index file, and I see that the font command for "hello" and "there" is part of the index entry, and therefore they all sort together...
 
\index{\texttt{hello}}
\index{\texttt{there}}
\index{how}
\index{are}
\index{you}
 
I know that I could do multiple indices and that would fix the problem since all items in each index would either have the font commands in them or not, so each one would sort correctly.  And I know that there are good reasons for a 'proper' layout to not mix these things and to use separate indices anyway.  Nevertheless, I really want to end up with one index...

vvvv

unread,
Mar 29, 2008, 6:17:57 PM3/29/08
to LaTeX Users Group
The following works for me to show italic, terminal type, and color in
an index, but be careful that you aren't making your document look
silly by adding color or unusual formatting:

\documentclass{article}
%
\usepackage{color}
\definecolor{mycolor}{rgb}{0.5,0.7,0.6}
%
\usepackage{index}
\makeindex%you need this if you want an index
\begin{document}
\index{\emph{hello} \colorbox{blue}{\color{mycolor}there} {\tt
abcd}}hello there.
%now print the index:
\printindex
\end{document}

vvvv

unread,
Mar 29, 2008, 6:42:48 PM3/29/08
to LaTeX Users Group
The varioref package can print information about a reference based on
whether the target of the reference is on the same, previous, or
subsequent page. You might need to override some of the wording.
Here is an example

\documentclass{article}
% test of conditional reference
%
% there seems to be some odd spacing,
% around the varioref commands, so doublecheck
% how you use the commands. You might want
% to omit the space before the vref command.
%
\usepackage{varioref}
%%
%% try changing these to adjust the results of vrefs:
%% The original had spaces before the {}.
\renewcommand\reftextfaceafter {on page~\thevpagerefnum}
\renewcommand\reftextfacebefore{on page~\thevpagerefnum}
\renewcommand\reftextafter {on page~\thevpagerefnum}
\renewcommand\reftextbefore {that I present on page~\thevpagerefnum}
%
\begin{document}
birds can fly so I can fly\label{firstlabel}.

I am still on the same page. My philosophical example\vref{firstlabel}
shows how the world works.

This ref is before the target of the reference: See my grand
conclusion\vref{grandconclusion} for more information.
\newpage
Another philosophical example might go here\label{second}.

My philosophical example\vref{firstlabel} shows how the world works.
\newpage
Now I am on page three. My philosophical example\vref{firstlabel}
shows how the world works.

Here is my \label{grandconclusion}grand conclusion
See my two My philosophical examples\vrefrange{firstlabel}{second}.
\end{document}

James McElhannon

unread,
Mar 30, 2008, 5:28:42 PM3/30/08
to latexus...@googlegroups.com
Hi...  thanks for the below, but it has the same sorting problem that I came across.  If you make the body of the document the following, you'll get the same behavior that I saw:
 
\index{gggg}
\index{\emph{dddd} \colorbox{blue}{\color{mycolor}eeee} {\texttt{ffff}}}ddd,eee,fff.
\index{\emph{aaaa} \colorbox{blue}{\color{mycolor}bbbb} {\texttt{cccc}}}aaa,bbb,ccc.
\index{ffff}

In the index, you'll get the following:
 
1) the line beginning with 'aaaa'
2) the line beginning with 'dddd'
3) a space in the index
4) 'ffff'
5) a space in the index
6) 'gggg'
 
 
The generated index file looks like this:
 
\begin{theindex}
  \item \emph {aaaa} \colorbox {blue}{\color {mycolor}bbbb} {\texttt {cccc}},   1
  \item \emph {dddd} \colorbox {blue}{\color {mycolor}eeee} {\texttt {ffff}},   1
  \indexspace
  \item ffff, 1
  \indexspace
  \item gggg, 1
\end{theindex}

Is there a way to get the index sorted one way and displayed another?
 
Thanks...
James



> Date: Sat, 29 Mar 2008 15:17:57 -0700
> Subject: Re: colored or varied font index entries
> From: vne...@gmail.com
> To: latexus...@googlegroups.com

vvvv

unread,
Apr 10, 2008, 10:05:47 AM4/10/08
to LaTeX Users Group
It took me a while to understand your question, but I think you are
asking about the font commands ruining the sort. I think you can
enter the index entries with a "sort key" and a "display entry"

\index{aaa@\textbf{aaa}}

try this

\documentclass{book}
\usepackage{index}
%\usepackage{makeidx}
%\newindex{sub}{adx}{and}{Subject Index}
%\newindex{default}{idx}{ind}{Index}
\makeindex
\begin{document}

hello \index{aaa@\textbf{aaa}}
\index{bbb}
asdf
adsf
\newpage
adsf
\index{ccc@{\it ccc}}
\index{ddd}
\printindex
\end{document}


Reply all
Reply to author
Forward
0 new messages