In touying university theme, the logo overlaps

Hello,

I am doing slides for my internship presentation, and I need to have the logo of my the company, so I added in config-info the image.
However it often overlaps, with text or no sit at top left because below the heading number one name.
The following code :

#import "@preview/touying:0.6.1": *
#import themes.university: *
#import "@preview/numbly:0.1.0": numbly
#import "@preview/theorion:0.3.2": *
#import cosmos.clouds: *
#show: show-theorion

#show: university-theme.with(
  aspect-ratio: "4-3",
  // align: horizon,
  // config-common(handout: true),
  config-common(frozen-counters: (theorem-counter,)),  // freeze theorem counter for animation
  config-info(
    title: [Title],
    subtitle: [Subtitle],
    author: [Authors],
    date: datetime.today(),
    institution: [Institution],
    ------------------> logo: image("image.png") <------------
  ),
)

#set heading(numbering: numbly("{1}.", default: "1.1"))

#title-slide()


== Prime numbers


#proof[
  Suppose to the contrary that $p_1, p_2, dots, p_n$ is a finite enumeration
  of all primes. Set $P = p_1 p_2 dots p_n$. Since $P + 1$ is not in our list,
  it cannot be prime. Thus, some prime factor $p_j$ divides $P + 1$. Since
  $p_j$ also divides $P$, it must divide the difference $(P + 1) - P = 1$, a
  contradiction.
]

#corollary[
  There is no largest prime number.
] <cor_largest_prime>
#corollary[
  There are infinitely many composite numbers.
]

#theorem[
  There are arbitrarily long stretches of composite numbers.
]

Produce

With logo: image("image.png", height: 10%)

How can I put the image as a logo so that it fits well ?

thanks in advance for your answers

Hello. Since University Theme | Touying uses emoji.school, I guess the thing that 100% will work is something like: box(image("image.png", height: 1em)).

image.png

Thank you that worked for me. I was able to make it bigger (1.3em) but I had to make sure slide names and title name were not too big, otherwise it would overlap.

1 Like

You can try adjusting page margins, or copying the theme and editing to change the heights how you want.

https://touying-typ.github.io/docs/build-your-own-theme#modifying-existing-themes