Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the default header style using \pagestyle{headings} in one chapter affect the entire book #66

Open
2 tasks done
monzarrate opened this issue May 22, 2019 · 1 comment

Comments

@monzarrate
Copy link

I am trying to change the header style in a tufte book. For that purpose, I am adding in the YAML, the following line:
\pagestyle{headings}

the entire YAML looks like:

---
title: "Chapter 7: More Integer Programming Models"
header-includes:
 \usepackage{longtable}
 \usepackage{caption}
output:
  tufte::tufte_handout:
    citation_package: natbib
    latex_engine: xelatex
  highlight: monochrome
  tufte::tufte_html: default
  tufte::tufte_book:
    citation_package: natbib
    latex_engine: xelatex
---
\pagestyle{headings}

I am not sure if there is another option. But introducing \pagestyle in only one chapter of the 10 chapters of the book, the header style is applied to the entire book. I think that may lead to problems in case that I want to have a different header in the appendix or introduction chapter.
Is there a way to apply the changes to only the chapter where \pagestyle{headings} is written?

By filing an issue to this repo, I promise that

  • [x ] I have fully read the issue guide at https://yihui.name/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tufte'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/tufte').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@prof-anderson

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants