Document ClassesChange the documentclass settings

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
tush
Posts: 11
Joined: Fri Feb 22, 2019 2:54 pm

Change the documentclass settings

Post by tush »

I want to write a .tex file in the tufte-handout document class.
Of course, what one would do is just to declare this document class in the pre-amble:
\documentclass{tufte-handout}
But I want to make a few changes to the styling of the document. Change the headings font, bibliography style etc.

The documentation says on page 5 that
To install the Tufte-LATEX classes, simply drop the following files into the same directory as your .tex file:
  • tufte-book.cls
  • tufte-common.def
  • tufte-handout.cls
  • tufte.bst
I downloaded those 4 files from the package repository.
How do I refer the TeX engine to the changes I make in those files?

Please Note: I work in overleaf, and compile my project only there.
How do I tell overleaf to work with those 4 files when compiling my .tex file? What TeX engine to use?

I came over this help webpage, and it seems to be the solution I am looking for - use a latexmkrc file. But I am not sure if that is a good direction at all, and how to change the folder names so to comply with my project.

My project structure:


root folder
│ main.tex
└───figures
│ │ figure01
│ │ figure02
│ │ figure03
└───template
│ └───tufte
│ │ │ tufte-book.cls
│ │ │ tufte.bst
│ │ │ tufte-handout.cls
│ │ │ tufte-common.def


Should the latexmkrc file be
$ENV{'TEXINPUTS'}='./template/tufte//:' . $ENV{'TEXINPUTS'};
$ENV{'BSTINPUTS'}='./template/tufte//:' . $ENV{'BSTINPUTS'};
? (Am I good with the slashes?)

Any help would be much appreciated!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
tush
Posts: 11
Joined: Fri Feb 22, 2019 2:54 pm

Change the documentclass settings

Post by tush »

Answering my own question:

Yes, this is the correct path.
Post Reply