Extension:Wiki2LaTeX/Development/w2lChars.php

From MediaWiki.org
Jump to: navigation, search
<?php
// $this->addChar('HTMLNAME', 'LATEXCOMAND' [,'UNICODE_DEC_NUMBER']);
 
$this->addChar( '&larr;', '\(\leftarrow{}\)', 8592);
$this->addChar( '&uarr;', '\(\uparrow\)', 8593);
$this->addChar( '&rarr;', '\(\rightarrow{}\)', 8594);
$this->addChar( '&darr;', '\(\downarrow{}\)', 8595);
$this->addChar( '&harr;', '\(\leftrightarrow{}\)', 8596);
$this->addChar( '&lArr;', '\(\Leftarrow{}\)', 8656);
$this->addChar( '&uArr;', '\(\Uparrow\)', 8657);
$this->addChar( '&rArr;', '\(\Rightarrow{}\)', 8658);
$this->addChar( '&dArr;', '\(\Downarrow{}\)', 8659);
$this->addChar( '&hArr;', '\(\Leftrightarrow{}\)', 8660);
/* Currencysymbols */
$this->addChar( '&euro;', '{\euro}', 8364);
/* Punctation */
$this->addChar( '&hellip;', '{\dots}', 8230);
/*Quotationmarks */
$this->addChar( '&sbquo;', '\glq{}', 8218);
$this->addChar( '&lsquo;', '\grq{}', 8217);
$this->addChar( '&bdquo;', '\glqq{}', 8222);
$this->addChar( '&ldquo;', '\grqq{}', 8221);
 
$this->addChar('&lsaquo;', '\flq{}', 8249);
$this->addChar('&rsaquo;', '\frq{}', 8250);
$this->addChar('&laquo;', '\flqq{}', 171);
$this->addChar('&raquo;', '\frqq{}', 187);
 
$this->addChar( '&nbsp;', '~', 160);
$this->addChar( '&amp;', '\&', 38);
$this->addChar( '&sect;', '{\S}', 167);
$this->addChar( '&copy;', '{\copyright}', 169);
 
$this->addChar( '&ccedil;', '\c{c}', 231);
$this->addChar( '&asymp;', '\(\approx{}\)', 8776);
$this->addChar( '&ne;', '\(\neq{}\)', 8800);
 
$this->addChar('&ndash;', 8211);
$this->addChar('&mdash;', '---', 8212);
$this->addChar('&lt', '<', 60);
$this->addChar('&gt', '>', 62);
$this->addChar('&quot;', '\dq{}', 34);
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox