Skip to content
Snippets Groups Projects
Commit dddea6bd authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the latex preamble in Export.js and fix somme mistakes on @since.

parent 11e8d5fa
No related branches found
No related tags found
No related merge requests found
/** /**
* Base class to export the content of a App.grid.Panel. * Base class to export the content of a App.grid.Panel.
* *
* @since 0.6.1.18 * @since 0.6.2
* *
*/ */
Ext.define('App.grid.mixin.ExportBase', { Ext.define('App.grid.mixin.ExportBase', {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* This class is used as a mixin. * This class is used as a mixin.
* The main method translate the Ext.grid.View content into a CSV string. * The main method translate the Ext.grid.View content into a CSV string.
* *
* @since 0.6.1.15 * @since 0.6.2
* *
*/ */
Ext.define('App.grid.mixin.ExportCSV', { Ext.define('App.grid.mixin.ExportCSV', {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* This class is used as a mixin. * This class is used as a mixin.
* The main method translate the Ext.grid.View content into a latex string. * The main method translate the Ext.grid.View content into a latex string.
* *
* @since 0.6.1.15 * @since 0.6.2
* *
*/ */
Ext.define('App.grid.mixin.ExportLatex', { Ext.define('App.grid.mixin.ExportLatex', {
......
...@@ -24,13 +24,21 @@ Ext.define('App.grid.plugin.Export', { ...@@ -24,13 +24,21 @@ Ext.define('App.grid.plugin.Export', {
/** /**
* @cfg {Array} * @cfg {Array}
* The LaTeX preamble. * The LaTeX preamble.
* See for example http://fr.wikibooks.org/wiki/LaTeX/Mise_en_page.
*/ */
preamble: [ preamble: [
'\\documentclass[a4paper]{article}', '\\documentclass{article}',
'\\usepackage[utf8]{inputenc}', '\\usepackage[utf8]{inputenc}',
'\\usepackage[T1]{fontenc}', '\\usepackage[T1]{fontenc}',
'\\usepackage{hyperref}', '\\usepackage{hyperref}',
'\\usepackage{longtable}' '\\usepackage{longtable}',
'\\usepackage[landscape,a4paper]{geometry}',
'\\usepackage{fancyhdr}',
'\\geometry{tmargin=2cm,bmargin=2cm,lmargin=1.85cm,rmargin=1.85cm}',
'\\pagestyle{fancy}',
'\\fancyhead{}',
'\\fancyfoot{}',
'\\rfoot{\\thepage}'
], ],
// private properties for internationalization // private properties for internationalization
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment