You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very new to rinohtype, and struggling to get the configuration for my use case just right.
I generate my pdf files using Sphinx (make rinoh) which works absolutely as it should and the pdf is created fine using the book template. however, instead of 'Chapter' appearing I want to use 'Section' instead. I believe I need to create a .rtt file to override the chapter titles as detailed here: http://www.mos6581.org/rinohtype/master/basicstyling.html#configuring-a-template
Fine with that, but I need to save it as (say) book.rtt and then detail this in my Sphinx conf.py file as per the example:
The .rtt (and .rts) file can go anywhere. The path pointing to it in conf.py just needs to be relative to the directory where conf.py sits. Or I suppose it can be an absolute path, but you'd never want that in practice.
Activity
techauthoruk commentedon Oct 6, 2022
OK, I said I was dim! Finally figured out that the
.rttfile needs to go in the Sphinxsourcedirectory.All sorted now, so closing this off.
brechtm commentedon Oct 6, 2022
Good to see you've figured it out!
The
.rtt(and.rts) file can go anywhere. The path pointing to it inconf.pyjust needs to be relative to the directory whereconf.pysits. Or I suppose it can be an absolute path, but you'd never want that in practice.brechtm commentedon Oct 6, 2022
I just want to add that this one of many things that needs to be documented properly!