Beispiel #1
0
function format_names_html($names)
{
    foreach ($names as $k => $name) {
        $names[$k] = latex2html($name);
    }
    return format_names($names);
}
 /** Sets a field of this bib entry. */
 function setField($name, $value)
 {
     $name = strtolower($name);
     // fields that should not be transformed
     // we assume that "comment" is never latex code
     // but instead could contain HTML code (with links using the character "~" for example)
     // so "comment" is not transformed too
     if ($name != 'url' && $name != 'comment') {
         // 1. trim space
         $value = xtrim($value);
         if (c('BIBTEXBROWSER_USE_LATEX2HTML')) {
             // 2. transform Latex markup to HTML entities (easier than a one to one mapping to each character)
             // HTML entity is an intermediate format
             $value = latex2html($value);
             // 3. transform to the target output encoding
             $value = html_entity_decode($value, ENT_QUOTES | ENT_XHTML, OUTPUT_ENCODING);
         }
         // 4. transform existing encoded character in the new format
         if (function_exists('mb_convert_encoding') && OUTPUT_ENCODING != BIBTEX_INPUT_ENCODING) {
             $vaue = mb_convert_encoding($value, OUTPUT_ENCODING, BIBTEX_INPUT_ENCODING);
         }
     } else {
         //echo "xx".$value."xx\n";
     }
     $this->fields[$name] = $value;
 }
Beispiel #3
0
				$('body').css('background-image', 'url(background.php?w=' + window.screen.width + '&h=' + window.screen.height + ')');
				$('a').click(function(event) {
					$.get('click.php', {url: $(event.target).closest('a').attr('href')});
					return true;
				});
			});
		</script>
		<div id="title">
			<h1>Quantum Ethics</h1>
			<h2>&mdash;<br>A Spinozist Interpretation<br>of Quantum Field Theory</h2>
			<h3><br><a href="http://ens.academia.edu/S%C3%A9bastienFauvel">Sébastien Fauvel</a></h3>
		</div>
		<div id="abstract">
			<div id="download">
				<a href="http://www.amazon.com/Quantum-Ethics-Spinozist-Interpretation-Theory/dp/1481811703/">
					<img src="images/pictures/One_Loop_QED_Vacuum_Energy_Diagram.jpg" width="250" height="325" border="0" alt="" title="One-Loop QED Vacuum Energy Diagram">
				</a>
				<p><a href="http://quantum-ethics.org/Quantum%20Ethics.php">» View as PDF</a></p>
				<p><a href="http://www.amazon.com/Quantum-Ethics-Spinozist-Interpretation-Theory/dp/1481811703/">» Order on Amazon</a></p>
				<p><a href="https://github.com/quantum-ethics/quantum-ethics">» Contribute on GitHub</a></p><br>
			</div>
<?php 
print latex2html(curl_get('https://raw.githubusercontent.com/quantum-ethics/quantum-ethics/master/chapter-history-of-this-book.tex'));
?>
			<p><a href="http://quantum-ethics.org/Quantum%20Ethics.php">» Read full PDF</a></p>
			<h4>About the Author</h4>
			<p>Sébastien Fauvel, born 1983, graduated from the Ecole Normale Supérieure of Paris in Physics and Comparative Literature. He has been working as a Consultant, Software and Web Developer in Lyon, Freiburg and Basel.</p>
		</div>
	</body>
</html><?php 
include_once '../../visitors.php';
Beispiel #4
0
 /** Sets a field of this bib entry. */
 function setField($name, $value)
 {
     $name = strtolower($name);
     // fields that should not be transformed
     if ($name != 'url') {
         $value = xtrim($value);
         $value = latex2html($value);
     } else {
         //echo "xx".$value."xx\n";
     }
     $this->fields[$name] = $value;
 }
Beispiel #5
0
 /** Sets a field of this bib entry. */
 function setField($name, $value)
 {
     $name = strtolower($name);
     // fields that should not be transformed
     // we assume that "comment" is never latex code
     // but instead could contain HTML code (with links using the character "~" for example)
     // so "comment" is not transformed too
     if ($name != 'url' && $name != 'comment') {
         $value = xtrim($value);
         $value = latex2html($value);
     } else {
         //echo "xx".$value."xx\n";
     }
     $this->fields[$name] = $value;
 }