Pull requests

#242 Open
Repository
birkenfeld/sphinx sphinx
Branch
default

Add a line of doc about extraclassoptions in Latex options

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r masklinn/add-a-line-of-doc-about-extraclassoption-1399981848480 https://bitbucket.org/masklinn/sphinx-1
hg merge masklinn/add-a-line-of-doc-about-extraclassoption-1399981848480
hg commit -m 'Merged in masklinn/sphinx-1/masklinn/add-a-line-of-doc-about-extraclassoption-1399981848480 (pull request #242)'
Author
  1. masklinn
Reviewers
Description

I had to hunt the source for a way to customize \documentclass and found the apparently undocumented extraclassoptions which is automatically concatenated onto classoptions in the Latex writer.

Although reading the code, it seems the few interactions with classoptions simply concatenate new options to it, the only odd duck being https://bitbucket.org/birkenfeld/sphinx/src/be5bd373a1a47fb68d70523b6e980e654e070e9f/sphinx/writers/latex.py?at=default#cl-227 which smashes the classoptions entirely. If this could be fixed, the writer code would just need to ensure classoptions are ,-prefixed to make classoptions usable by end-users no?

  • Learn about pull requests

Comments (1)