For the moment I switched from markup to HTML. Happy citing!

On Nov 1, 7:28 pm, DrunkenMonk <[email protected]> wrote:
> > 1) How can I set the css class for the citation links in order to
> > customize it in code.style? I.e. to generate <a href="..."
> > class="aClass">...</a>.
> > Do I have to use plain HTML instead of BW-markup in the plugin to
> > achieve this?
>
> I'm sure theres a better way, but you could return the links
> surrounded with a <div> setting the class you want.
>
>
>
>
>
> > 2) Using `[$citenumber`] won't work as DrunkenMonk confirmed in a post
> > above. Would you like to make this work?
>
> > Regards,
> > Markus
>
> > On Nov 1, 5:16 pm, The Editor <[email protected]> wrote:
>
> > > I took a stab at this with my own plugin. I'm actually considering it
> > > for inclusion in the core, to replace the ^1 syntax which is hardly
> > > much of a savings over ^^1^^. With this you put
>
> > > sometext (cite myreference...) blah blah
>
> > > And then at the bottom of the page or in the footer, put
>
> > > (citations)
>
> > > And you get I think everything you want. Click on the reference to go
> > > to the note. Click on the number in the note and go back to the
> > > reference. Let me know if you have problems with the plugin--otherwise
> > > it may well go into the next core release...
>
> > > Cheers,
> > > Dan
>
> > > P.S.http://www.boltwire.com/index.php?p=solutions.links.citations
>
> > > On Sun, Nov 1, 2009 at 10:47 AM, Markus <[email protected]> 
> > > wrote:
>
> > > > Sure, we don't put the citation into the array but the whole reference
> > > > string. ^^
>
> > > > On Nov 1, 2:59 pm, Markus <[email protected]> wrote:
> > > >> On Nov 1, 12:52 pm, DrunkenMonk <[email protected]> wrote:
>
> > > >> > There should be another bug in your plugin:
>
> > > >> >         if(in_array($citation, $citelist)) $thecitenr = array_search
> > > >> > ($citation);
>
> > > >> > should be something like
>
> > > >> >         array_search($citation, $citelist)
>
> > > >> > This is the code to reuse a citation if it's been used once already,
> > > >> > and I forgot to include the array to search through to find the
> > > >> > number.
>
> > > >> Oh, yes. I did not notice this. But still, when I use the very same
> > > >> function call of 'cite' several times, I get the same citation listed
> > > >> several times in the references. Already listed references should be
> > > >> reused. At the moment I don't see why this happens.
>
> > > >> > I'm sorry for my bugged suggestion, but I was just writing from the
> > > >> > top of my head and php isnt my strongest language.
>
> > > >> Don't be sorry. Thanks for putting this together and forcing me to
> > > >> make myself a little more familiar with the PHP syntax.
>
> > > >> > On Oct 31, 7:05 pm, Markus <[email protected]> wrote:
>
> > > >> > > Another question. Where can I set the css class for the citation 
> > > >> > > links
> > > >> > > in order to customize it in code.style?
>
> > > >> > > On Oct 31, 6:58 pm, Markus <[email protected]> wrote:
>
> > > >> > > > New references plugin at:
>
> > > >> > > >http://www.boltwire.com/index.php?p=solutions.links.references
>
> > > >> > > > Any idea why I cannot use:
>
> > > >> > > > "[[#citation$thecitenr]][[$pageLink#reference$thecitenr|`
> > > >> > > > [$citenr`]]]";
>
> > > >> > > > It should display as [42] for example. But the escaping does not 
> > > >> > > > work.
>
> > > >> > > > Regards, Markus
>
> > > >> > > > On Oct 31, 5:59 pm, Markus <[email protected]> wrote:
>
> > > >> > > > > Ah, it's "impLode" in the last line? :) Still it's not 
> > > >> > > > > working. Just
> > > >> > > > > gives me ^1 in main and \n\n in the footer. Let's see if I can 
> > > >> > > > > fix it.
>
> > > >> > > > > On Oct 31, 5:45 pm, Markus <[email protected]> 
> > > >> > > > > wrote:
>
> > > >> > > > > > Wow, thanks a lot!
>
> > > >> > > > > > Shouldn't I be able to make this a working plugin by:
> > > >> > > > > > - putting it in a php file in the plugin folder
> > > >> > > > > > - adding <?php if (!defined('BOLTWIRE')) exit(); at the 
> > > >> > > > > > beginning of
> > > >> > > > > > the file
> > > >> > > > > > - prepending BOLTF to both function names?
>
> > > >> > > > > > Regards, Markus
>
> > > >> > > > > > On Oct 31, 4:35 pm, DrunkenMonk <[email protected]> wrote:
>
> > > >> > > > > > > I can think of a way, but it involves a custom function, 
> > > >> > > > > > > or a markup.
>
> > > >> > > > > > > Below is an example. It would be fairly trivial I'm sure 
> > > >> > > > > > > to turn it
> > > >> > > > > > > into a markup instead. I just prefer using functions.
>
> > > >> > > > > > > use [(cite "a citation, author etc")] to cite something in 
> > > >> > > > > > > the main
> > > >> > > > > > > body
> > > >> > > > > > > use [(references)] to make a rather list of citations, 
> > > >> > > > > > > Probably in a
> > > >> > > > > > > footer.
>
> > > >> > > > > > > ----
>
> > > >> > > > > > > function cite($args, $field='') {
> > > >> > > > > > >   global $citenr, $citelist;
> > > >> > > > > > >   $citation = $args[1];
>
> > > >> > > > > > >   if( in_array($citation, $citelist) ) $thecitenr = 
> > > >> > > > > > > array_search
> > > >> > > > > > > ($citation);
> > > >> > > > > > >   else {
> > > >> > > > > > >     $citenr += 1;
> > > >> > > > > > >     $thecitenr = $citenr;
> > > >> > > > > > >   }
> > > >> > > > > > >   $citelist[] = 
> > > >> > > > > > > "[[{p}#citationanchor$thecitenr|$citation]";
> > > >> > > > > > >   return "^$thecitenr^[[#citationanchor$thecitenr]]";
>
> > > >> > > > > > > }
>
> > > >> > > > > > > function references($args, $field) {
> > > >> > > > > > >   global $citelist;
> > > >> > > > > > >   return '\n'.impode($citelist);
>
> > > >> > > > > > > }
>
> > > >> > > > > > > ----
>
> > > >> > > > > > > On Oct 31, 11:45 am, Markus <[email protected]> 
> > > >> > > > > > > wrote:
>
> > > >> > > > > > > > Is there a good way to cite scientific literature? I 
> > > >> > > > > > > > tried the
> > > >> > > > > > > > footnotes markup but I only got some superscripted text 
> > > >> > > > > > > > without a link
> > > >> > > > > > > > being created. Manually it gets quite tedious. I came up 
> > > >> > > > > > > > with this:
>
> > > >> > > > > > > > Some text.[[{p}#1|`[1`]]]
>
> > > >> > > > > > > > !! References
> > > >> > > > > > > > [[#1|`[1`]]] Author etc.
>
> > > >> > > > > > > > Wikipedia does this in an elegant and smart way. For 
> > > >> > > > > > > > example:http://en.wikipedia.org/wiki/Wiki#References
>
> > > >> > > > > > > > To create a link like [1] in the text to the references 
> > > >> > > > > > > > section:
> > > >> > > > > > > > Some text.<ref>Author, link etc.</ref>
>
> > > >> > > > > > > > This also creates an anchor to jump back from the 
> > > >> > > > > > > > references section.
> > > >> > > > > > > > The reference section is a numbered list and each 
> > > >> > > > > > > > reference has a
> > > >> > > > > > > > leading "^" to jump back to the text position where the 
> > > >> > > > > > > > reference is
> > > >> > > > > > > > referenced. The numbering and link/anchor creation 
> > > >> > > > > > > > happens
> > > >> > > > > > > > automatically.
>
> > > >> > > > > > > > Regards, Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to