On 20 Jun 2008, at 10:30 AM, Arjan Tuijnder wrote:
> Dear bibdesk users,
>
> I've been using bibdesk for years, but I've just started to explore
> the export scripts for pages. I want recreate the reference style
> prescribed by sedimentology, a journal of blackwellpublishing.
>
> I cannot figure out why I sometimes get 2 returns between references
> and sometimes one. And for some of my references the second line is
> slightly indented while the first line is not. I cannot find anything
> in my rtf-template file which influences this behaviour.
>
> Could someone please tell me what is going on? I am clearly missing
> something...
Spaces and newlines can be dropped around a collection tag or a
condition tag. The rules are:
1. spaces /before/ a collection/condition tag up to the beginning of
the line are dropped, but not a newline.
2. spaces including a newline /after/ a collection/condition tag up to
the end of the line are dropped.
Note that spaces between a collection/condition tag and some other tag
or text on the same line are never dropped. Basically, it uses the
standard rule a newline belongs to the line before it.
Some examples to illustrate these rules:
* Example 1:
before
<$key>
<$#/>.item
</$key>
after
Spaces around the tags and newlines after the tags are dropped,
newline after "before" and "item" remain intact. Result:
before
1.item
2.item
3.item
after
* Example 2:
before <$key>
<$#/>.item
</$key>
after
Spaces and newlines after the tags are dropped, but not before the
(first) tag, there is only a space after "item". Result:
before 1.item
2.item
3.item
after
* Example 3:
before
<$key>
<$#/>.item </$key>
after
Spaces and newlines after the tags are dropped, the space after "item"
is not dropped. Result:
before
1.item 2.item 3.item after
* Example 4:
before
<$key> <$#/> item </$key>
after
The newline after the last tag is dropped, but not the spaces after
the first tag or before the last tag, the newline after "before"
remains. Result:
before
1 item 2 item 3 item after
I hope this clarifies it.
Christiaan
>
> Below I included my template file. I would gladly provide the rtf-
> version and the pages file if someone would like to have a look at it.
>
> Thanks, Arjan Tuijnder
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users