src/eric7/Documentation/Source/eric7.QScintilla.Exporters.ExporterTEX.html

Thu, 11 Jul 2024 14:21:34 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 11 Jul 2024 14:21:34 +0200
branch
eric7
changeset 10840
c8045d0dbaa7
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Updated the list of known CircuitPython boards for CPy 9.1.0.
- Updated the list of known UF2 capable boards.

<!DOCTYPE html>
<html><head>
<title>eric7.QScintilla.Exporters.ExporterTEX</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.QScintilla.Exporters.ExporterTEX</h1>
<p>
Module implementing an exporter for TeX.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#ExporterTEX">ExporterTEX</a></td>
<td>Class implementing an exporter for TeX.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr>
<td><a href="#createExporter">createExporter</a></td>
<td>Function to instantiate an exporter object.</td>
</tr>
</table>

<hr />
<hr />
<a NAME="ExporterTEX" ID="ExporterTEX"></a>
<h2>ExporterTEX</h2>
<p>
    Class implementing an exporter for TeX.
</p>

<h3>Derived from</h3>
ExporterBase
<h3>Class Attributes</h3>
<table>
<tr><td>CHARZ</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#ExporterTEX.__init__">ExporterTEX</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ExporterTEX.__defineTexStyle">__defineTexStyle</a></td>
<td>Private method to define a new TeX style.</td>
</tr>
<tr>
<td><a href="#ExporterTEX.__getTexRGB">__getTexRGB</a></td>
<td>Private method to convert a color object to a TeX color string.</td>
</tr>
<tr>
<td><a href="#ExporterTEX.__texStyle">__texStyle</a></td>
<td>Private method to calculate a style name string for a given style number.</td>
</tr>
<tr>
<td><a href="#ExporterTEX.exportSource">exportSource</a></td>
<td>Public method performing the export.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="ExporterTEX.__init__" ID="ExporterTEX.__init__"></a>
<h4>ExporterTEX (Constructor)</h4>
<b>ExporterTEX</b>(<i>editor, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>editor</i> (QScintilla.Editor.Editor)</dt>
<dd>
reference to the editor object
</dd>
<dt><i>parent</i> (QObject)</dt>
<dd>
parent object of the exporter
</dd>
</dl>
<a NAME="ExporterTEX.__defineTexStyle" ID="ExporterTEX.__defineTexStyle"></a>
<h4>ExporterTEX.__defineTexStyle</h4>
<b>__defineTexStyle</b>(<i>font, color, paper, file, istyle</i>)
<p>
        Private method to define a new TeX style.
</p>

<dl>

<dt><i>font</i> (QFont)</dt>
<dd>
the font to be used
</dd>
<dt><i>color</i> (QColor)</dt>
<dd>
the foreground color to be used
</dd>
<dt><i>paper</i> (QColor)</dt>
<dd>
the background color to be used
</dd>
<dt><i>file</i> (file)</dt>
<dd>
reference to the open file to write to
</dd>
<dt><i>istyle</i> (int)</dt>
<dd>
style number
</dd>
</dl>
<a NAME="ExporterTEX.__getTexRGB" ID="ExporterTEX.__getTexRGB"></a>
<h4>ExporterTEX.__getTexRGB</h4>
<b>__getTexRGB</b>(<i>color</i>)
<p>
        Private method to convert a color object to a TeX color string.
</p>

<dl>

<dt><i>color</i> (QColor)</dt>
<dd>
color object to convert
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
TeX color string
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="ExporterTEX.__texStyle" ID="ExporterTEX.__texStyle"></a>
<h4>ExporterTEX.__texStyle</h4>
<b>__texStyle</b>(<i>style</i>)
<p>
        Private method to calculate a style name string for a given style
        number.
</p>

<dl>

<dt><i>style</i> (int)</dt>
<dd>
style number
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
style name string
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="ExporterTEX.exportSource" ID="ExporterTEX.exportSource"></a>
<h4>ExporterTEX.exportSource</h4>
<b>exportSource</b>(<i></i>)
<p>
        Public method performing the export.
</p>

<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="createExporter" ID="createExporter"></a>
<h2>createExporter</h2>
<b>createExporter</b>(<i>editor, parent=None</i>)
<p>
    Function to instantiate an exporter object.
</p>

<dl>

<dt><i>editor</i> (QScintilla.Editor.Editor)</dt>
<dd>
reference to the editor object
</dd>
<dt><i>parent</i> (QObject (optional))</dt>
<dd>
parent object of the exporter (defaults to None)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
exporter object
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
ExporterTEX
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial