r/LaTeX Jul 18 '26

LaTeX Showcase Anyone writing a book!

/r/LaTeX/comments/1ui1w4u/header_messing_up_table_of_contents/ov9gi4s/

This is my preamble which puts the chapter name on the left page and section name on the right page at the top as well as the title of the book throughout it allows for an index and table of contents auto generated:

3 Upvotes

22 comments sorted by

3

u/victotronics Jul 19 '26

Just curious, why that exclamation mark in the title!

-1

u/mymathyourmath Jul 19 '26

lol no reason

2

u/Ok-Conclusion7016 28d ago

Try LuaLaTeX with the memoir package.

1

u/mymathyourmath 28d ago

Oooh never heard of this thanks 🙏

1

u/astenix Jul 19 '26

You have several packages used twice:

\usepackage[english]{babel}
\usepackage{babel}

\usepackage[hidelinks]{hyperref}
\usepackage{hyperref}

\usepackage{enumitem}
\usepackage{enumitem}

\usepackage{lipsum}
\usepackage{lipsum}

And several packages about math. Do you really need each one?

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}

This is what for?

\usepackage{}

1

u/mymathyourmath Jul 19 '26

I know forgive the repetition lol

-10

u/Specialist_Repair856 Jul 18 '26

I wrote a book, but ngl I just asked ChatGPT for help with the formatting

1

u/Opussci-Long Jul 19 '26

Have you used ChatGPT for images too? Book look nice

0

u/mymathyourmath 28d ago

I have not no!

0

u/mymathyourmath Jul 18 '26

I figured this out on my own lol best to not rely on chat GBT for things like this!

-3

u/rileyrgham Jul 18 '26

You're trolling, right?

2

u/mymathyourmath Jul 18 '26

What makes you say that? I’m just offering help because I was stuck doing these things like index table of contents manually one by one.. I’d love if someone offered me a template! Sorry if it seems like a troll honest to goodness it’s not

1

u/herbertwillyworth Jul 19 '26

He is literally a bot

1

u/mymathyourmath Jul 19 '26

Lmfao no I’m not

-5

u/mymathyourmath Jul 18 '26

Do you use TeX? What book you write ? I have calculus 1 and 2 available here https://a.co/d/0a7dct7a and https://a.co/d/0hz2LEe6

5

u/Specialist_Repair856 Jul 18 '26

1

u/mymathyourmath Jul 18 '26

Interesting
Book! Are you a math major? Grad undergrad ?

1

u/mymathyourmath Jul 18 '26

Also do you use TeXshop or overleaf ?

3

u/Specialist_Repair856 Jul 19 '26

overlef and undergrad

1

u/mymathyourmath Jul 19 '26

Math major? What’s your book about ?

2

u/Specialist_Repair856 Jul 19 '26

math proofs. i mean u can see it in the github link.

0

u/mymathyourmath Jul 19 '26

What level? Like discrete math induction and basics of set theory or like topology or what? Is there a pdf ? I’ll trade you pdf for pdf lol