Advertisement
Guest User

Untitled

a guest
Jul 14th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.18 KB | None | 0 0
  1. %!TEX engine = LuaLaTeX
  2.  
  3. \documentclass{article}
  4. %\usepackage{mathtools}
  5. %\usepackage{lualatex-math}
  6. \usepackage{unicode-math}
  7. \usepackage{xparse}
  8.  
  9.  
  10. \makeatletter
  11. % Small amount of expl3 code for the DRY principle
  12. \ExplSyntaxOn
  13.  
  14. \cs_new_protected:Npn \michael__mathchoice:nnnn #1#2#3#4
  15.   { \mathchoice {#1} {#2} {#3} {#4} }
  16.  
  17. \cs_generate_variant:Nn \michael__mathchoice:nnnn { oooo }
  18.  
  19. \cs_new_protected:Npn \michael__small_rule:n #1
  20.  {
  21.    \vrule
  22.      height \dim_eval:n { \fontdimen 22 \use:c { #1font } 2 %+ 0.2pt
  23.       }
  24.   }
  25. % Generate the little vertical rule from middle to top of the fraction rule
  26. % in the appropriate style.
  27. \NewDocumentCommand \michaelsmallrule { }
  28.  {
  29.    \michael__mathchoice:oooo
  30.      { \michael__small_rule:n { text } }
  31.      { \michael__small_rule:n { text } }
  32.      { \michael__small_rule:n { script } }
  33.      { \michael__small_rule:n { scriptscript } }
  34.  }
  35.  
  36. \ExplSyntaxOff
  37.  
  38. \newcommand*{\strange}[2]{% with ad-hoc correction (kern) for horizontal space
  39.   { \frac{#1}{#2\,} \kern-1.2pt \michaelsmallrule }
  40. }
  41.  
  42. \makeatother
  43.  
  44. \begin{document}
  45.  
  46. $\Gamma_{ \strange{a+1}{1+\strange{x}{y}^{\strange{\alpha}{\beta}} }}$
  47.  
  48. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement