Namespaces
Variants
Actions

Difference between revisions of "Help:Fancy diagram"

From Encyclopedia of Mathematics
Jump to: navigation, search
m
Line 1: Line 1:
The Diagram from $\rm The\ \TeX{}Book$, p. 182:
+
$
 +
\def\noalign#1{}
 +
\def\vskip#1pt{}
 +
\def\hidewidth{}
 +
$
 +
 
 +
 
 +
 
 +
The Diagram from [K] D. Knuth The $\rm \TeX{}$Book, p. 182:
 +
 
  
 
$$
 
$$
 
\def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt }
 
\def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt }
\def\noalign{}
 
\def\vskip#1pt{}
 
\def\hidewidth{}
 
 
\def\mapright#1{\smash{
 
\def\mapright#1{\smash{
 
     \mathop{\longrightarrow}\limits^{#1}}}
 
     \mathop{\longrightarrow}\limits^{#1}}}
 
\def\mapdown#1{\Big\downarrow
 
\def\mapdown#1{\Big\downarrow
  \rlap{\vcenter{\hbox{$\scriptstyle#1$}}}}
+
  \rlap{\vcenter{\hbox{$\scriptstyle#1$}}}}   %% line for MathJax as used above
 +
% \rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}    %% line for TeX; this is the line from [K]
 
\matrix{\noalign{\vskip6pt}&&&&&&0\cr
 
\matrix{\noalign{\vskip6pt}&&&&&&0\cr
 
   &&&&&&\mapdown{}\cr
 
   &&&&&&\mapdown{}\cr
Line 25: Line 32:
 
$$
 
$$
  
Here is the $\rm \TeX$ code, as used in Knuth's book, to show the mathjax compatibility with plain $\rm \TeX$.  
+
Comment: The line in the code below starting with <nowiki> \rlap </nowiki> has to be different for MathJax and ${\rm \TeX}$.
 +
 
  
(For a $\rm \LaTeX$- encoding see [[Talk:EoM:This_project#Commutative_diagrams_in_TeX.2FLaTeX | here]].)
+
  <nowiki>
  
<nowiki>
+
$$
<pre>
 
 
\def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt }
 
\def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt }
\def\noalign{}
 
\def\vskip#1pt{}
 
\def\hidewidth{}
 
 
\def\mapright#1{\smash{
 
\def\mapright#1{\smash{
 
     \mathop{\longrightarrow}\limits^{#1}}}
 
     \mathop{\longrightarrow}\limits^{#1}}}
 
\def\mapdown#1{\Big\downarrow
 
\def\mapdown#1{\Big\downarrow
  \rlap{\vcenter{\hbox{$\$$\scriptstyle$\#1\$$}}}}
+
    \rlap{ \vcenter{\hbox{$\scriptstyle#1$}} }}      %% line for MathJax as used fore the display above
 +
% \rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}   %% line for TeX; this is the line from [K]
 
\matrix{\noalign{\vskip6pt}&&&&&&0\cr
 
\matrix{\noalign{\vskip6pt}&&&&&&0\cr
 
   &&&&&&\mapdown{}\cr
 
   &&&&&&\mapdown{}\cr
Line 52: Line 57:
 
   &&&&&&\mapdown{}\cr
 
   &&&&&&\mapdown{}\cr
 
   &&&&&&0\cr\noalign{\vskip6pt}}
 
   &&&&&&0\cr\noalign{\vskip6pt}}
</pre>
+
$$
 +
 
 
</nowiki>
 
</nowiki>

Revision as of 13:40, 25 March 2016

$ \def\noalign#1{} \def\vskip#1pt{} \def\hidewidth{} $


The Diagram from [K] D. Knuth The $\rm \TeX{}$Book, p. 182:


$$ \def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt } \def\mapright#1{\smash{ \mathop{\longrightarrow}\limits^{#1}}} \def\mapdown#1{\Big\downarrow \rlap{\vcenter{\hbox{$\scriptstyle#1$}}}} %% line for MathJax as used above % \rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}} %% line for TeX; this is the line from [K] \matrix{\noalign{\vskip6pt}&&&&&&0\cr &&&&&&\mapdown{}\cr 0&\mapright{}&{\cal O}_C&\mapright\iota& \cal E&\mapright\rho&\cal L&\mapright{}&0\cr &&\Big\Vert&&\mapdown\phi&&\mapdown\psi\cr 0&\mapright{}&{\cal O}_C&\mapright{}& \pi_*{\cal O}_D&\mapright\delta& R^1f_*{\cal O}_V(-D)&\mapright{}&0\cr &&&&&&\mapdown{\theta_i\otimes\gamma^{-1}}\cr &&&&&&\hidewidth R^1f_*\bigl({\cal O} _V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr &&&&&&\mapdown{}\cr &&&&&&0\cr\noalign{\vskip6pt}} $$

Comment: The line in the code below starting with \rlap has to be different for MathJax and ${\rm \TeX}$.


 

$$
\def\normalbaselines{\baselineskip20pt\lineskip1pt\lineskiplimit0pt }
\def\mapright#1{\smash{
    \mathop{\longrightarrow}\limits^{#1}}}
\def\mapdown#1{\Big\downarrow
    \rlap{ \vcenter{\hbox{$\scriptstyle#1$}} }}      %% line for MathJax as used fore the display above
% \rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}    %% line for TeX; this is the line from [K]
\matrix{\noalign{\vskip6pt}&&&&&&0\cr
  &&&&&&\mapdown{}\cr
  0&\mapright{}&{\cal O}_C&\mapright\iota&
    \cal E&\mapright\rho&\cal L&\mapright{}&0\cr
  &&\Big\Vert&&\mapdown\phi&&\mapdown\psi\cr
  0&\mapright{}&{\cal O}_C&\mapright{}&
    \pi_*{\cal O}_D&\mapright\delta&
    R^1f_*{\cal O}_V(-D)&\mapright{}&0\cr
  &&&&&&\mapdown{\theta_i\otimes\gamma^{-1}}\cr
  &&&&&&\hidewidth R^1f_*\bigl({\cal O}
    _V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr
  &&&&&&\mapdown{}\cr
  &&&&&&0\cr\noalign{\vskip6pt}}
$$


How to Cite This Entry:
Fancy diagram. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Fancy_diagram&oldid=38497