> On 19 Nov, 2014, at 22:22, Christiaan Hofman <[email protected]> wrote:
> 
> 
> On Nov 19, 2014, at 21:38, Shodan wrote:
> 
>> Greetings, 
>> 
>> Being rather new to BibDesk, can anyone tell me how to have the Skim notes 
>> show up in the side panel like the screenshot Jan Jakob Bornheim posted on 
>> October 22, 2014?
>> 
>> Thanks and cheers,
>> 
>> Jason
>> 
> 
> You need a custom template that contain the Skim notes for the linked files. 
> There is some more info about templates on the Wiki, including some sample 
> templates, at least one of them also contains Skim notes.
> 
> Christiaan

The template I use is based on this one: 
http://ug.bu.edu/blog/lingtech/2009/03/22/even-better-bibdesk-preview-pane/ 
<http://ug.bu.edu/blog/lingtech/2009/03/22/even-better-bibdesk-preview-pane/>, 
albeit heavily modified.

As you can see, it uses a CSS/HTML based template.

I use the <$textSkimNotes/> key to get the sorted Skim notes. Since there is no 
way for BibDesk itself to retrieve the Skim notes sorted by page position in a 
template file , I also had to modify the Skim template that determines the 
result of the <$textSkimNotes/> (that is notesTemplate.txt in 
~/Library/Application Support/Skim/Templates) in order to nest different note 
types based on type and highlight colour in different divs (which is why in my 
screenshot, some “notes” appear as clickable links, those were section headings 
that I highlight in a different colour).

So in summary, the content of the part of the sidebar template that displays 
the Skim notes is something like this:

                <$SkimNotes?>
                        <div class="SkimNotes">
                                <h3>Skim Notes:</h3>
                                <$textSkimNotes/>
                        </div>
                </$SkimNotes?>

The content of <$textSkimNotes/> is a function of the notesTemplate.txt file, 
which looks something like this:

<$notes.@arraySortedByPageIndexAndBounds>
        <$type=Highlight?>
                <$textContents?>
                        <$color=NSDeviceRGBColorSpace 1 0.149131 0 1?>
                                <div class="SkimFootnotes"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
                        <?$color=NSDeviceRGBColorSpace 1 0.149134 1.01977e-06 
1?>
                                <div class="SkimFootnotes"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>   
    
                        <?$color=NSDeviceRGBColorSpace 0 0.714682 1 1?>
                                <div class="SkimHeadings"><a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>"><$contents/></a></div>
                        <?$color=NSDeviceRGBColorSpace 0.999424 0.985554 0 1?>
                                <div class="SkimHighlights"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
                        <?$color=NSDeviceRGBColorSpace 0.986264 0.996537 
0.0771834 1?>
                                <div class="SkimHighlights"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
                        <?$color=NSDeviceRGBColorSpace 1 0.576371 3.14053e-06 
1?>
                                <div class="SkimQuotes"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
                                <?$color=NSDeviceRGBColorSpace 1 0.576372 0 1?>
                                        <div class="SkimQuotes"><$contents/> 
[<a href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ 
<$pageIndex/></a>]</div>
                        <?$color?>
                                <div class="SkimHighlights"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
                        </$color?>
                <?$textContents?>
                </$textContents?>
        <?$type=Underline?>
                <div class="SkimUnderlined"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
        <?$type=Note?>
                <div class="SkimComments"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>
        <?$type=FreeText?>
                <div class="SkimComments"><$contents/> [<a 
href="skimmer-x://<$pageIndex.numberByAddingOne/>">+ <$pageIndex/></a>]</div>   
                     
        <?$type?>
                No matching template for this type of note.
        </$type?>       
</$notes.@arraySortedByPageIndexAndBounds>

The different div classes used in the Skim template, in turn, however, are 
defined in the BibDesk template.

PS: The skimmer-x part in my template is based on my custom URL scheme based on 
this one 
(http://jones.kaist.edu/notebook/2012/09/creating-a-custom-url-scheme-via-applescript-and-python.html
 
<http://jones.kaist.edu/notebook/2012/09/creating-a-custom-url-scheme-via-applescript-and-python.html>)
 but taking advantage of the effect that the link is displayed in BibDesk and – 
provided the publication has only one local file – I can thus determine the 
current location of the file.

Cheers,
Jan Jakob



> 
>> On Oct 22, 2014, at 1:50 PM, Jan Jakob Bornheim <[email protected]> wrote:
>> 
>>> In Yosemite, BibDesk seems to no longer indicate the groups a selected 
>>> publication is in. If I recall correctly, pre-Yosemite, the behaviour was 
>>> that a dark grey or purple would indicate the currently selected group, a 
>>> lighter shade of grey would highlight all other groups a selected 
>>> publication is in. In Yosemite, I can no longer see this behaviour. See the 
>>> attached screenshot. Since the selected publication is an article, the 
>>> @article group should be highlighted. The selected publication is also a 
>>> member of the static group "Th19: International Restitution Law” and of the 
>>> “Thesis” group, but obviously, you will have to take my word for that. 
>>> Neither of these two groups is highlighted.
>>> 
>>> Can anybody confirm this is a software, rather than a user issue?
>>> 
>>> Cheers,
>>> Jan Jakob
>>> <Screen Shot 2014-10-22 at 19.45.37.png>
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to