Hi

I have been working on getting sphinx to work with the memoir class
instead.

Generally my idea is to get as much power over the output design as
possible.
With high quality.
Just like when styling the html.

So for that i wanted to use tikz and memoir.

 - Styling of chapters and sections etc memoir
 - high quality output, and reasonable easy reasonable coding tikz
(there is a matplotlib to tikz converter)
 - Table design
 - List design - something that makes the list stick out discretely
from the rest of the text, maybe a list headline

Im only started on my way, but here is my notes so far (offcourse made
in rst)

---
===================================
Using memoir class with sphinx
===================================


sphinx.sty
---------------

specific styles used by sphinx.
examples @?


memoir.cls - sphinxmemoir.cls
------------------------------

sphinx prepends sphinx to the class name given in conf.py
under *latex_elements*.

so it is sphinxmanual.cls (and if memoir is used in conf.py it is
sphinxmemoir.cls)

color and xcolor problem
--------------------------

color package is used by @sphinx?,
we like to be able to specify xcolor, but they conflict, alias them.
undef them?

Its only a warning @warning

:xcolor:
        easiest solution? -> overriding in sphinxmemori.cls?, and sphinx.sty

        Did not succeed!
Have a new sphinx.sty : sphinxmemoir.sty ?
        Changed sphinx.sty(include color): \includepackage[table]{xcolor}


Fonts
----------

\rm is @?undefined?


Alias
----------

Is it possible to alias commands?



Problem solving
=================

footruleskip is defined @twice.

renewcommand in sphinxmemoir.cls? no


Disemulate
--------------

Is it a *memoir* command or ar latex / TeX command?

disemulate in latexstyling.tex

Not needed!


Font commands obsoleted
---------------------------

one solution.

\let\oldcommand=\newcommand

\let\rm=\rmfamily


:used solution:
  Memoir class has inbuild:
   - \documentclass[oldfontcommands]{memoir}


xcolor
----------

Include *table* option in global option (documentclass [])

Didnt work.

Makefile in document root
--------------------------

Had to change the makefile in the 'sphinx build root'
to copy files over from my static folder ($SPHINXROOT/docfiles/
static/)
because sphinx-build moves latex_additional_files over before
writing them over with the sphinx sourced files.

:files in docfiles static:
   - sphinxmemoir.cls (one line changed)
   - spinxmanual.cls  (changed)
   - sphinx.sty       (changed included package color to [table]
{xcolor} )
   - latexstyling.tex My preamble file included in conf.py
latex_elements

.

 ::

  latexpdf:
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
        @echo "Running LaTeX files through pdflatex..."
        ---
        @echo "copying files from docfiles/static, because
latex_additional_files, isnt overwriting the sphinx source, ones"
        cp docfiles/static/{sphinxmemoir.cls,sphinx.sty} $(BUILDDIR)/latex
        ---
        make -C $(BUILDDIR)/latex all-pdf
        @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."


---


-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to