DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:latexport

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
plugin:latexport [2021-10-15 17:11] – [Using the plugin to export pages as latex] Aleksandrplugin:latexport [2021-10-18 13:20] (current) – [Creating a PDF file based on the exported latex] Aleksandr
Line 98: Line 98:
 Follow this procedure to export Dokuwiki pages into a PDF file: Follow this procedure to export Dokuwiki pages into a PDF file:
  
-  * Download the zip archive from the page. You can either type the url in your browser and save the content in an appropriate place, or use a command similar to: +  * Download the zip archive from the page. You can either type the url in your browser and save the content in an appropriate place, or use a command similar to:<code bash>
- +
-<code bash>+
 cd working_folder cd working_folder
 curl -o content.zip "http://www.xxx.yyy/path/to/my_page?do=export_latexport_tex" curl -o content.zip "http://www.xxx.yyy/path/to/my_page?do=export_latexport_tex"
 </code> </code>
- +  * Unzip the archive into a destination folder, either with your favorite application, or using command line:<code bash>
-  * Unzip the archive into a destination folder, either with your favorite application, or using command line: +
- +
-<code bash>+
 mkdir content mkdir content
 unzip content.zip -d content/ unzip content.zip -d content/
 </code> </code>
- +  * Prepare a root document with your styles and any other content that you want in your document, and save it besides the folder where you extracted the latex archive. Below I show you an simplistic example. Mind the ''graphicspath'' command, that specifies the destination folder plus the images folder. Mind also the ''import'' command, specifying the destination folder and the root page. Save it as ''root.tex'' or any other name that you see fit:<code latex>
-  * Prepare a root document with your styles and any other content that you want in your document, and save it besides the folder where you extracted the latex archive. Below I show you an simplistic example. Mind the ''graphicspath'' command, that specifies the destination folder plus the images folder. Mind also the ''import'' command, specifying the destination folder and the root page. Save it as ''root.tex'' or any other name that you see fit: +
- +
-<code latex>+
 \documentclass{book} \documentclass{book}
  
Line 139: Line 131:
 \end{document} \end{document}
 </code> </code>
- +  * To launch the PDF generation, execute ''lualatex'' from your working folder. Execute it twice if the document contains an index, a list of figures, a table of contents or cross references (this is a standard latex requirement):<code bash>
-  * To launch the PDF generation, execute ''lualatex'' from your working folder. Execute it twice if the document contains an index, a list of figures, a table of contents or cross references (this is a standard latex requirement): +
- +
-<code bash>+
 cd working_folder cd working_folder
 lualatex root.tex lualatex root.tex
 lualatex root.tex lualatex root.tex
 </code> </code>
- 
   * If everything went correctly, you should have a PDF containing the exported page(s)   * If everything went correctly, you should have a PDF containing the exported page(s)
  
plugin/latexport.1634310672.txt.gz · Last modified: 2021-10-15 17:11 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki