I'm used to write Rest documents while I never used LaTex.
What I would like to do is create some font color roles that I can add inline the text (e.g. :red:this text is red
) that work both in html and in latexpdf compilation.
I've found a similar question here, but I cannot reproduce it.
I think that the magic will be done changing the conf.py
file, but I didn't find out how.
Moreover, during the latexpdf
compilation, in the _build/latex
directory, there is a sphinx.sty
file that contains a lot of things for the customization of the final pdf file.
If I want to change some parameter of the final pdf file, have I to edit this file, put it somewhere and tell sphinx to take this style file?
Sorry for all these stuff, but I'm a little bit confused..
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…