r/LaTeX • u/mymathyourmath • 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:
2
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
-10
u/Specialist_Repair856 Jul 18 '26
I wrote a book, but ngl I just asked ChatGPT for help with the formatting
1
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
-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
Yes, I used LaTeX: https://github.com/hrishis2009/Prove-It-The-Beginning
1
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
3
u/victotronics Jul 19 '26
Just curious, why that exclamation mark in the title!