Le 20/11/2019 à 21:40, tzoumakersx a écrit :
i have the doubt whether sphinx 2.2.1 is used during the above procedure -
i AM using the correct scritpt for a quickstart but does it use the correct
version of sphinx ? that i do not know
If sphinx version is correct during the build procedure, I do not see much
difference to previous build.


Hi Nikos,

sorry that I got you started on some complicated procedures.
I usually insert something such as

# -- version info --

_DEBUG_HEADER = '''Sphinx version: %s
Python version: %s (%s)
Docutils version: %s %s
Pygments version: %s
Jinja2 version: %s
'''

import sphinx
import jinja2
import docutils
import platform
import pygments

print(_DEBUG_HEADER %
      (sphinx.__display_version__,
       platform.python_version(),
       platform.python_implementation(),
       docutils.__version__, docutils.__version_details__,
       pygments.__version__,
       jinja2.__version__))


at end of conf.py so that I know what is used during Sphinx build
(and as I use this all the time I have forgotten what happens otherwise)

But back to Greek, actually I linked to

https://github.com/sphinx-doc/sphinx/pull/6711

as it shows what was changed:


- usage of 'xelatex' as latex_engine,

- slight enhancement of the default xelatex font config to work around some 
problem

done manually it will be in conf.py

latex_elements = {
    'fontpkg': r"""
\setmainfont{FreeSerif}[
  Extension      = .otf,
  UprightFont    = *,
  ItalicFont     = *Italic,
  BoldFont       = *Bold,
  BoldItalicFont = *BoldItalic
]
\setsansfont{FreeSans}[
  Extension      = .otf,
  UprightFont    = *,
  ItalicFont     = *Oblique,
  BoldFont       = *Bold,
  BoldItalicFont = *BoldOblique,
]
\setmonofont{FreeMono}[
  Extension      = .otf,
  UprightFont    = *,
  ItalicFont     = *Oblique,
  BoldFont       = *Bold,
  BoldItalicFont = *BoldOblique,
]
\newfontfamily\greekfont{FreeSerif}
\newfontfamily\greekfontsf{FreeSans}
\newfontfamily\greekfonttt{FreeMono}
""",
}

(the last three lines above are the only addition needed
by Greekto the Sphinx default xelatex set-up since 2.0)

and also language = 'el'

That's all there is to it

A priori, with the above and if GNU FreeFont and if nothing
else related to LaTeX fonts is added to your conf.py it
should work.

Make sure in particular you don't have strange fontenc
setting or usage of some font packages

Jean-François

--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/qr4bmd%2426fd%241%40blaine.gmane.org.

Reply via email to