File: plugin-binary.de.tm

package info (click to toggle)
texmacs 1%3A2.1.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 145,076 kB
  • sloc: cpp: 227,393; lisp: 197,386; ansic: 5,395; python: 1,939; makefile: 1,065; sh: 781; perl: 339; xml: 100; awk: 36
file content (91 lines) | stat: -rw-r--r-- 2,778 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<TeXmacs|1.0.4.5>

<style|tmdoc>

<\body>
  <tmdoc-title|Ein Beispiel mit <name|C++> Code>

  <paragraph*|Das <verbatim|minimal> plugin>

  betrachten wir das Beispiel <verbatim|minimal> im Verzeichnis

  <\verbatim>
    \ \ \ \ $TEXMACS_PATH/examples/plugins/minimal
  </verbatim>

  Es besteht aus den Dateien:

  <\verbatim>
    \ \ \ \ <example-plugin-link|minimal/Makefile>

    \ \ \ \ <example-plugin-link|minimal/progs/init-minimal.scm>

    \ \ \ \ <example-plugin-link|minimal/src/minimal.cpp>
  </verbatim>

  Um das Plugin auszuprobieren mssen Sie das Verzeichnis

  <\verbatim>
    \ \ \ \ $TEXMACS_PATH/examples/plugins/minimal
  </verbatim>

  rekursiv in das Verzeichnis <verbatim|$TEXMACS_PATH/plugins> kopieren oder in
  das Verzeichnis <verbatim|$TEXMACS_HOME_PATH/plugins>. Danach mssen Sie in
  dem Verzeichnis minimal den Befehl

  <\verbatim>
    \ \ \ \ make
  </verbatim>

  ausfhren und so den Programmcode <verbatim|minimal.cpp> zu einer
  Binrdatei kompilieren

  <\verbatim>
    \ \ \ \ minimal/bin/minimal.bin
  </verbatim>

  Wenn Sie jetzt <TeXmacs> neu starten sollte das Plugin automatisch erkannt
  werden.

  <paragraph*|Wie es funktioniert.>

  Das <verbatim|minimal> Plugin demonstriert eine Minimal-Schnittstelle
  zwischen <TeXmacs> und einem externen Programm. Dieses Programm und sein
  Quellcode in <verbatim|minimal.cpp> wird eingehender im Kapitel ber
  <hyper-link|Schittstellen|../interface/interface-pipes.de.tm> erklrt. Die
  Initialisierungs-Datei <verbatim|init-minimal.scm> enthlt den folgenden
  Code:

  <\scheme-fragment>
    (plugin-configure minimal

    \ \ (:require (url-exists-in-path? "minimal.bin"))

    \ \ (:launch "minimal.bin")

    \ \ (:session "Minimal"))
  </scheme-fragment>

  Die <scheme-code|:require> Option prft, ob <verbatim|minimal.bin> im
  Suchpfad gefunden werden kann. Deshalb wird die Initialisierungs-Routine
  abgebrochen, wenn Sie vergessen haben sollten, das Plugin zu kompilieren.
  Die <scheme-code|:launch> Option erklrt, wie das externe Programm
  aufzurufen ist. Die <verbatim|:session> Option sorgt dafr, dass der Befehl
  <menu|Insert|Session|Minimal> bereitsteht, um eine \ <verbatim|minimal>
  Sitzung zu erzeugen.

  <tmdoc-copyright|1998--2002|Joris van der Hoeven>

  <tmdoc-license|Permission is granted to copy, distribute and/or modify this
  document under the terms of the GNU Free Documentation License, Version 1.1
  or any later version published by the Free Software Foundation; with no
  Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  Texts. A copy of the license is included in the section entitled "GNU Free
  Documentation License".>
</body>

<\initial>
  <\collection>
    <associate|language|german>
  </collection>
</initial>