#Prototyping a template for my notes

31 messages ยท Page 1 of 1 (latest)

twilit prairie
gusty void
#

This looks very good !

#

You have done the box your self ?

twilit prairie
#
#let mathbox(opt,number, body) = {
  v(15pt)
  block(
    radius: 5pt,
    width: 100%,
    stroke: 1pt, 
    inset: 0pt,
    fill: none,
    breakable: true  
  )[
    #place(
      top + left,
      dx: 10pt,
      dy: -10pt,
      rect(
        radius: 5pt,
        stroke: 1pt ,
        inset: 8pt,
        fill: white
      )[
        #text( weight: "bold")[#opt #number]
      ]
    )
    #pad(
      top: 2em,
      left: 1em,
      right: 1em,
      bottom: 1em
    )[
      #text()[#body]
    ]
  ]
}

#let theorem(number, body) = mathbox("Theorem", number,body)

yeah its custom thats the base code and one example

gusty void
#

Cetz for figures I assume ? Or maybe the package for plotting

twilit prairie
#

actually i used desmos to plot the graphs and pulled the conic images from google

Then chucked it into excalidraw and drew over them

topaz prairie
#

this looks really cool

#

did you redefine white to be the background color of your page?

twilit prairie
twilit prairie
gusty void
#

@twilit prairie you seem to produce good looking document ... i sometimes struggle make something look slick and enjoyable to watch. Do you have some tricks / guidelines to follow that usually does the trick for you ?

In typst right now, I feel like it is really easy to make "ok" looking document. It needs a lot of pratice and typst knowledge to make really good looking document.

balmy storm
#

Any chance for sharing the template?

twilit prairie
# gusty void <@664136906887528490> you seem to produce good looking document ... i sometimes ...

i mean im no expert but what ive found is generally keep consistent with whatever style you are going for. In my case i went black and white with rounded corners. But if you want to add colours make sure they are used deliberately.

Also make sure your content is spaced out so it doesn't look cramped on the page.

Id advise getting a sans serif font in my case is fira math

also if you cant make a design that you like, look online and get inspiration then tweak it to your liking

#

for example this is Giles Castels maths notes and you can see that he went with more colour and a bigger margin but it still looks uniform

twilit prairie
gusty void
wide orbit
#

it looks fantastic

twilit prairie
balmy storm
#

Thanks!

gusty void
#

@twilit prairie Definitely do a template on Typst Universe, I would love to try it for some of my note ! The show case pdf is very clear and detailed to understand all the functions you have think of !

gusty void
#

For printing especially the template seems great (for courses for student of think like that) since you don't use any colors accent

twilit prairie
twilit prairie
gusty void
twilit prairie
#

also sorry for the late reply is was abroad

gusty void
#

I have juste see the "sticky" parameter of the block fonction ... I think there is something to do with that ๐Ÿค”

marsh palm
twilit prairie
#
\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{lipsum} % for dummy text, optional

% Define a general mathbox command
\newtcolorbox{mathbox}[3][]{
  enhanced,
  breakable,
  colframe=black,
  colback=white,
  sharp corners,
  boxrule=1pt,
  arc=5pt,
  left=1em,
  right=1em,
  top=2em,
  bottom=1em,
  title={\textbf{#2~#3}},
  attach boxed title to top left={yshift=-10pt, xshift=10pt},
  boxed title style={
    colback=white,
    colframe=black,
    boxrule=1pt,
    arc=5pt,
    left=8pt,
    right=8pt,
  },
  #1
}

% Define theorem as a mathbox with fixed label
\newenvironment{theorem}[2][]{
  \begin{mathbox}[#1]{Theorem}{#2}
}{
  \end{mathbox}
}

\begin{document}

\begin{theorem}{1}
Let $f$ be continuous on $[a,b]$. Then there exists $c \in (a,b)$ such that
\[
f'(c) = \frac{f(b)-f(a)}{b-a}.
\]
\end{theorem}

\end{document}


lmk if that works