* Bold BibTeX refs in text?
@ 2005-09-13 10:05 Giuseppe Bilotta
2005-09-13 10:50 ` Mojca Miklavec
2005-09-13 12:25 ` Taco Hoekwater
0 siblings, 2 replies; 5+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 10:05 UTC (permalink / raw)
This is my bibliography set up
\usemodule[bib]
\setupbibtex[database={mrabbrev,bezier}]
\setuppublications[numbering=yes,
sorttype=cite,
numbercommand=\bracketed,
refcommand=num]
I would have liked the in-text bibtex refs to come out in
bold, so I tried:
\setupcite[num][before={\start\bf},after={\stop}]
but this isn't working. I'm pretty sure I'm missing
something obvious here ...
While we're at it, the reference compression method is a
little too aggressive: I have a \cite[onething,another] and
it gives me [1--2] in text ... in this case [1,2] would be
better, IMO. Compression is good if you have three or more
consecutive refs.
BTW, how do I add the whole database to the reference list?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bold BibTeX refs in text?
2005-09-13 10:05 Bold BibTeX refs in text? Giuseppe Bilotta
@ 2005-09-13 10:50 ` Mojca Miklavec
2005-09-13 11:31 ` Re[2]: " Giuseppe Bilotta
2005-09-13 12:25 ` Taco Hoekwater
1 sibling, 1 reply; 5+ messages in thread
From: Mojca Miklavec @ 2005-09-13 10:50 UTC (permalink / raw)
Giuseppe Bilotta wrote:
> I would have liked the in-text bibtex refs to come out in
> bold, so I tried:
>
> \setupcite[num][before={\start\bf},after={\stop}]
\setupcite[num][left={[\start\bf},right={\stop]}]
> BTW, how do I add the whole database to the reference list?
Do you mean \setuppublications[criterium=all] (to print all the
publications in the database, even the uncited ones) or perhaps
\setupbibtex[database=filename]?
Mojca
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re[2]: Bold BibTeX refs in text?
2005-09-13 10:50 ` Mojca Miklavec
@ 2005-09-13 11:31 ` Giuseppe Bilotta
0 siblings, 0 replies; 5+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 11:31 UTC (permalink / raw)
Tuesday, September 13, 2005 Mojca Miklavec wrote:
> Giuseppe Bilotta wrote:
>> I would have liked the in-text bibtex refs to come out in
>> bold, so I tried:
>>
>> \setupcite[num][before={\start\bf},after={\stop}]
> \setupcite[num][left={[\start\bf},right={\stop]}]
Aha! Left and right, not before and after.
>> BTW, how do I add the whole database to the reference list?
> Do you mean \setuppublications[criterium=all] (to print all the
> publications in the database, even the uncited ones) or perhaps
> \setupbibtex[database=filename]?
criterium=all, thanks.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bold BibTeX refs in text?
2005-09-13 10:05 Bold BibTeX refs in text? Giuseppe Bilotta
2005-09-13 10:50 ` Mojca Miklavec
@ 2005-09-13 12:25 ` Taco Hoekwater
2005-09-13 14:09 ` Re[2]: " Giuseppe Bilotta
1 sibling, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2005-09-13 12:25 UTC (permalink / raw)
Giuseppe Bilotta wrote:
> While we're at it, the reference compression method is a
> little too aggressive: I have a \cite[onething,another] and
> it gives me [1--2] in text ... in this case [1,2] would be
> better, IMO. Compression is good if you have three or more
> consecutive refs.
The actual compression of the numbers is done by a macro written
by Hans (syst-new.tex) and I don't quite understand how it works,
but ... please try this patch:
\unprotect
\def\doverysimplebibnumref#1#2%
{\refsep
\ifcase#1\relax ??\else
\def\tempa{#2}%
\ifx\empty\tempa#1\else
\ifnum#1<\numexpr#2-1\relax
#1\bibalternative\c!inbetween#2%
\else
#1\refsep#2%
\fi
\fi
\fi}
\protect
That should keep on working even if/after Hans' macro is changed
sometime in the future.
Greetings, Taco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re[2]: Bold BibTeX refs in text?
2005-09-13 12:25 ` Taco Hoekwater
@ 2005-09-13 14:09 ` Giuseppe Bilotta
0 siblings, 0 replies; 5+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 14:09 UTC (permalink / raw)
Tuesday, September 13, 2005 Taco Hoekwater wrote:
> The actual compression of the numbers is done by a macro written
> by Hans (syst-new.tex) and I don't quite understand how it works,
> but ... please try this patch:
> \unprotect
> \def\doverysimplebibnumref#1#2%
> {\refsep
> \ifcase#1\relax ??\else
> \def\tempa{#2}%
> \ifx\empty\tempa#1\else
> \ifnum#1<\numexpr#2-1\relax
> #1\bibalternative\c!inbetween#2%
> \else
> #1\refsep#2%
> \fi
> \fi
> \fi}
> \protect
> That should keep on working even if/after Hans' macro is changed
> sometime in the future.
Works all right, thanks.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-13 14:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13 10:05 Bold BibTeX refs in text? Giuseppe Bilotta
2005-09-13 10:50 ` Mojca Miklavec
2005-09-13 11:31 ` Re[2]: " Giuseppe Bilotta
2005-09-13 12:25 ` Taco Hoekwater
2005-09-13 14:09 ` Re[2]: " Giuseppe Bilotta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).