all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Documentation of latex style functions
@ 2023-12-30  0:50 Heime
  2023-12-30  1:07 ` Emanuel Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Heime @ 2023-12-30  0:50 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Documentation of latex style functions
  2023-12-30  0:50 Documentation of latex style functions Heime
@ 2023-12-30  1:07 ` Emanuel Berg
  2023-12-30 19:05   ` Heime
  0 siblings, 1 reply; 3+ messages in thread
From: Emanuel Berg @ 2023-12-30  1:07 UTC (permalink / raw)
  To: help-gnu-emacs

Heime wrote:

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

I think this is a good starting point

  https://www.emacswiki.org/emacs/LaTeX

As a side note, here is my modest contribution to the
Emacs/LaTeX world. I actually did a lot of LaTeX from Emacs
but only such small configuration and extension.
Probably a good thing!

   https://dataswamp.org/~incal/emacs-init/latex.el

But nothing to address your specific desire.

I did more for Bibtex tho,

  https://dataswamp.org/~incal/emacs-init/bibtex/

but again nothing up the on-the-fly documentation alley.

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Documentation of latex style functions
  2023-12-30  1:07 ` Emanuel Berg
@ 2023-12-30 19:05   ` Heime
  0 siblings, 0 replies; 3+ messages in thread
From: Heime @ 2023-12-30 19:05 UTC (permalink / raw)
  To: Emanuel Berg; +Cc: help-gnu-emacs


On Saturday, December 30th, 2023 at 1:07 PM, Emanuel Berg <incal@dataswamp.org> wrote:

> Heime wrote:
> 
> > I would like to display some documentation for the Latex
> > Style Functions directly from Emacs. What possibilities are
> > there to do such a thing ?
> 
> 
> I think this is a good starting point
> 
> https://www.emacswiki.org/emacs/LaTeX
> 
> As a side note, here is my modest contribution to the
> Emacs/LaTeX world. I actually did a lot of LaTeX from Emacs
> but only such small configuration and extension.
> Probably a good thing!
> 
> https://dataswamp.org/~incal/emacs-init/latex.el
> 
> But nothing to address your specific desire.

What I have done is to make a .el file with functions that can
be called to show documentation information.  Like so. 

Would you have some suggestions upon improvements ?

(defconst FirZp-vaj-doc
  "
 \\NewDocumentCommand {\\FirZp} { s O{blue} O{it} m }

 \\FirZp [FIR-KLR] [FIR-SHP] {FIR-KWD}

 Let FIR-KLR Colour
     FIR-SHP Shape {it,rm}
     FIR-KWD Keyword
")


(defun FirZp-vaj ()

  ;; Print documentation about \FirZp.
  (:documentation
   (concat
     FirZp-vaj-doc)))

 
> I did more for Bibtex tho,
> 
> https://dataswamp.org/~incal/emacs-init/bibtex/
> 
> but again nothing up the on-the-fly documentation alley.
> 
> --
> underground experts united
> https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-30 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30  0:50 Documentation of latex style functions Heime
2023-12-30  1:07 ` Emanuel Berg
2023-12-30 19:05   ` Heime

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.