├── README.md ├── docs ├── index.html └── test.html ├── packaged └── refnotes.tid └── source └── refnotes ├── history.tid ├── license.tid ├── macros ├── APA │ ├── authors.tid │ ├── bibliography-helper.tid │ ├── bibliography.tid │ ├── ref-helper.tid │ ├── ref.tid │ └── showrefs.tid ├── abbr.tid ├── bibtex │ ├── find-refs.tid │ ├── process-entries.tid │ ├── regexprefs.js │ ├── regexprefs.js.meta │ └── utility.tid ├── find.tid ├── footnote.tid ├── numbered │ └── refnum.tid ├── search-ui.tid ├── showabbrs.tid ├── showfnotes.tid └── stretch-text.tid ├── plugin.info ├── readme.tid ├── styles ├── abbr.css ├── abbr.css.meta ├── bibtex-details.css ├── bibtex-details.css.meta ├── bibtex-entryview.css ├── bibtex-entryview.css.meta ├── bibtex.tid ├── dropzone.css ├── dropzone.css.meta ├── footnote-counter.css ├── footnote-counter.css.meta ├── library.css ├── library.css.meta ├── showfnotes.css ├── showfnotes.css.meta ├── table-borderless.css ├── table-borderless.css.meta ├── tooltip.css └── tooltip.css.meta ├── templates └── reflist │ ├── apa │ ├── article.tid │ ├── book.tid │ ├── default.tid │ ├── inproceedings.tid │ ├── patent.tid │ ├── thesis.tid │ └── website.tid │ └── numbered │ ├── article.tid │ ├── book.tid │ ├── default.tid │ └── website.tid ├── ui ├── bibtexlibrary.tid └── dropzone.tid └── viewtemplates ├── article.tid ├── book.tid ├── default.tid ├── helper.tid ├── incollection.tid ├── inproceedings.tid ├── main.tid ├── thesis.tid ├── unpublished.tid └── website.tid /README.md: -------------------------------------------------------------------------------- 1 | ## Refnotes 2 | Refnotes is a reference manager tool that allows you to maintain a "personal library" of references, citations, footnotes and abbreviations in Tiddlywiki. 3 | 4 | 5 | It can creates tables of footnotes, abbreviations and also bibliography table. Refnotes best works with bibtex. It can import bibtex entries (.bib files), 6 | and bibtex records from clipboard (e.g copy bibtex data from Google Scholar, Zotero, EndNote, BibGuru, OATD, ...) 7 | 8 | 9 | ## Release 10 | From release 1.5, refnotes is a stable and mature tool to be used in real works. Release 1.7.0 is a powerful one 11 | can be used for creating academic texts like (thesis, reports, essays, ...) 12 | 13 | ## Usage note 14 | * Like any other tools, it is highly recommended to make back up of your data before install 15 | * Refnotes 1.7+ requires Tiddlywiki 5.2.0+ 16 | 17 | ## Collaborations 18 | * Feedbacks are highly welcome, please use discussion, issue reporting and PR submission 19 | * For Q&A please use Forum at https://talk.tiddlywiki.org/ -------------------------------------------------------------------------------- /packaged/refnotes.tid: -------------------------------------------------------------------------------- 1 | author: Mohammad Rahmani 2 | core-version: >=5.2.5 3 | description: References, citations, footnotes and abbreviations in Tiddlywiki 4 | list: readme license history 5 | name: Refnotes 6 | plugin-type: plugin 7 | source: https://github.com/kookma/TW-Refnotes 8 | tags: 9 | title: $:/plugins/kookma/refnotes 10 | type: application/json 11 | version: 1.9.0 12 | 13 | {"tiddlers":{"$:/plugins/kookma/refnotes/history":{"title":"$:/plugins/kookma/refnotes/history","tags":"","type":"text/vnd.tiddlywiki","text":"Full change log https://kookma.github.io/TW-Refnotes/#ChangeLog\n\n* ''1.8.1'' -- 2022.06.03 -- many improvements to APA7 and BibTeX support in Refnotes\n* ''1.8.0'' -- 2022.05.27 -- many improvements, refrence manager has APA7 as default style\n* ''1.7.4'' -- 2022.05.18 -- stable release based on TW 5.2.2, minor bugs fixed\n* ''1.7.2'' -- 2021.09.19 -- stable release based on TW 5.2.0\n* ''1.6.0'' -- 2021.04.02 -- development (beta) of new release\n* ''1.0.3'' -- 2019.03.20 -- first stable release\n"},"$:/plugins/kookma/refnotes/license":{"title":"$:/plugins/kookma/refnotes/license","tags":"","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2019-2023 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<"},"$:/plugins/kookma/refnotes/macros/abbr":{"title":"$:/plugins/kookma/refnotes/macros/abbr","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define abbr(term:\"\", dict:\"Glossary\")\n<$set name=\"abbreviation\" \n tiddler=<<__dict__>>\n index=<<__term__>>\n emptyValue=\"Term not found\">\n > ><$text text=<<__term__>> />\n\n\\end\n"},"$:/plugins/kookma/refnotes/macros/apa/authors":{"title":"$:/plugins/kookma/refnotes/macros/apa/authors","code-body":"yes","tags":"","type":"text/vnd.tiddlywiki","text":"\\define show-authors-in-citation(conjunction:\"&\")\n\n<$let authorlist= {{{ [<__tid__>get[bibtex-author]] }}}\n number-authors= {{{ [split[ and ]!is[blank]count[]] }}}\n>\n\n<$list filter=\"[compare:number:eq[1]]\" variable=null>\n<$list filter=\"[split[ and ]first[]]\" variable=author>\n<>\n\n\n\n\n<$list filter=\"[compare:number:eq[2]]\" variable=null>\n<$list filter=\"[split[ and ]first[]]\" variable=author><> $conjunction$\n<$list filter=\"[split[ and ]last[]]\" variable=author><>\n\n\n\n<$list filter=\"[compare:number:gt[2]]\" variable=null>\n<$list filter=\"[split[ and ]first[]]\" variable=author>\n<> et al.\n\n\n\n\n<$list filter=\"[compare:number:eq[0]]\" variable=null>\n<$text text={{{ [<__tid__>get[bibtex-title]split[ ]!is[blank]first[3]join[ ]] :else[<__tid__>]}}}/>\n\n\n\\end\n\n\n\\define parse-fullname()\n\n\n<$list filter=\"[!search[,]]\" emptyMessage=<> variable=null>\n<$let \n pattern1=\"\\s+([a-z][a-zA-Z]*?)\\s+\"\n pname={{{\n [search-replace:g:regexp,[ $1°]]\n +[splitregexp[\\s]trim[]]\n +[search-replace:g:regexp[°],[ ]]\n +[join[°_°]]\n }}}\n><$text text={{{ [split[°_°]!is[blank]last[]addsuffix[,]] [split[°_°]!is[blank]butlast[]] +[join[ ]] }}}/>\n\n\n\\end\n\n\n\n\\define authorName(format:\"\")\n\n\\whitespace trim\n<$wikify name=pname text=<> >\n<$let last= {{{ [split[,]!is[blank]trim[]first[]]}}}\n initials={{{ [split[,]!is[blank]trim[]butfirst[]split[ ]!is[blank]] :map[split[]!is[blank]first[]addsuffix[.]] +[join[ ]]}}}\n dispname={{{ [addsuffix[, ]addsuffix] }}}\n>\n<$list filter=\"[<__format__>!match[LastName]]\" variable=null emptyMessage=<>><>\n\n\n\\end\n\n\\define show-authors-in-references()\n\n<$let authorslist= {{!!bibtex-author}}\n number-authors= {{{ [split[ and ]!is[blank]count[]] }}}\n >\t\t\n<$set name=authors filter=\"[split[ and ]trim[]]\" >\t\n\n<$list filter=\"[compare:integer:eq[1]]\" variable=null>\n<$vars author={{{ [enlistlast[]] }}}><>\n\n\n<$list filter=\"[compare:integer:gt[1]]\" variable=null>\n<$list filter=\"[enlistbutlast[]]\" variable=author>\n<>,\n\n<$vars author={{{ [enlistlast[]] }}}>& <>\n\n\n<$list filter=\"[compare:number:eq[0]]\" variable=null>\n<$text text={{{ [{!!bibtex-title}split[ ]!is[blank]first[3]join[ ]] :else[[Unknown author]]}}}/>\n\n\n\t\t\t\n\\end\n\n\n"},"$:/plugins/kookma/refnotes/macros/apa/bibliography":{"title":"$:/plugins/kookma/refnotes/macros/apa/bibliography","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define bibliography(citedfilter:\"[]\", furtherfilter:\"\", class:\"ref-list\")\n\\import $:/plugins/kookma/refnotes/macros/apa/bibliography-helper\n\n<$wikify name=\"works-cited\" text=<> >\n\n
    \n<$list filter=\"[enlist][subfilter<__furtherfilter__>]:and[sort[]]\" variable=\"reference\">\n<>\n\n
