djnavarro / rbook

Source files for "Learning Statistics with R"
https://learningstatisticswithr.com
470 stars 156 forks source link

Any clue how to source it with 12pt font size? #41

Closed Ma-Nu-El closed 1 year ago

Ma-Nu-El commented 1 year ago

My sight is not that great so I would appreciate having a larger font.

I've been trying to $ pdflatex lsr.tex with no success. Maybe I am missing something obvious but I just can't get to create the pdf out of it.

I know I have to edit the parameter in the header.tex file but I just can't create the pdf in the first place.

Any help please? Maybe I have to install a font or some library?

Here is the pastebin link of the lsr.log(expires Dec 2023):

https://pastebin.com/rWh9aWi3

Tried on MacOS 12.6 Darwin 21.6.0 x86_64

Ma-Nu-El commented 1 year ago

Update: (maybe all these issues are basic tex stuff but they are not obvious for me for now).

In header.tex:

-\documentclass[a4paper,twoside,10pt,openright]{book}
+% \documentclass[letter,twoside,14pt,openright]{extbook}

So I can have an even bigger font, I don't mind the overfull boxes as long as I can read it comfortably (I can look up the original file if there is something going past the right margin).

That partially solves my main issue, and it is good enough for me at least.

However when compiling with pdflatex I'm getting a lot of errors regarding the use of # in labels and other environments.

In chapter05_descriptives.tex

-\chapter{Descriptive statistics{#ch:descriptives}}
+\chapter{Descriptive statistics~\label{ch:descriptives}}

I tried erasing them but there are just too many for me to edit them out by hand. I guess I could find a way to do it programmatically, but my suspicion is that those # are there for a reason, and I don't want to mess with that.

Has anyone else been able to compile it completely ?

It does work right until chapter 4. From chapter 5 it doesn't include anything.

And the table of contents is still empty.

I really want to read this book on paper. My eyes deserve it.

I'll update if I get to anything.

Ma-Nu-El commented 1 year ago

Abandoning ship: the # and other unusual notations (at least for me) are messing too much with pdflatex so the original lsr.tex was probably compiled with something else, or maybe the lsr.tex in the master branch is not the one used to generate the pdf.

If anyone knows how to successfully completely compile it please let me.

Once again, maybe I am missing something obvious, but for now I couldn't make it work.

I just got to compile it to chapter 4 and then problems arose.

Cheers.