Tufte Book Custom Class Options

367 views
Skip to first unread message

mojohn

unread,
Dec 9, 2016, 6:35:06 PM12/9/16
to tufte-latex
I am running Lyx 2.1.4 on Ubuntu 16.04.

After a hiatus from using Lyx, I'm now working on an essay using the Tufte Book Document Class. I want to add some class options, and as I recall, I need to add them in the "Custom" text box at Document ... Settings.

What is the format I should use to input the custom class options for the following:
  • Full justification of body text
  • Print footnotes and margin notes in sans serif font
  • Make footnotes and margin notes the same font size
  • Use fancyhdr
Thanks in advance for the assist!

mojohn

Kevin Godby

unread,
Dec 9, 2016, 8:13:08 PM12/9/16
to tufte-latex
Hello.
• For full justification, use [justified].
• For margin notes, sidenotes, and captions in sans serif, use [sfsidenotes].
• Make the notes the same size as what?
• Tufte-LaTeX already uses fancyhdr.

—Kevin

John Miller

unread,
Dec 9, 2016, 8:43:25 PM12/9/16
to tufte...@googlegroups.com
Hi Kevin. Thanks for the quick response.

I'd like to customize footnotes and margin notes are "small" size.

Also, how and where do I "program" fancyhdr?



Sent via the Samsung Galaxy S7 edge, an AT&T 4G LTE smartphone
--
You received this message because you are subscribed to the Google Groups "tufte-latex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tufte-latex...@googlegroups.com.
To post to this group, send email to tufte...@googlegroups.com.
Visit this group at https://groups.google.com/group/tufte-latex.
For more options, visit https://groups.google.com/d/optout.

John Miller

unread,
Dec 9, 2016, 8:58:22 PM12/9/16
to tufte...@googlegroups.com
I mean, do you program fancyhdr in the preamble?

Kevin Godby

unread,
Dec 9, 2016, 10:12:44 PM12/9/16
to tufte-latex
Hi, John.

On Fri, Dec 9, 2016 at 7:43 PM, John Miller
<john.arth...@gmail.com> wrote:
> I'd like to customize footnotes and margin notes are "small" size.

To adjust the formatting of sidenotes, margin notes, and captions (set
the size, font, color, etc.), you can use the following commands:

\setsidenotefont{⟨font commands⟩}
\setcaptionfont{⟨font commands⟩}
\setmarginnotefont{⟨font commands⟩}
\setcitationfont{⟨font commands⟩}

See page 31 of the manual¹ for examples and details.

> Also, how and where do I "program" fancyhdr?
> I mean, do you program fancyhdr in the preamble?

Yes, you can just add your fancyhdr commands to the preamble. The
fancyhdr package is already loaded and the Tufte-style running heads
have been defined. But you can override them by defining your own
running heads. See the fancyhdr package documentation² for more
information.

—Kevin

¹ <http://mirrors.ctan.org/macros/latex/contrib/tufte-latex/sample-book.pdf>
² <http://mirrors.ctan.org/macros/latex/contrib/fancyhdr/fancyhdr.pdf>

John Miller

unread,
Dec 9, 2016, 10:19:17 PM12/9/16
to tufte...@googlegroups.com
Thank you Kevin. I'll play around with it tomorrow and let you know how
it works out!

John

John Miller

unread,
Dec 10, 2016, 2:19:31 PM12/10/16
to tufte...@googlegroups.com

Hi Kevin. When I input the [justified] and [sfsidenotes] I received the following error messages. Any idea what I did wrong? (I put the instructions Custom Class Options text box.)

LaTeX Error: File `].cls' not found.

 \documentclass[english,nohyper,[justified]]{                                                 tufte-book}^^M *** (cannot \read from terminal in nonstop modes)

\documentclass[english,[sfsidenotes]]{

tufte-book}^^M

*** (cannot \read from terminal in nonstop modes)

Dan Abell

unread,
Dec 10, 2016, 3:26:33 PM12/10/16
to tufte...@googlegroups.com
You have extra braces in there. Try changing

\documentclass[english,nohyper,[justified]]{

to 

\documentclass[english,nohyper,justified]{

Cheers,
Dan

Reply all
Reply to author
Forward
0 new messages