aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontent/Informatique/2019-08-05-latex_cygwin.rst10
-rw-r--r--content/images/latex/xetex.pngbin0 -> 4422 bytes
-rwxr-xr-xpelicanconf.py6
-rwxr-xr-xplugins/typogrify/filters.py2
-rwxr-xr-xplugins/typogrify/typogrify.py2
5 files changed, 13 insertions, 7 deletions
diff --git a/content/Informatique/2019-08-05-latex_cygwin.rst b/content/Informatique/2019-08-05-latex_cygwin.rst
index 43ac539..66fa2ad 100755
--- a/content/Informatique/2019-08-05-latex_cygwin.rst
+++ b/content/Informatique/2019-08-05-latex_cygwin.rst
@@ -7,19 +7,25 @@ Utiliser toutes les fonts avec Xetex et Cygwin
:date: 2019-08-05
:tags: cygwin, latex
+:logo: /images/latex/xetex.png
:summary: |summary|
.. default-role:: literal
+.. figure:: {filename}/images/latex/xetex.png
+ :figwidth: 250
+ :figclass: floatleft
+ :alt: Xetex logo
+
|summary|
.. |summary| replace::
- Quand on utilise xelatex dans l'environnement cygwin, toutes les polices
+ Quand on utilise xetex dans l'environnement cygwin, toutes les polices
installées ne sont pas chargées par défaut. Cela vient de la configuration de
cygwin qui par défaut, ne scanne pas les répertoires de latex à la recherche
des polices disponibles.
-
+
La solution est simple, il faut ajouter les lignes suivantes dans le fichier
`/etc/fonts/fonts.conf` :
diff --git a/content/images/latex/xetex.png b/content/images/latex/xetex.png
new file mode 100644
index 0000000..0648298
--- /dev/null
+++ b/content/images/latex/xetex.png
Binary files differ
diff --git a/pelicanconf.py b/pelicanconf.py
index 9e4ca35..a9f6c76 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -23,9 +23,9 @@ FEED_DOMAIN = SITEURL
FEED_RSS = 'feed'
FEED_ATOM = 'feeds/atom.xml'
FEED_MAX_ITEMS=5
-TAG_FEED_RSS = 'feeds/{slug}.xml'
-TAG_FEED_ATOM = 'feeds/{slug}.atom.xml'
-CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
+TAG_FEED_RSS = 'feeds/{slug}.xml'.decode('UTF-8')
+TAG_FEED_ATOM = 'feeds/{slug}.atom.xml'.decode('UTF-8')
+CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'.decode('UTF-8')
DEFAULT_PAGINATION = FEED_MAX_ITEMS
diff --git a/plugins/typogrify/filters.py b/plugins/typogrify/filters.py
index 41d108d..e2a145c 100755
--- a/plugins/typogrify/filters.py
+++ b/plugins/typogrify/filters.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import re
-from typogrify.titlecase import titlecase # NOQA
+from titlecase import titlecase # NOQA
import locale
class TypogrifyError(Exception):
diff --git a/plugins/typogrify/typogrify.py b/plugins/typogrify/typogrify.py
index 7f5f568..e3748fb 100755
--- a/plugins/typogrify/typogrify.py
+++ b/plugins/typogrify/typogrify.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
from pelican import signals
-from typogrify.filters import typogrify
+from filters import typogrify
def apply(data):