Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
composition:annexes:bibliographie:produire_un_fichier_html_a_partir_d_une_bibliographie [2018/05/23 21:29] joseph.wright3_composition:annexes:bibliographie:produire_un_fichier_html_a_partir_d_une_bibliographie [2021/11/11 14:55] (Version actuelle) – Correction de la mise en forme. yannick.tanguy
Ligne 1: Ligne 1:
---- +====== Comment convertir une bibliographie en HTML? ======
-section: Bibliographies and citations +
-subsection: Manipulating whole bibliographies +
-date: 2014-06-10 +
---- +
-# Making HTML of your Bibliography+
  
-A neat solution is offered by the [`noTeX`](https://ctan.org/pkg/noTeX) bibliography style. +===== Avec un export direct à la compilationpar “noTeX” =====
-This style produces a `bbl` file which is in fact a series of +
-HTML `P` elements of class `noTeX`and which +
-may therefore be included in an HTML file.  Provision is made +
-for customising your bibliography so that its content when processed by +
-[`noTeX`](https://ctan.org/pkg/noTeX) is different from that presented when it is processed +
-in the ordinary way by (La)TeX.+
  
-A thorough solution is offered by [`bib2xhtml`](https://ctan.org/pkg/bib2xhtml); using ityou +Le style de bibliographie [[ctanpkg>notex-bst|noTeX]] offre ici une solution astucieuseIl produit un fichier « ''.bbl'' » qui est en fait une série de paragraphes HTML de classe ''noTeX''
-make use of one of its modified versions of many common BibTeX +et qui peut donc être inclus directement dans un fichier HTML : 
-styles, and post-process the output so produced using a +<code html> 
-`perl` script.+<P CLASS=noTeX> 
 +... 
 +</P> 
 +</code>
  
-A more conventional translator is the `awk` script +Il est possible de personnaliser votre bibliographie afin que son contenu traité par [[ctanpkg>notex-bst|noTeX]] soit différent de celui présenté lorsqu'elle est traitée de manière ordinaire par <latex>\LaTeX</latex>.
-`bbl2html`, which translates the `bbl` file you've generated: +
-a sample of the script's output may be viewed on the web, at +
-[http://rikblok.cjb.net/lib/refs.html]+
  
 +===== Avec des scripts de conversion =====
  
 +==== Le script bib2xhtml ====
 +
 +Une solution complète est offerte par [[ctanpkg>bib2xhtml]] (version mise à jour de ''bib2html''). Son utilisation fait intervenir en fait une des versions modifiées des styles ''BibTeX'' courants qu'il fournit. La sortie ainsi produite doit être ensuite traitée à l'aide d'un script Perl.
 +
 +==== Le script bibhtml ====
 +
 +[[ctanpkg>bibhtml]] prend la même approche que [[ctanpkg>bib2xhtml]].
 +
 +==== Le script bbl2html ====
 +
 +Un convertisseur plus conventionnel est le script ''awk'' [[ctanpkg>bbl2html]], qui traduit le fichier « ''.bbl'' » que vous avez généré en HTML.
 +
 +===== Avec Pandoc =====
 +
 +Enfin, il est également possible d'utiliser [[https://pandoc.org/|Pandoc]], mais il faudra le faire tourner sur le fichier « ''.tex'' » incluant votre bibliographie, et non directement le fichier « ''.bib'' » :
 +
 +<code bash>
 +pandoc test.tex -o output.html --bibliography ma_biblio.bib
 +</code>
 +
 +Le fichier <latex>\LaTeX</latex> peut être très simple, si vous voulez juste convertir la bibliographie :
 +
 +<code latex>
 +\documentclass{article}
 +
 +\begin{document}
 + \nocite{*}
 + \bibliographystyle{abbrv} % ou tout autre style de bibligraphie
 + \bibliography{ma_biblio.bib}
 +\end{document}
 +</code>
 +
 +===== Avec des convertisseurs en ligne =====
 +
 +Il existe des convertisseurs en ligne, basés sur [[https://github.com/pcooksey/bibtex-js|la bibliothèque bibTeX-js]]. En voici un fonctionnel : http://people.irisa.fr/Francois.Schwarzentruber/bibtextohtml/.
 +
 +-----
 +//Sources://
 +  * [[faquk>FAQ-htmlbib|Making HTML of your bibliography]],
 +  * [[https://tex.stackexchange.com/questions/171793/bibtex-to-html-markdown-etc-using-pandoc|Bibtex to HTML/Markdown/etc., using Pandoc]],
 +  * [[http://gewhere.github.io/bibtex-js|How to display references on html using bibtex format]].
 +
 +{{htmlmetatags>metatag-keywords=(LaTeX,bibliographies,HTML,script,export)
 +metatag-og:title=(Comment convertir une bibliographie en HTML)
 +metatag-og:site_name=(FAQ LaTeX francophone)
 +}}
3_composition/annexes/bibliographie/produire_un_fichier_html_a_partir_d_une_bibliographie.1527110960.txt.gz · Dernière modification : 2018/05/23 21:29 de joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0