TransWikia.com

Is there a way of creating a design in LaTeX the same way CSS allows you to style a HTML page?

TeX - LaTeX Asked on January 3, 2021

As you probably know, CSS isn’t only there to make text red or to tell the browser you don’t want your links to be underlined: CSS is an incredibly powerful designing tool that allows you to shift and reposition every element in your document wherever you want—but, most importantly, it works in combination with the basic <div> element to create a standard, raw rectangular box that can be used for whatever purpose you want.

For example, you can divide your page in two boxes placed one next to another if you want to have text in two columns; you can give a paragraph a fancy box to stay in that you can color the way you want (both its inside and its border); you can even make the box’s width a single pixel so to simulate a vertical line that you can again style freely. You can imitate pretty much any design you want just by dividing everything in boxes and then moving them accordingly—making some of them transparent, making them thin or large, coloring them black or another color and so on.

Therefore, my question is: what class or package do I use that allows me the same level of control as CSS? The context is that I’m writing a book about mathematics, and I have all the ideal design choices in mind but I can’t replicate them in LaTeX the way I can with CSS. I don’t even know how to draw a simple box around a definition or a theorem, for instance, let alone being able to position a chapter’s number or title in a corner of the page.

But there has to be a way to do it, right?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP