Le fanzine Petit Dragon sur D&D4 utilise XSLFO (un langage) + FOP (un logiciel) pour la mise en page.
C'est plus simple que Latex, tout aussi libre. La distinction entre contenu et mise en page est totale.
D'un coté vous avez un fichier xml
- Code: Tout sélectionner
<arme nom="hache">
<dégâts>1d6+2</dégâts>
<propriété>critique élevé</propriété>
</arme>
De l'autre vous avez un fichier de mise en page pdf (XSLFO).
- Code: Tout sélectionner
<xsl:template match="arme">
<fo:block keep-with-next="always" font-size="18pt" font-family="BlackChancery" font-weight="bold" line-height="25pt" >
<xsl:value-of select="@nom"/>
</fo:block>
<fo:block text-indent="10pt" font-size="9pt" font-family="Bookman Old Style" font-style="normal">
<fo:inline font-weight="bold">Dégâts : </fo:inline><xsl:value-of select="dégâts"/>
</fo:block>
<fo:block text-indent="10pt" font-size="9pt" font-family="Bookman Old Style" font-style="normal">
<fo:inline font-weight="bold">Propriété : </fo:inline><xsl:value-of select="propriété"/>
</fo:block>
</xsl:apply-template>
Un truc comme ça donnerais :
Hache
Dégâts : 1d6+2
Propriété : critique élevé
En utilisant un langage très proche XSL, vous avez la possibilité de mettre en ligne vos fichiers XML.
Exemple : http://dd4.fr/fichiers/monstres/mm271.xml <- le fichier de donnée
http://dd4.fr/fichiers/monstres/monstres2.xsl <- le fichier de mise en page
Le tout est LIBRE et permet d'obtenir de tel résultat : http://dd4.fr/fanzine/forum/viewtopic.php?f=16&t=100
Le fichier de mise en page de Petit Dragon ainsi que le XML sont disponibles, suffit de m'envoyer un mail.