Hi Odin,

Good question! First I thought this was controlled by the class parameter, 
but I was wrong. I think the easiest would be to add another macro 
in $:/plugins/kookma/refnotes/macro/bibtex/showrefs:

\define showrefsAPA(filter:"[<currentTiddler>]", title:"Empty", 
class:"ref-list")
<$reveal tag="div" type="nomatch" default="Empty" text=<<__title__>> >
<h2>$title$</h2>
</$reveal>
<$wikify name="mylist" text="""
<$list filter=<<__filter__>> >
<$macrocall $name="find-refs" tid=<<currentTiddler>> />
</$list>
""">
<ol class="$class$">
<$list filter="[enlist<mylist>sort[]]" variable="myListItem">

<$macrocall $name=*"custom_output"* p=<<myListItem>> />
</$list>
</ol>
</$wikify>
\end


and then call <<showrefsAPA title:"References">>. Or, if you have already 
used the showrefs macro, you could simply insert the highlighted part into 
the existing showrefs macro and remove "output-journal-article" on that 
line. Or you can simply replace the output-journal-article macro defined 
in $:/plugins/kookma/refnotes/macro/bibtex/showrefs with the custom_putput 
macro and rename it. So many options:) Please let me know if it was hard to 
follow or you have questions!

Best, 
Anders

mandag 11. mai 2020 17.54.28 UTC+2 skrev Odin Jorna følgende:
>
> Thank you so much for helping me out. Would you use instead of <<showrefs 
> title:"References">>, <<custom_output title:"References">> in your example, 
> to make a reference list with the new ordering?
>
> Op maandag 11 mei 2020 14:48:04 UTC+2 schreef Anjar:
>>
>> Hi Odin,
>>
>> Have a look at the tiddler 
>> $:/plugins/kookma/refnotes/macro/bibtex/showrefs. You can make your own 
>> output style there, and fiddle with things as you want; this will move the 
>> year and add DOI and page range.
>>
>> \define custom_output(p)
>> <$wikify name=p2 text=<<__p__>> >
>> <$set name="curtid" tiddler=<<p2>> field="title" emptyValue="RefNotFound">
>> <$reveal type="nomatch" default="RefNotFound" text=<<curtid>> >
>> <li><$view field="bibtex-author" tiddler=<<curtid>>/> *(<$view 
>> field="bibtex-year" tiddler=<<curtid>>/>)*, <span style="text-transform: 
>> capitalize;"><$view field="bibtex-title" 
>> tiddler=<<curtid>>/></span>,<i><$view field="bibtex-journal" 
>> tiddler=<<curtid>>/></i>, *<$view field="bibtex-pages" 
>> tiddler=<<curtid>>/>. DOI **<$view field="bibtex-doi" 
>> tiddler=<<curtid>>/>*. </li>
>> </$reveal>
>> <$reveal type="match" default="RefNotFound" text=<<curtid>> >
>> <li style="color:red;">Reference <b>$p$</b> NOT FOUND. Check your 
>> input.</li>
>> </$reveal>
>> </$set></$wikify>
>> \end
>>
>> The in-text formatting is governed 
>> by $:/plugins/kookma/refnotes/macro/bibtex/ref; this will give you (author, 
>> year)
>>
>> \define ref(tid)
>> <$set name="ref-tid" tiddler=<<__tid__>> field="title" 
>> emptyValue="RefNotFound">
>> <div class="mr-tooltip refcls">
>> <$reveal type="match" default=<<ref-tid>> text="RefNotFound">
>> <$link overrideClass="link-refcls">
>> [<$view tiddler=<<__tid__>> field="title"/>]
>> </$link>
>> <div class="mr-tooltiptext ref-notfound"><b>Warning</b>: Reference Not 
>> Found.<br>Click to create it:<<create-notexisted-ref "$tid$">></div>
>> </$reveal>
>> <$reveal type="nomatch" default=<<ref-tid>> text="RefNotFound">*(<$view 
>> tiddler=<<__tid__>> field="bibtex-author"/>, <$view tiddler=<<__tid__>> 
>> field="bibtex-year"/>)*
>> <div class="mr-tooltiptext">
>> <$macrocall $name="displayref-onhover" refTid=<<ref-tid>> />
>> </div>
>> </$reveal>
>> </div>
>> </$set>
>> \end
>>
>>
>>
>>
>>
>> Best,
>> Anders
>> mandag 11. mai 2020 12.32.30 UTC+2 skrev Odin Jorna følgende:
>>>
>>> It seems that the https://kookma.github.io/Refnotes/ refnotes plugin 
>>> uses another type of reference style than the A.P.A. style that I am used 
>>> (or supposed to use) to.
>>> It is possible to use this plugin to create A.P.A. style reference? It 
>>> uses this format: Author, A., & Author, B. (year). *Title of book.* 
>>> Publisher. 
>>> or Author, A., & Author, B. (year). Title of article. *Journal Title*, 
>>> *Volume*(Issue), page range. DOI for scientific articles.
>>>
>>> So the example reference in the plugin: N.E. Amadeo and M.A. Laborde, 
>>> Hydrogen 
>>> Production From The Low-Temperature Water-Gas Shift Reaction: Kinetics And 
>>> Simulation Of The Industrial Reactor,*International Journal of Hydrogen 
>>> Energy*, *1995*.
>>>
>>> would look something like this: N.E. Amadeo and M.A. Laborde. (1995) 
>>> Hydrogen 
>>> Production From The Low-Temperature Water-Gas Shift Reaction: Kinetics And 
>>> Simulation Of The Industrial Reactor,*International Journal of Hydrogen 
>>> Energy*, *Volume*(Issue), page range. DOI
>>>
>>> The in text reference would be: (Amadeo & Laborde, 1995) instead of :  
>>> [Amadoe-1995]
>>> <https://kookma.github.io/Refnotes/#AMADEO1995949>
>>>  
>>>
>>> Is there a way to change the formatting in the plugin code?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3ddcbc82-1ad1-45b5-8f07-c7a0284cfac8%40googlegroups.com.

Reply via email to