![]() |
![]() |
![]() |
Go back |
Tiny Python application that exports an html file to lyx format.
Includes documentation.
June 27, 2003
|
The main features of html2lyx that makes it very usefull to export to lyx
format is its ability to manage bold and italic text styles, and, the most
important thing, its conversion of footnotes. In general, the html texts
with footnotes has a code similar to the following:
|
|
<body> |
|
Which in a browser looks like: |
El principio metaf�sico del Estado(...). (...). Este deber de obediencia u obligaci�n pol�tica, que inspir� a La Bo�tie y asombraba a Hume[22] , est� estrechamente ligado a una teor�a de la legitimidad del poder . (...) (...). (...). Notas al pie.[1] (...)
(...)
[21] (...)
|
|
Then, in order to html2lyx be able to locate the footnotes section so to generate the correct lyx code, the source html must be modified in such a way that the tags <footnotes> and </footnotes> enclose such section, from the first to the last footnote. In this case, the html source file would be modified in the following way (in blue for the sake of clarity): |
|
<body> |
|
Once the html source file has been modified, we run the program: |
|
html2lyx archivo.html > archivo.lyx |
|
Then only rest to make some extra modifications in the lyx file. |
Last update: June 27, 2003.