vault backup: 2024-07-24 08:46:38
This commit is contained in:
parent
1e73d085d6
commit
79b44dbf6c
26
.obsidian/plugins/home-tab/data.json
vendored
26
.obsidian/plugins/home-tab/data.json
vendored
@ -23,25 +23,17 @@
|
||||
"markdownOnly": false,
|
||||
"unresolvedLinks": false,
|
||||
"recentFilesStore": [
|
||||
{
|
||||
"filepath": "_inbox/2024-07-24 1721799892.md",
|
||||
"timestamp": 1721799892756
|
||||
},
|
||||
{
|
||||
"filepath": "knowledge/english/Present Simple.md",
|
||||
"timestamp": 1721799803766
|
||||
},
|
||||
{
|
||||
"filepath": "Home.md",
|
||||
"timestamp": 1721718323869
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Приемка квартиры с черновым ремонтом.md",
|
||||
"timestamp": 1721714211262
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Черновая отделка.md",
|
||||
"timestamp": 1721714210394
|
||||
},
|
||||
{
|
||||
"filepath": "projects/Ремонт квартиры/Проект. Ремонт квартиры.md",
|
||||
"timestamp": 1721714029423
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Мне нравится.md",
|
||||
"timestamp": 1721711740934
|
||||
"timestamp": 1721799720640
|
||||
}
|
||||
],
|
||||
"bookmarkedFileStore": [],
|
||||
|
4
.obsidian/plugins/homepage/main.js
vendored
4
.obsidian/plugins/homepage/main.js
vendored
File diff suppressed because one or more lines are too long
2
.obsidian/plugins/homepage/manifest.json
vendored
2
.obsidian/plugins/homepage/manifest.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "homepage",
|
||||
"name": "Homepage",
|
||||
"version": "4.0.2",
|
||||
"version": "4.0.3",
|
||||
"minAppVersion": "1.4.10",
|
||||
"description": "Open a specified note, canvas, or workspace on startup, or set it for quick access later.",
|
||||
"author": "novov",
|
||||
|
55
.obsidian/plugins/homepage/styles.css
vendored
55
.obsidian/plugins/homepage/styles.css
vendored
@ -63,6 +63,17 @@
|
||||
padding: 5px 0 0;
|
||||
}
|
||||
|
||||
.nv-mobile-setting {
|
||||
flex-wrap: wrap;
|
||||
row-gap: var(--size-2-2);
|
||||
}
|
||||
|
||||
.nv-mobile-setting .nv-mobile-info {
|
||||
font-size: var(--font-ui-smaller);
|
||||
width: 100%;
|
||||
margin-right: var(--size-4-18);
|
||||
}
|
||||
|
||||
.nv-command-desc {
|
||||
padding: 1.2em 0 0;
|
||||
border-top: 1px solid var(--background-modifier-border);
|
||||
@ -166,17 +177,45 @@
|
||||
max-width: auto;
|
||||
}
|
||||
|
||||
.is-phone .nv-command-pill button, .is-phone .nv-command-add-button {
|
||||
width: auto;
|
||||
.is-phone .nv-mobile-setting {
|
||||
row-gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
.nv-mobile-setting {
|
||||
flex-wrap: wrap;
|
||||
row-gap: var(--size-2-2);
|
||||
.is-phone .nv-mobile-setting .setting-item-info {
|
||||
max-width: calc(100% - 100px);
|
||||
}
|
||||
|
||||
.nv-mobile-setting .nv-mobile-info {
|
||||
font-size: var(--font-ui-smaller);
|
||||
.is-phone .nv-mobile-setting {
|
||||
row-gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
.is-phone .nv-mobile-setting .setting-item-info {
|
||||
max-width: calc(100% - 100px);
|
||||
}
|
||||
|
||||
.is-phone .nv-command-pill {
|
||||
width: 100%;
|
||||
margin-right: var(--size-4-18);
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0 0 var(--size-4-2);
|
||||
display: flex;
|
||||
gap: var(--size-4-4);
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.is-phone .nv-command-pill .nv-command-text {
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.is-phone .nv-command-pill, .is-phone .nv-command-add-button {
|
||||
font-size: var(--font-ui-medium);
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.is-phone .nv-command-pill button {
|
||||
line-height: var(--font-ui-medium);
|
||||
height: 100%;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
@ -1,60 +0,0 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"name": "Markdown"
|
||||
},
|
||||
{
|
||||
"name": "Markdown (Hugo)"
|
||||
},
|
||||
{
|
||||
"name": "Html"
|
||||
},
|
||||
{
|
||||
"name": "TextBundle"
|
||||
},
|
||||
{
|
||||
"name": "Typst"
|
||||
},
|
||||
{
|
||||
"name": "PDF"
|
||||
},
|
||||
{
|
||||
"name": "Word (.docx)"
|
||||
},
|
||||
{
|
||||
"name": "OpenOffice"
|
||||
},
|
||||
{
|
||||
"name": "RTF"
|
||||
},
|
||||
{
|
||||
"name": "Epub"
|
||||
},
|
||||
{
|
||||
"name": "Latex"
|
||||
},
|
||||
{
|
||||
"name": "Media Wiki"
|
||||
},
|
||||
{
|
||||
"name": "reStructuredText"
|
||||
},
|
||||
{
|
||||
"name": "Textile"
|
||||
},
|
||||
{
|
||||
"name": "OPML"
|
||||
},
|
||||
{
|
||||
"name": "Bibliography"
|
||||
}
|
||||
],
|
||||
"defaultExportDirectoryMode": "Auto",
|
||||
"openExportedFile": true,
|
||||
"env": {},
|
||||
"showExportProgressBar": true,
|
||||
"lastExportDirectory": {
|
||||
"darwin": "/Users/struchkov/Downloads"
|
||||
},
|
||||
"lastExportType": "RTF"
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
-- credits to tarleb — StackExchange: https://tex.stackexchange.com/questions/392070/pandoc-markdown-create-self-contained-bib-file-from-cited-references
|
||||
function Pandoc(d)
|
||||
d.meta.references = pandoc.utils.references(d)
|
||||
d.meta.bibliography = nil
|
||||
return d
|
||||
end
|
@ -1,5 +0,0 @@
|
||||
package.path=package.path..";" ..debug.getinfo(1).source:match("(.*[/\\])"):sub(2) .. "?.lua"
|
||||
|
||||
Mode='hugo'
|
||||
|
||||
require('markdown')
|
@ -1,237 +0,0 @@
|
||||
package.path=debug.getinfo(1).source:gsub('@',''):sub(0):match('(.*[/\\])'):sub(0) .. '?.lua' .. ';' .. package.path
|
||||
|
||||
require("polyfill")
|
||||
local url = require('url')
|
||||
|
||||
local pandoc=pandoc
|
||||
local PANDOC_STATE=PANDOC_STATE
|
||||
|
||||
PANDOC_VERSION:must_be_at_least '3.1.7'
|
||||
|
||||
os.text = pandoc.text
|
||||
|
||||
local PATH = pandoc.path
|
||||
local doc_dir = nil
|
||||
local media_dir = nil
|
||||
|
||||
if Mode == nil then
|
||||
Mode = 'default'
|
||||
end
|
||||
|
||||
-- print("Mode: "..Mode)
|
||||
|
||||
if PANDOC_STATE.output_file then
|
||||
local output_file = PANDOC_STATE.output_file
|
||||
doc_dir = PATH.directory(output_file)
|
||||
if PANDOC_WRITER_OPTIONS.variables["media_dir"] then
|
||||
media_dir = tostring(PANDOC_WRITER_OPTIONS.variables["media_dir"])
|
||||
else
|
||||
media_dir = PATH.split_extension(output_file)
|
||||
if Mode ~= 'hugo' then
|
||||
media_dir = media_dir .. '-media'
|
||||
end
|
||||
end
|
||||
end
|
||||
assert(doc_dir, "doc_dir is nil")
|
||||
assert(media_dir, "media_dir is nil")
|
||||
|
||||
|
||||
local function get_absolute_path(file_path)
|
||||
if PATH.is_absolute(file_path) then
|
||||
return file_path
|
||||
end
|
||||
for _, dir in pairs(PANDOC_STATE.resource_path) do
|
||||
local full_path = PATH.join({dir, file_path})
|
||||
if os.exists(full_path) then
|
||||
return full_path
|
||||
end
|
||||
end
|
||||
for _, file in pairs(PANDOC_STATE.input_files) do
|
||||
if not PATH.is_absolute(file) then
|
||||
file = PATH.join({pandoc.system.get_working_directory(), file_path})
|
||||
end
|
||||
local dir = PATH.directory(file)
|
||||
local full_path = PATH.join({dir, file_path})
|
||||
if os.exists(full_path) then
|
||||
return full_path
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
local function get_output_file(file_path)
|
||||
if media_dir then
|
||||
local new_file_name = pandoc.utils.sha1(file_path)
|
||||
local _, new_file_ext = PATH.split_extension(file_path)
|
||||
file_path = new_file_name .. new_file_ext
|
||||
local full_path = PATH.join({media_dir, file_path})
|
||||
return full_path
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
local function extract_media(file_path)
|
||||
os.mkdir(media_dir)
|
||||
file_path = url.decode(file_path)
|
||||
local abs_path = get_absolute_path(file_path)
|
||||
local file = get_output_file(file_path)
|
||||
if abs_path and file then
|
||||
if not os.exists(file) then
|
||||
os.copy(abs_path, file)
|
||||
end
|
||||
local rel_path = PATH.make_relative(file, doc_dir, false)
|
||||
local parts = PATH.split(rel_path)
|
||||
for i,v in ipairs(parts) do
|
||||
parts[i] = url.encode(v)
|
||||
end
|
||||
local encoded_rel_path = table.concat(parts, "/")
|
||||
if Mode == 'hugo' then
|
||||
encoded_rel_path = '../' .. encoded_rel_path
|
||||
end
|
||||
return encoded_rel_path
|
||||
end
|
||||
end
|
||||
|
||||
local function raw(s)
|
||||
return pandoc.RawInline('markdown', s)
|
||||
end
|
||||
|
||||
function Image(el)
|
||||
local src = extract_media(el.src)
|
||||
if src then
|
||||
el.src = src
|
||||
end
|
||||
return el
|
||||
end
|
||||
|
||||
function Space()
|
||||
return raw(' ')
|
||||
end
|
||||
|
||||
function SoftBreak()
|
||||
return raw('\n')
|
||||
end
|
||||
|
||||
function RawInline(el)
|
||||
if el.format == "html" then
|
||||
el.format = 'markdown'
|
||||
el.text = string.gsub(el.text, '<img[^>]+>', function(img)
|
||||
return string.gsub(img, 'src="([^"]+)"', function(url)
|
||||
if string.find(url, '^[Hh][Tt][Tt][Pp][Ss]?://') == nil then
|
||||
local extract_media_url = extract_media(url)
|
||||
if extract_media_url then
|
||||
return 'src="' .. extract_media_url .. '"'
|
||||
end
|
||||
return '123'
|
||||
end
|
||||
return 'src="' .. url .. '"'
|
||||
end)
|
||||
end)
|
||||
end
|
||||
return el
|
||||
end
|
||||
|
||||
function RawBlock(el)
|
||||
if el.format == "html" then
|
||||
el.format = 'markdown'
|
||||
end
|
||||
return el
|
||||
end
|
||||
|
||||
function Math(el)
|
||||
if Mode == 'hugo' then
|
||||
if el.mathtype == 'DisplayMath' then
|
||||
return raw('{{< mathjax >}}\n$$' .. el.text .. '$$\n{{</mathjax >}}')
|
||||
else
|
||||
el.text = string.gsub(el.text, '\\[\\{\\}]', function (v)
|
||||
return '\\' .. v
|
||||
end)
|
||||
el.text = string.gsub(el.text, '_', function (v)
|
||||
return '\\' .. v
|
||||
end)
|
||||
end
|
||||
end
|
||||
return el
|
||||
end
|
||||
|
||||
local function headerLink(input)
|
||||
-- github style section link
|
||||
return "#"..input:gsub(' ', '-')
|
||||
end
|
||||
|
||||
|
||||
local function insertLink(content, linkDescription)
|
||||
local descriptionText = table.concat(linkDescription, "")
|
||||
|
||||
if string.find(descriptionText, '|') then
|
||||
local target, desc = descriptionText:match("(.*)|(.*)")
|
||||
table.insert(content, pandoc.Link(desc, headerLink(target)))
|
||||
else
|
||||
table.insert(content, pandoc.Link(descriptionText, headerLink(descriptionText)))
|
||||
end
|
||||
end
|
||||
|
||||
function Para(el)
|
||||
local content = el.content
|
||||
content = ProcessMath(content)
|
||||
content = ProcessInternalLinks(content)
|
||||
el.content = content
|
||||
return el
|
||||
end
|
||||
|
||||
function ProcessMath(elements)
|
||||
local content = {}
|
||||
local in_display_math = false
|
||||
for _, item in pairs(elements) do
|
||||
if item.t == 'Str'and item.text == "$$" then
|
||||
in_display_math = not in_display_math
|
||||
else
|
||||
if in_display_math then
|
||||
if item.t == 'RawInline' and item.format == 'tex' then
|
||||
local n = pandoc.Math('DisplayMath', '\n' .. item.text .. '\n')
|
||||
table.insert(content, Math(n))
|
||||
else
|
||||
table.insert(content, item)
|
||||
end
|
||||
else
|
||||
table.insert(content, item)
|
||||
end
|
||||
end
|
||||
end
|
||||
return content
|
||||
end
|
||||
|
||||
function ProcessInternalLinks(elements)
|
||||
local content = {}
|
||||
local in_section_link = false
|
||||
local linkDescription = {}
|
||||
|
||||
for _, item in pairs(elements) do
|
||||
if item.t == 'Str' and string.starts_with(item.text, '[[#') then
|
||||
in_section_link = true
|
||||
table.insert(linkDescription, string.sub(item.text, 4))
|
||||
elseif in_section_link then
|
||||
if string.ends_with(item.text, ']]') then
|
||||
table.insert(linkDescription, string.sub(item.text, 1, -3))
|
||||
insertLink(content, linkDescription)
|
||||
in_section_link = false
|
||||
linkDescription = {}
|
||||
else
|
||||
table.insert(linkDescription, item.text)
|
||||
end
|
||||
else
|
||||
table.insert(content, item)
|
||||
end
|
||||
end
|
||||
return content
|
||||
end
|
||||
|
||||
function Plain(el)
|
||||
el.content = ProcessInternalLinks(el.content)
|
||||
return el
|
||||
end
|
||||
|
||||
function Pandoc(el)
|
||||
return el
|
||||
end
|
@ -1,68 +0,0 @@
|
||||
traverse = 'topdown'
|
||||
|
||||
math_block_text = nil
|
||||
function process(el)
|
||||
|
||||
-- MathBlock start or end
|
||||
if el.t == 'Str' and el.text == '$$' then
|
||||
if math_block_text == nil then -- start
|
||||
math_block_text = ''
|
||||
else -- end
|
||||
local math_block = pandoc.Math('DisplayMath', '\n' .. math_block_text .. '\n')
|
||||
math_block_text = nil
|
||||
return math_block
|
||||
end
|
||||
return {}
|
||||
end
|
||||
|
||||
if math_block_text then
|
||||
if (el.t == 'RawInline' or el.t == 'RawBlock') and el.format == 'tex' then
|
||||
math_block_text = math_block_text .. el.text
|
||||
return {}
|
||||
elseif el.t == 'Str' then
|
||||
math_block_text = math_block_text .. el.text
|
||||
return {}
|
||||
elseif el.t == 'SoftBreak' or el.t == 'BulletList' then
|
||||
return {}
|
||||
end
|
||||
end
|
||||
return el
|
||||
end
|
||||
|
||||
function RawInline(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function RawBlock(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function Str(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function SoftBreak(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function Header(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function Para(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function Plain(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
function BulletList(el)
|
||||
return process(el)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,12 +0,0 @@
|
||||
|
||||
return {
|
||||
{
|
||||
Math = function (elem)
|
||||
if elem.text:find("^%s*\\begin{") ~= nil then
|
||||
return pandoc.RawInline('tex', elem.text)
|
||||
else
|
||||
return elem
|
||||
end
|
||||
end,
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
os.platform = nil
|
||||
if os.platform == nil then
|
||||
local libExt = package.cpath:match("%p[\\|/]?\\.%p(%a+)")
|
||||
if libExt == 'dll' then
|
||||
os.platform = "Windows"
|
||||
elseif libExt == 'so' then
|
||||
os.platform = "Linux"
|
||||
elseif libExt == 'dylib' then
|
||||
os.platform = "MacOS"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
os.copy = function(src, dest)
|
||||
if os.platform == "Windows" then
|
||||
src = string.gsub(src, "/", "\\")
|
||||
src = os.text.toencoding(src)
|
||||
dest = os.text.toencoding(dest)
|
||||
os.execute('copy "' .. src .. '" "' .. dest .. '" >NUL')
|
||||
else
|
||||
os.execute('cp "' .. src .. '" "' .. dest .. '"')
|
||||
end
|
||||
end
|
||||
|
||||
os.mkdir = function(dir)
|
||||
if os.exists(dir) then
|
||||
return
|
||||
end
|
||||
if os.platform == "Windows" then
|
||||
dir = os.text.toencoding(dir)
|
||||
os.execute('mkdir "' .. dir .. '"')
|
||||
else
|
||||
os.execute('mkdir -p "' .. dir .. '"')
|
||||
end
|
||||
end
|
||||
|
||||
os.exists = function(path)
|
||||
if os.platform == "Windows" then
|
||||
path = string.gsub(path, "/", "\\")
|
||||
path = os.text.toencoding(path)
|
||||
local _, _, code = os.execute('if exist "' .. path .. '" (exit 0) else (exit 1)')
|
||||
return code == 0
|
||||
else
|
||||
local _, _, code = os.execute('test -e "' .. path .. '"')
|
||||
return code == 0
|
||||
end
|
||||
end
|
||||
|
||||
string.starts_with = function(str, start)
|
||||
return str:sub(1, #start) == start
|
||||
end
|
||||
|
||||
string.ends_with = function(str, ending)
|
||||
return ending == "" or str:sub(-#ending) == ending
|
||||
end
|
||||
|
||||
|
||||
return {
|
||||
os = os,
|
||||
string = string
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
local function encode (str)
|
||||
str = string.gsub (str, "([^0-9a-zA-Z !'()*._~-])", -- locale independent
|
||||
function (c) return string.format ("%%%02X", string.byte(c)) end)
|
||||
str = string.gsub (str, " ", "%%20")
|
||||
return str
|
||||
end
|
||||
|
||||
|
||||
local function decode (str)
|
||||
str = string.gsub (str, "%%20", " ")
|
||||
str = string.gsub (str, "%%(%x%x)", function(h) return string.char(tonumber(h,16)) end)
|
||||
return str
|
||||
end
|
||||
|
||||
return {
|
||||
encode = encode,
|
||||
decode = decode
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,10 +0,0 @@
|
||||
{
|
||||
"id": "obsidian-enhancing-export",
|
||||
"name": "Enhancing Export",
|
||||
"version": "1.10.6",
|
||||
"minAppVersion": "1.6.3",
|
||||
"description": "This is a enhancing export plugin for Obsidian. It allows to export to formats like Html, DOCX, ePub and PDF or Markdown(Hugo) etc.",
|
||||
"author": "YISH",
|
||||
"authorUrl": "https://github.com/mokeyish",
|
||||
"isDesktopOnly": true
|
||||
}
|
@ -1 +0,0 @@
|
||||
.setting-item.ex-setting-item{border-top:unset;padding-top:0}*[hidden]{display:none}
|
File diff suppressed because it is too large
Load Diff
@ -1,373 +0,0 @@
|
||||
% partial rewrite of the LaTeX2e package for submissions to the
|
||||
% Conference on Neural Information Processing Systems (NeurIPS):
|
||||
%
|
||||
% - uses more LaTeX conventions
|
||||
% - line numbers at submission time replaced with aligned numbers from
|
||||
% lineno package
|
||||
% - \nipsfinalcopy replaced with [final] package option
|
||||
% - automatically loads times package for authors
|
||||
% - loads natbib automatically; this can be suppressed with the
|
||||
% [nonatbib] package option
|
||||
% - adds foot line to first page identifying the conference
|
||||
% - adds preprint option for submission to e.g. arXiv
|
||||
% - conference acronym modified
|
||||
%
|
||||
% Roman Garnett (garnett@wustl.edu) and the many authors of
|
||||
% nips15submit_e.sty, including MK and drstrip@sandia
|
||||
%
|
||||
% last revision: March 2023
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{neurips}[2023/03/31 NeurIPS 2023 submission/camera-ready style file]
|
||||
|
||||
% declare final option, which creates camera-ready copy
|
||||
\newif\if@neuripsfinal\@neuripsfinalfalse
|
||||
\DeclareOption{final}{
|
||||
\@neuripsfinaltrue
|
||||
}
|
||||
|
||||
% declare nonatbib option, which does not load natbib in case of
|
||||
% package clash (users can pass options to natbib via
|
||||
% \PassOptionsToPackage)
|
||||
\newif\if@natbib\@natbibtrue
|
||||
\DeclareOption{nonatbib}{
|
||||
\@natbibfalse
|
||||
}
|
||||
|
||||
% declare preprint option, which creates a preprint version ready for
|
||||
% upload to, e.g., arXiv
|
||||
\newif\if@preprint\@preprintfalse
|
||||
\DeclareOption{preprint}{
|
||||
\@preprinttrue
|
||||
}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
% determine whether this is an anonymized submission
|
||||
\newif\if@submission\@submissiontrue
|
||||
\if@neuripsfinal\@submissionfalse\fi
|
||||
\if@preprint\@submissionfalse\fi
|
||||
|
||||
% fonts
|
||||
\renewcommand{\rmdefault}{ptm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
|
||||
% change this every year for notice string at bottom
|
||||
\newcommand{\@neuripsordinal}{}
|
||||
\newcommand{\@neuripsyear}{\the\year}
|
||||
\newcommand{\@neuripslocation}{}
|
||||
|
||||
% acknowledgments
|
||||
\usepackage{environ}
|
||||
\newcommand{\acksection}{\section*{Acknowledgments and Disclosure of Funding}}
|
||||
\NewEnviron{ack}{%
|
||||
\acksection
|
||||
\BODY
|
||||
}
|
||||
|
||||
|
||||
% load natbib unless told otherwise
|
||||
\if@natbib
|
||||
\RequirePackage{natbib}
|
||||
\fi
|
||||
|
||||
% set page geometry
|
||||
\usepackage[verbose=true,letterpaper]{geometry}
|
||||
\AtBeginDocument{
|
||||
\newgeometry{
|
||||
textheight=9in,
|
||||
textwidth=5.5in,
|
||||
top=1in,
|
||||
headheight=12pt,
|
||||
headsep=25pt,
|
||||
footskip=30pt
|
||||
}
|
||||
\@ifpackageloaded{fullpage}
|
||||
{\PackageWarning{neurips_2023}{fullpage package not allowed! Overwriting formatting.}}
|
||||
{}
|
||||
}
|
||||
|
||||
\widowpenalty=10000
|
||||
\clubpenalty=10000
|
||||
\flushbottom
|
||||
\sloppy
|
||||
|
||||
|
||||
% font sizes with reduced leading
|
||||
\renewcommand{\normalsize}{%
|
||||
\@setfontsize\normalsize\@xpt\@xipt
|
||||
\abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@
|
||||
\abovedisplayshortskip \z@ \@plus 3\p@
|
||||
\belowdisplayskip \abovedisplayskip
|
||||
\belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@
|
||||
}
|
||||
\normalsize
|
||||
\renewcommand{\small}{%
|
||||
\@setfontsize\small\@ixpt\@xpt
|
||||
\abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 4\p@
|
||||
\abovedisplayshortskip \z@ \@plus 2\p@
|
||||
\belowdisplayskip \abovedisplayskip
|
||||
\belowdisplayshortskip 3\p@ \@plus 2\p@ \@minus 2\p@
|
||||
}
|
||||
\renewcommand{\footnotesize}{\@setfontsize\footnotesize\@ixpt\@xpt}
|
||||
\renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
|
||||
\renewcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
|
||||
\renewcommand{\large}{\@setfontsize\large\@xiipt{14}}
|
||||
\renewcommand{\Large}{\@setfontsize\Large\@xivpt{16}}
|
||||
\renewcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{20}}
|
||||
\renewcommand{\huge}{\@setfontsize\huge\@xxpt{23}}
|
||||
\renewcommand{\Huge}{\@setfontsize\Huge\@xxvpt{28}}
|
||||
|
||||
% sections with less space
|
||||
\providecommand{\section}{}
|
||||
\renewcommand{\section}{%
|
||||
\@startsection{section}{1}{\z@}%
|
||||
{-2.0ex \@plus -0.5ex \@minus -0.2ex}%
|
||||
{ 1.5ex \@plus 0.3ex \@minus 0.2ex}%
|
||||
{\large\bf\raggedright}%
|
||||
}
|
||||
\providecommand{\subsection}{}
|
||||
\renewcommand{\subsection}{%
|
||||
\@startsection{subsection}{2}{\z@}%
|
||||
{-1.8ex \@plus -0.5ex \@minus -0.2ex}%
|
||||
{ 0.8ex \@plus 0.2ex}%
|
||||
{\normalsize\bf\raggedright}%
|
||||
}
|
||||
\providecommand{\subsubsection}{}
|
||||
\renewcommand{\subsubsection}{%
|
||||
\@startsection{subsubsection}{3}{\z@}%
|
||||
{-1.5ex \@plus -0.5ex \@minus -0.2ex}%
|
||||
{ 0.5ex \@plus 0.2ex}%
|
||||
{\normalsize\bf\raggedright}%
|
||||
}
|
||||
\providecommand{\paragraph}{}
|
||||
\renewcommand{\paragraph}{%
|
||||
\@startsection{paragraph}{4}{\z@}%
|
||||
{1.5ex \@plus 0.5ex \@minus 0.2ex}%
|
||||
{-1em}%
|
||||
{\normalsize\bf}%
|
||||
}
|
||||
\providecommand{\subparagraph}{}
|
||||
\renewcommand{\subparagraph}{%
|
||||
\@startsection{subparagraph}{5}{\z@}%
|
||||
{1.5ex \@plus 0.5ex \@minus 0.2ex}%
|
||||
{-1em}%
|
||||
{\normalsize\bf}%
|
||||
}
|
||||
\providecommand{\subsubsubsection}{}
|
||||
\renewcommand{\subsubsubsection}{%
|
||||
\vskip5pt{\noindent\normalsize\rm\raggedright}%
|
||||
}
|
||||
|
||||
% float placement
|
||||
\renewcommand{\topfraction }{0.85}
|
||||
\renewcommand{\bottomfraction }{0.4}
|
||||
\renewcommand{\textfraction }{0.1}
|
||||
\renewcommand{\floatpagefraction}{0.7}
|
||||
|
||||
\newlength{\@neuripsabovecaptionskip}\setlength{\@neuripsabovecaptionskip}{7\p@}
|
||||
\newlength{\@neuripsbelowcaptionskip}\setlength{\@neuripsbelowcaptionskip}{\z@}
|
||||
|
||||
\setlength{\abovecaptionskip}{\@neuripsabovecaptionskip}
|
||||
\setlength{\belowcaptionskip}{\@neuripsbelowcaptionskip}
|
||||
|
||||
% swap above/belowcaptionskip lengths for tables
|
||||
\renewenvironment{table}
|
||||
{\setlength{\abovecaptionskip}{\@neuripsbelowcaptionskip}%
|
||||
\setlength{\belowcaptionskip}{\@neuripsabovecaptionskip}%
|
||||
\@float{table}}
|
||||
{\end@float}
|
||||
|
||||
% footnote formatting
|
||||
\setlength{\footnotesep }{6.65\p@}
|
||||
\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
|
||||
\renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@}
|
||||
\setcounter{footnote}{0}
|
||||
|
||||
% paragraph formatting
|
||||
\setlength{\parindent}{\z@}
|
||||
\setlength{\parskip }{5.5\p@}
|
||||
|
||||
% list formatting
|
||||
\setlength{\topsep }{4\p@ \@plus 1\p@ \@minus 2\p@}
|
||||
\setlength{\partopsep }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@}
|
||||
\setlength{\itemsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
|
||||
\setlength{\parsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
|
||||
\setlength{\leftmargin }{3pc}
|
||||
\setlength{\leftmargini }{\leftmargin}
|
||||
\setlength{\leftmarginii }{2em}
|
||||
\setlength{\leftmarginiii}{1.5em}
|
||||
\setlength{\leftmarginiv }{1.0em}
|
||||
\setlength{\leftmarginv }{0.5em}
|
||||
\def\@listi {\leftmargin\leftmargini}
|
||||
\def\@listii {\leftmargin\leftmarginii
|
||||
\labelwidth\leftmarginii
|
||||
\advance\labelwidth-\labelsep
|
||||
\topsep 2\p@ \@plus 1\p@ \@minus 0.5\p@
|
||||
\parsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
|
||||
\itemsep \parsep}
|
||||
\def\@listiii{\leftmargin\leftmarginiii
|
||||
\labelwidth\leftmarginiii
|
||||
\advance\labelwidth-\labelsep
|
||||
\topsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
|
||||
\parsep \z@
|
||||
\partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@
|
||||
\itemsep \topsep}
|
||||
\def\@listiv {\leftmargin\leftmarginiv
|
||||
\labelwidth\leftmarginiv
|
||||
\advance\labelwidth-\labelsep}
|
||||
\def\@listv {\leftmargin\leftmarginv
|
||||
\labelwidth\leftmarginv
|
||||
\advance\labelwidth-\labelsep}
|
||||
\def\@listvi {\leftmargin\leftmarginvi
|
||||
\labelwidth\leftmarginvi
|
||||
\advance\labelwidth-\labelsep}
|
||||
|
||||
% create title
|
||||
\providecommand{\maketitle}{}
|
||||
\renewcommand{\maketitle}{%
|
||||
\par
|
||||
\begingroup
|
||||
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
|
||||
% for perfect author name centering
|
||||
\renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}}
|
||||
% The footnote-mark was overlapping the footnote-text,
|
||||
% added the following to fix this problem (MK)
|
||||
\long\def\@makefntext##1{%
|
||||
\parindent 1em\noindent
|
||||
\hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1
|
||||
}
|
||||
\thispagestyle{empty}
|
||||
\@maketitle
|
||||
\@thanks
|
||||
\@notice
|
||||
\endgroup
|
||||
\let\maketitle\relax
|
||||
\let\thanks\relax
|
||||
}
|
||||
|
||||
% rules for title box at top of first page
|
||||
\newcommand{\@toptitlebar}{
|
||||
\hrule height 4\p@
|
||||
\vskip 0.25in
|
||||
\vskip -\parskip%
|
||||
}
|
||||
\newcommand{\@bottomtitlebar}{
|
||||
\vskip 0.29in
|
||||
\vskip -\parskip
|
||||
\hrule height 1\p@
|
||||
\vskip 0.09in%
|
||||
}
|
||||
|
||||
% create title (includes both anonymized and non-anonymized versions)
|
||||
\providecommand{\@maketitle}{}
|
||||
\renewcommand{\@maketitle}{%
|
||||
\vbox{%
|
||||
\hsize\textwidth
|
||||
\linewidth\hsize
|
||||
\vskip 0.1in
|
||||
\@toptitlebar
|
||||
\centering
|
||||
{\LARGE\bf \@title\par}
|
||||
\@bottomtitlebar
|
||||
\if@submission
|
||||
\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}
|
||||
Anonymous Author(s) \\
|
||||
Affiliation \\
|
||||
Address \\
|
||||
\texttt{email} \\
|
||||
\end{tabular}%
|
||||
\else
|
||||
\def\And{%
|
||||
\end{tabular}\hfil\linebreak[0]\hfil%
|
||||
\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
|
||||
}
|
||||
\def\AND{%
|
||||
\end{tabular}\hfil\linebreak[4]\hfil%
|
||||
\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
|
||||
}
|
||||
\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}%
|
||||
\fi
|
||||
\vskip 0.3in \@minus 0.1in
|
||||
}
|
||||
}
|
||||
|
||||
% add conference notice to bottom of first page
|
||||
\newcommand{\ftype@noticebox}{8}
|
||||
\newcommand{\@notice}{%
|
||||
% give a bit of extra room back to authors on first page
|
||||
\enlargethispage{2\baselineskip}%
|
||||
\@float{noticebox}[b]%
|
||||
\footnotesize\@noticestring%
|
||||
\end@float%
|
||||
}
|
||||
|
||||
% abstract styling
|
||||
\renewenvironment{abstract}%
|
||||
{%
|
||||
\vskip 0.075in%
|
||||
\centerline%
|
||||
{\large\bf Abstract}%
|
||||
\vspace{0.5ex}%
|
||||
\begin{quote}%
|
||||
}
|
||||
{
|
||||
\par%
|
||||
\end{quote}%
|
||||
\vskip 1ex%
|
||||
}
|
||||
|
||||
% handle tweaks for camera-ready copy vs. submission copy
|
||||
\if@preprint
|
||||
\newcommand{\@noticestring}{%
|
||||
Preprint. Under review.%
|
||||
}
|
||||
\else
|
||||
\if@neuripsfinal
|
||||
\newcommand{\@noticestring}{%
|
||||
(\@neuripsyear) \@title
|
||||
}
|
||||
\else
|
||||
\newcommand{\@noticestring}{%
|
||||
(\@neuripsyear) \@title %
|
||||
}
|
||||
|
||||
% hide the acknowledgements
|
||||
\NewEnviron{hide}{}
|
||||
\let\ack\hide
|
||||
\let\endack\endhide
|
||||
|
||||
% line numbers for submission
|
||||
\RequirePackage{lineno}
|
||||
\linenumbers
|
||||
|
||||
% fix incompatibilities between lineno and amsmath, if required, by
|
||||
% transparently wrapping linenomath environments around amsmath
|
||||
% environments
|
||||
\AtBeginDocument{%
|
||||
\@ifpackageloaded{amsmath}{%
|
||||
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
|
||||
\expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
|
||||
\expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
|
||||
\renewenvironment{#1}%
|
||||
{\linenomath\csname old#1\endcsname}%
|
||||
{\csname oldend#1\endcsname\endlinenomath}%
|
||||
}%
|
||||
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
|
||||
\patchAmsMathEnvironmentForLineno{#1}%
|
||||
\patchAmsMathEnvironmentForLineno{#1*}%
|
||||
}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{equation}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{align}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{flalign}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{alignat}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{gather}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{multline}%
|
||||
}
|
||||
{}
|
||||
}
|
||||
\fi
|
||||
\fi
|
||||
|
||||
|
||||
\endinput
|
@ -1,159 +0,0 @@
|
||||
\documentclass{article}
|
||||
|
||||
|
||||
% if you need to pass options to natbib, use, e.g.:
|
||||
% \PassOptionsToPackage{numbers, compress}{natbib}
|
||||
% before loading neurips_2023
|
||||
|
||||
|
||||
% ready for submission
|
||||
\usepackage[final]{neurips}
|
||||
|
||||
|
||||
% to compile a preprint version, e.g., for submission to arXiv, add add the
|
||||
% [preprint] option:
|
||||
% \usepackage[preprint]{neurips_2023}
|
||||
|
||||
|
||||
% to compile a camera-ready version, add the [final] option, e.g.:
|
||||
% \usepackage[final]{neurips_2023}
|
||||
|
||||
|
||||
% to avoid loading the natbib package, add option nonatbib:
|
||||
% \usepackage[nonatbib]{neurips_2023}
|
||||
|
||||
|
||||
\usepackage[utf8]{inputenc} % allow utf-8 input
|
||||
\usepackage[T1]{fontenc} % use 8-bit T1 fonts
|
||||
\usepackage{hyperref} % hyperlinks
|
||||
\usepackage{url} % simple URL typesetting
|
||||
\usepackage{booktabs} % professional-quality tables
|
||||
\usepackage{amsfonts} % blackboard math symbols
|
||||
\usepackage{nicefrac} % compact symbols for 1/2, etc.
|
||||
\usepackage{microtype} % microtypography
|
||||
\usepackage{xcolor} % colors
|
||||
\usepackage{graphicx}
|
||||
|
||||
\makeatletter
|
||||
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
||||
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
|
||||
\makeatother
|
||||
% Scale images if necessary, so that they will not overflow the page
|
||||
% margins by default, and it is still possible to overwrite the defaults
|
||||
% using explicit options in \includegraphics[width, height, ...]{}
|
||||
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
||||
% Set default figure placement to htbp
|
||||
\makeatletter
|
||||
\def\fps@figure{htbp}
|
||||
\makeatother
|
||||
|
||||
$if(csl-refs)$
|
||||
\newlength{\cslhangindent}
|
||||
\setlength{\cslhangindent}{1.5em}
|
||||
\newlength{\csllabelwidth}
|
||||
\setlength{\csllabelwidth}{3em}
|
||||
\newlength{\cslentryspacingunit} % times entry-spacing
|
||||
\setlength{\cslentryspacingunit}{\parskip}
|
||||
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
|
||||
{% don't indent paragraphs
|
||||
\setlength{\parindent}{0pt}
|
||||
% turn on hanging indent if param 1 is 1
|
||||
\ifodd #1
|
||||
\let\oldpar\par
|
||||
\def\par{\hangindent=\cslhangindent\oldpar}
|
||||
\fi
|
||||
% set entry spacing
|
||||
\setlength{\parskip}{#2\cslentryspacingunit}
|
||||
}%
|
||||
{}
|
||||
\usepackage{calc}
|
||||
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
|
||||
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
|
||||
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
|
||||
$endif$
|
||||
\providecommand{\tightlist}{%
|
||||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
||||
\title{$title$}
|
||||
|
||||
|
||||
% Iterate through the authors except last to add \And.
|
||||
|
||||
\author{%
|
||||
$for(authors/allbutlast)$
|
||||
$authors.name$\\$authors.affiliation$\\$authors.institution$\\$authors.email$\\$authors.address$ \And
|
||||
$endfor$
|
||||
$for(authors/last)$
|
||||
$authors.name$\\$authors.affiliation$\\$authors.institution$\\$authors.email$\\$authors.address$
|
||||
$endfor$
|
||||
}
|
||||
|
||||
% \author{%
|
||||
% David S.~Hippocampus \\
|
||||
% Department of Computer Science\\
|
||||
% Cranberry-Lemon University\\
|
||||
% Pittsburgh, PA 15213 \\
|
||||
% \texttt{hippo@cs.cranberry-lemon.edu} \\
|
||||
% % examples of more authors
|
||||
% % \And
|
||||
% % Coauthor \\
|
||||
% % Affiliation \\
|
||||
% % Address \\
|
||||
% % \texttt{email} \\
|
||||
% % \AND
|
||||
% % Coauthor \\
|
||||
% % Affiliation \\
|
||||
% % Address \\
|
||||
% % \texttt{email} \\
|
||||
% % \And
|
||||
% % Coauthor \\
|
||||
% % Affiliation \\
|
||||
% % Address \\
|
||||
% % \texttt{email} \\
|
||||
% % \And
|
||||
% % Coauthor \\
|
||||
% % Affiliation \\
|
||||
% % Address \\
|
||||
% % \texttt{email} \\
|
||||
% }
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
||||
\maketitle
|
||||
|
||||
|
||||
\begin{abstract}
|
||||
$if(abstract)$
|
||||
$abstract$
|
||||
$else$
|
||||
Add your abstract at the beginning of your markdown file like this
|
||||
\begin{verbatim}
|
||||
---
|
||||
title: "Your Title"
|
||||
abstract: "your abstract here"
|
||||
authors:
|
||||
- name: Leonardo V. Castorina
|
||||
affiliation: School of Informatics
|
||||
institution: University of Edinburgh
|
||||
email: justanemail@domain.ext
|
||||
address: Edinburgh
|
||||
- name: Coauthor
|
||||
affiliation: Affiliation
|
||||
institution: Institution
|
||||
email: coauthor@example.com
|
||||
address: Address
|
||||
---
|
||||
\end{verbatim}
|
||||
This is called YAML frontmatter. If you set your abstract correctly you should not see this message.
|
||||
$endif$
|
||||
\end{abstract}
|
||||
|
||||
|
||||
$body$
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
\end{document}
|
@ -92,7 +92,7 @@
|
||||
"library2": {
|
||||
"type": "excalidrawlib",
|
||||
"version": 2,
|
||||
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.2.9",
|
||||
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.2.10",
|
||||
"libraryItems": [
|
||||
{
|
||||
"status": "unpublished",
|
||||
@ -24536,7 +24536,7 @@
|
||||
"mdCSS": "",
|
||||
"scriptEngineSettings": {},
|
||||
"defaultTrayMode": true,
|
||||
"previousRelease": "2.2.9",
|
||||
"previousRelease": "2.2.10",
|
||||
"showReleaseNotes": true,
|
||||
"showNewVersionNotification": true,
|
||||
"latexBoilerplate": "\\color{blue}",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-excalidraw-plugin",
|
||||
"name": "Excalidraw",
|
||||
"version": "2.2.9",
|
||||
"version": "2.2.10",
|
||||
"minAppVersion": "1.1.6",
|
||||
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
|
||||
"author": "Zsolt Viczian",
|
||||
|
3199
.obsidian/plugins/obsidian-git/main.js
vendored
3199
.obsidian/plugins/obsidian-git/main.js
vendored
File diff suppressed because one or more lines are too long
7
.obsidian/plugins/obsidian-git/manifest.json
vendored
7
.obsidian/plugins/obsidian-git/manifest.json
vendored
@ -1,9 +1,10 @@
|
||||
{
|
||||
"author": "Vinzent",
|
||||
"authorUrl": "https://github.com/Vinzent03",
|
||||
"id": "obsidian-git",
|
||||
"name": "Git",
|
||||
"description": "Backup your vault with Git.",
|
||||
"description": "Integrate Git version control with automatic backup and other advanced features.",
|
||||
"isDesktopOnly": false,
|
||||
"fundingUrl": "https://ko-fi.com/vinzent",
|
||||
"js": "main.js",
|
||||
"version": "2.24.3"
|
||||
"version": "2.25.0"
|
||||
}
|
||||
|
4
.obsidian/plugins/obsidian-git/styles.css
vendored
4
.obsidian/plugins/obsidian-git/styles.css
vendored
@ -77,6 +77,10 @@
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.is-active .git-tools .buttons > * {
|
||||
color: var(--nav-item-color-active);
|
||||
}
|
||||
|
||||
.git-author {
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
@ -38,7 +38,8 @@
|
||||
"iconInFrontmatterFieldName": "icon",
|
||||
"iconColorInFrontmatterFieldName": "iconColor",
|
||||
"debugMode": false,
|
||||
"iconInTitlePosition": "above"
|
||||
"iconInTitlePosition": "above",
|
||||
"lucideIconPackType": "native"
|
||||
},
|
||||
"diary": "SiLivejournal",
|
||||
"wiki": "SiWikipedia",
|
||||
|
1162
.obsidian/plugins/obsidian-icon-folder/main.js
vendored
1162
.obsidian/plugins/obsidian-icon-folder/main.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-icon-folder",
|
||||
"name": "Iconize",
|
||||
"version": "2.14.2",
|
||||
"version": "2.14.3",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "Add icons to anything you desire in Obsidian, including files, folders, and text.",
|
||||
"author": "Florian Woelki",
|
||||
|
@ -1,5 +1,13 @@
|
||||
{
|
||||
"recentFiles": [
|
||||
{
|
||||
"basename": "Уроки от English Galaxy",
|
||||
"path": "_inbox/Уроки от English Galaxy.md"
|
||||
},
|
||||
{
|
||||
"basename": "Present Simple",
|
||||
"path": "knowledge/english/Present Simple.md"
|
||||
},
|
||||
{
|
||||
"basename": "Home",
|
||||
"path": "Home.md"
|
||||
@ -36,10 +44,6 @@
|
||||
"basename": "Обслуживание велосипеда",
|
||||
"path": "checklists/Обслуживание велосипеда.md"
|
||||
},
|
||||
{
|
||||
"basename": "Present Simple",
|
||||
"path": "knowledge/english/Present Simple.md"
|
||||
},
|
||||
{
|
||||
"basename": "Модальные глаголы",
|
||||
"path": "knowledge/english/Модальные глаголы.md"
|
||||
@ -195,10 +199,6 @@
|
||||
{
|
||||
"basename": "Проводка",
|
||||
"path": "_inbox/Проводка.md"
|
||||
},
|
||||
{
|
||||
"basename": "Вопросы для найма ремонта",
|
||||
"path": "_inbox/Вопросы для найма ремонта.md"
|
||||
}
|
||||
],
|
||||
"omittedPaths": [],
|
||||
|
60
.obsidian/plugins/templater-obsidian/main.js
vendored
60
.obsidian/plugins/templater-obsidian/main.js
vendored
@ -1728,7 +1728,7 @@ function get_tfiles_from_folder(folder_str) {
|
||||
}
|
||||
});
|
||||
files.sort((a, b) => {
|
||||
return a.basename.localeCompare(b.basename);
|
||||
return a.path.localeCompare(b.path);
|
||||
});
|
||||
return files;
|
||||
}
|
||||
@ -1818,8 +1818,7 @@ var DEFAULT_SETTINGS = {
|
||||
syntax_highlighting: true,
|
||||
syntax_highlighting_mobile: false,
|
||||
enabled_templates_hotkeys: [""],
|
||||
startup_templates: [""],
|
||||
enable_ribbon_icon: true
|
||||
startup_templates: [""]
|
||||
};
|
||||
var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
constructor(plugin) {
|
||||
@ -1828,13 +1827,11 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
}
|
||||
display() {
|
||||
this.containerEl.empty();
|
||||
this.add_general_setting_header();
|
||||
this.add_template_folder_setting();
|
||||
this.add_internal_functions_setting();
|
||||
this.add_syntax_highlighting_settings();
|
||||
this.add_auto_jump_to_cursor();
|
||||
this.add_trigger_on_new_file_creation_setting();
|
||||
this.add_ribbon_icon_setting();
|
||||
this.add_templates_hotkeys_setting();
|
||||
if (this.plugin.settings.trigger_on_file_creation) {
|
||||
this.add_folder_templates_setting();
|
||||
@ -1844,9 +1841,6 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
this.add_user_system_command_functions_setting();
|
||||
this.add_donating_setting();
|
||||
}
|
||||
add_general_setting_header() {
|
||||
this.containerEl.createEl("h2", { text: "General settings" });
|
||||
}
|
||||
add_template_folder_setting() {
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Template folder location").setDesc("Files in this folder will be available as templates.").addSearch((cb) => {
|
||||
new FolderSuggest(cb.inputEl);
|
||||
@ -1909,25 +1903,8 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
});
|
||||
});
|
||||
}
|
||||
add_ribbon_icon_setting() {
|
||||
const desc = document.createDocumentFragment();
|
||||
desc.append("Show Templater icon in sidebar ribbon, allowing you to quickly use templates anywhere.");
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Show icon in sidebar").setDesc(desc).addToggle((toggle) => {
|
||||
toggle.setValue(this.plugin.settings.enable_ribbon_icon).onChange((enable_ribbon_icon) => {
|
||||
this.plugin.settings.enable_ribbon_icon = enable_ribbon_icon;
|
||||
this.plugin.save_settings();
|
||||
if (this.plugin.settings.enable_ribbon_icon) {
|
||||
this.plugin.addRibbonIcon("templater-icon", "Templater", async () => {
|
||||
this.plugin.fuzzy_suggester.insert_template();
|
||||
}).setAttribute("id", "rb-templater-icon");
|
||||
} else {
|
||||
document.getElementById("rb-templater-icon")?.remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
add_templates_hotkeys_setting() {
|
||||
this.containerEl.createEl("h2", { text: "Template hotkeys" });
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Template hotkeys").setHeading();
|
||||
const desc = document.createDocumentFragment();
|
||||
desc.append("Template hotkeys allows you to bind a template to a hotkey.");
|
||||
new import_obsidian6.Setting(this.containerEl).setDesc(desc);
|
||||
@ -1982,13 +1959,14 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
});
|
||||
}
|
||||
add_folder_templates_setting() {
|
||||
this.containerEl.createEl("h2", { text: "Folder Templates" });
|
||||
this.containerEl.createEl("h2", { text: "Folder templates" });
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Folder templates").setHeading();
|
||||
const descHeading = document.createDocumentFragment();
|
||||
descHeading.append("Folder Templates are triggered when a new ", descHeading.createEl("strong", { text: "empty " }), "file is created in a given folder.", descHeading.createEl("br"), "Templater will fill the empty file with the specified template.", descHeading.createEl("br"), "The deepest match is used. A global default template would be defined on the root ", descHeading.createEl("code", { text: "/" }), ".");
|
||||
new import_obsidian6.Setting(this.containerEl).setDesc(descHeading);
|
||||
const descUseNewFileTemplate = document.createDocumentFragment();
|
||||
descUseNewFileTemplate.append("When enabled Templater will make use of the folder templates defined below.");
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Enable Folder Templates").setDesc(descUseNewFileTemplate).addToggle((toggle) => {
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Enable folder templates").setDesc(descUseNewFileTemplate).addToggle((toggle) => {
|
||||
toggle.setValue(this.plugin.settings.enable_folder_templates).onChange((use_new_file_templates) => {
|
||||
this.plugin.settings.enable_folder_templates = use_new_file_templates;
|
||||
this.plugin.save_settings();
|
||||
@ -1998,7 +1976,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
if (!this.plugin.settings.enable_folder_templates) {
|
||||
return;
|
||||
}
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Add New").setDesc("Add new folder template").addButton((button) => {
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Add new").setDesc("Add new folder template").addButton((button) => {
|
||||
button.setTooltip("Add additional folder template").setButtonText("+").setCta().onClick(() => {
|
||||
this.plugin.settings.folder_templates.push({
|
||||
folder: "",
|
||||
@ -2050,7 +2028,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
});
|
||||
}
|
||||
add_startup_templates_setting() {
|
||||
this.containerEl.createEl("h2", { text: "Startup templates" });
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Startup templates").setHeading();
|
||||
const desc = document.createDocumentFragment();
|
||||
desc.append("Startup templates are templates that will get executed once when Templater starts.", desc.createEl("br"), "These templates won't output anything.", desc.createEl("br"), "This can be useful to set up templates adding hooks to Obsidian events for example.");
|
||||
new import_obsidian6.Setting(this.containerEl).setDesc(desc);
|
||||
@ -2084,7 +2062,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
});
|
||||
}
|
||||
add_user_script_functions_setting() {
|
||||
this.containerEl.createEl("h2", { text: "User script functions" });
|
||||
new import_obsidian6.Setting(this.containerEl).setName("User script functions").setHeading();
|
||||
let desc = document.createDocumentFragment();
|
||||
desc.append("All JavaScript files in this folder will be loaded as CommonJS modules, to import custom user functions.", desc.createEl("br"), "The folder needs to be accessible from the vault.", desc.createEl("br"), "Check the ", desc.createEl("a", {
|
||||
href: "https://silentvoid13.github.io/Templater/",
|
||||
@ -2130,9 +2108,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
desc.append("Allows you to create user functions linked to system commands.", desc.createEl("br"), desc.createEl("b", {
|
||||
text: "Warning: "
|
||||
}), "It can be dangerous to execute arbitrary system commands from untrusted sources. Only run system commands that you understand, from trusted sources.");
|
||||
this.containerEl.createEl("h2", {
|
||||
text: "User system command functions"
|
||||
});
|
||||
new import_obsidian6.Setting(this.containerEl).setName("User system command functions").setHeading();
|
||||
new import_obsidian6.Setting(this.containerEl).setName("Enable user system command functions").setDesc(desc).addToggle((toggle) => {
|
||||
toggle.setValue(this.plugin.settings.enable_system_commands).onChange((enable_system_commands) => {
|
||||
this.plugin.settings.enable_system_commands = enable_system_commands;
|
||||
@ -2165,7 +2141,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
const div2 = this.containerEl.createEl("div");
|
||||
div2.addClass("templater_div");
|
||||
const title = this.containerEl.createEl("h4", {
|
||||
text: "User Function n\xB0" + i
|
||||
text: "User function n\xB0" + i
|
||||
});
|
||||
title.addClass("templater_title");
|
||||
const setting2 = new import_obsidian6.Setting(this.containerEl).addExtraButton((extra) => {
|
||||
@ -2188,7 +2164,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
t.inputEl.addClass("templater_template");
|
||||
return t;
|
||||
}).addTextArea((text) => {
|
||||
const t = text.setPlaceholder("System Command").setValue(template_pair[1]).onChange((new_cmd) => {
|
||||
const t = text.setPlaceholder("System command").setValue(template_pair[1]).onChange((new_cmd) => {
|
||||
const index = this.plugin.settings.templates_pairs.indexOf(template_pair);
|
||||
if (index > -1) {
|
||||
this.plugin.settings.templates_pairs[index][1] = new_cmd;
|
||||
@ -2207,7 +2183,7 @@ var TemplaterSettingTab = class extends import_obsidian6.PluginSettingTab {
|
||||
const div = this.containerEl.createEl("div");
|
||||
div.addClass("templater_div2");
|
||||
const setting = new import_obsidian6.Setting(this.containerEl).addButton((button) => {
|
||||
button.setButtonText("Add New User Function").setCta().onClick(() => {
|
||||
button.setButtonText("Add new user function").setCta().onClick(() => {
|
||||
this.plugin.settings.templates_pairs.push(["", ""]);
|
||||
this.plugin.save_settings();
|
||||
this.display();
|
||||
@ -2260,7 +2236,11 @@ var FuzzySuggester = class extends import_obsidian7.FuzzySuggestModal {
|
||||
return files;
|
||||
}
|
||||
getItemText(item) {
|
||||
return item.basename;
|
||||
let relativePath = item.path;
|
||||
if (item.path.startsWith(this.plugin.settings.templates_folder)) {
|
||||
relativePath = item.path.slice(this.plugin.settings.templates_folder.length + 1);
|
||||
}
|
||||
return relativePath.split(".").slice(0, -1).join(".");
|
||||
}
|
||||
onChooseItem(item) {
|
||||
switch (this.open_mode) {
|
||||
@ -3874,7 +3854,7 @@ var CommandHandler = class {
|
||||
setup() {
|
||||
this.plugin.addCommand({
|
||||
id: "insert-templater",
|
||||
name: "Open Insert Template modal",
|
||||
name: "Open insert template modal",
|
||||
icon: "templater-icon",
|
||||
hotkeys: [
|
||||
{
|
||||
@ -5624,11 +5604,9 @@ var TemplaterPlugin = class extends import_obsidian17.Plugin {
|
||||
this.command_handler = new CommandHandler(this);
|
||||
this.command_handler.setup();
|
||||
(0, import_obsidian17.addIcon)("templater-icon", ICON_DATA);
|
||||
if (this.settings.enable_ribbon_icon) {
|
||||
this.addRibbonIcon("templater-icon", "Templater", async () => {
|
||||
this.fuzzy_suggester.insert_template();
|
||||
}).setAttribute("id", "rb-templater-icon");
|
||||
}
|
||||
this.addSettingTab(new TemplaterSettingTab(this));
|
||||
app.workspace.onLayoutReady(() => {
|
||||
this.templater.execute_startup_scripts();
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "templater-obsidian",
|
||||
"name": "Templater",
|
||||
"version": "2.3.3",
|
||||
"version": "2.4.1",
|
||||
"description": "Create and use templates",
|
||||
"minAppVersion": "1.5.0",
|
||||
"author": "SilentVoid",
|
||||
|
13
_inbox/Уроки от English Galaxy.md
Normal file
13
_inbox/Уроки от English Galaxy.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
aliases:
|
||||
tags:
|
||||
- зрелость/🌱
|
||||
date:
|
||||
- - 2024-07-24
|
||||
zero-link:
|
||||
- "[[00 English]]"
|
||||
parents:
|
||||
linked:
|
||||
---
|
||||
- [Урок 1. Грамматика. Простое настоящее время.](https://www.youtube.com/watch?v=GavBpRVYilE&t=149s)
|
||||
-
|
@ -28,7 +28,7 @@ linked:
|
||||
- on Sundays - по воскресеньям
|
||||
- in the evenings - по вечерам
|
||||
|
||||
**Утвердительные предложения** образуются также, как и в русском языке. Сначала идет местоимение, затем глагол.
|
||||
**Утвердительные предложения** образуются также, как и в русском языке. Сначала идет подлежащие, затем сказуемое.
|
||||
|
||||
В Present Simple в утвердительных предложениях с местоимениями `he`, `she` или `it`, то к глаголу добавляется окончание `-s`. Если глагол заканчивается на согласную + `y`, то `y` меняется на `i` и добавляется `es`. Если глагол оканчивается на `o`, `ss`, `sh`, `ch`, `x`, то добавляется `-es`. [Модальные глаголы](Модальные%20глаголы.md) не изменяются. ^e3ff20
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user