help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documentation of latex style functions


From: Heime
Subject: Documentation of latex style functions
Date: Sat, 30 Dec 2023 00:50:02 +0000

Have made some Latex Style files with a number of functions and commands.

I would like to display some documentation for the Latex Style Functions
directly from Emacs.  What possibilities are there to do such a thing ?

\NewDocumentCommand {\Firzp} { s O{blue} O{it} m }
  {
    \group_begin:

    \color{#2}  % FYR-KLR

    \str_case:nnF {#3}  % FYR-SHP
      {
        %% Render in roman or italic type
        {rm} { \IfBooleanTF {#1}      % {string-case-1} {string-code-1}
                 { $\mathrm{#4}$ }
                   { \mathrm{#4} } }

        {it} { \IfBooleanTF {#1}      % {string-case-2} {string-code-2}
                 { $\mathit{#4}$ }
                   { \mathit{#4} } }
      }

        %% {false-code} NotIn{#3,(rm,it)}
        {
          \IfBooleanTF {#1}
            { $\mathit{#4}$ }
              { \mathit{#4} }
        }

    \group_end:

  }  % \wvFyrZp ends here






reply via email to

[Prev in Thread] Current Thread [Next in Thread]