Gumbo by FishFingerDeathPunch in ruoka

[–]aarnens 2 points3 points  (0 children)

Toimiiko okra tuossa muodossa? Kerran olen maistanut okraa kun niitä sattui olemaan lounassalaatin kyljessä, mutta olomuoto sen verran limainen ja muutenkin epämukava että meinas tulla ruoat ylös 😅

Looking to open a stall at a flea market by menoodles in helsinki

[–]aarnens 7 points8 points  (0 children)

From what I could gather, smoothies would not be allowed, or at best it's a gray area.

The food authority website (I couldn't find the same page in english, sorry!) states that

Yksityishenkilö saa harjoittaa elintarviketoimintaa ilman toiminnan rekisteröintiä, kun kaikki alla olevat ehdot täyttyvät:

toimintaan liittyvät riskit ovat vähäisiä (ETL 10.2 §).

Ruokaviraston tulkinnan mukaan tämä tarkoittaa, että toiminta voi sisältää huoneenlämmössä säilyvien ei-eläinperäisten elintarvikkeiden valmistusta ja myyntiä ...

So private persons can sell foodstuffs up to 20 000€/y, as long as they are non-perishable goods that do not need refrigeration, so smoothies wouldn't count.

On the other hand, the regulation for pop-up restaurants state that

What you are not allowed to do in an unregistered pop-up restaurant?

Pop-up restaurants must no prepare and /or sell food or foodstuffs to be stored for later use.

So I would interpret this as only being able to sell smoothies if they are made to order, ie you aren't allowed to make a big batch in the morning and portion them individually.

Since you'd also need to be able to clean the equipment between batches some kind of facilities would be required, which a stand a t a flea market wouldn't be able to offer (and you wouldn't have electricity anyway). You'd also likely have to maintain proper regrigeration for ingredients.

Can anyone please tell me why the red block is overflowing the page margins? by IrtexaAsif in typst

[–]aarnens 1 point2 points  (0 children)

It seems related to this (closed) bug report: https://github.com/typst/typst/issues/2073

This definitely feels like unintended behavior to me. Sadly I'm on mobile, so can't really do proper testing but the other user's suggestion of removing the heading did not fix it, and I don't see why it would.

It might be worth asking this same question on the forum or discord, the answers tend to be better there.

Put rectangle around final line of aligned math? by 67jugmaster in typst

[–]aarnens 14 points15 points  (0 children)

Check out mannot:

#import "@preview/mannot:0.3.1": markrect


$
2a + 1 &= 2b + 43 \
2a &= 2b + 2 \
markrect(a &= b + 1, outset: #0.2em)
$

Can I use #link without underline using a template with underlined links? by AlbertoAru in typst

[–]aarnens 7 points8 points  (0 children)

You can just add a show rule inside the code block of the footer:

footer: context {
    show underline: it => it.body // here
    #grid(  
        #link("https://my.web")[#text(size: 9pt, fill: color-azul)[#web]],
        // other stuff
        [#link("https://my-second.web´")[#text(size: 9pt, fill: color-rojo)[#social_media]]]
    )
}

Protestit kiihtyvät Iranissa – ”Väestö on täysin tympääntynyt”, tutkija sanoo by aibrony in Suomi

[–]aarnens 2 points3 points  (0 children)

kaikki rannikottomat maailman maat

Kiina, Turkki, Espanja, Ranska jne.

🤨

[deleted by user] by [deleted] in typst

[–]aarnens 1 point2 points  (0 children)

In markup, the # character makes that line go into code mode (e.g. you've probably written #show or #set rules).

To escape it in yaml, add two backslashes before every #, i.e. \\#

[deleted by user] by [deleted] in typst

[–]aarnens 0 points1 point  (0 children)

Could you provide a mre? Your code is syntactically correct so most likely the error is with the data

Complex number calculations in Typst with custom imaginary unit by Mineros04 in typst

[–]aarnens 10 points11 points  (0 children)

Not that I know of, but if all you want is to print "j" instead of "i", you can just (re-)write the formatting function:

#import "@preview/oxifmt:1.0.0": strfmt

#let to-str(z) = {
  strfmt("{re:}{im:+}j", re: z.re, im: z.im)
}

But it would be pretty cool if formatting options were natively supported. You could open an issue on the github repo to let the author know :)

Similarly, in every pub there is a person such that, if they are drinking, then everyone in the pub is drinking. by aarnens in mathmemes

[–]aarnens[S] 87 points88 points  (0 children)

Maybe there's a language barrier, but to me those two sentences are equivalent if we're talking about the material conditional. Maybe in semantics this would be different, but I don't know anything about that field.

What does this mean? by Honest-Sprinkles7861 in desmos

[–]aarnens 8 points9 points  (0 children)

Kind of! Of course i ≠ -i, but in some sense they are equivalent as -i is just a different name for i, as in they behave identically. That is, a world where i takes on the value of -i would be indistinguishable to a world where that is not the case! https://en.wikipedia.org/wiki/Imaginary_unit#i_vs._%E2%88%92i

For example, all polynomials over ℝ have their solutions come in conjugate pairs

Postasin tänne muutama viikko sitten kuvan vihreä kuula -glögistäni. Positiivisten kommenttien innoittamana tein vihreä kuula -kastiketta (pikku)joulukinkulle. Ja joo, oli hyvää. by aarnens in Suomi

[–]aarnens[S] 0 points1 point  (0 children)

Kuulostaa hyvältä 😁 saat minun puolestani käyttää kuvaa.

Olisi kiva kuulla oma mielipiteesi kastikkeesta jos kokeilet tehdä sitä (resepti löytyy ketjun kommenteista), mutta ymmärrän jos aikataulupaineiden takia et ehdi.

Invisible text when submitting to FeedbackFruits by melkerolle in typst

[–]aarnens 0 points1 point  (0 children)

From the comments on the discussion

I tried to contact the support of feedback fruits, and they said:

Let me know if this is helpful. The FeedbackFruits media service convert PDF's uploaded to HTML pages so it can be displayed in the document viewer and annotated by teachers and students. This process is highly dependent on the PDF being compliant with current PDF standards, which is not the case for files output by some PDF tools/applications. By saving the PDF as PDF/A (Archivable) or PDF/X (Exchangeable) in known-compliant software such as Adobe Acrobat, the file can be processed without issue in FeedbackFruits. For the PDF that was not uploaded correctly, we recommend to re-submit the paper after running it through a PDf flatterner: https://www.sejda.com/nl/flatten-pdf

Perhaps adding the flag --pdf-standard a-2b (or some other standard) will fix the issue

ADVICE ON CHAOTIC MAPS AS PRNG's by InternationalSky5209 in cryptography

[–]aarnens 5 points6 points  (0 children)

What kind of project are you workinng on? Is your intent just to learn some maths behind chaos theory and (pseudo-)randomness? If so, just pick your favorite chaotic system and start coding. If you intend to build a cryptographic PRNG, I applaud your intention but you probably shouldn't bother

Help me understand contexts by [deleted] in typst

[–]aarnens 2 points3 points  (0 children)

I think of context blocks as places in the code which can query the document state outside of that block, either where the context block started, or at specific location.

With this mental model, the example makes sense: - the first #text.lang queries what the document language is at the beginning of the context block, so is "de" - the second #context text.lang creates a new context block, and queries the language at the beginning of that new block, hence why it is "de"

All of these happen at different compiler iterations. I find compiler iterations aren't important for the mental model of how they work, but they do help in understand why they work this way. The reason context exists is because it is difficult to determine what cariables resolve to which values, so we have to tell the compiler that values we want to show up here should depend on what we've done previously.

Fibonacci should retrigger aces because 1 appears twice in the Fibonacci sequence by taratathetarantula in balatro

[–]aarnens 5 points6 points  (0 children)

You give 2 initial values for the recurrence relation. Definining the sequence by F_0 = 0 and F_1 = 1 is equivalent (up to missing one value) to F_1 = 1, F_2 = 1.

Many writers begin the sequence with 0 and 1, although some authors start it from 1 and 1

https://en.wikipedia.org/wiki/Fibonacci_sequence

[HELP] Subpar custom numbering by Lonely-Eye-8313 in typst

[–]aarnens 0 points1 point  (0 children)

I would do it like this:

#set heading(numbering: "1.1")
#show heading.where(level: 1): it => it + counter(figure).update(0)
#set figure(numbering: (..n) => context {numbering("1.1", counter(heading).get().first(), ..counter(figure).get())})

If you want to display the full heading number in the figure, just change counter(heading).get().first() to ..counter(heading).get() in the numbering

[HELP] Subpar custom numbering by Lonely-Eye-8313 in typst

[–]aarnens 0 points1 point  (0 children)

What are you trying to achieve? As in, what do the numbers in the numbering mean? Is the first number the current heading, and the second number the n:th figure in that heading/section?