In the middle of the desert you can say anything you want
Obyde needs 3.8 and fails otherwise, new OS maybe time for new ways to convert. There are many actually. Some active mantained and expandable.
For later:
obsidian-to-hugo doesn’t support assets/images :( Leaving only ukautz/obsidian-meets-hugo: Command line tool to export Obsidian Vault into Hugo published website for me.
_index.md files, and converts existing ones in Obsidian to -index.md
-i tag1 -i tag2 -i tag31Current CLI:
go run cmds/omh/main.go --obsidian-root=../public_obs/ -R --hugo-root=../dtb/ --sub-path= -i=uni -i=zc/it -i=zc/rl
Is linksphoto.md unpublished (draft, expired, or future)? Or, to put it another way, what happens when you run
hugo server -DEF?
var insane = regexp.MustCompile(`[^a-zA-Z0-9\-]`)
func Sanitize(in string) string {
return insane.ReplaceAllString(in, "")
}
[^a-zA-Z0-9\-\p{Cyrillic}] — now it does upper+lowercase cyrillics — so now it’s 220407-2246-Чебуреки.md in the md filename, but the URI has it lowercased.disablePathToLower in config2 — not changing because cool URIs don’t change and this was the default for years on this website//assets alrighty…By default, the static/ directory in the site project is used for all static files (e.g. stylesheets, JavaScript, images). The static files are served on the site root path (eg. if you have the file static/image.png you can access it using http://{server-url}/image.png, to include it in a document you can use !
[Example image](/image.png)).
/xxx will refer to the website and not my local install//assets/.. to /assets (one slash) then it shows up nicely locallyomh.go this happens: return fmt.Sprintf("[%s](/%s/%s)", title, c.SubPath, target)if c.SubPath == "" {
return fmt.Sprintf("[%s](%s/%s)", title, c.SubPath, target)
} else {
return fmt.Sprintf("[%s](/%s/%s)", title, c.SubPath, target)
_index I realize that it takes Hugo frontmatter title from note title, which in turn is the filename, NOT the obsidian file frontmatter title :(
// Keep title in Obsidian front-matter as note title if it's there (a la obyde),
// otherwise use Obsidian filename for this (standard behaviour).
oldTitle := hugo["title"]
if oldTitle==nil {
log.Warn("No title in front-matter, using filename in ", note.Title)
// must have title
hugo["title"] = note.Title
} else {
log.Warn("Using frontmatter title for ", oldTitle)
}
had to figure this syntax out based on other github issues: StringSlice behavior different for command line flag and environment variable · Issue #380 · spf13/viper ↩︎
Wanted to do Manjaro, after googling found out it has a very bad reputation (arindas/manjarno: Reasons for which I don’t use Manjaro anymore) — I’ll go with EndeavourOS. OpenSUSE Tumbleweed will be my next choice if this fails.
Strategy:
/opt will have executable programs
rms /etc12.
OK, EndeavourOS+btfrs it is.
Why should I switch my file system to btrfs? : r/archlinux ↩︎
TIL BTRFS is neat for smaller filesystems! ↩︎
https://www.kaggle.com/code/datark1/what-are-dcm-and-nii-files-and-how-to-read-them
NII files are typical for MRI data
This library can open them: https://nipy.org/nibabel/gettingstarted.html
Read and write access to common neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and later), GIFTI, NIfTI1, NIfTI2, CIFTI-2, MINC1, MINC2, AFNI BRIK/HEAD, ECAT and Philips PAR/REC. In addition, NiBabel also supports FreeSurfer’s MGH, geometry, annotation and morphometry files, and provides some limited support for DICOM.
Cool viewers exist
list of others: https://docs.facebase.org/docs/nifti-files/
https://github.com/niivue/niivue even better list of others
Other
I usually clone a circle and distribute it evenly next to the text object
<C-u-2022> adds a bullet point symbolQuarto’s roughnotation works either in speaker view or in the presentation, separately from each other.
Very brittle, but:
.. yeah.
So I learned that poster videos are a thing, 10 years ago I’d have used Prezi but not now
And TIL inkscape has neat keybindings for zooming.
So.
View -> Zoom has a list as well
3 zooms in to the selected element
1-6 are all zooming things (from the docu):
3-Layout-extraction-1 is a 6min description I have not watched but could be nice.
A particularly complex file after a crash became cursed: two boxes would export to PNG fine, but not to PDF.
After closing and opening these two boxes became just as in the PDF export.
Solution: delete the problematic elements from the PDF and recreate them.
Oh it has another page with a clean reference! Quarto – Revealjs Options
Default presentation size is 1050x700
slide-number: true
hash-type: number
Hide slide:
## Slide Title {visibility="hidden"}
If you exclude title and author from frontmatter, no title slide will be created and you can create your own
Asides exist: :::{.aside}
Many bits from Quarto – Markdown Basics etc. apply for presentations as well!
Comments are HTML comments.
[this is a div]{.to-which .i-can add="stuff"}
For slides w/o titles you can still do this
# {background-image="https://upload.wikimedia.org/wikipedia/commons/2/2b/Ouroboros-Abake.svg" background-position="center" background-size="contain" .center}
Complex layouts are possible with layouts:
::: {layout="1],[-1,1,1,1,-1"}
{.nostretch width="500px" fig-align="center"}
{.nostretch width="200px"}
{.nostretch width="200px"}
{.nostretch width="200px"}
:::
## {.classname}
::: {.classname}
div with class=classname
:::
::: {}
div with no class — we still need the {} for it to be a div
:::
::: {.one-div}
:::: {.inside-another}
But the number of : doesn't matter as long as it's >3 — they aren't even matching by count, it's just divs inside divs inside divs, the number of : is just for readability
::::
:::
quarto-ext/attribution: Display attribution text sideways along the right edge of Revealjs slides.
format:
revealjs: ...
revealjs-plugins:
- attribution
---
## attribution
{.nostretch width="600px" fig-align="center"}
::: {.attribution}
Photo courtesy of [@ingtotheforest](https://unsplash.com/@ingtotheforest)
:::
R to run.
Sample presentation: RoughNotation; its source: quarto-roughnotation/example.qmd at main · EmilHvitfeldt/quarto-roughnotation
---
title: Simple roughnotation setup
filters:
- roughnotation
---
- [type]{.rn rn-type=circle}
- [animate]{.rn rn-animate=false}
- [animationDuration]{.rn rn-animationDuration=20000}
- [color]{.rn rn-color=blue}
- [strokeWidth]{.rn rn-strokeWidth=3}
- [multiline multiline multiline multiline multiline multiline multiline multiline multiline multiline]{.rn rn-multiline=true}
- [iterations]{.rn rn-iterations=1}
- [rtl]{.rn rn-rtl=false}
also
{.rn rn-type=underline}
Key bits:
And this will be [circled]{.rn rn-type=circle rn-color=orange}
and [underlined]{.rn rn-type=underline rn-color=orange rn-animate=false}
and [boxed]{.rn rn-type=box rn-color=blue rn-animate=false}
and [crossed]{.rn rn-type=crossed-off rn-color=blue rn-animate=false}
and [crossed again]{.rn rn-type=strike-through rn-color=blue rn-animate=false}
rn-index=2 for order so that the animations happpen one after the other
Works for entire divs as well: RoughNotation
It highlights the wrong places for me if the presentation is too narrow, both on mobile and desktop browsers; zooming out helps but too much breaks it again. EDIT: a known issue mentioned in the last slide of the sample presentation, they also suggest zooming.
EDIT: No one said I have to use half a screen for previewing, this is a nice layout that solves multiple problems:
Default theme: quarto-cli/src/resources/formats/revealjs/quarto.scss at main · quarto-dev/quarto-cli
/*-- scss:defaults --*/
$presentation-slide-text-align: center !default;
format:
revealjs:
theme: [default, my_scss_file.scss]
BUT for some things it’s ugly, like lists. Then:
.notcenter {
text-align: left;
}
## UA-CBT
### Outline
::: {.notcenter}
- English example
- Morphology
- Agreement
:::
{.smaller} works on full slides only, this works for divs too:
.newsmaller {
font-size: calc(#{$presentation-font-size-root} * #{$presentation-font-smaller});
}
.reveal .slide-number {
font-size: 30px !important;
}
Both linked by the excellent and thorough Beautiful Reports and Presentations with Quarto
Quarto – Citations & Footnotes
.biblatex file exported from Zotero and optonally a CSL style (citation-style-language/styles: Official repository for Citation Style Language (CSL) citation styles.)
bibliography: ../../Masterarbeit.bib
csl: ./diabetologia.csl
---
# etc. In diabetologia this gives the usual [1] thingies.
[@key]
[see @key]
Then autocomplete in vim-quarto (!)
Incremental lists are {.incremental},
or the entire presentation can be
revealjs:
incremental: true
with {.nonincremental} parts.
Otherwise Fragments1 exist with more control.
r-stack allows to make images overlapping: Quarto – Advanced Reveal
## Title {.smaller}
::: {.notcenter}
Descr.
:::: {.incremental}
- some
- list
::::
:::
<!-- footnotes here if needed
[^leaderboard]: <https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard>
-->
::: {.notes}
sp. notes.
:::
::: footer
Chapter - Section
:::
The excellent page of quarto presentation tricks Meghan Hall has this:
Text with [red words]{style="color:#cc0000"}.
No special CSS classes needed!
Context: 240423-1912 Better Posters notes
You can disable scaling the stroke size together with the box in the upper-right toolbar! (The same one where locking aspect ratios is)
For things into which text “flows” etc. — if you have a white background making them white works for keeping them selectable when needed. (And removing the background makes them visible).
Damn I love doing random vector stuff.
The book by Better Posters’s author is freaking awesome. Short summary follows, not copypasting too much because copyright, but the book is 12/10.
TL;DR how to do a poster if you read only one chapter
take the width of your paper, subtract 8 inches (200 mm) for the margins,
and divide by three to find your column width. If your poster is 48 inches (1,220 mm), your columns will be 13⅓ inches (340 mm) wide. Yes, it’s an awkward number, but computers don’t care.
> cc (1189-100)/6
181.5
> cc (841-100)/6
123.5
After playing around, this is good enough I guess! (Ignore Y grid)
After ignoring even more advice:
(EDIT: oh damn it’s 7, not 6!)
Quoting directly because it’s freaking awesome.
- “Dan Roam argues that there are six basic ways to show something, and you can recognize which you need by the kind of question you hear (Roam 2013)”:
- If you hear a name – a “who or what” – you need a portrait. This is not necessarily a realistic or detailed portrait like a painting or a posed photo. A stick and ball chemical structure is a “portrait” of a molecule. A smiling emoji can be a portrait.
- • If you hear a number – a “how many” – you need a chart or graph. A bar graph is a simple example.
- • If you hear a location or a list – a “where” – you need a map. Again, this need not be a literal cartographic map. Anytime you talk about something “above,” “below,” “closer,” or “overlapping,” you have the potential to create a map. Examples include concept maps, pedigrees and phylogenies, org charts and Venn diagrams.
- • If you hear a history – a “when” – you need a timeline. “Time” is one of the most common variables shown graphically (Tufte 2001).
- • If you hear a sequence or process – a “how” – you need a flowchart.
- • If you hear some complex combinations – a “why” – you need a multi-variable plot, like a scatterplot.
Design is making things look similar (consistency, grids, fonts) and different (h2 vs the text, etc.)
Main rules:
p.85 100-300 dpi is the sweet spot for posters
108 when deciding how much to narrow/widen a line graph, aim for a max slope of about 45 degrees
153 a font family is designed so that different fonts look OK together — DAMN.
The most important takeaway.
[--][ ] two wides one tall[-] [-----] swedish flagBad:
[ ][ ]
[ ][ ]
Good:
[ ][ ]
[ ][ ]
221 checklist and ratings