~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to TeXmacs/doc/devel/plugin/customization.it.tm

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
Import upstream version 1.0.3-R2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<TeXmacs|1.0.1.21>
 
2
 
 
3
<style|tmdoc>
 
4
 
 
5
<\body>
 
6
  <expand|tmdoc-title|Ulteriore personalizzazione dell'interfaccia>
 
7
 
 
8
  Dopo aver scritto un'interfaccia funzionante tra un dato sistema e
 
9
  <apply|TeXmacs> � possibile migliorarne l'implementazione. Vedremo tra poco
 
10
  in quali direzioni questo sia possibile.
 
11
 
 
12
  In primo luogo � possibile personalizzare il comportamento della tastiera
 
13
  all'interno di una sessione <verbatim|myplugin>, aggiungendo i menu
 
14
  ritenuti pi� opportuni. Il metodo per realizzare questo � descritto nel
 
15
  capitolo riguardante il linguaggio di estensione <name|Guile/Scheme> ed �
 
16
  possibile aggiungere questo supporto nel file <verbatim|init-myplugin.scm>.
 
17
  Ancora una volta si consiglia di dare un'occhiata ai materiali relativi ai
 
18
  plugin attualmente gi� implementati in <TeXmacs> che si trovano all'interno
 
19
  della directory <verbatim|$TEXMACS_HOME_PATH/plugins>.
 
20
 
 
21
  Alcuni output del sistema da implementare potrebbero richiedere dei
 
22
  marcatori speciali. Ad esempio, se si vuole associare un tipo invisibile a
 
23
  ciascuna sub-espressione dell'output. Allora conviene creare una macro
 
24
  <verbatim|exprtype>, con due argomenti, in <verbatim|myplugin.ts> e mandare
 
25
  a <TeXmacs>, in fase di output, un'espressione <apply|LaTeX> del tipo
 
26
  <verbatim|\\exprtype{1}{Integer}>.
 
27
 
 
28
  Nel caso in cui per connettere un sistema a <apply|TeXmacs> siano state
 
29
  usate delle pipe, � possibile eseguire direttamente comandi <apply|TeXmacs>
 
30
  durante l'output, incorporando nell'output parti di codice del tipo:
 
31
 
 
32
  <\verbatim>
 
33
    \ \ \ \ [DATA_BEGIN]command:scheme-program[DATA_END]
 
34
  </verbatim>
 
35
 
 
36
  Quando invece il cursore si trova all'interno di una sessione del sistema
 
37
  interfacciato, � possibile utilizzare il comando <name|Scheme>:
 
38
 
 
39
  <\verbatim>
 
40
    \ \ \ \ (extern-exec plugin-command)
 
41
  </verbatim>
 
42
 
 
43
  attraverso il quale � possibile dare un comando prestabilito.
 
44
 
 
45
  <apply|tmdoc-copyright|1998--2003|Joris van der Hoeven, Andrea Centomo>
 
46
 
 
47
  <expand|tmdoc-license|Permission is granted to copy, distribute and/or
 
48
  modify this document under the terms of the GNU Free Documentation License,
 
49
  Version 1.1 or any later version published by the Free Software Foundation;
 
50
  with no Invariant Sections, with no Front-Cover Texts, and with no
 
51
  Back-Cover Texts. A copy of the license is included in the section entitled
 
52
  "GNU Free Documentation License".>
 
53
</body>
 
54
 
 
55
<\initial>
 
56
  <\collection>
 
57
    <associate|paragraph width|150mm>
 
58
    <associate|odd page margin|30mm>
 
59
    <associate|shrinking factor|4>
 
60
    <associate|page right margin|30mm>
 
61
    <associate|page top margin|30mm>
 
62
    <associate|reduction page right margin|25mm>
 
63
    <associate|page type|a4>
 
64
    <associate|reduction page bottom margin|15mm>
 
65
    <associate|even page margin|30mm>
 
66
    <associate|reduction page left margin|25mm>
 
67
    <associate|page bottom margin|30mm>
 
68
    <associate|reduction page top margin|15mm>
 
69
    <associate|language|italian>
 
70
  </collection>
 
71
</initial>
 
72
 
 
73
<\references>
 
74
  <\collection>
 
75
    <associate|idx-1|<tuple|<uninit>|?>>
 
76
    <associate|toc-1|<tuple|<uninit>|?>>
 
77
    <associate|toc-2|<tuple|<uninit>|?>>
 
78
    <associate|idx-2|<tuple|<uninit>|?>>
 
79
  </collection>
 
80
</references>