I want to set two pictures on my titlepage beside each other, one with text above and below it and I want the other picture to have precisely the same height. I tried the following code, but apparently it doesn't work properly:
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Please provide a minimal working example. I bet your are trying to do something pretty simple, but using the wrong approach to achieve it. Using math and overset seems to be a quite confused way to put boxes.
Hint: Package mwe provides some sample pictures you can use.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
\newlength{\height_1} can't work because macro names cannot contain non-letters such as underscores or numbers.
Instead of \\\vspace{\baselineskip} you either want only \vspace{\baselineskip} (but you may need to ensure that the paragraph ends before) or \\[\baselineskip].
I can't test the following since I don't have the picture files but instead of abusing math commands I'd use (nested) {tabular}s:
I just tried your solution (which looks really nice), but height is still not correct. I modified it such that the pictures are vertically centered and such that the two pictures including the text are horizontally centered. This is the minimal working example (with "example-image" it should also work at your computer):
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p