\n\n\\end\n\n"},"$:/plugins/kookma/refnotes/macros/apa/bibliography-helper":{"title":"$:/plugins/kookma/refnotes/macros/apa/bibliography-helper","code-body":"yes","tags":"","type":"text/vnd.tiddlywiki","text":"\\define find-cited-works()\n\\import $:/plugins/kookma/refnotes/macros/bibtex/find-refs\n<$list filter=<<__citedfilter__>> >\n<$macrocall $name=\"find-refs\" thisTiddler=<> />\n\n\\end\n\n\\define display-single-reference()\n\\import $:/plugins/kookma/refnotes/macros/apa/authors\n<$let currentType={{{[get[bibtex-entry-type]lowercase[]] ~[[miscellaneous]]}}} >\n<$set name=\"bodyLookup\" \n filter=\"[all[tiddlers+shadows]tag[$:/tags/Refnotes/ReflistTemplate]contains:list] +[limit[1]get[title]]\"\n value=<> \n emptyValue=\"$:/plugins/kookma/refnotes/templates/reflist/apa/default\">\n<$transclude tiddler=<> field=\"text\" mode=\"inline\"/>\n\n\n\\end"},"$:/plugins/kookma/refnotes/macros/apa/ref":{"title":"$:/plugins/kookma/refnotes/macros/apa/ref","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define ref(tid, type:\"p\", pages:\"\")\n\\import $:/plugins/kookma/refnotes/macros/apa/authors\n\\import $:/plugins/kookma/refnotes/macros/apa/ref-helper\n\\whitespace trim\n<$set name=\"ref-tid\" tiddler=<<__tid__>> field=\"title\" emptyValue=\"RefNotFound\">\n
\n<$reveal type=\"match\" default=<> text=\"RefNotFound\">\n<$link overrideClass=\"link-refcls\">[<$view tiddler=<<__tid__>> field=\"title\"/>]\n
Warning: Reference Not Found.
Click to create it:<>
\n\n<$reveal type=\"nomatch\" default=<> text=\"RefNotFound\">\n<$list filter=\"[[$type$]lowercase[]match[p]]\" variable=null><>\n<$list filter=\"[[$type$]lowercase[]match[n]]\" variable=null><>\n<$list filter=\"[[$type$]lowercase[]match[m]]\" variable=null><>\n
\n<$macrocall $name=\"displayref-onhover\" refTid=<> />\n
\n\n
\n\n\\end\n\n\n\\define cite(tid, type:\"p\", pages:\"\") <$macrocall $name=ref tid=<<__tid__>> type=<<__type__>> pages=<<__pages__>> />\n\n"},"$:/plugins/kookma/refnotes/macros/apa/ref-helper":{"title":"$:/plugins/kookma/refnotes/macros/apa/ref-helper","code-body":"yes","tags":"","type":"text/vnd.tiddlywiki","text":"\n\n\n\\define parenthetical()\n<$wikify name=authors text=<> >\n(<$text text={{{ [trim[]addsuffix[, ]] }}}/><$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/>)\n\n\\end\n\n\n\\define narrative()\n<$wikify name=authors text=<> >\n<$text text={{{ [trim[]addsuffix[ ]] }}}/>(<$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/>)\n\n\\end\n\n\n\\define multiwork-parenthetical()\n<$wikify name=authors text=<> >\n<$text text={{{ [trim[]addsuffix[, ]] }}}/><$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/>\n\n\\end"},"$:/plugins/kookma/refnotes/macros/apa/showrefs":{"title":"$:/plugins/kookma/refnotes/macros/apa/showrefs","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define showrefs(filter:[] title:Empty class:ref-list emptyMessage)\n\\import $:/plugins/kookma/refnotes/macros/apa/authors\n\\import $:/plugins/kookma/refnotes/macros/bibtex/find-refs\n<$let leftDelimiter1=\"<\n<$list filter=\"[subfilter<__filter__>search:text:literal][subfilter<__filter__>search:text:literal]:and[limit[1]]\" emptyMessage=<<__emptyMessage__>>variable=null>\n<$reveal tag=div type=nomatch text=<<__title__>>default=Empty>\n

$title$

\n\n\n<$wikify text=\"\n<$list filter=<<__filter__>>>\n<$macrocall thisTiddler={{!!title}}$name=find-refs/>\n\n\"name=mylist>\n\n
    \n<$list filter=\"[enlisttrim[]sort[]]\"variable=reference>\n\n<$let currentType={{{[get[bibtex-entry-type]lowercase[]]~miscellaneous}}}>\n<$set filter=\"[[$:/tags/Refnotes/ReflistTemplate]tagging[]contains:listnth[]get[title]]\"value=<>emptyValue=\"$:/plugins/kookma/refnotes/templates/reflist/apa/default\"name=bodyLookup>\n<$transclude tiddler=<>field=text mode=inline/>\n\n\n\n\n
\n\n\n\n\\end"},"$:/plugins/kookma/refnotes/macros/bibtex/find-refs":{"title":"$:/plugins/kookma/refnotes/macros/bibtex/find-refs","code-body":"yes","tags":"","type":"text/vnd.tiddlywiki","text":"\n\\define find-refs(thisTiddler)\n<$vars\nregexp=\"(?g)<>\" regexpc =\"(?g)<>\"\nregexp2='<>' regexp2c='<>'\nregexp3='^\"(.*?)\"'\nregexp4=\"^'(.*?)'\"\nregexp5=\"\\[\\[(.*?)\\]\\]\"\nregexp6=\"^(.*?)\\s\"\n>\n<$list filter=\"[<__thisTiddler__>regexprefs:text][<__thisTiddler__>regexprefs:text]\">\n<$list filter=\"[all[current]regexprefs][all[current]regexprefs]\">\n<$list filter=\"\"\"\n [all[current]regexprefs] \n:else[all[current]regexprefs]\n:else[all[current]regexprefs]\n:else[all[current]regexprefs]\n:else[all[current]]\n:and[format:titlelist[]]\n\"\"\" variable=p >\n<$text text=<

> />\n\n\n\n\n\\end"},"$:/plugins/kookma/refnotes/macros/bibtex/process-entries":{"title":"$:/plugins/kookma/refnotes/macros/bibtex/process-entries","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define title-slugify()\n<$vars curTitle=<> newTitle={{{[slugify[]]}}}>\n<$list filter=\"[!match]\" variable=null>\n<$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n\n\n\\end\n\n\\define correct-doi()\n<$list filter=\"[has[bibtex-doi]get[bibtex-doi]!prefix[https://doi.org]]\" variable=null>\n<$action-setfield $field=\"bibtex-doi\" $value={{{ [{!!bibtex-doi}addprefix[https://doi.org/]] }}}/>\n\n\\end\n\n\\define tag-entries()\n\n<$action-setfield $tiddler=<> bibtex-entry-type={{{[get[bibtex-entry-type]lowercase[]]}}} />\n\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=\"bibtex-entry\" />\n\n\\end\n\n\\define process-entries(title:\"Process New Bibtex Entries\")\n<$button> $title$\n<$wikify name=chkDuplicates text=<> >\n<$action-confirm $message=<> >\n<$list filter=\"[has[bibtex-title]!tag[bibtex-entry]]\">\n<>\n<>\n<>\n\n\n\n\n\\end\n\n\n\\define check-duplicates()\n<$list filter=\"[has[bibtex-title]duplicateslugs[]limit[1]]\" emptyMessage=\"There are no duplicate entries, do you want to process new entries?\">\nThe following tiddlers have duplicate slugs, so they will overwrite eachother, do you want to continue?\n\n<$list filter=\"[has[bibtex-title]duplicateslugs[]] +[join[, ]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n\n\\end"},"$:/plugins/kookma/refnotes/macros/bibtex/regexprefs.js":{"title":"$:/plugins/kookma/refnotes/macros/bibtex/regexprefs.js","text":"/*\\\ntitle: $:/plugins/kookma/macro/bibtex/regexprefs.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for regexp matching and returning result. All results are returned if global flag used. All sub-groups are returned if not global and sub-group hits are found.\n\nThis is a hacked version of core macro: $:/core/modules/filters/regexp.js\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.regexprefs = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"title\").toLowerCase(),\n\t\tregexpString, regexp, flags = \"\", match, global,\n\t\tgetFieldString = function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\treturn tiddler.getFieldString(fieldname);\n\t\t\t} else if(fieldname === \"title\") {\n\t\t\t\treturn title;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t// Process flags and construct regexp\n\tregexpString = operator.operand;\n\tmatch = /^\\(\\?([gim]+)\\)/.exec(regexpString);\n\tif(match) {\n\t\tflags = match[1];\n\t\tregexpString = regexpString.substr(match[0].length);\n\t} else {\n\t\tmatch = /\\(\\?([gim]+)\\)$/.exec(regexpString);\n\t\tif(match) {\n\t\t\tflags = match[1];\n\t\t\tregexpString = regexpString.substr(0,regexpString.length - match[0].length);\n\t\t}\n\t}\n\ttry {\n\t\tregexp = new RegExp(regexpString,flags);\n\t} catch(e) {\n\t\treturn [\"\" + e];\n\t}\n\n\tglobal = /g/.test(flags) ;\n\n\t// Process the incoming tiddlers\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tif(!regexp.exec(text)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title), ret=\"\";\n\t\t\tif(text !== null) {\n\t\t\t\tret = text.match(regexp) ;\n\t\t\t\tif(ret !==null) {\n\t\t\t\t\tif(global) {\n\t\t\t\t\t\tresults.push.apply(results,ret) ; //DEBUG\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if there are sub groups return sub groups START\n\t\t\t\t\t\tif(ret.length > 1) { // return sub groups\n\t\t\t\t\t\t\tresults = results.concat(ret.slice(1)) ;\n\t\t\t\t\t\t} else { // if no sub-groups\n\t\t\t\t\t\t\tresults.push(ret[0]);\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();","type":"application/javascript","module-type":"filteroperator"},"$:/plugins/kookma/refnotes/macros/bibtex/utility":{"title":"$:/plugins/kookma/refnotes/macros/bibtex/utility","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define displayref-onhover(refTid)\n<$set name=\"ref-tid\" value=<<__refTid__>> >\n<$link overrideClass=\"link-refcls\" to=<> >\n<$list filter=\"[get[bibtex-entry-type]lowercase[]!match[website]]\" variable=null\nemptyMessage=\"\"\"<$view tiddler=<> field=\"bibtex-url\"/>.\"\"\">\n<$view tiddler=<> field=\"bibtex-author\"/>.\n\n\n<$view tiddler=<> field=\"bibtex-title\"/>. (<$view tiddler=<> field=\"bibtex-year\"/>)\n\n\\end\n\n\\define create-notexisted-ref(refTid)\n<$set name=\"myTid\" value=<<__refTid__>> >\n<$button class=\"tc-btn-invisible tc-tiddlylink\">\n<$action-sendmessage $message=\"tm-new-tiddler\"\n title=<> \n bibtex-author=\"\" bibtex-year=\"\"\n bibtex-title=\"\" bibtex-abstract=\"\"\n bibtex-entry-type=\"\" bibtex-keywords=\"\"\n bibtex-doi=\"\" bibtex-url=\"\"\n tags=\"bibtex-entry\"\n /><> \n\n \n\\end"},"$:/plugins/kookma/refnotes/macros/find":{"title":"$:/plugins/kookma/refnotes/macros/find","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define find(text, begin, end, output:\"simple\", mode:\"all\")\n<$vars \n fulltext=<<__text__>>\n start=<<__begin__>>\n stop=<<__end__>>\n output-macro=<<__output__>>\n>\n<$list variable=p1 filter=\"[splitbefore]\">\n<$list variable=p2 filter=\"[removeprefix]\">\n<$list variable=p3 filter=\"[splitbeforeremovesuffix]\">\n<$macrocall $name=<> p=<> />\n<$reveal type=\"match\" text=\"all\" default=<<__mode__>> >\n<$macrocall $name=\"find\"\n text={{{[removeprefixremoveprefix]}}}\n begin=<>\n end=<>\n output=<>\n/>\n\n\n\n\n\n\\end\n\n\\define simple(p)\n<$text text=<<__p__>> />\n\\end\n\n\\define simple-list(p)\n

  • <$text text=<<__p__>>/>
  • \n\\end\n"},"$:/plugins/kookma/refnotes/macros/footnote":{"title":"$:/plugins/kookma/refnotes/macros/footnote","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define fnote(note)\n
    $note$
    \n\\end"},"$:/plugins/kookma/refnotes/macros/numbered/refnum":{"title":"$:/plugins/kookma/refnotes/macros/numbered/refnum","tags":"","type":"text/vnd.tiddlywiki","text":"\\define refnum(tid)\n<$set name=\"ref-tid\" tiddler=<<__tid__>> field=\"title\" emptyValue=\"RefNotFound\">\n
    \n<$reveal type=\"match\" default=<> text=\"RefNotFound\">\n<$link overrideClass=\"link-refcls\">\n[<$view tiddler=<<__tid__>> field=\"title\"/>]\n\n
    Warning: Reference Not Found.
    Click to create it:<>
    \n\n<$reveal type=\"nomatch\" default=<> text=\"RefNotFound\">\n[<$view tiddler=<<__tid__>> field=\"caption\"><$view tiddler=<<__tid__>> field=\"title\"/>]\n
    \n<$macrocall $name=\"displayref-onhover\" refTid=<> />\n
    \n\n
    \n\n\\end\n"},"$:/plugins/kookma/refnotes/macros/search-ui":{"title":"$:/plugins/kookma/refnotes/macros/search-ui","tags":"","type":"text/vnd.tiddlywiki","text":"\\define searchTid() $:/temp/refnotes/search\n\\define bibtexFields() [!is[shadow]!is[system]has[bibtex-title]fields[]prefix[bibtex-]sort[]]\n\\define mainFields() bibtex-title bibtex-author bibtex-year\n\\define searchUi()\n
    \n<$edit-text tiddler=<> type=\"search\" tag=\"input\" placeholder=\"search terms\" default=\"\"/> <$select field=\"field\" tiddler=<> default=\"bibtex-author\">\n<$set name=allfields filter= \"[subfiltersplit[ ]join[,]]\" >\n\n\n\n<$list filter=\"[enlistremoveprefix[bibtex-]]\" variable=\"field\">\n\n\n\n\n<$list filter=\"[subfilter] -[enlist] +[removeprefix[bibtex-]]\" variable=\"field\">\n\n\n\n\n\n<$reveal state=<> type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=<> text=\"\"/>\n{{$:/core/images/close-button}}\n\n\n
    \n\\end"},"$:/plugins/kookma/refnotes/macros/showabbrs":{"title":"$:/plugins/kookma/refnotes/macros/showabbrs","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define showabbrs(filter:\"[]\", dtiddler:\"Glossary\", title:\"Empty\", emptyMessage:\"\")\n<$wikify name=\"indexes\" text=<> > \n<$macrocall $name=\"abbr-list\" indexes=<> dtiddler=<<__dtiddler__>> title=<<__title__>> emptyMessage=<<__emptyMessage__>> />\n\n\\end\n\n\\define patterndb() \\[\\[|\\]\\]\n\\define pattern() ('.*?'|\".*?\"|\\S+)\n\\define output-item(p)\n<$list filter=\"\"\"[<__p__>search-replace:g:regexp,[\"]]\"\"\" variable=pars>\n<$list filter=\"\"\"[trim[]!prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]first[]]\"\"\">\n<$text text=<>/>\n\n<$list filter=\"\"\"[trim[]prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]last[]]\"\"\">\n<$text text=<>/>\n\n\n\\end\n\n\\define find-all-items()\n<$list filter=<<__filter__>> >\n<$macrocall $name=\"find\" text={{!!text}} begin=\"<>\" output=\"output-item\"/>\n\n\\end\n\n\n\\define abbr-list(dtiddler, indexes, title:\"Empty\", emptyMessage:\"\")\n<$list filter=\"[limit[1]]\" variable=null emptyMessage=<<__emptyMessage__>> >\n<$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n

    <$text text=<<__title__>> />

    \n\n\n<$list filter=\"\"\"[subfilter<__indexes__>]\"\"\" variable=\"item\">\n\n\n\n\n\n
    <$text text=<> />\n <$set name=\"term\" tiddler=<<__dtiddler__>> index=<> emptyValue=<> >\n <>\n \n
    \n\n\\end\n\n\n\\define term-not-found()\nTerm not found\n\\end\n\n\n"},"$:/plugins/kookma/refnotes/macros/showfnotes":{"title":"$:/plugins/kookma/refnotes/macros/showfnotes","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define showfnotes(filter:\"[]\", title:\"Empty\" class:\"fnote-list\", emptyMessage:\"\")\n<$vars leftDelimiter=\"<\n<$list filter=\"[subfilter<__filter__>search:text:literallimit[1]]\" variable=null emptyMessage=<<__emptyMessage__>> >\n<$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n

    $title$

    \n\n
      \n<$list filter=<<__filter__>> >\n<$macrocall $name=\"find\" \n text={{!!text}}\n begin=\"<>\"\n output=\"output-fnote\"\n/>\n\n
    \n\n\n\\end\n\n\\define output-fnote(p)\n<$vars output=$p$>\n
  • <>
  • \n\n\\end\n\n"},"$:/plugins/kookma/refnotes/macros/stretch-text":{"title":"$:/plugins/kookma/refnotes/macros/stretch-text","tags":"","type":"text/vnd.tiddlywiki","text":"\\define tmpTidDetails() $:/temp/refnotes/library/$(currentTiddler)$\n\n\\define stretchText(text, title:\"...\")\n<$button class=\"tc-btn-invisible\">$title$\n<$action-listops $tiddler=<> $field=\"text\" $subfilter=\"+[toggle[show]]\" />\n <$reveal type=\"match\" stateTitle=<> sateField=text text=\"show\">$text$\n\\end\n"},"$:/plugins/kookma/refnotes/readme":{"title":"$:/plugins/kookma/refnotes/readme","tags":"","type":"text/vnd.tiddlywiki","text":"; Refnotes\nRefnotes is a Tiddlywiki plugin to create and manage footnotes, abbreviations, citations, and references. Refnotes can create bibliography, but for the best performance, and to use import bibtex entries, the use of the official ''bibtex importer'' plugin is required. APA7 style is used as default. Refnotes output is very close to APA7 standard.\n\n;Code and demo\nFor learning Refnotes features, syntax, tutorial and examples see the plugin demo and code pages\n\n* Demo: https://kookma.github.io/TW-Refnotes/\n* Code: https://github.com/kookma/TW-Refnotes\n"},"$:/plugins/kookma/refnotes/styles/abbr":{"title":"$:/plugins/kookma/refnotes/styles/abbr","text":"/* Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS3 */ \n.refnotes-abbr abbr[title] {\n\tcolor: inherit;\n\tfont-style: normal;\n\ttext-decoration: none;\n\tborder-bottom: 1px dotted #aaa;\n\tcursor: help;\n}\n\n.refnotes-abbr-term-not-found{\n/*\tcolor:red;*/\n\tfont-style: oblique;\n}\n\n.refnotes-abbr-term{\n/*\tcolor:blue;*/\n}\n\n/* Ref:https://aarontgrogg.com/lab/\nShow the title for small screen\n*/ \n/* this works based on the max-width*/\n@media only screen and (max-width: 960px) {\n.refnotes-abbr abbr:hover:after { content: ' ('attr(title)')'; }\n}\n\n@media (hover: none) {\n/* Push the title attribute into generated content after the abbr. */\n.refnotes-abbr abbr[title]::after { \n content: ' ('attr(title)')'; }\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/bibtex":{"title":"$:/plugins/kookma/refnotes/styles/bibtex","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":".ref-nonumber{\n/* color:blue;*/\n font-size:90%;\n list-style-type:none;\n}\n\n.ref-nonumber li{\n padding-bottom:8px;\n}\n\n.ref-list{\n/* color:blue;*/\n font-size:90%;\n}\n\n.link-refcls{\n font-weight:400;\n/* color:#00008B;*/ /*darkblue*/\n text-decoration:none;\n color: <>; \t\n}\n\n.refcls{\n/* color:#00008B;*/\n color: <>; \n/* text-transform: capitalize;*/\n}\n\n.ref-notfound{\n/* color: #856404 !important;*/\n/* background-color: #fff3cd !important;*/\n}\n\n.ref-author{\n/* color:#00008B;*/ /*color for author in tooltip*/\n}"},"$:/plugins/kookma/refnotes/styles/bibtex-details":{"title":"$:/plugins/kookma/refnotes/styles/bibtex-details","text":".refnotes-details > summary{\n\tpadding-left:0;\n\tpadding-top:15px;\n\tpadding-bottom:15px;\n\twidth: 160px;\n\tcursor: pointer;\n\tfont-weight:bold;\n}\n\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/bibtex-entryview":{"title":"$:/plugins/kookma/refnotes/styles/bibtex-entryview","text":"/* used for viewtemplate displaying the bibtex entry */\n.refnotes-bibtex-field{\n\tdisplay:table-row\n}\n.refnotes-bibtex-field > span{\n\tdisplay:table-cell\n}\n.refnotes-bibtex-field > span:first-of-type{\n\tfont-weight:bold;\n\tpadding-right:10px;\n\twhite-space: nowrap;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/dropzone":{"title":"$:/plugins/kookma/refnotes/styles/dropzone","text":".bibtex-dropzone{\n\tmin-height:30px;\n\tmax-width:100%;\n\tmargin:4px auto;\n\tborder:2px dotted green;\n\ttext-align:center;\n}\n\n.bibtex-dropzone:focus {\n\tbackground: #fffedd;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/footnote-counter":{"title":"$:/plugins/kookma/refnotes/styles/footnote-counter","text":"/*automatic counter for fnote macro. The counter resets at the begining of each tiddler*/\n.tc-tiddler-frame,\n.tc-single-tiddler-window { /* to cover tiddler when it is opened in a new window */ \n counter-reset: fnote-count;\n}\n.refnotes-footnote {\n counter-increment: fnote-count;\n}\n.refnotes-footnote:after {\n content: counter(fnote-count);\n font-size:small;\n vertical-align: super;\n line-height: 1.5;\n margin-left: -0.1em;\n /* color:#0000ee;*/\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/library":{"title":"$:/plugins/kookma/refnotes/styles/library","text":"/* in folding-editor*/\n.refnotes-library button svg{\n\tfont-size:0.8em;\n\tvertical-align: middle;\n\tmargin-right:0;\n\tmargin-left:0;\n\n}\n\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/showfnotes":{"title":"$:/plugins/kookma/refnotes/styles/showfnotes","text":"/* Footnote class*/\n\n.fnote-list{\n/* color:blue;*/\n font-size:90%;\n}\n\n.fnote-pretty{\n display: block;\n margin: 0.5em;\n margin-right: auto;\n width: 100% !important;\n border-collapse: collapse;\n padding: 15px 15px 15px 25px; /*left padding=25px*/\n border-width: 0px;\n border-style: solid;\n border-left-width: 1px;\n background-color: rgb(255,248,220);\n color: rgb(91,49,7);\n line-height: 1.2em; \n font-size:0.9em;\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/table-borderless":{"title":"$:/plugins/kookma/refnotes/styles/table-borderless","text":"/*Borderless table*/\n.refnotes-table-borderless, \n.refnotes-table-borderless th, \n.refnotes-table-borderless tr, \n.refnotes-table-borderless td{\n border:0;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/styles/tooltip":{"title":"$:/plugins/kookma/refnotes/styles/tooltip","text":"/* tooltip class used for ref, fnote and other macros */\n.refnotes-tooltip {\n\tposition: relative;\n\tdisplay: inline-block;\n\tcursor: pointer; \n}\n\n.refnotes-tooltip .refnotes-tooltiptext{\n\tfont-size: 0.90em; /* change if it is too small */\n}\n\n.refnotes-tooltip .refnotes-tooltiptext {\n\tvisibility: hidden;\n\tbackground-color: #fff;\n\tcolor: #222222; \n\ttext-align: left;\n\tborder-radius: 2px;\n\tpadding: 5px 10px;\n\tmax-width: 30vw;\n\tmax-height:20em;\n\toverflow-y: auto;\n\tcursor: auto;\n\twidth: max-content;\n\twidth: -moz-max-content;\n\twidth: -webkit-max-content;\n\twidth: -o-max-content;\n\n\t/* Position the tooltip */\n\tposition: absolute;\n\tz-index: 1;\n\tbottom: 100%;\n\tleft: 50%;\n\tmargin-left: -40px;\n\tbox-shadow:0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19);\n}\n\n.refnotes-tooltip:hover .refnotes-tooltiptext {\n\tvisibility: visible;\n\t/*opacity: 0.9;*/\n}\n\n/* for small screens */\n\n@media screen and (max-width: 960px) {\n.refnotes-tooltip .refnotes-tooltiptext {\n /* Position the tooltip */\n \tposition:fixed;\n top:0;\n left: 0;\n margin-left: 0px;\n bottom: unset;\n width:100%;\n max-width: 100vw;\n z-index: 9999;\n} \n\n.refnotes-tooltip:hover .refnotes-tooltiptext {\n opacity: 1;\n} \n \n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/refnotes/templates/reflist/apa/article":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/article","code-body":"yes","list":"article","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <$view field=\"bibtex-journal\"/>. <$view field=\"bibtex-volume\"/>. <$view field=\"bibtex-pages\"/>. get[bibtex-doi]!prefix[https://doi.org/]addprefix[https://doi.org/]else{!!bibtex-doi}]}}} target=_blank><$view field=\"bibtex-doi\"/>
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n\n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/book":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/book","code-body":"yes","list":"book incollection","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"\\define disp-bibtex-edition()\n<$list filter=\"[has[bibtex-edition]]\" variable=null>(<$view field=\"bibtex-edition\"/>).\n\\end\n\n\n<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <> <$view field=\"bibtex-publisher\"/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n\n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/default":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/default","code-body":"yes","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=\"title\" emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/inproceedings":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/inproceedings","code-body":"yes","list":"inproceedings","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. In <$view field=\"bibtex-booktitle\"/>. pp. <$view field=\"bibtex-pages\"/>. get[bibtex-doi]]}}}><$view field=\"bibtex-doi\"/>
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n\n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/patent":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/patent","code-body":"yes","list":"patent","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. (<$view field=\"bibtex-nationality\"/> Patent No. <$view field=\"bibtex-number\"/>). <$view field=\"bibtex-url\"/>
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n\n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/thesis":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/thesis","code-body":"yes","list":"thesis mastersthesis phdthesis","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"\\define disp-thesis-type()\n\\whitespace trim\n<$list filter=\"[get[bibtex-entry-type]]\" variable=thesisType>\n<$text text={{{ \n [match[mastersthesis]then[Master's thesis]]\n [match[phdthesis]then[PhD thesis]]\n :else[[Thesis]] }}} />\n\n\\end\n\n\n<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <>, <$view field=\"bibtex-school\"/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n\n\n"},"$:/plugins/kookma/refnotes/templates/reflist/apa/website":{"title":"$:/plugins/kookma/refnotes/templates/reflist/apa/website","code-body":"yes","list":"website","tags":"$:/tags/Refnotes/ReflistTemplate","type":"text/vnd.tiddlywiki","text":"\\define retrieved-date()\n<$list filter=\"[has[bibtex-urldate]]\" variable=null>Retrieved <$text text={{{ [{!!bibtex-urldate}search-replace:g[.],[]search-replace:g[-],[]] :map[format:date[MMM 0DD, YYYY]] }}}/><$list filter=\"[!has[bibtex-urldate]has[bibtex-note]]\" variable=null><$view field=\"bibtex-note\"/><$list filter=\"[!has[bibtex-urldate]!has[bibtex-note]]\" variable=null>Retrieved n.d.\n\\end\n\n<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=\"title\" emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$link to=<>><$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <>, <$text text={{!!bibtex-url}} />.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/templates/reflist/numbered/article":{"title":"$:/plugins/kookma/refnotes/templates/reflist/numbered/article","code-body":"yes","list":"article","tags":"","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$view field=\"bibtex-author\"/>, <$view field=\"bibtex-title\"/>, <$view field=\"bibtex-journal\"/>, <$view field=\"bibtex-year\"/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference $p$ NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/templates/reflist/numbered/book":{"title":"$:/plugins/kookma/refnotes/templates/reflist/numbered/book","code-body":"yes","list":"book","tags":"","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=title emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <>, <$view field=\"bibtex-title\"/>, <$view field=\"bibtex-edition\"/>, <$view field=\"bibtex-year\"/>, <$view field=\"bibtex-address\"/>, <$view field=\"bibtex-publisher\"/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference $p$ NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/templates/reflist/numbered/default":{"title":"$:/plugins/kookma/refnotes/templates/reflist/numbered/default","code-body":"yes","tags":"","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=currentTiddler tiddler=<> field=\"title\" emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$view field=\"bibtex-author\"/>, <$view field=\"bibtex-title\"/>,<$view field=\"bibtex-journal\"/>, <$view field=\"bibtex-year\"/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference $p$ NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/templates/reflist/numbered/website":{"title":"$:/plugins/kookma/refnotes/templates/reflist/numbered/website","code-body":"yes","list":"website","tags":"","type":"text/vnd.tiddlywiki","text":"<$wikify name=bibtexEntryTiddler text=<> >\n<$set name=\"curtid\" tiddler=<> field=\"title\" emptyValue=\"RefNotFound\">\n<$reveal type=\"nomatch\" default=\"RefNotFound\" text=<> >\n
  • <$view field=\"bibtex-title\" tiddler=<>/>, get[bibtex-url]]}}} target=\"_blank\"><$text text={{{ [get[bibtex-url]] }}}/>, <$view field=\"bibtex-year\" tiddler=<>/>.
  • \n\n<$reveal type=\"match\" default=\"RefNotFound\" text=<> >\n
  • Reference $p$ NOT FOUND. Check your input.
  • \n\n"},"$:/plugins/kookma/refnotes/ui/bibtexlibrary":{"title":"$:/plugins/kookma/refnotes/ui/bibtexlibrary","caption":"Bibliography","tags":"$:/tags/SideBar","type":"text/vnd.tiddlywiki","text":"\\import [[$:/plugins/kookma/refnotes/macros/search-ui]]\n\n\\define dispEntry()\n<$link/>\n<$macrocall $name=stretchText text=\"\"\"\n<$view field=\"bibtex-author\"/>. (<$view field=\"bibtex-year\"/>). <$view field=\"bibtex-title\"/>.\"\"\" />\n\\end\n\n\n\\define searchFilter() [has[bibtex-title]search:$(sField)$[$(sTerm)$]]\n\n\\define bibLibrary()\n\\import [[$:/plugins/kookma/refnotes/macros/stretch-text]]\n<$vars sField={{{[get[field]] ~[[bibtex-author]]}}} sTerm={{{[get[text]]}}}>\n\n\n\n\n\n
      \n<$list filter=\"[subfilter]\">\n
    1. <>
    2. \n\n
    \n\n\\end\n\n\n
    \n<>\n{{$:/plugins/kookma/refnotes/ui/dropzone}}\n
    \n\n\n\n<>\n\n<>\n\n\n\n"},"$:/plugins/kookma/refnotes/ui/dropzone":{"title":"$:/plugins/kookma/refnotes/ui/dropzone","caption":"Dropzone","tags":"","type":"text/vnd.tiddlywiki","text":"<$dropzone \n deserializer=\"application/x-bibtex\"\n filesOnly=no \n\timportTitle=\"Import Bibtex\">\n
    \nPaste your Bibtex Entry here\n
    \n"},"$:/plugins/kookma/refnotes/viewtemplates/article":{"title":"$:/plugins/kookma/refnotes/viewtemplates/article","list":"article","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-journal bibtex-year bibtex-pages bibtex-number bibtex-volume bibtex-doi bibtex-entry-type\n\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/book":{"title":"$:/plugins/kookma/refnotes/viewtemplates/book","list":"book","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-publisher bibtex-entry-type\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/default":{"title":"$:/plugins/kookma/refnotes/viewtemplates/default","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-doi bibtex-entry-type\n\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/helper":{"title":"$:/plugins/kookma/refnotes/viewtemplates/helper","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define citedIn(refname)\n <$let pattern-ref =\"\"\"<>\"\"\" \n pattern-cite=\"\"\"<>\"\"\" \t\n\t>\n <$list filter=\"[all[tiddlers]search:text:regexpsort[title]] [all[tiddlers]search:text:regexpsort[title]]\" \n template=\"$:/core/ui/ListItemTemplate\" \n emptyMessage=\"\"\"//No tiddler has cited this reference//\"\"\" />\n \n\\end\n\n\\define display-bibtex-field()\n
    \n<$text text={{{ [removeprefix[bibtex-]titlecase[]] }}} />\n<$transclude tiddler=<> field=<> mode=inline />\n
    \n\\end\n\n<$let tv-wikilinks=\"no\">\n\n<$list filter=\"[enlist]\" variable=currentField>\n<>\n\n\n\n
    \n More details\n<$list filter=\"[fields[]prefix[bibtex]sort[]] -[enlist]\" variable=currentField>\n<>\n\n
    \n\n\n\n; Cited in\n: <$macrocall $name=citedIn refname=<> /> "},"$:/plugins/kookma/refnotes/viewtemplates/incollection":{"title":"$:/plugins/kookma/refnotes/viewtemplates/incollection","list":"incollection","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-booktitle bibtex-editor bibtex-publisher bibtex-doi bibtex-entry-type\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/inproceedings":{"title":"$:/plugins/kookma/refnotes/viewtemplates/inproceedings","list":"inproceedings","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-booktitle bibtex-editor bibtex-doi bibtex-entry-type\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/main":{"title":"$:/plugins/kookma/refnotes/viewtemplates/main","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[all[current]has[bibtex-title]]\">\n<$vars currentType={{{[get[bibtex-entry-type]lowercase[]] ~[[miscellaneous]]}}} >\n<$set name=\"bodyLookup\" \n filter=\"[all[tiddlers+shadows]tag[$:/tags/Refnotes/Template]contains:list] +[limit[1]get[title]]\"\n\t\t\tvalue=<> \n emptyValue=\"$:/plugins/kookma/refnotes/viewtemplates/default\">\t\t\n<$transclude tiddler=<> field=\"text\" mode=\"inline\"/>\n\n\n"},"$:/plugins/kookma/refnotes/viewtemplates/thesis":{"title":"$:/plugins/kookma/refnotes/viewtemplates/thesis","list":"phdthesis mastersthesis thesis","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-school bibtex-entry-type\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/unpublished":{"title":"$:/plugins/kookma/refnotes/viewtemplates/unpublished","list":"unpublished","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-author bibtex-year bibtex-note bibtex-entry-type\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"},"$:/plugins/kookma/refnotes/viewtemplates/website":{"title":"$:/plugins/kookma/refnotes/viewtemplates/website","list":"website","tags":"$:/tags/Refnotes/Template","type":"text/vnd.tiddlywiki","text":"\\define mainFields() bibtex-title bibtex-url bibtex-urldate bibtex-note bibtex-entry-type\n\n\n<$transclude tiddler=\"$:/plugins/kookma/refnotes/viewtemplates/helper\" mode=block/>"}}} -------------------------------------------------------------------------------- /source/refnotes/history.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/history 3 | type: text/vnd.tiddlywiki 4 | 5 | Full change log https://kookma.github.io/TW-Refnotes/#ChangeLog 6 | 7 | * ''1.8.1'' -- 2022.06.03 -- many improvements to APA7 and BibTeX support in Refnotes 8 | * ''1.8.0'' -- 2022.05.27 -- many improvements, refrence manager has APA7 as default style 9 | * ''1.7.4'' -- 2022.05.18 -- stable release based on TW 5.2.2, minor bugs fixed 10 | * ''1.7.2'' -- 2021.09.19 -- stable release based on TW 5.2.0 11 | * ''1.6.0'' -- 2021.04.02 -- development (beta) of new release 12 | * ''1.0.3'' -- 2019.03.20 -- first stable release 13 | -------------------------------------------------------------------------------- /source/refnotes/license.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/license 3 | type: text/vnd.tiddlywiki 4 | 5 | Distributed under an MIT license. 6 | 7 | Copyright (c) 2019-2023 [[Mohammad Rahmani|https://github.com/kookma]] 8 | 9 | <<< 10 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 15 | <<< -------------------------------------------------------------------------------- /source/refnotes/macros/APA/authors.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: 3 | title: $:/plugins/kookma/refnotes/macros/apa/authors 4 | type: text/vnd.tiddlywiki 5 | 6 | \define show-authors-in-citation(conjunction:"&") 7 | 8 | <$let authorlist= {{{ [<__tid__>get[bibtex-author]] }}} 9 | number-authors= {{{ [split[ and ]!is[blank]count[]] }}} 10 | > 11 | 12 | <$list filter="[compare:number:eq[1]]" variable=null> 13 | <$list filter="[split[ and ]first[]]" variable=author> 14 | <> 15 | 16 | 17 | 18 | 19 | <$list filter="[compare:number:eq[2]]" variable=null> 20 | <$list filter="[split[ and ]first[]]" variable=author><> $conjunction$ 21 | <$list filter="[split[ and ]last[]]" variable=author><> 22 | 23 | 24 | 25 | <$list filter="[compare:number:gt[2]]" variable=null> 26 | <$list filter="[split[ and ]first[]]" variable=author> 27 | <> et al. 28 | 29 | 30 | 31 | 32 | <$list filter="[compare:number:eq[0]]" variable=null> 33 | <$text text={{{ [<__tid__>get[bibtex-title]split[ ]!is[blank]first[3]join[ ]] :else[<__tid__>]}}}/> 34 | 35 | 36 | \end 37 | 38 | 39 | \define parse-fullname() 40 | 43 | 44 | <$list filter="[!search[,]]" emptyMessage=<> variable=null> 45 | <$let 46 | pattern1="\s+([a-z][a-zA-Z]*?)\s+" 47 | pname={{{ 48 | [search-replace:g:regexp,[ $1°]] 49 | +[splitregexp[\s]trim[]] 50 | +[search-replace:g:regexp[°],[ ]] 51 | +[join[°_°]] 52 | }}} 53 | ><$text text={{{ [split[°_°]!is[blank]last[]addsuffix[,]] [split[°_°]!is[blank]butlast[]] +[join[ ]] }}}/> 54 | 55 | 56 | \end 57 | 58 | 59 | 60 | \define authorName(format:"") 61 | 64 | \whitespace trim 65 | <$wikify name=pname text=<> > 66 | <$let last= {{{ [split[,]!is[blank]trim[]first[]]}}} 67 | initials={{{ [split[,]!is[blank]trim[]butfirst[]split[ ]!is[blank]] :map[split[]!is[blank]first[]addsuffix[.]] +[join[ ]]}}} 68 | dispname={{{ [addsuffix[, ]addsuffix] }}} 69 | > 70 | <$list filter="[<__format__>!match[LastName]]" variable=null emptyMessage=<>><> 71 | 72 | 73 | \end 74 | 75 | \define show-authors-in-references() 76 | 77 | <$let authorslist= {{!!bibtex-author}} 78 | number-authors= {{{ [split[ and ]!is[blank]count[]] }}} 79 | > 80 | <$set name=authors filter="[split[ and ]trim[]]" > 81 | 82 | <$list filter="[compare:integer:eq[1]]" variable=null> 83 | <$vars author={{{ [enlistlast[]] }}}><> 84 | 85 | 86 | <$list filter="[compare:integer:gt[1]]" variable=null> 87 | <$list filter="[enlistbutlast[]]" variable=author> 88 | <>, 89 | 90 | <$vars author={{{ [enlistlast[]] }}}>& <> 91 | 92 | 93 | <$list filter="[compare:number:eq[0]]" variable=null> 94 | <$text text={{{ [{!!bibtex-title}split[ ]!is[blank]first[3]join[ ]] :else[[Unknown author]]}}}/> 95 | 96 | 97 | 98 | \end 99 | 100 | 101 | -------------------------------------------------------------------------------- /source/refnotes/macros/APA/bibliography-helper.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: 3 | title: $:/plugins/kookma/refnotes/macros/apa/bibliography-helper 4 | type: text/vnd.tiddlywiki 5 | 6 | \define find-cited-works() 7 | \import $:/plugins/kookma/refnotes/macros/bibtex/find-refs 8 | <$list filter=<<__citedfilter__>> > 9 | <$macrocall $name="find-refs" thisTiddler=<> /> 10 | 11 | \end 12 | 13 | \define display-single-reference() 14 | \import $:/plugins/kookma/refnotes/macros/apa/authors 15 | <$let currentType={{{[get[bibtex-entry-type]lowercase[]] ~[[miscellaneous]]}}} > 16 | <$set name="bodyLookup" 17 | filter="[all[tiddlers+shadows]tag[$:/tags/Refnotes/ReflistTemplate]contains:list] +[limit[1]get[title]]" 18 | value=<> 19 | emptyValue="$:/plugins/kookma/refnotes/templates/reflist/apa/default"> 20 | <$transclude tiddler=<> field="text" mode="inline"/> 21 | 22 | 23 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/APA/bibliography.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/apa/bibliography 3 | type: text/vnd.tiddlywiki 4 | 5 | \define bibliography(citedfilter:"[]", furtherfilter:"", class:"ref-list") 6 | \import $:/plugins/kookma/refnotes/macros/apa/bibliography-helper 7 | 8 | <$wikify name="works-cited" text=<> > 9 | 10 |
      11 | <$list filter="[enlist][subfilter<__furtherfilter__>]:and[sort[]]" variable="reference"> 12 | <> 13 | 14 |
    15 | 16 | \end 17 | 18 | -------------------------------------------------------------------------------- /source/refnotes/macros/APA/ref-helper.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: 3 | title: $:/plugins/kookma/refnotes/macros/apa/ref-helper 4 | type: text/vnd.tiddlywiki 5 | 6 | 7 | 8 | 9 | \define parenthetical() 10 | <$wikify name=authors text=<> > 11 | (<$text text={{{ [trim[]addsuffix[, ]] }}}/><$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/>) 12 | 13 | \end 14 | 15 | 16 | \define narrative() 17 | <$wikify name=authors text=<> > 18 | <$text text={{{ [trim[]addsuffix[ ]] }}}/>(<$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/>) 19 | 20 | \end 21 | 22 | 23 | \define multiwork-parenthetical() 24 | <$wikify name=authors text=<> > 25 | <$text text={{{ [trim[]addsuffix[, ]] }}}/><$text text={{{ [<__tid__>get[bibtex-year]] :else[[n.d.]] }}}/><$text text={{{[<__pages__>!is[blank]then<__pages__>addprefix[, ]]}}}/> 26 | 27 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/APA/ref.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/apa/ref 3 | type: text/vnd.tiddlywiki 4 | 5 | \define ref(tid, type:"p", pages:"") 6 | \import $:/plugins/kookma/refnotes/macros/apa/authors 7 | \import $:/plugins/kookma/refnotes/macros/apa/ref-helper 8 | \whitespace trim 9 | <$set name="ref-tid" tiddler=<<__tid__>> field="title" emptyValue="RefNotFound"> 10 |
    11 | <$reveal type="match" default=<> text="RefNotFound"> 12 | <$link overrideClass="link-refcls">[<$view tiddler=<<__tid__>> field="title"/>] 13 |
    Warning: Reference Not Found.
    Click to create it:<>
    14 | 15 | <$reveal type="nomatch" default=<> text="RefNotFound"> 16 | <$list filter="[[$type$]lowercase[]match[p]]" variable=null><> 17 | <$list filter="[[$type$]lowercase[]match[n]]" variable=null><> 18 | <$list filter="[[$type$]lowercase[]match[m]]" variable=null><> 19 |
    20 | <$macrocall $name="displayref-onhover" refTid=<> /> 21 |
    22 | 23 |
    24 | 25 | \end 26 | 27 | 28 | \define cite(tid, type:"p", pages:"") <$macrocall $name=ref tid=<<__tid__>> type=<<__type__>> pages=<<__pages__>> /> 29 | 30 | -------------------------------------------------------------------------------- /source/refnotes/macros/APA/showrefs.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/apa/showrefs 3 | type: text/vnd.tiddlywiki 4 | 5 | \define showrefs(filter:[] title:Empty class:ref-list emptyMessage) 6 | \import $:/plugins/kookma/refnotes/macros/apa/authors 7 | \import $:/plugins/kookma/refnotes/macros/bibtex/find-refs 8 | <$let leftDelimiter1="< 9 | <$list filter="[subfilter<__filter__>search:text:literal][subfilter<__filter__>search:text:literal]:and[limit[1]]" emptyMessage=<<__emptyMessage__>>variable=null> 10 | <$reveal tag=div type=nomatch text=<<__title__>>default=Empty> 11 |

    $title$

    12 | 13 | 14 | <$wikify text=" 15 | <$list filter=<<__filter__>>> 16 | <$macrocall thisTiddler={{!!title}}$name=find-refs/> 17 | 18 | "name=mylist> 19 | 20 |
      21 | <$list filter="[enlisttrim[]sort[]]"variable=reference> 22 | 23 | <$let currentType={{{[get[bibtex-entry-type]lowercase[]]~miscellaneous}}}> 24 | <$set filter="[[$:/tags/Refnotes/ReflistTemplate]tagging[]contains:listnth[]get[title]]"value=<>emptyValue="$:/plugins/kookma/refnotes/templates/reflist/apa/default"name=bodyLookup> 25 | <$transclude tiddler=<>field=text mode=inline/> 26 | 27 | 28 | 29 | 30 |
    31 | 32 | 33 | 34 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/abbr.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/abbr 3 | type: text/vnd.tiddlywiki 4 | 5 | \define abbr(term:"", dict:"Glossary") 6 | <$set name="abbreviation" 7 | tiddler=<<__dict__>> 8 | index=<<__term__>> 9 | emptyValue="Term not found"> 10 | > ><$text text=<<__term__>> /> 11 | 12 | \end 13 | -------------------------------------------------------------------------------- /source/refnotes/macros/bibtex/find-refs.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: 3 | title: $:/plugins/kookma/refnotes/macros/bibtex/find-refs 4 | type: text/vnd.tiddlywiki 5 | 6 | 7 | \define find-refs(thisTiddler) 8 | <$vars 9 | regexp="(?g)<>" regexpc ="(?g)<>" 10 | regexp2='<>' regexp2c='<>' 11 | regexp3='^"(.*?)"' 12 | regexp4="^'(.*?)'" 13 | regexp5="\[\[(.*?)\]\]" 14 | regexp6="^(.*?)\s" 15 | > 16 | <$list filter="[<__thisTiddler__>regexprefs:text][<__thisTiddler__>regexprefs:text]"> 17 | <$list filter="[all[current]regexprefs][all[current]regexprefs]"> 18 | <$list filter=""" 19 | [all[current]regexprefs] 20 | :else[all[current]regexprefs] 21 | :else[all[current]regexprefs] 22 | :else[all[current]regexprefs] 23 | :else[all[current]] 24 | :and[format:titlelist[]] 25 | """ variable=p > 26 | <$text text=<

    > /> 27 | 28 | 29 | 30 | 31 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/bibtex/process-entries.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/bibtex/process-entries 3 | type: text/vnd.tiddlywiki 4 | 5 | \define title-slugify() 6 | <$vars curTitle=<> newTitle={{{[slugify[]]}}}> 7 | <$list filter="[!match]" variable=null> 8 | <$action-sendmessage $message="tm-rename-tiddler" from=<> to=<> /> 9 | 10 | 11 | \end 12 | 13 | \define correct-doi() 14 | <$list filter="[has[bibtex-doi]get[bibtex-doi]!prefix[https://doi.org]]" variable=null> 15 | <$action-setfield $field="bibtex-doi" $value={{{ [{!!bibtex-doi}addprefix[https://doi.org/]] }}}/> 16 | 17 | \end 18 | 19 | \define tag-entries() 20 | 21 | <$action-setfield $tiddler=<> bibtex-entry-type={{{[get[bibtex-entry-type]lowercase[]]}}} /> 22 | 23 | <$fieldmangler> 24 | <$action-sendmessage $message="tm-add-tag" $param="bibtex-entry" /> 25 | 26 | \end 27 | 28 | \define process-entries(title:"Process New Bibtex Entries") 29 | <$button> $title$ 30 | <$wikify name=chkDuplicates text=<> > 31 | <$action-confirm $message=<> > 32 | <$list filter="[has[bibtex-title]!tag[bibtex-entry]]"> 33 | <> 34 | <> 35 | <> 36 | 37 | 38 | 39 | 40 | \end 41 | 42 | 43 | \define check-duplicates() 44 | <$list filter="[has[bibtex-title]duplicateslugs[]limit[1]]" emptyMessage="There are no duplicate entries, do you want to process new entries?"> 45 | The following tiddlers have duplicate slugs, so they will overwrite eachother, do you want to continue? 46 | 47 | <$list filter="[has[bibtex-title]duplicateslugs[]] +[join[, ]]" template="$:/core/ui/ListItemTemplate"/> 48 | 49 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/bibtex/regexprefs.js: -------------------------------------------------------------------------------- 1 | /*\ 2 | title: $:/plugins/kookma/macro/bibtex/regexprefs.js 3 | type: application/javascript 4 | module-type: filteroperator 5 | 6 | Filter operator for regexp matching and returning result. All results are returned if global flag used. All sub-groups are returned if not global and sub-group hits are found. 7 | 8 | This is a hacked version of core macro: $:/core/modules/filters/regexp.js 9 | 10 | \*/ 11 | (function(){ 12 | 13 | /*jslint node: true, browser: true */ 14 | /*global $tw: false */ 15 | "use strict"; 16 | 17 | /* 18 | Export our filter function 19 | */ 20 | exports.regexprefs = function(source,operator,options) { 21 | var results = [], 22 | fieldname = (operator.suffix || "title").toLowerCase(), 23 | regexpString, regexp, flags = "", match, global, 24 | getFieldString = function(tiddler,title) { 25 | if(tiddler) { 26 | return tiddler.getFieldString(fieldname); 27 | } else if(fieldname === "title") { 28 | return title; 29 | } else { 30 | return null; 31 | } 32 | }; 33 | // Process flags and construct regexp 34 | regexpString = operator.operand; 35 | match = /^\(\?([gim]+)\)/.exec(regexpString); 36 | if(match) { 37 | flags = match[1]; 38 | regexpString = regexpString.substr(match[0].length); 39 | } else { 40 | match = /\(\?([gim]+)\)$/.exec(regexpString); 41 | if(match) { 42 | flags = match[1]; 43 | regexpString = regexpString.substr(0,regexpString.length - match[0].length); 44 | } 45 | } 46 | try { 47 | regexp = new RegExp(regexpString,flags); 48 | } catch(e) { 49 | return ["" + e]; 50 | } 51 | 52 | global = /g/.test(flags) ; 53 | 54 | // Process the incoming tiddlers 55 | if(operator.prefix === "!") { 56 | source(function(tiddler,title) { 57 | var text = getFieldString(tiddler,title); 58 | if(text !== null) { 59 | if(!regexp.exec(text)) { 60 | results.push(title); 61 | } 62 | } 63 | }); 64 | } else { 65 | source(function(tiddler,title) { 66 | var text = getFieldString(tiddler,title), ret=""; 67 | if(text !== null) { 68 | ret = text.match(regexp) ; 69 | if(ret !==null) { 70 | if(global) { 71 | results.push.apply(results,ret) ; //DEBUG 72 | } else { 73 | // if there are sub groups return sub groups START 74 | if(ret.length > 1) { // return sub groups 75 | results = results.concat(ret.slice(1)) ; 76 | } else { // if no sub-groups 77 | results.push(ret[0]); 78 | } 79 | } 80 | } 81 | } 82 | }); 83 | } 84 | return results; 85 | }; 86 | 87 | })(); -------------------------------------------------------------------------------- /source/refnotes/macros/bibtex/regexprefs.js.meta: -------------------------------------------------------------------------------- 1 | module-type: filteroperator 2 | title: $:/plugins/kookma/refnotes/macros/bibtex/regexprefs.js 3 | type: application/javascript -------------------------------------------------------------------------------- /source/refnotes/macros/bibtex/utility.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/bibtex/utility 3 | type: text/vnd.tiddlywiki 4 | 5 | \define displayref-onhover(refTid) 6 | <$set name="ref-tid" value=<<__refTid__>> > 7 | <$link overrideClass="link-refcls" to=<> > 8 | <$list filter="[get[bibtex-entry-type]lowercase[]!match[website]]" variable=null 9 | emptyMessage="""<$view tiddler=<> field="bibtex-url"/>."""> 10 | <$view tiddler=<> field="bibtex-author"/>. 11 | 12 | 13 | <$view tiddler=<> field="bibtex-title"/>. (<$view tiddler=<> field="bibtex-year"/>) 14 | 15 | \end 16 | 17 | \define create-notexisted-ref(refTid) 18 | <$set name="myTid" value=<<__refTid__>> > 19 | <$button class="tc-btn-invisible tc-tiddlylink"> 20 | <$action-sendmessage $message="tm-new-tiddler" 21 | title=<> 22 | bibtex-author="" bibtex-year="" 23 | bibtex-title="" bibtex-abstract="" 24 | bibtex-entry-type="" bibtex-keywords="" 25 | bibtex-doi="" bibtex-url="" 26 | tags="bibtex-entry" 27 | /><> 28 | 29 | 30 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/find.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/find 3 | type: text/vnd.tiddlywiki 4 | 5 | \define find(text, begin, end, output:"simple", mode:"all") 6 | <$vars 7 | fulltext=<<__text__>> 8 | start=<<__begin__>> 9 | stop=<<__end__>> 10 | output-macro=<<__output__>> 11 | > 12 | <$list variable=p1 filter="[splitbefore]"> 13 | <$list variable=p2 filter="[removeprefix]"> 14 | <$list variable=p3 filter="[splitbeforeremovesuffix]"> 15 | <$macrocall $name=<> p=<> /> 16 | <$reveal type="match" text="all" default=<<__mode__>> > 17 | <$macrocall $name="find" 18 | text={{{[removeprefixremoveprefix]}}} 19 | begin=<> 20 | end=<> 21 | output=<> 22 | /> 23 | 24 | 25 | 26 | 27 | 28 | \end 29 | 30 | \define simple(p) 31 | <$text text=<<__p__>> /> 32 | \end 33 | 34 | \define simple-list(p) 35 |

  • <$text text=<<__p__>>/>
  • 36 | \end 37 | -------------------------------------------------------------------------------- /source/refnotes/macros/footnote.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/footnote 3 | type: text/vnd.tiddlywiki 4 | 5 | \define fnote(note) 6 |
    $note$
    7 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/numbered/refnum.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/macros/numbered/refnum 3 | type: text/vnd.tiddlywiki 4 | 5 | \define refnum(tid) 6 | <$set name="ref-tid" tiddler=<<__tid__>> field="title" emptyValue="RefNotFound"> 7 |
    8 | <$reveal type="match" default=<> text="RefNotFound"> 9 | <$link overrideClass="link-refcls"> 10 | [<$view tiddler=<<__tid__>> field="title"/>] 11 | 12 |
    Warning: Reference Not Found.
    Click to create it:<>
    13 | 14 | <$reveal type="nomatch" default=<> text="RefNotFound"> 15 | [<$view tiddler=<<__tid__>> field="caption"><$view tiddler=<<__tid__>> field="title"/>] 16 |
    17 | <$macrocall $name="displayref-onhover" refTid=<> /> 18 |
    19 | 20 |
    21 | 22 | \end 23 | -------------------------------------------------------------------------------- /source/refnotes/macros/search-ui.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/macros/search-ui 3 | type: text/vnd.tiddlywiki 4 | 5 | \define searchTid() $:/temp/refnotes/search 6 | \define bibtexFields() [!is[shadow]!is[system]has[bibtex-title]fields[]prefix[bibtex-]sort[]] 7 | \define mainFields() bibtex-title bibtex-author bibtex-year 8 | \define searchUi() 9 | 33 | \end -------------------------------------------------------------------------------- /source/refnotes/macros/showabbrs.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/showabbrs 3 | type: text/vnd.tiddlywiki 4 | 5 | \define showabbrs(filter:"[]", dtiddler:"Glossary", title:"Empty", emptyMessage:"") 6 | <$wikify name="indexes" text=<> > 7 | <$macrocall $name="abbr-list" indexes=<> dtiddler=<<__dtiddler__>> title=<<__title__>> emptyMessage=<<__emptyMessage__>> /> 8 | 9 | \end 10 | 11 | \define patterndb() \[\[|\]\] 12 | \define pattern() ('.*?'|".*?"|\S+) 13 | \define output-item(p) 14 | <$list filter="""[<__p__>search-replace:g:regexp,["]]""" variable=pars> 15 | <$list filter="""[trim[]!prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]first[]]"""> 16 | <$text text=<>/> 17 | 18 | <$list filter="""[trim[]prefix[dict:]search-replace[term:],[]splitregexptrim[]!is[blank]!prefix[dict:]last[]]"""> 19 | <$text text=<>/> 20 | 21 | 22 | \end 23 | 24 | \define find-all-items() 25 | <$list filter=<<__filter__>> > 26 | <$macrocall $name="find" text={{!!text}} begin="< 27 | 28 | \end 29 | 30 | 31 | \define abbr-list(dtiddler, indexes, title:"Empty", emptyMessage:"") 32 | <$list filter="[limit[1]]" variable=null emptyMessage=<<__emptyMessage__>> > 33 | <$reveal tag="div" type="nomatch" default="Empty" text=<<__title__>> > 34 |

    <$text text=<<__title__>> />

    35 | 36 | 37 | <$list filter="""[subfilter<__indexes__>]""" variable="item"> 38 | 39 | 40 | 45 | 46 | 47 |
    <$text text=<> /> 41 | <$set name="term" tiddler=<<__dtiddler__>> index=<> emptyValue=<> > 42 | <> 43 | 44 |
    48 | 49 | \end 50 | 51 | 52 | \define term-not-found() 53 | Term not found 54 | \end 55 | 56 | 57 | -------------------------------------------------------------------------------- /source/refnotes/macros/showfnotes.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Macro 2 | title: $:/plugins/kookma/refnotes/macros/showfnotes 3 | type: text/vnd.tiddlywiki 4 | 5 | \define showfnotes(filter:"[]", title:"Empty" class:"fnote-list", emptyMessage:"") 6 | <$vars leftDelimiter="< 7 | <$list filter="[subfilter<__filter__>search:text:literallimit[1]]" variable=null emptyMessage=<<__emptyMessage__>> > 8 | <$reveal tag="div" type="nomatch" default="Empty" text=<<__title__>> > 9 |

    $title$

    10 | 11 |
      12 | <$list filter=<<__filter__>> > 13 | <$macrocall $name="find" 14 | text={{!!text}} 15 | begin="< 19 | 20 |
    21 | 22 | 23 | \end 24 | 25 | \define output-fnote(p) 26 | <$vars output=$p$> 27 |
  • <>
  • 28 | 29 | \end 30 | 31 | -------------------------------------------------------------------------------- /source/refnotes/macros/stretch-text.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/macros/stretch-text 3 | type: text/vnd.tiddlywiki 4 | 5 | \define tmpTidDetails() $:/temp/refnotes/library/$(currentTiddler)$ 6 | 7 | \define stretchText(text, title:"...") 8 | <$button class="tc-btn-invisible">$title$ 9 | <$action-listops $tiddler=<> $field="text" $subfilter="+[toggle[show]]" /> 10 |  <$reveal type="match" stateTitle=<> sateField=text text="show">$text$ 11 | \end 12 | -------------------------------------------------------------------------------- /source/refnotes/plugin.info: -------------------------------------------------------------------------------- 1 | { 2 | "title": "$:/plugins/kookma/refnotes", 3 | "name": "Refnotes", 4 | "description": "References, citations, footnotes and abbreviations in Tiddlywiki", 5 | "author": "Mohammad Rahmani", 6 | "version": "1.9.0", 7 | "core-version": ">=5.2.1", 8 | "source": "https://github.com/kookma/TW-Refnotes", 9 | "list": "", 10 | "plugin-type": "plugin", 11 | "parent-plugin": "", 12 | "dependents": "" 13 | } -------------------------------------------------------------------------------- /source/refnotes/readme.tid: -------------------------------------------------------------------------------- 1 | tags: 2 | title: $:/plugins/kookma/refnotes/readme 3 | type: text/vnd.tiddlywiki 4 | 5 | ; Refnotes 6 | Refnotes is a Tiddlywiki plugin to create and manage footnotes, abbreviations, citations, and references. Refnotes can create bibliography, but for the best performance, and to use import bibtex entries, the use of the official ''bibtex importer'' plugin is required. APA7 style is used as default. Refnotes output is very close to APA7 standard. 7 | 8 | ;Code and demo 9 | For learning Refnotes features, syntax, tutorial and examples see the plugin demo and code pages 10 | 11 | * Demo: https://kookma.github.io/TW-Refnotes/ 12 | * Code: https://github.com/kookma/TW-Refnotes 13 | -------------------------------------------------------------------------------- /source/refnotes/styles/abbr.css: -------------------------------------------------------------------------------- 1 | /* Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS3 */ 2 | .refnotes-abbr abbr[title] { 3 | color: inherit; 4 | font-style: normal; 5 | text-decoration: none; 6 | border-bottom: 1px dotted #aaa; 7 | cursor: help; 8 | } 9 | 10 | .refnotes-abbr-term-not-found{ 11 | /* color:red;*/ 12 | font-style: oblique; 13 | } 14 | 15 | .refnotes-abbr-term{ 16 | /* color:blue;*/ 17 | } 18 | 19 | /* Ref:https://aarontgrogg.com/lab/ 20 | Show the title for small screen 21 | */ 22 | /* this works based on the max-width*/ 23 | @media only screen and (max-width: 960px) { 24 | .refnotes-abbr abbr:hover:after { content: ' ('attr(title)')'; } 25 | } 26 | 27 | @media (hover: none) { 28 | /* Push the title attribute into generated content after the abbr. */ 29 | .refnotes-abbr abbr[title]::after { 30 | content: ' ('attr(title)')'; } 31 | } 32 | -------------------------------------------------------------------------------- /source/refnotes/styles/abbr.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/abbr 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/bibtex-details.css: -------------------------------------------------------------------------------- 1 | .refnotes-details > summary{ 2 | padding-left:0; 3 | padding-top:15px; 4 | padding-bottom:15px; 5 | width: 160px; 6 | cursor: pointer; 7 | font-weight:bold; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /source/refnotes/styles/bibtex-details.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/bibtex-details 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/bibtex-entryview.css: -------------------------------------------------------------------------------- 1 | /* used for viewtemplate displaying the bibtex entry */ 2 | .refnotes-bibtex-field{ 3 | display:table-row 4 | } 5 | .refnotes-bibtex-field > span{ 6 | display:table-cell 7 | } 8 | .refnotes-bibtex-field > span:first-of-type{ 9 | font-weight:bold; 10 | padding-right:10px; 11 | white-space: nowrap; 12 | } -------------------------------------------------------------------------------- /source/refnotes/styles/bibtex-entryview.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/bibtex-entryview 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/bibtex.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/bibtex 3 | type: text/vnd.tiddlywiki 4 | 5 | .ref-nonumber{ 6 | /* color:blue;*/ 7 | font-size:90%; 8 | list-style-type:none; 9 | } 10 | 11 | .ref-nonumber li{ 12 | padding-bottom:8px; 13 | } 14 | 15 | .ref-list{ 16 | /* color:blue;*/ 17 | font-size:90%; 18 | } 19 | 20 | .link-refcls{ 21 | font-weight:400; 22 | /* color:#00008B;*/ /*darkblue*/ 23 | text-decoration:none; 24 | color: <>; 25 | } 26 | 27 | .refcls{ 28 | /* color:#00008B;*/ 29 | color: <>; 30 | /* text-transform: capitalize;*/ 31 | } 32 | 33 | .ref-notfound{ 34 | /* color: #856404 !important;*/ 35 | /* background-color: #fff3cd !important;*/ 36 | } 37 | 38 | .ref-author{ 39 | /* color:#00008B;*/ /*color for author in tooltip*/ 40 | } -------------------------------------------------------------------------------- /source/refnotes/styles/dropzone.css: -------------------------------------------------------------------------------- 1 | .bibtex-dropzone{ 2 | min-height:30px; 3 | max-width:100%; 4 | margin:4px auto; 5 | border:2px dotted green; 6 | text-align:center; 7 | } 8 | 9 | .bibtex-dropzone:focus { 10 | background: #fffedd; 11 | } -------------------------------------------------------------------------------- /source/refnotes/styles/dropzone.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/dropzone 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/footnote-counter.css: -------------------------------------------------------------------------------- 1 | /*automatic counter for fnote macro. The counter resets at the begining of each tiddler*/ 2 | .tc-tiddler-frame, 3 | .tc-single-tiddler-window { /* to cover tiddler when it is opened in a new window */ 4 | counter-reset: fnote-count; 5 | } 6 | .refnotes-footnote { 7 | counter-increment: fnote-count; 8 | } 9 | .refnotes-footnote:after { 10 | content: counter(fnote-count); 11 | font-size:small; 12 | vertical-align: super; 13 | line-height: 1.5; 14 | margin-left: -0.1em; 15 | /* color:#0000ee;*/ 16 | } 17 | -------------------------------------------------------------------------------- /source/refnotes/styles/footnote-counter.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/footnote-counter 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/library.css: -------------------------------------------------------------------------------- 1 | /* in folding-editor*/ 2 | .refnotes-library button svg{ 3 | font-size:0.8em; 4 | vertical-align: middle; 5 | margin-right:0; 6 | margin-left:0; 7 | 8 | } 9 | 10 | -------------------------------------------------------------------------------- /source/refnotes/styles/library.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/library 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/showfnotes.css: -------------------------------------------------------------------------------- 1 | /* Footnote class*/ 2 | 3 | .fnote-list{ 4 | /* color:blue;*/ 5 | font-size:90%; 6 | } 7 | 8 | .fnote-pretty{ 9 | display: block; 10 | margin: 0.5em; 11 | margin-right: auto; 12 | width: 100% !important; 13 | border-collapse: collapse; 14 | padding: 15px 15px 15px 25px; /*left padding=25px*/ 15 | border-width: 0px; 16 | border-style: solid; 17 | border-left-width: 1px; 18 | background-color: rgb(255,248,220); 19 | color: rgb(91,49,7); 20 | line-height: 1.2em; 21 | font-size:0.9em; 22 | } 23 | -------------------------------------------------------------------------------- /source/refnotes/styles/showfnotes.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/showfnotes 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/table-borderless.css: -------------------------------------------------------------------------------- 1 | /*Borderless table*/ 2 | .refnotes-table-borderless, 3 | .refnotes-table-borderless th, 4 | .refnotes-table-borderless tr, 5 | .refnotes-table-borderless td{ 6 | border:0; 7 | } -------------------------------------------------------------------------------- /source/refnotes/styles/table-borderless.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/table-borderless 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/styles/tooltip.css: -------------------------------------------------------------------------------- 1 | /* tooltip class used for ref, fnote and other macros */ 2 | .refnotes-tooltip { 3 | position: relative; 4 | display: inline-block; 5 | cursor: pointer; 6 | } 7 | 8 | .refnotes-tooltip .refnotes-tooltiptext{ 9 | font-size: 0.90em; /* change if it is too small */ 10 | } 11 | 12 | .refnotes-tooltip .refnotes-tooltiptext { 13 | visibility: hidden; 14 | background-color: #fff; 15 | color: #222222; 16 | text-align: left; 17 | border-radius: 2px; 18 | padding: 5px 10px; 19 | max-width: 30vw; 20 | max-height:20em; 21 | overflow-y: auto; 22 | cursor: auto; 23 | width: max-content; 24 | width: -moz-max-content; 25 | width: -webkit-max-content; 26 | width: -o-max-content; 27 | 28 | /* Position the tooltip */ 29 | position: absolute; 30 | z-index: 1; 31 | bottom: 100%; 32 | left: 50%; 33 | margin-left: -40px; 34 | box-shadow:0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19); 35 | } 36 | 37 | .refnotes-tooltip:hover .refnotes-tooltiptext { 38 | visibility: visible; 39 | /*opacity: 0.9;*/ 40 | } 41 | 42 | /* for small screens */ 43 | 44 | @media screen and (max-width: 960px) { 45 | .refnotes-tooltip .refnotes-tooltiptext { 46 | /* Position the tooltip */ 47 | position:fixed; 48 | top:0; 49 | left: 0; 50 | margin-left: 0px; 51 | bottom: unset; 52 | width:100%; 53 | max-width: 100vw; 54 | z-index: 9999; 55 | } 56 | 57 | .refnotes-tooltip:hover .refnotes-tooltiptext { 58 | opacity: 1; 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /source/refnotes/styles/tooltip.css.meta: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Stylesheet 2 | title: $:/plugins/kookma/refnotes/styles/tooltip 3 | type: text/css -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/article.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: article 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/article 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <$view field="bibtex-journal"/>. <$view field="bibtex-volume"/>. <$view field="bibtex-pages"/>. get[bibtex-doi]!prefix[https://doi.org/]addprefix[https://doi.org/]else{!!bibtex-doi}]}}} target=_blank><$view field="bibtex-doi"/>
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/book.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: book incollection 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/book 5 | type: text/vnd.tiddlywiki 6 | 7 | \define disp-bibtex-edition() 8 | <$list filter="[has[bibtex-edition]]" variable=null>(<$view field="bibtex-edition"/>). 9 | \end 10 | 11 | 12 | <$wikify name=bibtexEntryTiddler text=<> > 13 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 14 | <$reveal type="nomatch" default="RefNotFound" text=<> > 15 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <> <$view field="bibtex-publisher"/>.
  • 16 | 17 | <$reveal type="match" default="RefNotFound" text=<> > 18 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/default.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: $:/tags/Refnotes/ReflistTemplate 3 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/default 4 | type: text/vnd.tiddlywiki 5 | 6 | <$wikify name=bibtexEntryTiddler text=<> > 7 | <$set name=currentTiddler tiddler=<> field="title" emptyValue="RefNotFound"> 8 | <$reveal type="nomatch" default="RefNotFound" text=<> > 9 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />.
  • 10 | 11 | <$reveal type="match" default="RefNotFound" text=<> > 12 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 13 | 14 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/inproceedings.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: inproceedings 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/inproceedings 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. In <$view field="bibtex-booktitle"/>. pp. <$view field="bibtex-pages"/>. get[bibtex-doi]]}}}><$view field="bibtex-doi"/>
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/patent.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: patent 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/patent 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. (<$view field="bibtex-nationality"/> Patent No. <$view field="bibtex-number"/>). <$view field="bibtex-url"/>
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/thesis.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: thesis mastersthesis phdthesis 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/thesis 5 | type: text/vnd.tiddlywiki 6 | 7 | \define disp-thesis-type() 8 | \whitespace trim 9 | <$list filter="[get[bibtex-entry-type]]" variable=thesisType> 10 | <$text text={{{ 11 | [match[mastersthesis]then[Master's thesis]] 12 | [match[phdthesis]then[PhD thesis]] 13 | :else[[Thesis]] }}} /> 14 | 15 | \end 16 | 17 | 18 | <$wikify name=bibtexEntryTiddler text=<> > 19 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 20 | <$reveal type="nomatch" default="RefNotFound" text=<> > 21 |
  • <$link to=<>><> (<$text text={{{ [{!!bibtex-year}!is[blank]] :else[[n.d.]] }}}/>). <$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <>, <$view field="bibtex-school"/>.
  • 22 | 23 | <$reveal type="match" default="RefNotFound" text=<> > 24 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/apa/website.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: website 3 | tags: $:/tags/Refnotes/ReflistTemplate 4 | title: $:/plugins/kookma/refnotes/templates/reflist/apa/website 5 | type: text/vnd.tiddlywiki 6 | 7 | \define retrieved-date() 8 | <$list filter="[has[bibtex-urldate]]" variable=null>Retrieved <$text text={{{ [{!!bibtex-urldate}search-replace:g[.],[]search-replace:g[-],[]] :map[format:date[MMM 0DD, YYYY]] }}}/><$list filter="[!has[bibtex-urldate]has[bibtex-note]]" variable=null><$view field="bibtex-note"/><$list filter="[!has[bibtex-urldate]!has[bibtex-note]]" variable=null>Retrieved n.d. 9 | \end 10 | 11 | <$wikify name=bibtexEntryTiddler text=<> > 12 | <$set name=currentTiddler tiddler=<> field="title" emptyValue="RefNotFound"> 13 | <$reveal type="nomatch" default="RefNotFound" text=<> > 14 |
  • <$link to=<>><$text text={{{ [{!!bibtex-title}lowercase[]sentencecase[]] }}} />. <>, <$text text={{!!bibtex-url}} />.
  • 15 | 16 | <$reveal type="match" default="RefNotFound" text=<> > 17 |
  • Reference <$text text=<>/> NOT FOUND. Check your input.
  • 18 | 19 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/numbered/article.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: article 3 | tags: 4 | title: $:/plugins/kookma/refnotes/templates/reflist/numbered/article 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <$view field="bibtex-author"/>, <$view field="bibtex-title"/>, <$view field="bibtex-journal"/>, <$view field="bibtex-year"/>.
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference $p$ NOT FOUND. Check your input.
  • 14 | 15 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/numbered/book.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: book 3 | tags: 4 | title: $:/plugins/kookma/refnotes/templates/reflist/numbered/book 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name=currentTiddler tiddler=<> field=title emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <>, <$view field="bibtex-title"/>, <$view field="bibtex-edition"/>, <$view field="bibtex-year"/>, <$view field="bibtex-address"/>, <$view field="bibtex-publisher"/>.
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference $p$ NOT FOUND. Check your input.
  • 14 | 15 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/numbered/default.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | tags: 3 | title: $:/plugins/kookma/refnotes/templates/reflist/numbered/default 4 | type: text/vnd.tiddlywiki 5 | 6 | <$wikify name=bibtexEntryTiddler text=<> > 7 | <$set name=currentTiddler tiddler=<> field="title" emptyValue="RefNotFound"> 8 | <$reveal type="nomatch" default="RefNotFound" text=<> > 9 |
  • <$view field="bibtex-author"/>, <$view field="bibtex-title"/>,<$view field="bibtex-journal"/>, <$view field="bibtex-year"/>.
  • 10 | 11 | <$reveal type="match" default="RefNotFound" text=<> > 12 |
  • Reference $p$ NOT FOUND. Check your input.
  • 13 | 14 | -------------------------------------------------------------------------------- /source/refnotes/templates/reflist/numbered/website.tid: -------------------------------------------------------------------------------- 1 | code-body: yes 2 | list: website 3 | tags: 4 | title: $:/plugins/kookma/refnotes/templates/reflist/numbered/website 5 | type: text/vnd.tiddlywiki 6 | 7 | <$wikify name=bibtexEntryTiddler text=<> > 8 | <$set name="curtid" tiddler=<> field="title" emptyValue="RefNotFound"> 9 | <$reveal type="nomatch" default="RefNotFound" text=<> > 10 |
  • <$view field="bibtex-title" tiddler=<>/>, get[bibtex-url]]}}} target="_blank"><$text text={{{ [get[bibtex-url]] }}}/>, <$view field="bibtex-year" tiddler=<>/>.
  • 11 | 12 | <$reveal type="match" default="RefNotFound" text=<> > 13 |
  • Reference $p$ NOT FOUND. Check your input.
  • 14 | 15 | -------------------------------------------------------------------------------- /source/refnotes/ui/bibtexlibrary.tid: -------------------------------------------------------------------------------- 1 | caption: Bibliography 2 | tags: $:/tags/SideBar 3 | title: $:/plugins/kookma/refnotes/ui/bibtexlibrary 4 | type: text/vnd.tiddlywiki 5 | 6 | \import [[$:/plugins/kookma/refnotes/macros/search-ui]] 7 | 8 | \define dispEntry() 9 | <$link/> 10 | <$macrocall $name=stretchText text=""" 11 | <$view field="bibtex-author"/>. (<$view field="bibtex-year"/>). <$view field="bibtex-title"/>.""" /> 12 | \end 13 | 14 | 15 | \define searchFilter() [has[bibtex-title]search:$(sField)$[$(sTerm)$]] 16 | 17 | \define bibLibrary() 18 | \import [[$:/plugins/kookma/refnotes/macros/stretch-text]] 19 | <$vars sField={{{[get[field]] ~[[bibtex-author]]}}} sTerm={{{[get[text]]}}}> 20 | 21 | 22 | 35 | 36 | 37 |
      38 | <$list filter="[subfilter]"> 39 |
    1. <>
    2. 40 | 41 |
    42 | 43 | \end 44 | 45 | 46 |
    47 | <> 48 | {{$:/plugins/kookma/refnotes/ui/dropzone}} 49 |
    50 | 51 | 54 | 55 | <> 56 | 57 | <> 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /source/refnotes/ui/dropzone.tid: -------------------------------------------------------------------------------- 1 | caption: Dropzone 2 | tags: 3 | title: $:/plugins/kookma/refnotes/ui/dropzone 4 | type: text/vnd.tiddlywiki 5 | 6 | <$dropzone 7 | deserializer="application/x-bibtex" 8 | filesOnly=no 9 | importTitle="Import Bibtex"> 10 |
    11 | Paste your Bibtex Entry here 12 |
    13 | -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/article.tid: -------------------------------------------------------------------------------- 1 | list: article 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/article 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-journal bibtex-year bibtex-pages bibtex-number bibtex-volume bibtex-doi bibtex-entry-type 7 | 8 | 9 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/book.tid: -------------------------------------------------------------------------------- 1 | list: book 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/book 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-publisher bibtex-entry-type 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/default.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Refnotes/Template 2 | title: $:/plugins/kookma/refnotes/viewtemplates/default 3 | type: text/vnd.tiddlywiki 4 | 5 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-doi bibtex-entry-type 6 | 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/helper.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/Refnotes/Template 2 | title: $:/plugins/kookma/refnotes/viewtemplates/helper 3 | type: text/vnd.tiddlywiki 4 | 5 | \define citedIn(refname) 6 | <$let pattern-ref ="""<>""" 7 | pattern-cite="""<>""" 8 | > 9 | <$list filter="[all[tiddlers]search:text:regexpsort[title]] [all[tiddlers]search:text:regexpsort[title]]" 10 | template="$:/core/ui/ListItemTemplate" 11 | emptyMessage="""//No tiddler has cited this reference//""" /> 12 | 13 | \end 14 | 15 | \define display-bibtex-field() 16 |
    17 | <$text text={{{ [removeprefix[bibtex-]titlecase[]] }}} /> 18 | <$transclude tiddler=<> field=<> mode=inline /> 19 |
    20 | \end 21 | 22 | <$let tv-wikilinks="no"> 23 | 24 | <$list filter="[enlist]" variable=currentField> 25 | <> 26 | 27 | 28 | 29 |
    30 | More details 31 | <$list filter="[fields[]prefix[bibtex]sort[]] -[enlist]" variable=currentField> 32 | <> 33 | 34 |
    35 | 36 | 37 | 38 | ; Cited in 39 | : <$macrocall $name=citedIn refname=<> /> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/incollection.tid: -------------------------------------------------------------------------------- 1 | list: incollection 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/incollection 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-booktitle bibtex-editor bibtex-publisher bibtex-doi bibtex-entry-type 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/inproceedings.tid: -------------------------------------------------------------------------------- 1 | list: inproceedings 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/inproceedings 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-booktitle bibtex-editor bibtex-doi bibtex-entry-type 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/main.tid: -------------------------------------------------------------------------------- 1 | tags: $:/tags/ViewTemplate 2 | title: $:/plugins/kookma/refnotes/viewtemplates/main 3 | type: text/vnd.tiddlywiki 4 | 5 | <$list filter="[all[current]has[bibtex-title]]"> 6 | <$vars currentType={{{[get[bibtex-entry-type]lowercase[]] ~[[miscellaneous]]}}} > 7 | <$set name="bodyLookup" 8 | filter="[all[tiddlers+shadows]tag[$:/tags/Refnotes/Template]contains:list] +[limit[1]get[title]]" 9 | value=<> 10 | emptyValue="$:/plugins/kookma/refnotes/viewtemplates/default"> 11 | <$transclude tiddler=<> field="text" mode="inline"/> 12 | 13 | 14 | -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/thesis.tid: -------------------------------------------------------------------------------- 1 | list: phdthesis mastersthesis thesis 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/thesis 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-school bibtex-entry-type 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/unpublished.tid: -------------------------------------------------------------------------------- 1 | list: unpublished 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/unpublished 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-author bibtex-year bibtex-note bibtex-entry-type 7 | 8 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> -------------------------------------------------------------------------------- /source/refnotes/viewtemplates/website.tid: -------------------------------------------------------------------------------- 1 | list: website 2 | tags: $:/tags/Refnotes/Template 3 | title: $:/plugins/kookma/refnotes/viewtemplates/website 4 | type: text/vnd.tiddlywiki 5 | 6 | \define mainFields() bibtex-title bibtex-url bibtex-urldate bibtex-note bibtex-entry-type 7 | 8 | 9 | <$transclude tiddler="$:/plugins/kookma/refnotes/viewtemplates/helper" mode=block/> --------------------------------------------------------------------------------