Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm a total TeX newb - please be nice! :-)

How can I change the font and size of Chapter headings? I don't mind where it's placed on the page - but would like it to be a sans-serif font and perhaps a bit bigger? These are un-named chapters... they just need to say Chapter 1, Chapter 2, etc.

I tried to post pictures of my code and the results but the forum said I have to earn 10 reputation points to post images. :-(

\documentclass[10pt]{memoir}

\usepackage{palatino}
\usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}
\usepackage{indentfirst}
\pagestyle{plain}

\begin{document}


\input{chapter01.tex}

\input{chapter02.tex}

\end{document}
share|improve this question
1  
Welcome to TeX.sx! As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again. –  doncherry Nov 5 '12 at 19:41
    
Thanks for the Welcome and I will try removing the ! next time! –  Gretchen Nov 5 '12 at 20:36

1 Answer 1

up vote 8 down vote accepted

Choose the section chapter style and redefine the macros \chapnumfont and \chaptitlefont. See section 6.5 of the memoir manual for details. (Note: The \HUGE fontsize switch isn't available in the standard classes.)

\documentclass{memoir}

\chapterstyle{section}
\renewcommand*{\chapnumfont}{\normalfont\HUGE\bfseries\sffamily}
\renewcommand*{\chaptitlefont}{\normalfont\HUGE\bfseries\sffamily}

\usepackage{mathpazo}

\usepackage{lipsum}

\begin{document}

\chapter{First chapter}

\lipsum[1]

\end{document}

enter image description here

As an alternative, you could redefine \printchaptertitle to gobble its argument (here: not print "First chapter" at all):

\documentclass{memoir}

\renewcommand*{\chapnamefont}{\normalfont\HUGE\bfseries\sffamily}
\renewcommand*{\chapnumfont}{\normalfont\HUGE\bfseries\sffamily}
\renewcommand*{\afterchapternum}{}
\renewcommand*{\printchaptertitle}[1]{}

\usepackage{mathpazo}

\usepackage{lipsum}

\begin{document}

\chapter{First chapter}

\lipsum[1]

\end{document}

enter image description here

As cfair has commmented, I have replaced the obsolete palatino package with mathpazo.

share|improve this answer
    
Okay.. thanks - I've got it looking a little more like I want it to using your suggestions. Is there a way to be able to specify a font by name? –  Gretchen Nov 5 '12 at 20:35
    
@Gretchen You'd have to use XeLaTeX (a LaTeX variant with easier font handling) for that -- I'm not versed in XeLaTeX, though. Have a look at the xetex tag. –  lockstep Nov 5 '12 at 20:40
    
Hmmmm since I BARELY grasp what the heck I'm doing in LaTeX I might just hold off on looking at XeLaTeX.... –  Gretchen Nov 5 '12 at 20:44
    
@Gretchen If you regard my answer as helpful, please upvote and accept it. Alternatively, you can edit your question to include more details. For follow-up questions ask a new question. –  lockstep Nov 5 '12 at 20:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/80558/is-there-an-easy-way-to-change-the-font-and-size-for-chapter-heading-in-memoir
tex.stackexchange.com
crawl=CC-MAIN-2014-35
74188
application/http; msgtype=response
sha1:PKYGZRKSTQZFHUEIGR2J6MUOPZJPGLZU
<urn:uuid:6a6b55da-ca1f-4e8e-abe1-b76ac237a734>
2014-08-27T11:02:12Z
198.252.206.16
sha1:HIVDJAU2V7WZWRQAAEX24GCHDFOFNHUL
<urn:uuid:ed6ab208-b4d4-4b5a-8809-545747d68677>
http://tex.stackexchange.com/questions/80558/is-there-an-easy-way-to-change-the-font-and-size-for-chapter-heading-in-memoir
response
<urn:uuid:39cb4bf7-b8ba-4047-b800-6cbe5ddd952f>
robots: classic
hostname: ip-10-180-136-8.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-35
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for August 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf