DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:latexit

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:latexit [2014-05-13 09:35] 194.228.32.29plugin:latexit [2020-09-25 06:33] (current) – lastupdate Aleksandr
Line 3: Line 3:
 ---- plugin ---- ---- plugin ----
 description: This plugin allows you to export single or multiple DokuWiki pages into one LaTeX file. It will export all media in a ZIP archive. It also supports exporting syntax from plugins imagereference, mathjax and zotero. description: This plugin allows you to export single or multiple DokuWiki pages into one LaTeX file. It will export all media in a ZIP archive. It also supports exporting syntax from plugins imagereference, mathjax and zotero.
-This is beta version of the plugin, however this version is release candidate. +author     : Adam Kucera
-author     : +
 email      : adam.kucera@wrent.cz  email      : adam.kucera@wrent.cz 
 type       : render, syntax, action type       : render, syntax, action
-lastupdate : 2014-05-13 +lastupdate : 2014-11-14 
-compatible : 2014-05-05 "Ponder Stibbons"2013-12-08 "Binky"+compatible : Ponder Stibbons, Binky, Hrun
 depends    :  depends    : 
 conflicts  conflicts 
Line 14: Line 13:
 tags       : export, latex, pdf tags       : export, latex, pdf
  
-downloadurl: http://latexit.wrent.cz/download.php+downloadurl: https://github.com/Wrent/dokuwiki-plugin-latexit/archive/master.zip
 bugtracker : https://github.com/Wrent/dokuwiki-plugin-latexit/issues bugtracker : https://github.com/Wrent/dokuwiki-plugin-latexit/issues
 sourcerepo : https://github.com/Wrent/dokuwiki-plugin-latexit sourcerepo : https://github.com/Wrent/dokuwiki-plugin-latexit
Line 24: Line 23:
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 33: Line 32:
  
 The plugin allows you to export multiple DokuWiki pages in a single LaTeX file. The plugin allows you to export multiple DokuWiki pages in a single LaTeX file.
 +===1st Insert syntax===
 If you want to insert a page as a subsection, put the following just before the link to the demanded page: If you want to insert a page as a subsection, put the following just before the link to the demanded page:
 <code> <code>
Line 39: Line 38:
 [[link]] [[link]]
 </code> </code>
- ~ works exactly the same as = in headers. Number of ~ will determine the level of the first header of inserted page.+''~'' works exactly the same as ''='' in headers. Number of ''~'' will determine the level of the first header of inserted page. 
 + 
 +===2nd Insert syntax=== 
 +:!: [[devel:develonly]] only in outstanding pull request 
 + 
 +A replacement of the recursion syntax is the insertwikipage syntax. The functionality is similar, but the caching should be improved. ''\insertwikipage[//headinglevel//]{//pageid//|//Title//}'' 
 +  * ''//headinglevel//'': Let heading start at ''1'' = biggest heading to ''5'' = smallest heading.\\ Sets size of the starting heading in the inserted page. (Example: using ''2'' displays ''====== Head ======'' as ''===== Head=====''
 +  * ''//pageid//'': absolute or relative pageid 
 +  * ''//Title//'' (Optional) : Title for the url when it is shown in the wiki. 
 + 
 +<code> 
 +\insertwikipage{page} 
 +\insertwikipage[1]{ns:page} 
 +\insertwikipage[5]{ns:page|Title} 
 +</code> 
 + 
 +====Additional syntaxes==== 
 +Some supported syntaxes and their replacement in LaTeX. 
 +<code> 
 +Wiki syntax                               LaTeX syntax 
 + 
 +FIXME[UserName](description of issue)     \hl{FIXME[UserName](description of issue)} 
 +DELETEME                                  \hl{DELETEME} 
 +</code>
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
 +In the [[plugin:config|Configuration Manager]] you can set global settings. The most config settings can be set as parameters for the exported document as well.
  
-  * You can set these parameters for the exported document+A parameter in a page can be set with
-    LaTeX document clas +<code> 
-    Font size of the document +{{latexit> keyname yourvalue}} 
-    Paper size of the document +{{latexit: document_class report}} 
-    Oneside / twoside document +</code> 
-    Landscape document + 
-    Draft document +^ Key name        ^ Description (with defaults)^ 
-    Your own header parameters +| document_class LaTeX document clas (article, report, book, memoir) | 
-    Your own footer parameters +| font_size   | Font size of the document | 
-    Language of the ''babel'' package +| paper_size   | Paper size of the document (a4paper, letterpaper, b5paper, executivepaper, legalpaper)| 
-    Usage of ''\chapter'' level headers +| output_format   Oneside / twoside document (oneside, twoside) | 
-    Usage of ''\part'' level headers +| landscape  Landscape document (0, 1) | 
-    Your own title of the document +| draft   | Draft document (0, 1) | 
-    Author of the document +| document_header | Your own header parameters | 
-    Date of creation of the document +| document_footer | Your own footer parameters | 
-    Default media export folder +| document_lang   Language of the ''babel'' package | 
-    Default parameters for images +| header_chapter Usage of ''\chapter'' level headers (0, 1) | 
-    Preferred style of bibliography +| header_part     Usage of ''\part'' level headers (0, 1) | 
-    Name of bibliography .bib file +| title           Your own title of the document | 
-    Default cell align in tables +| author          | Author of the document | 
-  * For XHTML view of the document, you can send the text of the header you will see before recursively inserted subpages. +| date            | Date of creation of the document (0, 1) | 
-  * You can switch on/off the export button.+| table_of_content       | Include a Table of Content (0, 1) | 
 +| media_folder           Default media export folder | 
 +| image_params           Default parameters for images | 
 +| bibliography_style     Preferred style of bibliography | 
 +| bibliography_name      | Name of bibliography .bib file | 
 +| default_table_align    Default cell align in tables (l, c, r) | 
 + 
 + 
 +Settings only changeable via the Configuration manager: 
 + 
 +  * ''link_insertion_message'' -- For XHTML view of the document, you can modify the text of the header you will see before recursively inserted subpages. 
 +  * ''showexportbutton'' -- You can switch on/off the export button.
  
 === Change Log === === Change Log ===
 +  * **2015-01-22**
 +    * Version 1.0.5
 +    * Added configuration entry allowing having \title as the top level.
 +  * **2014-11-14**
 +    * Version 1.0.4
 +    * Added missing helper.php to release ZIP file.
 +  * **2014-11-13**
 +    * Version 1.0.3
 +    * Added pull requests from other devolopers. Improved code.
 +  * **2014-06-30**
 +    * Version 1.0.2
 +    * Mathjax now should be exported correctly.
   * **2014-05-13**   * **2014-05-13**
     * Version 1.0.1     * Version 1.0.1
Line 117: Line 163:
 ===== Discussion ===== ===== Discussion =====
  
-> Hi, 
-> for me it only works in combination with the zotero plugin. Otherwise I get the following error message: Class 'ZoteroRepository' not found in E:\xampp\htdocs\dokuwiki\lib\plugins\zotero\TextZoteroRepository.php on line 5 
- 
-> Best regards 
-> Juergen 
- 
-Hello,\\ 
-thank you for reporting! You were right. It has been fixed in the newest version.\\ 
-Adam. 
plugin/latexit.1399966550.txt.gz · Last modified: 2014-05-13 09:35 by 194.228.32.29

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