]> git.lyx.org Git - lyx.git/blob - lib/doc/it_Customization.lyx
update all lyx documents to the latest file format
[lyx.git] / lib / doc / it_Customization.lyx
1 #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
2 \lyxformat 243
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 \usepackage{multicol}
8 \IfFileExists{isolatin.def}
9 {\usepackage[isolatin]{inputenc}}
10 {\usepackage[latin1]{inputenc}}
11 \end_preamble
12 \language italian
13 \inputencoding default
14 \fontscheme default
15 \graphics none
16 \paperfontsize default
17 \spacing single
18 \papersize default
19 \use_geometry false
20 \use_amsmath 0
21 \cite_engine basic
22 \use_bibtopic false
23 \paperorientation portrait
24 \secnumdepth 3
25 \tocdepth 3
26 \paragraph_separation indent
27 \defskip medskip
28 \quotes_language english
29 \quotes_times 2
30 \papercolumns 1
31 \papersides 2
32 \paperpagestyle headings
33 \tracking_changes false
34 \output_changes true
35 \end_header
36
37 \begin_body
38
39 \begin_layout Title
40
41 Personalizzazione di LyX: Caratteristiche per l'utente avanzato
42 \end_layout
43
44 \begin_layout Author
45
46 dal LyX Team
47 \begin_inset Foot
48 status collapsed
49
50 \begin_layout Standard
51 \noindent
52 Questa guida è aggiornata da 
53 \noun on
54 Mike Ressler
55 \noun default
56 , mike.ressler@alum.mit.edu e mantenuta in italiano da 
57 \noun on
58 Claudio Coco,
59 \noun default
60  lacocio@libero.it.
61  Potete inviare commenti o segnalare errori ad uno di loro.
62 \end_layout
63
64 \end_inset
65
66
67 \newline
68 traduzione italiana a cura di Lino Muoio
69 \end_layout
70
71 \begin_layout Standard
72
73
74 \begin_inset LatexCommand \tableofcontents{}
75
76 \end_inset
77
78
79 \end_layout
80
81 \begin_layout Chapter
82
83 Introduzione
84 \end_layout
85
86 \begin_layout Standard
87
88 Questo manuale illustra le caratteristiche di personalizzazione presenti
89  in LyX.
90  Verranno di seguito discussi temi come le scorciatoie da tastiera, le opzioni
91  di anteprima sullo schermo, le opzioni di stampa, i comandi da inviare
92  a LyX attraverso il LyX Server, l'internazionalizzazione, l'installazione
93  di nuove classi di testo LaTeX e layouts di LyX ecc.
94  Ovviamente non ci possiamo augurare di prendere in considerazione tutto
95  quello che è possibile cambiare--i nostri sviluppatori aggiungono nuovi
96  funzioni più velocemente di quanto riusciamo a documentare--ma andremo
97  a spiegare le personalizzazioni più comuni e possibilmente cercheremo di
98  darvi qualche indicazione per quelle più complesse.
99 \end_layout
100
101 \begin_layout Standard
102
103 LyX 1.1.6 introduce una nuova interfaccia utente per le personalizzazioni
104  che possono essere richiamate attraverso 
105 \family sans
106 \bar under
107 E
108 \bar default
109 dit\SpecialChar \menuseparator
110
111 \bar under
112 P
113 \bar default
114 references
115 \family default
116 .
117  Questo non rende obsoleta la seguente trattazione circa i files di configurazio
118 ni di LyX, ma si spera invece che semplifichi considerabilmente l'adattamento
119  di LyX alle 
120 \shape slanted
121 vostre
122 \shape default
123  necessità.
124 \end_layout
125
126 \begin_layout Chapter
127
128 File di configurazione di LyX
129 \end_layout
130
131 \begin_layout Standard
132
133
134 \begin_inset LatexCommand \label{chap:config}
135
136 \end_inset
137
138  Questo capitolo ha lo scopo di aiutare ad orientarsi all'interno dei file
139  di configurazione di LyX.
140  Prima di continuare a leggere questo capitolo, dovreste trovare dove si
141  trova la directory delle librerie di LyX usando 
142 \family sans
143 \bar under
144 H
145 \bar default
146 elp\SpecialChar \menuseparator
147
148 \bar under
149 V
150 \bar default
151 ersion.
152
153 \family default
154 \bar under
155  
156 \bar default
157 Questa direcotry è il posto in cui LyX mette i suoi files di configurazione
158  generale, che chiameremo
159 \family sans
160  
161 \family typewriter
162 LyXDir
163 \family default
164  nel prosieguo del documento.
165 \end_layout
166
167 \begin_layout Section
168
169
170 \size larger
171 Cosa c'è in 
172 \family typewriter
173 \size default
174 LyXDir
175 \family default
176 \size larger
177 ?
178 \end_layout
179
180 \begin_layout Standard
181
182
183 \family typewriter
184 LyXDir
185 \family default
186  e le sue sottodirectory contiene numerosi files che possono essere usati
187  per la personalizzazione del comportamento di LyX.
188  Nuovo in LyX 1.1.6 è la possibiltà di richiamare questi files dall'interno
189  dello stesso LyX attraverso il menu 
190 \family sans
191 \shape smallcaps
192 \bar under
193 E
194 \shape default
195 \bar default
196 dit \SpecialChar \menuseparator
197
198 \family default
199  
200 \family sans
201 \bar under
202 P
203 \bar default
204 references
205 \family default
206 .
207  La maggior parte delle personalizzazioni che si effettuano sono possibili
208  attraverso questo menu.
209  Tuttavia, molti altri aspetti principali di LyX possono essere personalizzati
210  modificando gli altri file nella directory 
211 \family typewriter
212 LyXDir
213 \family default
214 .
215  Questi sono divisi in differenti categorie, descritte nelle seguenti sottosezio
216 ni.
217 \end_layout
218
219 \begin_layout Subsection
220
221 Files generati automaticamente
222 \end_layout
223
224 \begin_layout Standard
225
226 Questi files vengono generati quando configurate LyX.
227  Contengono vari valori predefiniti che vengono fissati mediante una procedura
228  di ispezione.
229  In generale, non è una buona idea modificarli, dato che potrebbero essere
230  sovrascritti in qualsiasi momento.
231 \end_layout
232
233 \begin_layout List
234 \labelwidthstring 00.00.0000
235
236
237 \family typewriter
238 \series medium
239 lyxrc.defaults
240 \family default
241 \series default
242  contiene i valori di default per vari comandi.
243  Se non gradite alcuni dei valori assegnati, potete reimpostarli usando
244  la nuova voce 
245 \family sans
246 \shape smallcaps
247 \bar under
248 E
249 \shape default
250 \bar default
251 dit \SpecialChar \menuseparator
252
253 \family default
254  
255 \family sans
256 \bar under
257 P
258 \bar default
259 references
260 \family default
261 .
262 \end_layout
263
264 \begin_layout List
265 \labelwidthstring 00.00.0000
266
267
268 \family typewriter
269 \series medium
270 packages.lst
271 \family default
272 \series default
273  contiene la lista dei pacchetti che sono stati riconosciuti da LyX.
274  Non è normalmente usata dal programma, ma le informazioni estratte, ed
275  anche di più sono rese disponibili attraverso 
276 \family sans
277 \bar under
278 H
279 \bar default
280 elp \SpecialChar \menuseparator
281 L
282 \bar under
283 a
284 \bar default
285 TeX\InsetSpace ~
286 Configuration.
287 \end_layout
288
289 \begin_layout List
290 \labelwidthstring 00.00.0000
291
292
293 \family typewriter
294 textclass.lst
295 \family default
296  è la lista delle classi di testo che sono stati trovate nella vostra directory
297  
298 \family typewriter
299 layout/
300 \family default
301  , insieme alla classe di documento LateX associata e relativa descrizione.
302 \end_layout
303
304 \begin_layout List
305 \labelwidthstring 00.00.0000
306
307
308 \family typewriter
309 doc/LaTeXConfig.lyx
310 \family default
311  è generata automaticamente durante la configurazione dal file 
312 \family typewriter
313 LaTeXConfig.lyx.in
314 \family default
315 .
316  Ogni stringa del form 
317 \begin_inset Quotes eld
318 \end_inset
319
320 @chk_foo@
321 \begin_inset Quotes erd
322 \end_inset
323
324  verrà sostituito con 
325 \begin_inset Quotes eld
326 \end_inset
327
328
329 \begin_inset Quotes erd
330 \end_inset
331
332  o 
333 \begin_inset Quotes eld
334 \end_inset
335
336 no
337 \begin_inset Quotes erd
338 \end_inset
339
340  a seconda di dove sia stato trovato il pacchetto 
341 \family typewriter
342 foo
343 \family default
344  .
345 \end_layout
346
347 \begin_layout Subsection
348
349 Directories 
350 \end_layout
351
352 \begin_layout List
353 \labelwidthstring 00.00.0000
354
355
356 \family typewriter
357 \series medium
358 bind/
359 \family default
360 \series default
361  questa directory contiene i files con l'estensione 
362 \family typewriter
363 .bind
364 \family default
365  che definiscono i tasti di scelta rapida usati in LyX (vedere la sezione\InsetSpace ~
366
367 \begin_inset LatexCommand \ref{sec: bindings}
368
369 \end_inset
370
371 ).
372  Se esiste una versione internazionalizzata del bindfile chiamato 
373 \family typewriter
374 $LANG_xxx.bind
375 \family default
376  , questo sarà usato per primo.
377  Vedere il capitolo\InsetSpace ~
378
379 \begin_inset LatexCommand \ref{chap:i18n}
380
381 \end_inset
382
383 , e la sezione
384 \begin_inset LatexCommand \ref{sec: bindings}
385
386 \end_inset
387
388  per i dettagli.
389 \end_layout
390
391 \begin_layout List
392 \labelwidthstring 00.00.0000
393
394
395 \family typewriter
396 \series medium
397 clipart/
398 \family default
399 \series default
400  contiene immagini Postscript® che possono essere inclusi nei documenti.
401  
402 \end_layout
403
404 \begin_layout List
405 \labelwidthstring 00.00.0000
406
407
408 \family typewriter
409 \series medium
410 doc/
411 \family default
412 \series default
413  contiene i files di documentazioni di LyX (incluso quello che state ora
414  leggendo).
415  Il file 
416 \family typewriter
417 LaTeXConfig.lyx
418 \family default
419  è particolarmente speciale, come già detto.
420  Se esiste una versione internazionale del documento di aiuto con 
421 \family typewriter
422 $LANG_
423 \family default
424  preposto al nome, quello sarà usato per primo.
425  Guardare il capitolo\InsetSpace ~
426
427 \begin_inset LatexCommand \ref{chap:i18n}
428
429 \end_inset
430
431  per i dettagli.
432 \end_layout
433
434 \begin_layout List
435 \labelwidthstring 00.00.0000
436
437
438 \family typewriter
439 examples/
440 \family default
441  contiene files di esempio che spiegano come usare alcune caratteristiche.
442  Nel file browser premere il pulsante 
443 \family sans
444 Example 
445 \family default
446 per raggiungerlo.
447 \end_layout
448
449 \begin_layout List
450 \labelwidthstring 00.00.0000
451
452
453 \family typewriter
454 images/
455 \family default
456  contiene files di immagine che sono usati nel menu 
457 \family sans
458 Document
459 \family default
460 .
461  In aggiunta, vi sono contenute anche le icone idividuali usate nella toolbar
462  e nella schermata che viene mostrata all'avvio di LyX.
463 \end_layout
464
465 \begin_layout List
466 \labelwidthstring 00.00.0000
467
468
469 \family typewriter
470 kdb/
471 \family default
472  contiene i files di keymapping della tastiera.
473  Guardare il capitolo\InsetSpace ~
474
475 \begin_inset LatexCommand \ref{sec:keymap}
476
477 \end_inset
478
479  per i dettagli.
480 \end_layout
481
482 \begin_layout List
483 \labelwidthstring 00.00.0000
484
485
486 \family typewriter
487 layouts/
488 \family default
489  contiene i files di classi di testo descritti nel capitolo\InsetSpace ~
490
491 \begin_inset LatexCommand \ref{chap:textclass}
492
493 \end_inset
494
495
496 \end_layout
497
498 \begin_layout List
499 \labelwidthstring 00.00.0000
500
501
502 \family typewriter
503 reLyX/
504 \family default
505  contiene i files che compongono reLyX, il traduttore del 
506 \begin_inset Quotes eld
507 \end_inset
508
509 buon comportamento
510 \begin_inset Quotes erd
511 \end_inset
512
513  di LaTeX dentro LyX
514 \end_layout
515
516 \begin_layout List
517 \labelwidthstring 00.00.0000
518
519
520 \family typewriter
521 scripts/
522 \family default
523  contiene alcuni files che dimostrano le capacità dell'insieme 
524 \family sans
525 External\InsetSpace ~
526 Template.
527
528 \family default
529  Riferirsi a 
530 \family sans
531 Help\SpecialChar \menuseparator
532 External\SpecialChar \menuseparator
533 Material
534 \family default
535  per ulteriori informazioni.
536  [
537 \emph on
538 Nota dell'autore: se questo file è incorporato in un altro dei documenti
539  standard, non sarà reperibile in questa locazione---AL
540 \emph default
541 ].
542 \end_layout
543
544 \begin_layout List
545 \labelwidthstring 00.00.0000
546
547
548 \family typewriter
549 templates/
550 \family default
551  contiene i files templates standard di LyX descritti nel Capitolo\InsetSpace ~
552
553 \begin_inset LatexCommand \ref{sec:templates}
554
555 \end_inset
556
557 .
558 \end_layout
559
560 \begin_layout List
561 \labelwidthstring 00.00.0000
562
563
564 \family typewriter
565 tex/
566 \family default
567  contiene alcuni files .cls distribuiti con LyX.
568 \end_layout
569
570 \begin_layout List
571 \labelwidthstring 00.00.0000
572
573
574 \family typewriter
575 ui/
576 \family default
577  contiene i files con estensione 
578 \family typewriter
579 .ui
580 \family default
581  che definiscono l'interfaccia utente di LyX.
582  Cioè i files definiscono quali oggetti appaiono in quali menu e quelli
583  che appaiono nella toolbar.
584  Riferirsi al Capitolo\InsetSpace ~
585  
586 \begin_inset LatexCommand \ref{sec:ui}
587
588 \end_inset
589
590 per i dettagli.
591 \end_layout
592
593 \begin_layout Subsection
594
595 Files che non volete modificare
596 \end_layout
597
598 \begin_layout Standard
599
600 Questi files sono usati internamente da LyX e generalmente non avete bisogno
601  di modificarli a meno che non siate sviluppatori.
602 \end_layout
603
604 \begin_layout List
605 \labelwidthstring 00.00.0000
606
607
608 \family typewriter
609 \series medium
610 CREDITS
611 \family default
612 \series default
613  questo file contiene la lista degli sviluppatori di LyX.
614  Si può accedere a questo file attraverso il menu 
615 \family sans
616 \bar under
617 H
618 \bar default
619 elp\SpecialChar \menuseparator
620 Cr
621 \bar under
622 e
623 \bar default
624 dits.
625 \end_layout
626
627 \begin_layout List
628 \labelwidthstring 00.00.0000
629
630
631 \family typewriter
632 \series medium
633 chkconfig.ltx
634 \family default
635 \series default
636  questo è uno script LaTeX usato durante il processo di configurazione.
637  Non va lanciato direttamente.
638 \end_layout
639
640 \begin_layout List
641 \labelwidthstring 00.00.0000
642
643
644 \family typewriter
645 \series medium
646 configure
647 \family default
648 \series default
649  questo è lo script usato per riconfigurare LyX.
650  Crea files di configurazione nella directory in cui è lanciato.
651 \end_layout
652
653 \begin_layout Subsection
654
655 Altri files che necessitano di una riga o due di spiegazioni...
656 \end_layout
657
658 \begin_layout List
659 \labelwidthstring 00.00.0000
660
661
662 \family typewriter
663 encodings
664 \family default
665  ???
666 \end_layout
667
668 \begin_layout List
669 \labelwidthstring 00.00.0000
670
671
672 \family typewriter
673 external_templates
674 \family default
675  questo file contiene i template disponibili nella nuova funzione 
676 \family sans
677 External\InsetSpace ~
678 Template
679 \family default
680 .
681  Riferirsi a 
682 \family sans
683 \bar under
684 H
685 \bar default
686 elp\SpecialChar \menuseparator
687 External\InsetSpace ~
688
689 \bar under
690 M
691 \bar default
692 aterial
693 \family default
694  per ulteriori informazioni.
695 \end_layout
696
697 \begin_layout List
698 \labelwidthstring 00.00.0000
699
700
701 \family typewriter
702 language
703 \family default
704  questo file contiene una lista di tutti i linguaggi correntemente supportati
705  da LyX.
706 \end_layout
707
708 \begin_layout List
709 \labelwidthstring 00.00.0000
710
711
712 \family typewriter
713 lyxrc.example
714 \family default
715  Deprecato e definitivamente abbandonato.
716  Questo è il vecchio file di preferenze di LyX.
717  Probabilmente scomparirà nel prossimo futuro.
718 \end_layout
719
720 \begin_layout Section
721
722
723 \size larger
724 La vostra directory di configurazione
725 \end_layout
726
727 \begin_layout Standard
728
729 Anche se si usa LyX come utente non privilegiato, è possibile voler cambiare
730  la configurazione per un uso personale.
731  La directory 
732 \family typewriter
733 UserDir
734 \family default
735  contiene tutti i files della vostra configurazione personale.
736  E' questa la directory descritta come come 
737 \begin_inset Quotes eld
738 \end_inset
739
740 user directory
741 \begin_inset Quotes erd
742 \end_inset
743
744  in 
745 \family sans
746 \bar under
747 H
748 \bar default
749 elp\SpecialChar \menuseparator
750
751 \bar under
752 V
753 \bar default
754 ersion.
755
756 \family default
757  Questa directory è usata come mirror di 
758 \family typewriter
759 LyXDir
760 \family default
761 , il che significa che ogni file in
762 \family typewriter
763  UserDir
764 \family default
765  è un sostituto del corrispondente file in 
766 \family typewriter
767 LyXDir
768 \family default
769 .
770  Ogni file di configurazione descritto nelle sezioni precedenti può essere
771  posizionato sia nelle grandi directory di sistema, in quel caso agirà su
772  tutti gli utenti, sia nella vostra directory locale per un uso di carattere
773  personale.
774 \end_layout
775
776 \begin_layout Standard
777
778 Per rendere chiare le cose, si forniscono alcuni esempi:
779 \end_layout
780
781 \begin_layout Itemize
782
783 Per personalizzare il comportamento di LyX prima della versione 1.1.6, l'utente
784  doveva copiare il file 
785 \family typewriter
786 LyXDir/lyxrc.example
787 \family default
788  in 
789 \family typewriter
790 UserDir/lyxrc
791 \family default
792  e modificarlo direttamente.
793  La nuova versione di LyX legge ancora questo file, se presente in 
794 \family typewriter
795 UserDir
796 \family default
797 , ma ogni cambiamento successivo fatto usando il nuovo menu 
798 \family sans
799 \bar under
800 E
801 \bar default
802 dit\SpecialChar \menuseparator
803
804 \bar under
805 P
806 \bar default
807 references
808 \family default
809  sono salvate nel nuovo file 
810 \family typewriter
811 preferences
812 \family default
813 .
814  In seguito 
815 \family typewriter
816 lyxrc
817 \family default
818  non sarà più letto e potrà essere rimosso.
819 \end_layout
820
821 \begin_layout Itemize
822
823 Quando si riconfigura attraverso 
824 \family sans
825 \bar under
826 O
827 \bar default
828 ptions\SpecialChar \menuseparator
829
830 \bar under
831 R
832 \bar default
833 econfigure
834 \family default
835  LyX lancia configure ed i files risultanti sono scritti nella vostra directory
836  di configurazione locale 
837 \family sans
838 (vedere la sezione\InsetSpace ~
839
840 \begin_inset LatexCommand \ref{sec:autodetected}
841
842 \end_inset
843
844
845 \family default
846 per avere una lista dei settaggi di\SpecialChar \menuseparator
847  questa sezione).Questo significa che
848  ogni classe di testo addizionale che potreste aver aggiunto alla directory
849  
850 \family typewriter
851 UserDir/layouts 
852 \family default
853 sarà aggiunta alla lista delle classi nel menu 
854 \family sans
855 \bar under
856 L
857 \bar default
858 ayout
859 \bar under
860 \SpecialChar \menuseparator
861 D
862 \bar default
863 ocument.
864 \end_layout
865
866 \begin_layout Itemize
867
868 Similmente, se avete installato alcune classi di documento LaTeX nella vostra
869  home directory, che LaTeX può trovare nel vostro path 
870 \family typewriter
871 TEXTINPUTS
872 \family default
873 , queste verranno mostrate nella lista delle vostre classi di testo.
874 \begin_inset Foot
875 status collapsed
876
877 \begin_layout Standard
878
879 come pure se voi o LyX abbiate un file 
880 \family typewriter
881 .layout
882 \family default
883  per esso, naturalmente.
884  
885 \end_layout
886
887 \end_inset
888
889
890 \end_layout
891
892 \begin_layout Itemize
893
894 Se acquisite della documentazione aggiornata dal sito ftp di LyX e non potete
895  installarla perchè non avete i permessi di amministratore sul vostro sistema,
896  potete semplicemente copiare i files in 
897 \family typewriter
898 UserDir/doc/
899 \family default
900  e saranno raggiungibili attraverso il menu 
901 \family sans
902 \bar under
903 H
904 \bar default
905 elp
906 \family default
907 !
908 \end_layout
909
910 \begin_layout Section
911
912 Lanciare LyX con configurazioni multiple
913 \end_layout
914
915 \begin_layout Standard
916
917 La libertà di configurazione della relativa directory locale può non essere
918  sufficiente se volete avere più di una configurazione a vostra disposizione.
919  Ad esempio, vorreste poter usare differenti scorciatoie da tastiera o settaggi
920  della stampante in tempi diversi.
921  Potete ottenere questo attraverso più directory che verranno richiamate
922  al run-time.
923 \end_layout
924
925 \begin_layout Standard
926
927 Richiamando LyX con lo switch da riga di comando 
928 \family typewriter
929 -userdir
930 \family default
931  <
932 \emph on
933 some directory
934 \emph default
935 > permette al programma di leggere la configurazione da quella directory
936  e non dalla directory di default (potete scegliere la directory di default
937  lanciando LyX senza lo switch descritto sopra).
938  Se questa directory non esiste, LyX può crearla per voi proprio come fa
939  per la directory di default la prima volta che si lancia il programma.
940  Potete modificare le opzioni di configurazione in questa 
941 \family typewriter
942 Userdir
943 \family default
944  addizionale esattamente come fareste per la directory di default.
945  Queste directory sono completamente indipendenti (ma continuate a leggere).
946  Notare che settare la variabile ambientale 
947 \family typewriter
948 LYX_USERDIR_11x
949 \family default
950  allo stesso valore ha esattamente lo stesso effetto.
951 \end_layout
952
953 \begin_layout Standard
954
955 Avere molte configurazioni richiede anche più manutenzione: se volete aggiungere
956  un nuovo layout a 
957 \family typewriter
958 Userdir/layouts
959 \family default
960  che volete disponibile per tutte le vostre configurazioni, dovete aggiungerlo
961  ad ogni directory separatamente.
962  Potete evitare questo col seguente trucco: dopo che LyX ha creato la directory
963  addizionale, la maggior parte delle sottodirectory (vedi sotto) sono vuote.
964  Se volete che la nuova configurazione faccia da mirror ad una esistente,
965  sostituite la sottodirectory vuota con un link simbolico alla relativa
966  sottodirectory di una configurazione esistente.
967  Fate attenzione tuttavia alla sottodirectory 
968 \family typewriter
969 doc/
970 \family default
971  dato che contiene un file generato dallo script di configurazione (accessibile
972  anche attraverso 
973 \family sans
974 \bar under
975 O
976 \bar default
977 ptions\SpecialChar \menuseparator
978
979 \bar under
980 R
981 \bar default
982 econfigure
983 \family default
984  
985 \begin_inset LatexCommand \ref{sec:autodetected}
986
987 \end_inset
988
989 ) che è specifico per ogni configurazione.
990 \end_layout
991
992 \begin_layout Chapter
993
994 Il popup 
995 \family sans
996 \bar under
997 E
998 \bar default
999 dit\SpecialChar \menuseparator
1000
1001 \bar under
1002 P
1003 \bar default
1004 references
1005 \end_layout
1006
1007 \begin_layout Section
1008
1009 Usare il popup per la prima volta
1010 \end_layout
1011
1012 \begin_layout Standard
1013
1014 Storicamente, è possibile personalizzare il comportamento di LyX attraverso
1015  la modifica del contenuto del file 
1016 \family typewriter
1017 UserDir/lyxrc.
1018
1019 \family default
1020  Questo è cambiato in LyX 1.1.6 perchè ora esiste un menu 
1021 \family sans
1022 \bar under
1023 E
1024 \bar default
1025 dit\SpecialChar \menuseparator
1026
1027 \bar under
1028 P
1029 \bar default
1030 references 
1031 \family default
1032 per semplificare il processo di semplificazione.
1033  
1034 \family typewriter
1035 UserDir/lyxrc 
1036 \family default
1037 verrà ancora letto fino a quando non si usa il nuovo menu per la prima volta.
1038  Successivamente, ogni cambiamento sarà salvato in un nuovo file,
1039 \family typewriter
1040  preferences,
1041 \family default
1042  e 
1043 \family typewriter
1044 lyxrc
1045 \family default
1046  non sarà più letto.
1047  Potrà così essere rimosso.
1048 \end_layout
1049
1050 \begin_layout Standard
1051
1052 Il nuovo file 
1053 \family typewriter
1054 UserDir/preferences 
1055 \family default
1056 conterrà solo i cambiamenti che sono stati fatti nel comportamento di base,
1057  alcuni dei quali sono ben codificati in LyX ed altri sono contenuti nel
1058  file di sistema 
1059 \family typewriter
1060 LyXDir/lyxrc.defaults.
1061  
1062 \family default
1063 Notate che in entrambi i files le righe che iniziano con 
1064 \begin_inset Quotes eld
1065 \end_inset
1066
1067 #
1068 \begin_inset Quotes erd
1069 \end_inset
1070
1071  sono solo commenti e non sono interpretati.
1072  Tuttavia, solo gli amministratori di sistema dovrebbero editare 
1073 \family typewriter
1074 LyXDir/lyxrc.
1075  
1076 \family default
1077 Gli utenti dovrebbero usare la voce 
1078 \family sans
1079 \bar under
1080 E
1081 \bar default
1082 dit\SpecialChar \menuseparator
1083
1084 \bar under
1085 P
1086 \bar default
1087 references
1088 \family default
1089  per creare e modificare il loro file personale 
1090 \family typewriter
1091 UserDir/preferences.
1092 \end_layout
1093
1094 \begin_layout Standard
1095
1096 Speriamo che il menu 
1097 \family sans
1098 \bar under
1099 E
1100 \bar default
1101 dit\SpecialChar \menuseparator
1102
1103 \bar under
1104 P
1105 \bar default
1106 references
1107 \family default
1108  sia ampiamente autoesplicativo.
1109  A quasi tutti i comandi sono stati associati dei commenti, così da non
1110  crearvi particolari difficoltà ad effettuare modifiche a vostro piacimento.
1111  Prima di analizzare alcuni dei comandi più importanti di seguito, vogliamo
1112  fare un avvertimento: L'applicazione di alcuni dei cambiamenti (es.
1113  fonts dello schermo) hanno effetto istantaneo.
1114  Altri (es.
1115  cambiamenti nel file associazioni) non l'avranno.
1116  Abbiate pazienza; questo è un work-in-progress.
1117  Se nulla sembra accadere come cambiamento salvate i cambiamenti e riavviate
1118  LyX.
1119 \end_layout
1120
1121 \begin_layout Section
1122
1123 Schermo & Fonts
1124 \end_layout
1125
1126 \begin_layout Standard
1127
1128 Il carattere usato per visualizzare i vostri documenti sullo schermo di
1129  LyX è molto importante, dato che leggerete tutti i documenti con questo
1130  carattere.
1131  Inoltre è importante che il carattere sia leggibile ed abbia il miglior
1132  aspetto possibile.
1133  Il LyX team ha provato a fornire il migliore carattere predefinito, ma
1134  dato che praticamente tutti i sistemi X11 sono differenti, è molto probabile
1135  che il carattere predefinito sia sub-ottimale per il vostro sistema.
1136  Fortunatamente è possibile ovviare a tale situazione, ma prima di chiarirvi
1137  le modalità secondo le quali procedere, sarebbe bene che sapeste qualcosa
1138  di più sui font in quanto la loro scelta nasce da un compromesso tra le
1139  vostre preferenze e le capacità del sistema col quale lavorate.
1140 \end_layout
1141
1142 \begin_layout Standard
1143
1144 Notate che questa sezione tratta solo dei caratteri visibili sullo 
1145 \emph on
1146 schermo
1147 \emph default
1148  all'interno della finestra di LyX.
1149  I caratteri che appaioni sulla 
1150 \emph on
1151 carta
1152 \emph default
1153  in uscita dalla stampante sono indipendenti da questi e sono determinati
1154  dalla classe del documento.
1155  Consultate la 
1156 \emph on
1157 Guida dell'utente
1158 \emph default
1159  per imparare a cambiare il carattere della versione stampata del vostro
1160  documento.
1161 \end_layout
1162
1163 \begin_layout Standard
1164
1165 Di base, i caratteri che appaiono sullo schermo sono di due tipi differenti:
1166  caratteri scalabili e caratteri bitmap non scalabili.
1167  La distinzione può sembrare leggermente arbitraria, dato che i font non-scalabi
1168 li sono generalmente scalabili nella maggior parte dei moderni renderers
1169  di font.
1170  La differenza sta nella 
1171 \emph on
1172 qualità
1173 \emph default
1174  dello scaling, e nella 
1175 \emph on
1176 velocità
1177 \emph default
1178  con cui essi vengono visualizzati.
1179  Da ciò ne deriva l'importanza di capire dove sia bene usare l'uno o l'altro
1180  tipo di font.
1181 \end_layout
1182
1183 \begin_layout Standard
1184
1185 I caratteri scalabili sono costruiti a partire dai 
1186 \emph on
1187 contorni
1188 \emph default
1189  di ciascun glifo (cioè carattere) presente nel font.
1190  Questo significa che ogni glifo è definito attraverso curve matematiche
1191  che bene si adattano allo scaling di qualsiasi dimensione.
1192  Il renderer di font ha quindi il compito di interpretare tale definizione
1193  e generare una piccola figura composta di pixels in relazione alla grandezza
1194  ed al glifo richiesto dal programmatore.
1195  Ne segue che l'aspetto dei font scalabili risulta buono per ogni dimensione,
1196  più realisticamente per quasi tutte le dimensioni.
1197  Infatti i fonts scalabili sono definiti in modo astratto e di conseguenza
1198  può essere difficile ottenere un buon rendering per taglie piccole, dove
1199  ogni pixel deve essere perfettamente calcolato per ottenere una buona immagine.
1200  Tale operazione è tecnicamente attuabile mediante la definizione matematica,
1201  ma per consentire un rendering ragionevolmente veloce, si preferisce raggiunger
1202 e un compromesso, con il risultato è che i font scalabili sono più difficili
1203  da leggere per le piccole dimensioni.
1204 \end_layout
1205
1206 \begin_layout Standard
1207
1208 I font bitmap invece sono definiti da grafica bitmap sin dall'inizio, così
1209  appaiono buoni per ogni dimensione richiesta.
1210  tuttavia, non scalano bene, perchè per scalare un glifo, ogni pixel è allargato
1211  in più pixel.
1212  E' quanto accade se cercate di allargare una fotografia in 
1213 \emph on
1214 xv
1215 \emph default
1216  o in qualsiasi altro programma di manipolazione.
1217  Per ridurre questo effetto, i font bitmap sono forniti in varie dimensioni
1218  prestabilite, in genere da 8 pixel a 34 pixel o più in relazione ai possibili
1219  utilizzi.
1220  Il vantaggio derivante dall'uso di font bitmap è che per visualizzare ogni
1221  glifo non sono necessari calcoli complessi, così da rendere i font bitmap
1222  più velocemente rappresentabili sullo schermo rispetto ai font scalari.
1223  Lo svantaggio consiste nel fatto che le dimensioni non comprese in quelle
1224  predefinite, devono essere ottenute raddoppiando i pixel, e conseguentemente
1225  l'aspetto non è dei migliori.
1226 \end_layout
1227
1228 \begin_layout Standard
1229
1230 Se ne conclude quindi che i font bitmap sono generalmente i migliori per
1231  le piccole taglie, dove disponibili, mentre i font scalabili sono da preferire
1232  per grandi dimensioni.
1233  La logica conclusione sarebbe quella di usare i font bitmap per le piccole
1234  dimensioni, ed i font scalabili per le dimensioni superiori.
1235  Sfortunatamente questa non è una buona idea, dato che i font bitmap e i
1236  font scalabili non sono stati progettati per essere usati insieme ed il
1237  risultato derivante dal loro contemporaneo utilizzo sarebbe piuttosto sgradevol
1238 e.
1239  La soluzione ottimale è dunque quella di provare entrambi gli schemi e
1240  scegliere tra i due quello che meglio si adatta alle proprie esigenze.
1241 \end_layout
1242
1243 \begin_layout Standard
1244
1245 Di default, Lyx usa i font bitmap non-scalabili.
1246  Per i font serif, è usato 
1247 \emph on
1248 times
1249 \emph default
1250 , per i font sans serif, è usato 
1251 \emph on
1252 helvetica
1253 \emph default
1254 , mentre 
1255 \emph on
1256 curier
1257 \emph default
1258  è usato come font monospazio stile macchina da scrivere.
1259 \end_layout
1260
1261 \begin_layout Standard
1262
1263 In seguito descriveremo cosa fare se in LyX il testo non ha un bell'aspetto.
1264  Partiremo con i parametri più importanti: DPI e lo zoom dei fonts.
1265 \end_layout
1266
1267 \begin_layout Subsection
1268
1269 Settaggi DPI e Zoom di Font 
1270 \end_layout
1271
1272 \begin_layout Standard
1273
1274 LyX automaticamente prova a scalare i fonts in modo da farli sembrare il
1275  più possibile uguali a quelli che verranno stampati, a meno del cosiddetto
1276  fattore di zoom.
1277 \end_layout
1278
1279 \begin_layout Standard
1280
1281 Per far funzionare su ogni sistema, questo meccanismo sfrutta i settaggi
1282  dei DPI (dots per inch) dello schermo.
1283  Il settaggio dei DPI del vostro sistema è rilevato automaticamente da LyX
1284  attraverso le informazioni che fornisce il server X.
1285  Potete controllare cosa rileva LyX circa i DPI, lanciando LyX in questo
1286  modo: 
1287 \family typewriter
1288 lyx -dbg 2.
1289
1290 \family default
1291  
1292 \end_layout
1293
1294 \begin_layout Standard
1295
1296 Su molti sistemi, X non è settato correttamente, quindi dovrete verificare
1297  la correttezza dei settaggi manualmente.
1298  Lanciate 
1299 \begin_inset Quotes eld
1300 \end_inset
1301
1302
1303 \family typewriter
1304 xdpyinfo
1305 \family default
1306  
1307 \family typewriter
1308 | more
1309 \family default
1310
1311 \begin_inset Quotes erd
1312 \end_inset
1313
1314  e scrivete quali sono i DPI per la risoluzione che usate (che dovrebbe
1315  essere simile a quella che LyX rileva).
1316  E' il numero menzionato come 
1317 \begin_inset Quotes eld
1318 \end_inset
1319
1320 risoluzione
1321 \begin_inset Quotes erd
1322 \end_inset
1323
1324 .
1325  Inserite poi anche il numero di pixel che avete in larghezza ( il primo
1326  numero sotto 
1327 \begin_inset Quotes eld
1328 \end_inset
1329
1330 dimensioni
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 ).
1335 \end_layout
1336
1337 \begin_layout Standard
1338
1339 Dopodichè prendete il buon vecchio righello e misurate la larghezza visibile
1340  dell'immagine su vostro monitor.
1341  Convertite queste misure in pollici, se usate un righello in centimetri,
1342  dividendo per 2.54.
1343  Ora è possibile determinare il corretto settaggio DPI per il vostro schermo,
1344  dividendo il numero dei pixels della larghezza per la larghezza dell'immagine
1345  sullo schermo del monitor.
1346  Se questo numero è superiore a, per esempio, 5 DPI rispetto al valore autodeter
1347 minato, dovrete correggere l' X setup, o almeno dire a LyX che il valore
1348  di DPI è diverso da quello rilevato.
1349 \end_layout
1350
1351 \begin_layout Standard
1352
1353 Se non potete correggere l'X setup (che sarebbe la soluzione migliore perchè
1354  ne beneficerebbero altri programmi oltre a LyX), è possibile comunicare
1355  a LyX il corretto settaggio DPI attraverso il menu 
1356 \family sans
1357 Preferences.
1358
1359 \family default
1360  
1361 \end_layout
1362
1363 \begin_layout Standard
1364
1365 Se il testo è troppo piccolo o troppo grande per il vostro gusto, dovrete
1366  cercare di rimendiare attraverso lo zoom sul carattere.
1367  Questo settaggio è usato per scalare la grandezza del punto del testo.
1368  Se il vostro DPI è corretto, e lo zoom del carattere è settato a 100, questo
1369  significa che LyX proverà a mostrare il testo esattamente alla stessa grandezza
1370  della pagina stampata.
1371  Se il fattore di zoom viene settato a 200, il testo visualizzato sarà il
1372  doppio di quello che si vedrà sulla pagina stampata.
1373  Naturalmente questo accadrà solo se LyX riesce a trovare ed usare un carattere
1374  che abbia una grandezza appropriata.
1375  Ma, dato che LyX è comunque un sistema WYSIWYM, questa limitazione, eventuale,
1376  è improbabile.
1377 \end_layout
1378
1379 \begin_layout Standard
1380
1381 Il valore di default dello zoom è 150 dato che un monitor è generalmente
1382  più grande che un pezzo di carta, ma dovreste comunque provare a modificarlo
1383  tramite il comando 
1384 \family sans
1385 Font\InsetSpace ~
1386 Zo\SpecialChar \@.
1387 default  nel menu Preferences
1388 \family default
1389  per trovare una grandezza che vi soddisfi.
1390  Quando avete trovato un settaggio che possa andare bene per voi (tip: usate
1391  il bottone 
1392 \family sans
1393 \bar under
1394 A
1395 \bar default
1396 pply 
1397 \family default
1398 per lasciare la finestra aperta mentre fate esperimenti), potete poi rendere
1399  questi settaggi come default usando il comando 
1400 \family sans
1401 \bar under
1402 S
1403 \bar default
1404 ave
1405 \family default
1406 .
1407 \end_layout
1408
1409 \begin_layout Standard
1410
1411 Mentre è spesso possibile trovare una grandezza adatta al testo sullo schermo,
1412  questo non necessariamente vuol dire, che i fonts siano i migliori ottenibili
1413  dal proprio sistema.
1414  Per aiutarvi ad avere il massimo dal vostro sistema, potete usare i comendi
1415  di definizione dei font per raffinare l'aspetto del testo più in dettaglio.
1416 \end_layout
1417
1418 \begin_layout Subsection
1419
1420 Comandi di definizione dei Fonts
1421 \end_layout
1422
1423 \begin_layout Standard
1424
1425 Come menzionato, LyX usa fonts bitmap non scalabili di default.
1426  Per i fonts serif, è usato 
1427 \emph on
1428 times
1429 \emph default
1430 , per i fonts sans serif è usato 
1431 \emph on
1432 helvetica
1433 \emph default
1434 , mentre 
1435 \emph on
1436 courier
1437 \emph default
1438  è usato come font del tipo monospazio/macchina da scrivere.
1439 \end_layout
1440
1441 \begin_layout Standard
1442
1443 Potete cambiarli attraverso il menu 
1444 \family sans
1445 Preferences
1446 \family default
1447 .
1448  Il numero dei fonts disponibili varia a seconda dei sistemi, ma il programma
1449  
1450 \family typewriter
1451 xfontsel
1452 \family default
1453  dovrebbe essere reperibile ovunque.
1454  Usate questo programma per trovare i fonts adatti.
1455  Quando avete trovato un font che vi piace, provate ad inserire i primi
1456  due elementi del nome (chiamati 
1457 \begin_inset Quotes eld
1458 \end_inset
1459
1460 fndry
1461 \begin_inset Quotes erd
1462 \end_inset
1463
1464  e 
1465 \begin_inset Quotes eld
1466 \end_inset
1467
1468 fmly
1469 \begin_inset Quotes erd
1470 \end_inset
1471
1472  in
1473 \family typewriter
1474  xfontsel
1475 \family default
1476 ) nel campo appropriato nel menu
1477 \family sans
1478  Preferences
1479 \family default
1480  e premere 
1481 \family sans
1482 \bar under
1483 A
1484 \bar default
1485 pply
1486 \family default
1487 .
1488  LyX poi riformatterà il vostro documento usando il nuovo font, e se il
1489  font vi piace, dovreste salvarlo con 
1490 \family sans
1491 \bar under
1492 S
1493 \bar default
1494 ave
1495 \family default
1496 .
1497  Un punto di partenza per un nuovo font è vedere se il font scalabile 
1498 \begin_inset Quotes eld
1499 \end_inset
1500
1501 utopia
1502 \begin_inset Quotes erd
1503 \end_inset
1504
1505  è disponibile.
1506  Tip: potete vedere se un font è scalabile o bitmap controllando i campi
1507  
1508 \begin_inset Quotes eld
1509 \end_inset
1510
1511 resx
1512 \begin_inset Quotes erd
1513 \end_inset
1514
1515  o 
1516 \begin_inset Quotes eld
1517 \end_inset
1518
1519 resy
1520 \begin_inset Quotes erd
1521 \end_inset
1522
1523  in 
1524 \family typewriter
1525 xfontsel
1526 \family default
1527 .
1528  Se il valore 0 è disponibile, il font è scalabile.
1529  Se il valore 0 non è disponibile, il font è bitmap.
1530 \end_layout
1531
1532 \begin_layout Standard
1533
1534 Prima che proviate a modificare un font bitmap perchè la larghezza più grande
1535  sembra 
1536 \begin_inset Quotes eld
1537 \end_inset
1538
1539 bloccata
1540 \begin_inset Quotes erd
1541 \end_inset
1542
1543 , dovreste provare a selezionare il bottone 
1544 \begin_inset Quotes eld
1545 \end_inset
1546
1547 Usa fonts scalabili
1548 \begin_inset Quotes erd
1549 \end_inset
1550
1551 .
1552  Questo è utile solo se usate fonts bitmap, perchè solo questi non scalano
1553  perfettamente.
1554  Se definite questo flag, LyX userà solo le grandezze fisse del carattere
1555  disponibili, e questo garantisce che tutti i fonts bitmap sembrino buoni.
1556  (Potete vedere quale grandezze individuali del carattere son o disponibili
1557  con il comando 
1558 \family typewriter
1559 xlsfonts
1560 \family default
1561 .
1562  Provate 
1563 \family typewriter
1564 man xlsfonts
1565 \family default
1566 ).
1567  Tuttavia il prezzo da pagare è che la differenza tra la grandezza del font
1568  sullo schermo e la grandezza del font sulla carta sarà più grande perchè
1569  LyX dovrà accontentarsi della grandezza più vicina disponibile, e non proverà
1570  a scalare la grandezza per adeguarsi.
1571  Inoltre, c'è il ridchio che alcune grandezze differenti da un punto di
1572  vista logico, come 
1573 \family sans
1574 Large
1575 \family default
1576  e 
1577 \family sans
1578 Larger
1579 \family default
1580 , saranno mappate come lo stesso font sullo schermo, rendendo difficile
1581  identificare le differenze sullo schermo.
1582  Abbiamo deciso di non usare i fonts scalabili di default a causa di questi
1583  effetti, ma dato che LyX è un sistema WYSIWYM, a molte persone piace comunque
1584  usare i flag, pur sapendo che la grandezza del carattere sullo schermo
1585  potrebbe non essere veritiera.
1586  Ma ricordate che questo flag crea una differenza solo se usate font bitmap.
1587  I font scalabili, come ora potete capire, non verranno toccati da questo
1588  tipo di problema.
1589 \end_layout
1590
1591 \begin_layout Standard
1592
1593 Un'ultima annotazione su questo flag: dovete sapere che non c'è nulla di
1594  sbagliato nell'usare fonts scalabili e bitmap contemporaneamente per differenti
1595  scopi.
1596  Per esempio, è abbastanza comune usare lo scalabile 
1597 \begin_inset Quotes eld
1598 \end_inset
1599
1600 Utopia
1601 \begin_inset Quotes erd
1602 \end_inset
1603
1604  per il testo serif, assieme alla versione bitmap di 
1605 \begin_inset Quotes eld
1606 \end_inset
1607
1608 Helvetica
1609 \begin_inset Quotes erd
1610 \end_inset
1611
1612 .
1613  E potete tranquillamente selezionare 
1614 \begin_inset Quotes eld
1615 \end_inset
1616
1617 Usa fonts scalabili
1618 \begin_inset Quotes erd
1619 \end_inset
1620
1621  senza problemi: sarà solo applicato al font Helvetica.
1622 \end_layout
1623
1624 \begin_layout Standard
1625
1626 Qualche volta gli artefatti introdotti dall'uso del flag possono essere
1627  eliminate usando il comando fine-detail che definisce a quali grandezze
1628  di punto corrispondono le differenti grandezze logiche dei caratteri.
1629  Lanciate LyX con 
1630 \family typewriter
1631 lyx -dbg 513
1632 \family default
1633  per vedere come funziona concretamente e provate ad aggiustare le voci
1634  corrispondenti nel menu 
1635 \family sans
1636 Preferences
1637 \family default
1638  fino a quando i risultati vi soddisfano.
1639  Questo è difficile da fare, perchè LyX usa i settaggi DPI e quelli di zoom
1640  del font per calcolare l'esatta grandezza del font sullo schermo da chiedere
1641  al server X.
1642  Se non riuscite ad ottenere risultati soddisfacenti con la tecnica dello
1643  
1644 \begin_inset Quotes eld
1645 \end_inset
1646
1647 sbaglia e riprova
1648 \begin_inset Quotes erd
1649 \end_inset
1650
1651 , potete rendere il processo più trasparente se settate assieme i DPI e
1652  lo zoom a 100, anche se si sa che non è corretto.
1653  questo naturalmente renderà i font scalabili non perfetti, quindi fate
1654  attenzione.
1655 \end_layout
1656
1657 \begin_layout Subsection
1658
1659 Codifica dei Fonts
1660 \end_layout
1661
1662 \begin_layout Standard
1663
1664 Di default, LyX userà dei font per scrivere un testo Western European, inclusi
1665  tutti i tipi di inglese.
1666  Viene definito attraverso il cosiddetto 
1667 \emph on
1668 font
1669 \emph default
1670  
1671 \emph on
1672 encoding
1673 \emph default
1674 .
1675  Se volete usare Lyx per scivere ad esempio un testo in Eastern European,
1676  Cirillico oppure ogni altro linguaggio non coperto dallo standard ISO-8859-1
1677  di codifica dei caratteri, potete definirne uno differente con il settaggio
1678  del valore 
1679 \family typewriter
1680
1681 \backslash
1682 screen_font_encoding
1683 \family default
1684 \emph toggle
1685  
1686 \emph default
1687 .Questo richiede che siano installati speciali fonts.
1688  Potete usare 
1689 \family typewriter
1690 xfontsel
1691 \family default
1692  per queste modifiche: controllate i campi 
1693 \begin_inset Quotes eld
1694 \end_inset
1695
1696 rgstry
1697 \begin_inset Quotes erd
1698 \end_inset
1699
1700  e 
1701 \begin_inset Quotes eld
1702 \end_inset
1703
1704 encdng
1705 \begin_inset Quotes erd
1706 \end_inset
1707
1708  per valori ISO-8859-X diversi da ISO-8859-1, e quindi cercate quello che
1709  contiene i caratteri della lingua prescelta.
1710  Se non lo trovate è ancora possibile definirlo nel file 
1711 \family typewriter
1712 lyxrc
1713 \family default
1714  .Altrimenti bisogna ricercarlo sul Web.
1715 \end_layout
1716
1717 \begin_layout Standard
1718
1719 Quando settate LyX per l'uso di una codifica differente, dovrete considerare
1720  i cambiamenti nei fonts della finestra pop-up di LyX.
1721  Per esempio il menu 
1722 \family sans
1723 Table\InsetSpace ~
1724 of\InsetSpace ~
1725 Contents
1726 \family default
1727  non sarà comprensibile fino a quando non dite a LyX di usare un font differente.
1728  Di default, il menu font è settato su 
1729 \family typewriter
1730 -*-helvetica-medium-r
1731 \family default
1732 \emph toggle
1733 , ma spesso helvetica non è disponibile nella codifica dei font di cui avete
1734  bisogno.
1735 \end_layout
1736
1737 \begin_layout Standard
1738
1739 Inoltre potete cambiare questo font con il comando 
1740 \family typewriter
1741
1742 \backslash
1743 screen_font_emenu
1744 \family default
1745 \emph toggle
1746  .
1747 \end_layout
1748
1749 \begin_layout Standard
1750
1751 Come potete vedere, ci sono alcune opzioni che possono essere usate per
1752  affinare l'aspetto dei vostri fonts.
1753  Questo non dovrebbe spaventarvi dal maneggiare coi settaggi, poichè dopo
1754  tutto, vi augurate di usare molto LyX in futuro.
1755  E contrariamente ai veri word processors WYSIWYG, dove siete costretti
1756  ad usare fonts che hanno un aspetto buono sia sul video che sulla carta,
1757  LyX vi da la possibilità di usare fonts che sono disegnati per essere visti
1758  sullo schermo, se siete abbastanza fortunati da averli.
1759 \end_layout
1760
1761 \begin_layout Standard
1762
1763 Nella versione di LyX, proveremo a supportare il font renderer 
1764 \family typewriter
1765 T1Lib 
1766 \family default
1767 \emph toggle
1768 che fornisce un testo con effetto 
1769 \emph on
1770 anti-aliased 
1771 \emph toggle
1772 .
1773  Questo significa che ogni glifo è costituito da molte ombre colorate piuttosto
1774  che da soli due colori, creando un effetto di alta risoluzione.
1775  Questo non renderà solo il testo più leggibile sullo schermo, ma permetterà
1776  anche a LyX di avvicinare i fonts visti sullo scermo a quelli che verranno
1777  stampati, dato che sarà ad esempio possibile settare un valore di 14.4 punti
1778  al contrario di ora che è possibile solo scegliere il valore arrotondato
1779  14.
1780 \end_layout
1781
1782 \begin_layout Section
1783
1784 Bindings
1785 \begin_inset LatexCommand \label{sec:bindings}
1786
1787 \end_inset
1788
1789
1790 \end_layout
1791
1792 \begin_layout Standard
1793
1794 Le associazioni sono usate per assegnare una funzione ad un tasto.
1795  Molti file con associazioni precompilate sono disponibili: un set di associazio
1796 ni CUA (simile ai tipici insiemi di assegnazioni di tastiera PC e CDE),
1797  un set Emacs di associazioni, per quelli di noi che segono la cosiddetta
1798  
1799 \begin_inset Quotes eld
1800 \end_inset
1801
1802 One True Way
1803 \begin_inset Quotes erd
1804 \end_inset
1805
1806  e rifiutano di sottostare agli standards,
1807 \begin_inset Foot
1808 status collapsed
1809
1810 \begin_layout Standard
1811
1812 Sto scherzando, ovviamente!
1813 \end_layout
1814
1815 \end_inset
1816
1817  come pure associazioni speciali (broadway e hollywood) ed altri linguaggi
1818  (Francese, Tedesco, ecc..)
1819 \end_layout
1820
1821 \begin_layout Standard
1822
1823 Se, tuttavia, volete personalizzare le associazioni secondo i vostri specifici
1824  gusti, allora copiate il file della directory 
1825 \family typewriter
1826 LyXDir/bind/ 
1827 \family default
1828 che meglio si adatta nella vostra 
1829 \family typewriter
1830 UserDir/bind/ 
1831 \family default
1832 e modificatelo.
1833  Non dimenticate di caricare questo nuovo file in LyX attraverso il menu
1834  
1835 \family sans
1836 Preferences 
1837 \family default
1838 (per il momento dovete riavviare LyX per rendere effettivi i cambiamenti).
1839 \end_layout
1840
1841 \begin_layout Standard
1842
1843 LyX supporta l'internazionalizzazione dell'interfaccia utente (vedere il
1844  Capitolo
1845 \shape italic
1846 \emph on
1847 \InsetSpace ~
1848
1849 \begin_inset LatexCommand \ref{chap:i18n}
1850
1851 \end_inset
1852
1853 )
1854 \shape default
1855 \emph default
1856 .
1857  Se il vostro 
1858 \emph on
1859 locale
1860 \shape italic
1861  viene settato con la variabile d'ambiente 
1862 \family typewriter
1863 \shape default
1864 \emph default
1865 $LANG
1866 \family default
1867 , LyX proverà ad usare i bindfile preponendo 
1868 \family typewriter
1869 $LANG_ 
1870 \family default
1871 al loro nome.
1872  Ad esempio, potete mettere una copia tradotta di alcuni bindfile nella
1873  vostra directory 
1874 \family typewriter
1875 bind/
1876 \family default
1877 personale e LyX li userà automaticamente.
1878  [
1879 \emph on
1880 Nota dell'autore: non sono sicuro se è ancora vero ma forse qualcuno che
1881  utilizza questo metodo potrebbe testarlo---AL
1882 \emph default
1883 ].
1884 \end_layout
1885
1886 \begin_layout Standard
1887
1888 La sintassi dei files 
1889 \family typewriter
1890 .bind
1891 \family default
1892  è la seguente:
1893 \end_layout
1894
1895 \begin_layout Standard
1896
1897
1898 \family typewriter
1899
1900 \backslash
1901 bind <key combination> <lyx-function>
1902 \end_layout
1903
1904 \begin_layout Standard
1905
1906 Sia le combinazioni di tasti che la lyx-function (inclusi gli argomenti)
1907  devono essere racchiusi tra le 
1908 \begin_inset Quotes eld
1909 \end_inset
1910
1911 doppie virgolette
1912 \begin_inset Quotes erd
1913 \end_inset
1914
1915 .
1916  Tutte le funzioni di LyX sono elencate nella 
1917 \emph on
1918 Guida di Riferimento.
1919 \end_layout
1920
1921 \begin_layout Section
1922
1923 User Interface
1924 \begin_inset LatexCommand \label{sec:ui}
1925
1926 \end_inset
1927
1928
1929 \end_layout
1930
1931 \begin_layout Standard
1932
1933 L'aspetto del menu e della toolbar può essere cambiato attraverso il menu
1934  
1935 \family sans
1936 Preferences
1937 \family default
1938 .
1939  Basta semplicemente cambiare il file 
1940 \family typewriter
1941 .ui
1942 \family default
1943  in 
1944 \family typewriter
1945 LyXDir/ui/
1946 \family default
1947 .
1948  Per il momento esiste solo un file, 
1949 \family typewriter
1950 default.ui
1951 \family default
1952 , ma sentitevi liberi di sperimentare.
1953  Copiate il file che create nella directory 
1954 \family typewriter
1955 UserDir/ui/
1956 \family default
1957  e andate! Notate che, per il momento, dovete riavviare LyX per rendere
1958  effettivi i cambiamenti.
1959 \end_layout
1960
1961 \begin_layout Standard
1962
1963 La sintassi dei files 
1964 \family typewriter
1965 .ui 
1966 \family default
1967 è la seguente: date uno sguardo a 
1968 \family typewriter
1969 default.ui
1970 \family default
1971 .
1972  Le righe riferite alla barra dei menu, 
1973 \family typewriter
1974 menu
1975 \family default
1976  e 
1977 \family typewriter
1978 toolbar
1979 \family default
1980  devono terminare con un esplicito 
1981 \family typewriter
1982 end
1983 \family default
1984 .
1985  Possono poi contenere dei sottomenu, oggetti, separatori, icone e nel caso
1986  del menu 
1987 \begin_inset Quotes eld
1988 \end_inset
1989
1990 file
1991 \begin_inset Quotes erd
1992 \end_inset
1993
1994 , una riga 
1995 \family typewriter
1996 lastfiles.
1997
1998 \family default
1999  Un piccolo avvertimento.
2000  I 
2001 \family typewriter
2002 sottomenu
2003 \family default
2004  possono essere inseriti in un 
2005 \family typewriter
2006 menubar
2007 \family default
2008  o 
2009 \family typewriter
2010 menu
2011 \family default
2012 , ma sono sempre definiti come 
2013 \family typewriter
2014 menus
2015 \family default
2016  non come 
2017 \family typewriter
2018 submenu
2019 \family default
2020 .
2021 \end_layout
2022
2023 \begin_layout Section
2024
2025 Convertitori, Formati e Visualizzatori
2026 \end_layout
2027
2028 \begin_layout Standard
2029
2030 LyX ha un nuovo e potente meccanismo per convertire da e verso ogni formato
2031  di file utilizzando programmi esterni.
2032  Prendiamo un paio di formati, ad es.
2033  
2034 \family typewriter
2035 LaTeX
2036 \family default
2037  e 
2038 \family typewriter
2039 PDF
2040 \family default
2041 .
2042  Ora definiamo un convertitore da un formato all'altro.
2043  Nel nostro esempio ci sono due possibili meccanismi.
2044 \end_layout
2045
2046 \begin_layout Enumerate
2047
2048 Una conversione diretta, da LaTeX a PDF usando pdflatex
2049 \end_layout
2050
2051 \begin_layout Enumerate
2052
2053 Una via più contorta attraverso formati e convertitori intermedi: LaTeX
2054  a DVI (usando latex) a PostScript® (usando dvips) a PDF (usando ps2pdf)
2055 \end_layout
2056
2057 \begin_layout Standard
2058
2059 LyX sceglierà sempre la via più veloce, così dovrete specificare due differenti
2060  nomi di Format per i files 
2061 \family typewriter
2062 .pdf 
2063 \family default
2064 per poterli usare entrambi.
2065  Entrambi sono inclusi di default nel menu 
2066 \family sans
2067 Preferences
2068 \family default
2069 .
2070  Date un'occhiata e poi createne dei vostri!
2071 \end_layout
2072
2073 \begin_layout Standard
2074
2075 Inoltre, ogni Format può essere visto con un Viewer associato ad esso.
2076  Ad esempio, potreste voler usare 
2077 \family typewriter
2078 ghostview
2079 \family default
2080  per esaminare i files PostScript®.
2081 \end_layout
2082
2083 \begin_layout Standard
2084
2085 [
2086 \emph on
2087 Nota dell'autore: Questa sezione probabilmente ha bisogno di essere espansa,
2088  ma sostituisce completamente la prossima.
2089  In più, non sono sicuro di quanto importanti siano ancora le sezioni Stampante
2090  e Cambiare Colori.
2091  La sezione Ascii-Export è ancora importante, sebbene ha bisogno di essere
2092  usata per differenziare l'approccio lyxrc da quello del menu Preference.
2093  --- AL
2094 \emph default
2095 ].
2096 \end_layout
2097
2098 \begin_layout Section
2099
2100 Anteprima sullo schermo
2101 \end_layout
2102
2103 \begin_layout Standard
2104
2105 Oltre alla normale visualizzazione dei documenti attraverso LyX, è possibile
2106  avere un'anteprima del vostro documento nella forma in cui apparirà sulla
2107  carta dopo stampato.
2108  Di default LyX usa 
2109 \family typewriter
2110 xdvi
2111 \family default
2112  per l'anteprima dei files .
2113 \family typewriter
2114 dvi
2115 \family default
2116  (l'output di LaTeX).
2117 \end_layout
2118
2119 \begin_layout Standard
2120
2121 LyX può anche usare 
2122 \family typewriter
2123 dvips
2124 \family default
2125  per convertire i files 
2126 \family typewriter
2127 .dvi
2128 \family default
2129  in .
2130 \family typewriter
2131 ps
2132 \family default
2133  e 
2134 \family typewriter
2135 ghostview
2136 \family default
2137  per l'anteprima.
2138  Si possono usare numerose opzioni nel file
2139 \family typewriter
2140 lyxrc
2141 \family default
2142  per personalizzare queste caratteristiche.
2143 \end_layout
2144
2145 \begin_layout Description
2146
2147
2148 \family typewriter
2149 \series medium
2150
2151 \backslash
2152 view_dvi_command
2153 \family default
2154 \series default
2155  Permette di rimpiazzare 
2156 \family typewriter
2157 xdvi
2158 \family default
2159  con altri
2160 \family typewriter
2161 .dvi
2162 \family default
2163  previewer, o per passare argomenti a 
2164 \family typewriter
2165 xdvi
2166 \family default
2167 .
2168 \end_layout
2169
2170 \begin_layout Description
2171
2172
2173 \family typewriter
2174 \series medium
2175
2176 \backslash
2177 view_ps_command
2178 \family default
2179 \series default
2180  Permette di rimpiazzare
2181 \family typewriter
2182  ghostview
2183 \family default
2184  con il vostro Post
2185 \begin_inset ERT
2186 status collapsed
2187
2188 \begin_layout Standard
2189
2190 \backslash
2191 -
2192 \end_layout
2193
2194 \end_inset
2195
2196 Script previewer preferito, oppure per passare argomenti a
2197 \family typewriter
2198  ghostview
2199 \family default
2200 .
2201 \end_layout
2202
2203 \begin_layout Description
2204
2205
2206 \family typewriter
2207 \series medium
2208
2209 \backslash
2210 view_pspic_command
2211 \family default
2212 \series default
2213  Definisce il programma usato per ottenere anteprime a tutto schermo delle
2214  figure PostScript®.
2215  Non è possibile includere alcuna opzione in questo tipo di settaggio.
2216 \end_layout
2217
2218 \begin_layout Description
2219
2220
2221 \family typewriter
2222 \series medium
2223
2224 \backslash
2225 ps_command
2226 \family default
2227 \series default
2228  Definisce il programma per usare le figure PostScript all'interno di un
2229  documento LyX.
2230  Non è possibile includere nessuna opzione.
2231  Se viene definita una stringa vuota (""), LyX non processerà nessuna figura.
2232  Questo può essere utile se avete una macchina lenta e lavorate con molte
2233  figure.
2234 \end_layout
2235
2236 \begin_layout Description
2237
2238
2239 \family typewriter
2240 \series medium
2241
2242 \backslash
2243 default_papersize
2244 \family default
2245 \series default
2246  Setta la grandezza della carta usata da LyX per fare l'anteprima dei documenti.
2247  Il valore di default è la carta USletter.
2248  Se LaTeX è configurato per usare una differente grandezza di default, potrete
2249  cambiare questo settaggio.
2250 \end_layout
2251
2252 \begin_layout Section
2253
2254 Opzioni ASCII-Export 
2255 \end_layout
2256
2257 \begin_layout Standard
2258
2259 Ci sono alcuni comandi che possono essere usati per 
2260 \begin_inset Quotes eld
2261 \end_inset
2262
2263 ripulire
2264 \begin_inset Quotes erd
2265 \end_inset
2266
2267  i files di testo esportati in ASCII.
2268  Notate che LyX automaticamente riconosce ed usa il miglior settaggio per
2269  il vostro sistema sin dalla fase di installazione, ma è possibile modificarli
2270  se non vi piacciono.
2271 \end_layout
2272
2273 \begin_layout List
2274 \labelwidthstring 00.00.0000
2275
2276
2277 \family typewriter
2278
2279 \backslash
2280 ascii_roff_command
2281 \family default
2282  Questo comando vi permette di settare il comando per produrre migliori
2283  tabelle ASCII con i comandi UNIX 
2284 \family typewriter
2285 groff/troff/nroff
2286 \family default
2287  (referirsi alle relative man pages per ulteriori informazioni).
2288  Non definirlo per niente dice a LyX di usare il formattatore interno (inferiore
2289 ).
2290  
2291 \end_layout
2292
2293 \begin_layout List
2294 \labelwidthstring 00.00.0000
2295
2296
2297 \family typewriter
2298
2299 \backslash
2300 ascii_linelen
2301 \family default
2302  Con questo comando potete settare la lunghezza di default della riga dell'outpu
2303 t di un file ASCII.
2304  Settarlo a 0 significa righe infinite.
2305  Il Default è 75 caratteri.
2306 \end_layout
2307
2308 \begin_layout Standard
2309
2310 Examples:
2311 \end_layout
2312
2313 \begin_layout LyX-Code
2314
2315 # This let's you generate ASCII tables with latin1
2316 \newline
2317 # characters, using the groff formatter
2318 \newline
2319 #
2320 \newline
2321
2322 \backslash
2323 ascii_roff_command groff -t -ms -Tlatin1"
2324 \newline
2325
2326 \newline
2327 # This let's you generate ASCII tables using the
2328 \newline
2329 # nroff formatter
2330 \newline
2331 #
2332 \backslash
2333 ascii_roff_command "nroff"
2334 \newline
2335 # This sets the line length to 80 characters
2336 \newline
2337 #
2338 \newline
2339
2340 \backslash
2341 ascii_linelen 80
2342 \end_layout
2343
2344 \begin_layout Section
2345
2346 Stampante
2347 \end_layout
2348
2349 \begin_layout Standard
2350
2351 Ci sono una serie di comandi che vi aiutano a settare il comando della stampante
2352  da LyX.
2353  Normalmente si usano solo alcuni di questi, ma vengono riportati tutti
2354  per questione di completezza.
2355 \end_layout
2356
2357 \begin_layout Description
2358
2359
2360 \family typewriter
2361 \series medium
2362
2363 \backslash
2364 printer
2365 \family default
2366 \series default
2367  Questo valore definisce il nome di default della vostra stampante.
2368 \end_layout
2369
2370 \begin_layout Description
2371
2372
2373 \family typewriter
2374 \series medium
2375
2376 \backslash
2377 print_command
2378 \family default
2379 \series default
2380  Questo valore definisce quale comando LyX deve essere usato per stampare
2381  il vostro documento.
2382 \end_layout
2383
2384 \begin_layout Description
2385
2386
2387 \family typewriter
2388 \series medium
2389
2390 \backslash
2391 print_evenpage_flag
2392 \family default
2393 \series default
2394  Questo valore definisce quale flag del comando di stampa comporterà la
2395  stampa delle sole pagine pari.
2396 \end_layout
2397
2398 \begin_layout Description
2399
2400
2401 \family typewriter
2402 \series medium
2403
2404 \backslash
2405 print_oddpage_flag
2406 \family default
2407 \series default
2408  Questo valore definisce quale flag del comando di stampa si occuperà di
2409  stampare solo le pagine dispari.
2410 \end_layout
2411
2412 \begin_layout Description
2413
2414
2415 \family typewriter
2416 \series medium
2417
2418 \backslash
2419 print_reverse_flag
2420 \family default
2421 \series default
2422  Con questo comando, potete definire quale comando di stampa si occuperà
2423  di stampare le pagine in ordine inverso.
2424  
2425 \end_layout
2426
2427 \begin_layout Description
2428
2429
2430 \family typewriter
2431 \series medium
2432
2433 \backslash
2434 print_landscape_flag
2435 \family default
2436 \series default
2437  Questo comando definisce quale flag è settata quando si richiede di stampare
2438  il proprio documento in landscape.
2439  se il documento è stampato in portrait, nessuna opzione è passata.
2440 \end_layout
2441
2442 \begin_layout Description
2443
2444
2445 \family typewriter
2446 \series medium
2447
2448 \backslash
2449 print_to_printer
2450 \family default
2451 \series default
2452  Se specificate un esplicito nome per la stampante, dovrete preporre questo
2453  nome con un flag dalla linea di comando della stampante.
2454  Questo comando definisce quale flag dovrebbe apparire prima del nome della
2455  stampante.
2456 \end_layout
2457
2458 \begin_layout Description
2459
2460
2461 \family typewriter
2462 \series medium
2463
2464 \backslash
2465 print_to_file
2466 \family default
2467 \series default
2468  Se volete stampare su un file, dovrete utilizzare un flag prima del nome
2469  del file.
2470  Questo comando vi permette di definire come apparirà questo flag.
2471 \end_layout
2472
2473 \begin_layout Description
2474
2475
2476 \family typewriter
2477 \series medium
2478
2479 \backslash
2480 print_file_extension
2481 \family default
2482 \series default
2483  Quando stampate su un file, con questo comando potete definire quale estensione
2484  potrà avere il file stampato.
2485 \end_layout
2486
2487 \begin_layout Description
2488
2489
2490 \family typewriter
2491 \series medium
2492
2493 \backslash
2494 print_extra_options
2495 \family default
2496 \series default
2497  Con questo comando potete definire una serie di flags che saranno inseriti
2498  nel comandi di stampa dopo gli altri flags.
2499 \end_layout
2500
2501 \begin_layout Description
2502
2503
2504 \family typewriter
2505 \series medium
2506
2507 \backslash
2508 print_spool_cmd
2509 \family default
2510 \series default
2511  Se si specifica qualcosa in questo comando, LyX stamperà in due fasi: Prima
2512  sarà eseguito il programma specificato nel comando
2513 \family typewriter
2514  
2515 \backslash
2516 print_command
2517 \family default
2518  con le direttive per stampare su un file.
2519  Poi, il comando specificato con 
2520 \family typewriter
2521
2522 \backslash
2523 print_spool_cmd
2524 \family default
2525  sarà eseguito col file di uotput col precedente comando sulla riga di comando,
2526  e, se specificato, la direttiva (
2527 \family typewriter
2528
2529 \backslash
2530 print_to_printer
2531 \family default
2532 ) per mandare l'output ad una stampante definita prima del nome del file.
2533 \end_layout
2534
2535 \begin_layout Standard
2536
2537 Tutto sommato, speriamo che questo vi permetta di stampare i vostri documenti
2538  senza problemi.
2539 \end_layout
2540
2541 \begin_layout Subsection
2542
2543 Changing Colors
2544 \end_layout
2545
2546 \begin_layout Standard
2547
2548 E' possibile cambiare i colori dello schermo usando il nuovo menu 
2549 \family sans
2550 Preferences
2551 \family default
2552 .
2553  Alternativamente, se vi sentite particolarmente perversi potete usare la
2554  funzione associabile 
2555 \family typewriter
2556 set-color
2557 \family default
2558  (vedere la 
2559 \emph on
2560 Guida di Riferimento
2561 \emph default
2562 ).
2563  L'input avrà il seguente formato:
2564 \end_layout
2565
2566 \begin_layout Standard
2567
2568
2569 \family typewriter
2570 set-color LyXName X11Color
2571 \end_layout
2572
2573 \begin_layout Standard
2574
2575 Di seguito è presentata una lista (parziale) delle funzioni e dei colori
2576  di default:
2577 \end_layout
2578
2579
2580 \begin_layout Standard
2581
2582
2583 \begin_inset VSpace 0.3cm
2584 \end_inset
2585
2586
2587 \end_layout
2588
2589 \begin_layout Standard
2590 \align center
2591
2592 \begin_inset  Tabular
2593 <lyxtabular version="3" rows="9" columns="3">
2594 <features>
2595 <column alignment="center" valignment="top" leftline="true" width="0pt">
2596 <column alignment="center" valignment="top" leftline="true" width="0pt">
2597 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2598 <row topline="true" bottomline="true">
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2600 \begin_inset Text
2601
2602 \begin_layout Standard
2603
2604
2605 \lang english
2606 Nome LyX
2607 \end_layout
2608
2609 \end_inset
2610 </cell>
2611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2612 \begin_inset Text
2613
2614 \begin_layout Standard
2615
2616
2617 \lang english
2618 Scopo
2619 \end_layout
2620
2621 \end_inset
2622 </cell>
2623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2624 \begin_inset Text
2625
2626 \begin_layout Standard
2627
2628
2629 \lang english
2630 Colore di default (X11)
2631 \end_layout
2632
2633 \end_inset
2634 </cell>
2635 </row>
2636 <row topline="true">
2637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2638 \begin_inset Text
2639
2640 \begin_layout Standard
2641
2642
2643 \lang english
2644 background
2645 \end_layout
2646
2647 \end_inset
2648 </cell>
2649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2650 \begin_inset Text
2651
2652 \begin_layout Standard
2653
2654
2655 \lang english
2656 text background
2657 \end_layout
2658
2659 \end_inset
2660 </cell>
2661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2662 \begin_inset Text
2663
2664 \begin_layout Standard
2665
2666
2667 \lang english
2668 black
2669 \end_layout
2670
2671 \end_inset
2672 </cell>
2673 </row>
2674 <row topline="true">
2675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2676 \begin_inset Text
2677
2678 \begin_layout Standard
2679
2680
2681 \lang english
2682 foreground
2683 \end_layout
2684
2685 \end_inset
2686 </cell>
2687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2688 \begin_inset Text
2689
2690 \begin_layout Standard
2691
2692
2693 \lang english
2694 text foreground
2695 \end_layout
2696
2697 \end_inset
2698 </cell>
2699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2700 \begin_inset Text
2701
2702 \begin_layout Standard
2703
2704
2705 \lang english
2706 linen
2707 \end_layout
2708
2709 \end_inset
2710 </cell>
2711 </row>
2712 <row topline="true">
2713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2714 \begin_inset Text
2715
2716 \begin_layout Standard
2717
2718
2719 \lang english
2720 latex
2721 \end_layout
2722
2723 \end_inset
2724 </cell>
2725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2726 \begin_inset Text
2727
2728 \begin_layout Standard
2729
2730
2731 \lang english
2732 LaTeX code
2733 \end_layout
2734
2735 \end_inset
2736 </cell>
2737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2738 \begin_inset Text
2739
2740 \begin_layout Standard
2741
2742
2743 \lang english
2744 DarkRed
2745 \end_layout
2746
2747 \end_inset
2748 </cell>
2749 </row>
2750 <row topline="true">
2751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2752 \begin_inset Text
2753
2754 \begin_layout Standard
2755
2756
2757 \lang english
2758 math
2759 \end_layout
2760
2761 \end_inset
2762 </cell>
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2764 \begin_inset Text
2765
2766 \begin_layout Standard
2767
2768
2769 \lang english
2770 Mathed formulae
2771 \end_layout
2772
2773 \end_inset
2774 </cell>
2775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2776 \begin_inset Text
2777
2778 \begin_layout Standard
2779
2780
2781 \lang english
2782 DarkBlue
2783 \end_layout
2784
2785 \end_inset
2786 </cell>
2787 </row>
2788 <row topline="true">
2789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2790 \begin_inset Text
2791
2792 \begin_layout Standard
2793
2794
2795 \lang english
2796 mathline
2797 \end_layout
2798
2799 \end_inset
2800 </cell>
2801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2802 \begin_inset Text
2803
2804 \begin_layout Standard
2805
2806
2807 \lang english
2808 fraction Lines, brackets, etc.
2809 \end_layout
2810
2811 \end_inset
2812 </cell>
2813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2814 \begin_inset Text
2815
2816 \begin_layout Standard
2817
2818
2819 \lang english
2820 Blue
2821 \end_layout
2822
2823 \end_inset
2824 </cell>
2825 </row>
2826 <row topline="true">
2827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2828 \begin_inset Text
2829
2830 \begin_layout Standard
2831
2832
2833 \lang english
2834 mathbag
2835 \end_layout
2836
2837 \end_inset
2838 </cell>
2839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2840 \begin_inset Text
2841
2842 \begin_layout Standard
2843
2844 \end_layout
2845
2846 \end_inset
2847 </cell>
2848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_inset Text
2850
2851 \begin_layout Standard
2852
2853
2854 \lang english
2855 AntiqueWhite
2856 \end_layout
2857
2858 \end_inset
2859 </cell>
2860 </row>
2861 <row topline="true">
2862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2863 \begin_inset Text
2864
2865 \begin_layout Standard
2866
2867
2868 \lang english
2869 mathframe
2870 \end_layout
2871
2872 \end_inset
2873 </cell>
2874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2875 \begin_inset Text
2876
2877 \begin_layout Standard
2878
2879 \end_layout
2880
2881 \end_inset
2882 </cell>
2883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2884 \begin_inset Text
2885
2886 \begin_layout Standard
2887
2888
2889 \lang english
2890 black
2891 \end_layout
2892
2893 \end_inset
2894 </cell>
2895 </row>
2896 <row topline="true" bottomline="true">
2897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2898 \begin_inset Text
2899
2900 \begin_layout Standard
2901
2902
2903 \lang english
2904 selection
2905 \end_layout
2906
2907 \end_inset
2908 </cell>
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2910 \begin_inset Text
2911
2912 \begin_layout Standard
2913
2914
2915 \lang english
2916 selection background
2917 \end_layout
2918
2919 \end_inset
2920 </cell>
2921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2922 \begin_inset Text
2923
2924 \begin_layout Standard
2925
2926
2927 \lang english
2928 LightBlue
2929 \end_layout
2930
2931 \end_inset
2932 </cell>
2933 </row>
2934 </lyxtabular>
2935
2936 \end_inset
2937
2938
2939 \end_layout
2940
2941 \begin_layout Standard
2942
2943
2944 \begin_inset VSpace 0.3cm
2945 \end_inset
2946
2947
2948 \end_layout
2949
2950
2951 \begin_layout Standard
2952
2953 La lista completa si trova correntemente solo nel file sorgente LColor.C
2954 \end_layout
2955
2956 \begin_layout Section
2957
2958 TeX
2959 \end_layout
2960
2961 \begin_layout Standard
2962
2963 Alcuni siti
2964 \begin_inset Foot
2965 status collapsed
2966
2967 \begin_layout Standard
2968
2969
2970 \emph on
2971 come la mia macchina da ufficio -- Dave johnson
2972 \end_layout
2973
2974 \end_inset
2975
2976  hanno ancora la versione 2.09 di LaTeX.
2977  Sebbene non possiamo immaginare perchè questo dovrebbe essere ancora il
2978  default dato che la versione 2.09, essendo questa obsoleta dal 1994, dovremo
2979  comunque continuare a riferirci con LyX a tale ambiente.
2980  Non bisogna 
2981 \emph on
2982 pensare
2983 \emph default
2984  però ad un 
2985 \begin_inset Quotes eld
2986 \end_inset
2987
2988 fixing
2989 \begin_inset Quotes erd
2990 \end_inset
2991
2992  di LyX per girare sotto LaTeX 2.09.
2993  Aggiornare il vostro LaTeX sarà più facile, ed è comunque la soluzione
2994  migliore.
2995  Molti grandi sistemi dovrebbero avere, anche se di default hanno la 2.09,
2996  una versione disponibile di LaTeX2, ma forse l'eseguibile potrebbe avere
2997  un altro nome.
2998  Potete cambiare il nome del comando LaTeX appropriato, come ad esempio
2999  
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003
3004 \family typewriter
3005 \emph toggle
3006 lyxrc
3007 \family default
3008 \emph default
3009  
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013
3014 \begin_inset Foot
3015 status collapsed
3016
3017 \begin_layout Standard
3018
3019
3020 \emph on
3021 come la mia macchina da ufficio -- Dave johnson
3022 \end_layout
3023
3024 \end_inset
3025
3026 con la linea:
3027 \end_layout
3028
3029 \begin_layout LyX-Code
3030
3031
3032 \backslash
3033 latex_command latex2e
3034 \end_layout
3035
3036 \begin_layout Standard
3037
3038 nel vostro file 
3039 \family typewriter
3040 lyxrc
3041 \family default
3042 .
3043  Al momento dell'installazione, LyX proverà a rilevare automaticamente se
3044  questo settaggio è necessario, quindi normalmente, non ve ne dovrete preoccupar
3045 e.
3046 \end_layout
3047
3048 \begin_layout Section
3049
3050 I settaggi autorilevati
3051 \end_layout
3052
3053 \begin_layout Standard
3054
3055
3056 \begin_inset LatexCommand \label{sec:autodetected}
3057
3058 \end_inset
3059
3060 Ci sono numerosi oggetti che sono rilevati quando lanciate 
3061 \family sans
3062 \bar under
3063 O
3064 \bar default
3065 ptions
3066 \bar under
3067 \SpecialChar \menuseparator
3068 R
3069 \bar default
3070 econfigure.
3071
3072 \bar under
3073  
3074 \family default
3075 \bar default
3076 In questa sezione elencheremo quelle che si riferiscono a 
3077 \family typewriter
3078 lyxrc
3079 \family default
3080 .
3081  Quello che segue, tutte le chiamate 
3082 \family typewriter
3083 *_command
3084 \family default
3085  sono sono settete a 
3086 \begin_inset Quotes eld
3087 \end_inset
3088
3089 niente
3090 \begin_inset Quotes erd
3091 \end_inset
3092
3093  se non viene stato trovato il comando opportuno.
3094  In questo caso, la corrispondente funzione non è disponibile.
3095 \end_layout
3096
3097 \begin_layout Description
3098
3099
3100 \family typewriter
3101 \series medium
3102
3103 \backslash
3104 latex_command
3105 \family default
3106 \series default
3107  è settato su un processore LaTeX2e valido (programmi testati sono 
3108 \family typewriter
3109 latex
3110 \family default
3111  e 
3112 \family typewriter
3113 latex2e
3114 \family default
3115 ).
3116 \end_layout
3117
3118 \begin_layout Description
3119
3120
3121 \family typewriter
3122 \series medium
3123
3124 \backslash
3125 ps_command
3126 \family default
3127 \series default
3128  è settato su
3129 \family typewriter
3130  gs
3131 \family default
3132  se avete Ghostscript installato.
3133 \end_layout
3134
3135 \begin_layout Description
3136
3137
3138 \family typewriter
3139 \series medium
3140
3141 \backslash
3142 view_ps_command
3143 \family default
3144 \series default
3145  è settato su 
3146 \family typewriter
3147 gv
3148 \family default
3149  o 
3150 \family typewriter
3151 ghostview
3152 \family default
3153  se sono stati trovati nel sistema (
3154 \family typewriter
3155
3156 \backslash
3157 view_pspic_command
3158 \family default
3159  è settato per usare lo stesso programma).
3160 \end_layout
3161
3162 \begin_layout Description
3163
3164
3165 \family typewriter
3166 \series medium
3167
3168 \backslash
3169 ascii_roff_command
3170 \family default
3171 \series default
3172  usa 
3173 \family typewriter
3174 groff
3175 \family default
3176  oppure 
3177 \family typewriter
3178 nroff
3179 \family default
3180 +
3181 \family typewriter
3182 tbl
3183 \family default
3184 , a seconda di quello disponibile.
3185 \end_layout
3186
3187 \begin_layout Description
3188
3189
3190 \family typewriter
3191 \series medium
3192
3193 \backslash
3194 chktex_command
3195 \family default
3196 \series default
3197  è settato su 
3198 \family typewriter
3199 chktex
3200 \family default
3201  con in più una serie di opzioni.
3202 \end_layout
3203
3204 \begin_layout Description
3205
3206
3207 \family typewriter
3208 \series medium
3209
3210 \backslash
3211 fax_command
3212 \family default
3213 \series default
3214  è settato su 
3215 \family typewriter
3216 fax\InsetSpace ~
3217 send 
3218 \family default
3219 o
3220 \family typewriter
3221  sendfax
3222 \family default
3223 , che dipende da che packetto fax e stato trovato.
3224  Le necessarie opzioni del commando vengono anche aggiunti.
3225 \end_layout
3226
3227 \begin_layout Description
3228
3229
3230 \family typewriter
3231 \series medium
3232
3233 \backslash
3234 print_spool_command
3235 \family default
3236 \series default
3237  viene settato to 
3238 \family typewriter
3239 lp
3240 \family default
3241  su sistmi (chiamati System V) che hanno questo commando e 
3242 \family typewriter
3243 lpr
3244 \family default
3245  altrimenti (sistemi BSD).
3246 \end_layout
3247
3248 \begin_layout Description
3249
3250
3251 \family typewriter
3252 \series medium
3253
3254 \backslash
3255 print_spool_printerprefix
3256 \family default
3257 \series default
3258  viene settato a
3259 \family typewriter
3260  -d o su -p
3261 \family default
3262  a seconda della presenza di 
3263 \family typewriter
3264 lp
3265 \family default
3266  o 
3267 \family typewriter
3268 lpr
3269 \family default
3270 .
3271 \end_layout
3272
3273 \begin_layout Description
3274
3275
3276 \family typewriter
3277 \series medium
3278
3279 \backslash
3280 font_encoding
3281 \family default
3282 \series default
3283  è settato su 
3284 \family typewriter
3285 T1
3286 \family default
3287  se i fonts 
3288 \family typewriter
3289 ec
3290 \family default
3291  sono rilevati e LaTeX ha un supporto interno per questi fonts.
3292  Potete settarli manualmente se avete i cosiddetti fonts 
3293 \family typewriter
3294 dc
3295 \family default
3296 .
3297  
3298 \end_layout
3299
3300 \begin_layout Section
3301
3302 Il resto 
3303 \end_layout
3304
3305 \begin_layout Standard
3306
3307 Ci sono molti altri comandi 
3308 \family typewriter
3309 lyxrc
3310 \family default
3311  che possono essere usati per personalizzare il comportamento di LyX.
3312  Abbiamo attualmente ancora necessità di documentarli in questa sede, ma
3313  ancora, il file 
3314 \family typewriter
3315 lyxrc.example
3316 \family default
3317  è riccamente commentato, così consigliamo di dare un'occhiata per avere
3318  un'idea di quello che potete personalizzare.
3319  Potete infine tentare la fortuna nella 
3320 \emph on
3321 Guida di RIferimento,
3322 \emph default
3323  ma non ci sono garanzie dato che è molto difficile tenerla aggiornata.
3324 \end_layout
3325
3326 \begin_layout Chapter
3327
3328 Il Server LyX
3329 \end_layout
3330
3331 \begin_layout Section
3332
3333 Introduzione
3334 \end_layout
3335
3336 \begin_layout Standard
3337
3338 Il server LyX è un metodo implementato in LyX che abilita altri programmi
3339  a parlare con LyX, a chiamare comandi LyX e ad ottenere informazioni sullo
3340  stato interno di LyX.
3341  E' uno strumento principalmente indirizzato ad utenti esperti, che dovrebbero
3342  trovarlo utile.
3343 \end_layout
3344
3345 \begin_layout Section
3346
3347 Iniziare il Server LyX
3348 \end_layout
3349
3350 \begin_layout Standard
3351
3352 Il server LyX lavora attraverso l'uso di un paio di canali.
3353  Queste sono di solito locate nella vostra directory home e si chiamano
3354  
3355 \begin_inset Quotes eld
3356 \end_inset
3357
3358
3359 \family typewriter
3360 .lyxpipe.in
3361 \family default
3362
3363 \begin_inset Quotes erd
3364 \end_inset
3365
3366  e 
3367 \begin_inset Quotes eld
3368 \end_inset
3369
3370
3371 \family typewriter
3372 .lyxpipe.out
3373 \family default
3374
3375 \begin_inset Quotes erd
3376 \end_inset
3377
3378 .
3379  I programmi esterni vanno a scrivere in 
3380 \family typewriter
3381 .lyxpipe.in
3382 \family default
3383  e legge i dati da 
3384 \family typewriter
3385 .lyxpipe.out
3386 \family default
3387 .
3388  L'inizio di questi canali può essere specificato nel file 
3389 \family typewriter
3390 lyxrc
3391 \family default
3392  aggiungendo una linea del tipo:
3393 \end_layout
3394
3395 \begin_layout LyX-Code
3396
3397
3398 \backslash
3399 serverpipe "/home/myhome/.lyxpipe"
3400 \end_layout
3401
3402 \begin_layout Standard
3403
3404 LyX aggiungerà '
3405 \family typewriter
3406 .in
3407 \family default
3408 ' and '
3409 \family typewriter
3410 .out
3411 \family default
3412 ' per creare i canali.
3413  La precedente riga ha inoltre l'effetto di attivare il server LyX.
3414  se uno dei canali già esiste, LyX assumerà che c'è un altro processo LyX
3415  in esecuzione e non lascerà partire il server.
3416  Per avere molti processi LyX con rispettivi servers in contemporanea, dovete
3417  cambiare il 
3418 \family typewriter
3419 lyxrc
3420 \family default
3421  tra gli inizi dei programmi.
3422 \end_layout
3423
3424 \begin_layout Standard
3425
3426 Se state sviluppando un programma client, potreste trovare utile abilitare
3427  una modalità di debugging dal server LyX.
3428  Potete farlo facendo partire LyX con 
3429 \family typewriter
3430 lyx -dbg 8192.
3431 \end_layout
3432
3433 \begin_layout Standard
3434
3435 Attenzione: se LyX va in crash, non può gestire la rimozione dei canali,
3436  e quindi bisognerà farlo manualmente.
3437  Se LyX parte e i canali sono già esistenti, non farà partire alcun server.
3438 \end_layout
3439
3440 \begin_layout Standard
3441
3442 Oltre a questo, ci sono alcuni punti da considerare:
3443 \end_layout
3444
3445 \begin_layout Itemize
3446
3447 Sia il server che i clients devono girare su macchine UNIX o OS/2.
3448  Le comunicazioni tra LyX su UNIX e i clients su OS/2 o viceversa non sono
3449  attualmente possibili.
3450 \end_layout
3451
3452 \begin_layout Itemize
3453
3454 Su OS/2, solo un client per volta può connettersi al server LyX.
3455 \end_layout
3456
3457 \begin_layout Itemize
3458
3459 Su OS/2, i clients devono aprire il canale d'ingresso in modalità 
3460 \family typewriter
3461 O_WRONLY
3462 \family default
3463 .
3464 \end_layout
3465
3466 \begin_layout Standard
3467
3468 Potete trovare degli esempi completi scritti in C nella distribuzione dei
3469  codici come 
3470 \family typewriter
3471 development/server_monitor.c
3472 \family default
3473 .
3474 \end_layout
3475
3476 \begin_layout Section
3477
3478 Comunicazione normale
3479 \end_layout
3480
3481 \begin_layout Standard
3482
3483 Per assegnare una chiamata LyX, il client scrive una riga di codice ASCII
3484  nel canale di input.
3485  Questa linea ha il seguente formato:
3486 \end_layout
3487
3488 \begin_layout Quote
3489
3490 LYXCMD:
3491 \emph on
3492 clientname
3493 \emph default
3494 :
3495 \emph on
3496 function
3497 \emph default
3498 :
3499 \emph on
3500 argument
3501 \end_layout
3502
3503 \begin_layout Standard
3504
3505 In questo caso 
3506 \emph on
3507 clientname
3508 \emph default
3509  è un nome che il client può scegliere arbitrariamente.
3510  Il suo unico uso è che LyX gli risponderà se questi manda una risposta
3511  - così un client può mandare risultati da differenti richiedenti.
3512 \end_layout
3513
3514 \begin_layout Standard
3515
3516
3517 \emph on
3518 function
3519 \emph default
3520  è la funzione che volete che LyX esegua.
3521  E' lo stesso dei comandi che dovreste usare in minibuffer.
3522 \end_layout
3523
3524 \begin_layout Standard
3525
3526
3527 \emph on
3528 argument
3529 \emph default
3530  è un argomento opzionale rilevante solo per alcune funzioni ( ad esempio
3531  
3532 \begin_inset Quotes eld
3533 \end_inset
3534
3535 auto-inserimento
3536 \begin_inset Quotes erd
3537 \end_inset
3538
3539  che inserisce l'argomento come testo nella posizione del cursore.)
3540 \end_layout
3541
3542 \begin_layout Quote
3543
3544 La risposta da LyX arriverà nel canale di output e sarà del tipo
3545 \end_layout
3546
3547 \begin_layout Quote
3548
3549 INFO:
3550 \emph on
3551 clientname
3552 \emph default
3553 :
3554 \emph on
3555 function
3556 \emph default
3557 :
3558 \emph on
3559 data
3560 \end_layout
3561
3562 \begin_layout Standard
3563
3564 Dove
3565 \emph on
3566  clientname
3567 \emph default
3568  e 
3569 \emph on
3570 function
3571 \emph default
3572  sono richiamati dalla richiesta di comando, mentre 
3573 \emph on
3574 data
3575 \emph default
3576  è un'informazione più o meno utile a seconda dell'esecuzione del comando.
3577  Alcuni comandi restituiscono informazioni circa lo stato interno di LyX,
3578  come il 
3579 \begin_inset Quotes eld
3580 \end_inset
3581
3582 font-state
3583 \begin_inset Quotes erd
3584 \end_inset
3585
3586 , mentre altri restituiscono risposte 
3587 \begin_inset Quotes eld
3588 \end_inset
3589
3590 vuote
3591 \begin_inset Quotes erd
3592 \end_inset
3593
3594 .
3595  Questo significa che l'esecuzione del comando ha avuto fine.
3596 \end_layout
3597
3598 \begin_layout Standard
3599
3600 In caso di errori, la risposta da LyX avrà questa forma
3601 \end_layout
3602
3603 \begin_layout Quote
3604
3605 ERROR:
3606 \emph on
3607 clientname
3608 \emph default
3609 :
3610 \emph on
3611 function
3612 \emph default
3613 :
3614 \emph on
3615 error message
3616 \end_layout
3617
3618 \begin_layout Standard
3619
3620 dover l'
3621 \emph on
3622 error message
3623 \emph default
3624  dovrebbe contenere la spiegazione del perchè il comando è fallito.
3625 \end_layout
3626
3627 \begin_layout Standard
3628
3629 Esempi:
3630 \end_layout
3631
3632 \begin_layout LyX-Code
3633
3634 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
3635 \end_layout
3636
3637 \begin_layout LyX-Code
3638
3639 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
3640 \newline
3641 read a <~/.lyxpipe.out
3642 \newline
3643 echo $a
3644 \end_layout
3645
3646 \begin_layout Section
3647
3648 Notifica
3649 \end_layout
3650
3651 \begin_layout Standard
3652
3653 LyX può notificare ai clients gli eventi asincroni.
3654  Correntemente lo farà soltanto se l'utente assegna una sequenza di tasti
3655  alla funzione 
3656 \begin_inset Quotes eld
3657 \end_inset
3658
3659 notifica
3660 \begin_inset Quotes erd
3661 \end_inset
3662
3663 .
3664 \end_layout
3665
3666 \begin_layout Standard
3667
3668 Il formato della stringa che LyX manda è:
3669 \end_layout
3670
3671 \begin_layout Quote
3672
3673
3674 \family typewriter
3675 NOTIFY:
3676 \family default
3677 \emph on
3678 key-sequence
3679 \end_layout
3680
3681 \begin_layout Standard
3682
3683 dove 
3684 \emph on
3685 key-sequence
3686 \emph default
3687  è la rappresentazione stampata della sequenza di tasti premuta dall'utente.
3688 \end_layout
3689
3690 \begin_layout Standard
3691
3692 Questo meccanismo può essere usato per estendere il set di comandi LyX ed
3693  implementare macro: assegnare una sequenza di tasti a 
3694 \begin_inset Quotes eld
3695 \end_inset
3696
3697 notifica
3698 \begin_inset Quotes erd
3699 \end_inset
3700
3701 , lanciare un client che ascolta sul canale d'uscita, fornisce il comando
3702  relativo alla sequenza e inizia una funzione che può usare le chiamate
3703  e le richieste di LyX per assegnare un comando o una serie di comandi a
3704  LyX.
3705 \end_layout
3706
3707 \begin_layout Section
3708
3709 Il Protocollo Server LyX semplice
3710 \end_layout
3711
3712 \begin_layout Standard
3713
3714 Lyx implementa un semplice protocollo che può essere usato per la gestione
3715  delle sessioni.
3716  Tutti i messaggi sono della forma:
3717 \end_layout
3718
3719 \begin_layout Quote
3720
3721 LYXSRV:
3722 \emph on
3723 clientname
3724 \emph default
3725 :
3726 \emph on
3727 protocol message
3728 \end_layout
3729
3730 \begin_layout Standard
3731
3732 dove 
3733 \emph on
3734 protocol message
3735 \emph default
3736  può essere 
3737 \begin_inset Quotes eld
3738 \end_inset
3739
3740 hello
3741 \begin_inset Quotes erd
3742 \end_inset
3743
3744  o 
3745 \begin_inset Quotes eld
3746 \end_inset
3747
3748 bye
3749 \begin_inset Quotes erd
3750 \end_inset
3751
3752 .
3753  Se 
3754 \begin_inset Quotes eld
3755 \end_inset
3756
3757 hello
3758 \begin_inset Quotes erd
3759 \end_inset
3760
3761  è ricevuto da un client, LyX ritornerà indietro per informare il client
3762  che sta ascoltando il suo messaggio, mentre 
3763 \begin_inset Quotes eld
3764 \end_inset
3765
3766 bye
3767 \begin_inset Quotes erd
3768 \end_inset
3769
3770  mandato da LyX informa i clients che LyX sta chiudendo.
3771 \end_layout
3772
3773 \begin_layout Chapter
3774
3775 Internazionalizzare LyX
3776 \begin_inset LatexCommand \label{chap:i18n}
3777
3778 \end_inset
3779
3780
3781 \end_layout
3782
3783 \begin_layout Standard
3784
3785 LyX supporta l'uso di interfacce tradotte.
3786  L'ultima volta che abbiamo controllato, LyX forniva testi in 14 linguaggi
3787  diversi oltre l'inglese di base.
3788  Il linguaggio scelto è definito linguaggio 
3789 \emph on
3790 locale
3791 \emph default
3792 .
3793  (per ulteriori letture sui settaggi locali, riferirsi alla documentazione
3794  del vostro sistema operativo.
3795  Per Linux, le manual page di locale(5) sono un ottimo punto di partenza).
3796 \end_layout
3797
3798 \begin_layout Standard
3799
3800 Notate che queste traduzioni funzionano, ma contengono alcuni difetti.
3801  In particolare, tutti i menu di pop-up sono stati progettati in inglese,
3802  questo significa che alcune traduzioni potrebbero essere troppo grandi
3803  rispetto allo spazio ad esse assegnate in fase di progettazione.
3804  Questo è solo un problema di visualizzazione che non causa molti problemi.
3805  Inoltre, potrete notare che che molte delle traduzioni non definiscono
3806  le scorciatoie per tutto.
3807  A volte , molto semplicemente, non ci sono abbastanza lettere disponibili.
3808  Altre volte, il traduttore non lo ha ancorafatto.
3809  Cercheremo di ovviare a questi inconvenienti nelle prossime versioni di
3810  LyX.
3811 \end_layout
3812
3813 \begin_layout Section
3814
3815 Selezionare un linguaggio alternativo per l'interfaccia utente
3816 \end_layout
3817
3818 \begin_layout Standard
3819
3820 Questa possibilità è disabilitata di default, ciò significa che il testo
3821  sarà in inglese.
3822  Per abilitare un linguaggio alternativo bisogna settare la variabile ambientale
3823  appropriata.
3824  Usate 
3825 \family typewriter
3826 "setenv LANG xx"
3827 \family default
3828  per le interfacce di classe csh o 
3829 \family typewriter
3830 "export LANG=xx"
3831 \family default
3832  per la classe sh.
3833  Sostituite le 
3834 \family typewriter
3835 xx
3836 \family default
3837  con il codice di due lettere del linguaggio che volete.
3838  Ad esempio 
3839 \family typewriter
3840 no
3841 \family default
3842  è Norvegiese.
3843 \end_layout
3844
3845 \begin_layout Standard
3846
3847 Evidenetemente vorrete mettere la linea appropriata in 
3848 \family typewriter
3849 ~/.Xsession
3850 \family default
3851  or 
3852 \family typewriter
3853 ~/.xinitrc
3854 \family default
3855  in modo che la traduzione sia attivata di default.
3856  Ricordate che se LyX è configurato e compilato con 
3857 \begin_inset Quotes eld
3858 \end_inset
3859
3860
3861 \family typewriter
3862 --disable-nls
3863 \family default
3864
3865 \begin_inset Quotes erd
3866 \end_inset
3867
3868 ,questo non funzionerà.
3869 \end_layout
3870
3871 \begin_layout Section
3872
3873 Usare scorciatoie per linguaggi alternativi
3874 \end_layout
3875
3876 \begin_layout Standard
3877
3878
3879 \begin_inset ERT
3880 status collapsed
3881
3882 \begin_layout Standard
3883
3884 \backslash
3885 begin{sloppypar}
3886 \end_layout
3887
3888 \end_inset
3889
3890
3891 \end_layout
3892
3893 \begin_layout Standard
3894
3895 Una causa principale di inconsistenza nelle versioni tradotte di LyX è il
3896  fatto che tutte le scorciatoie da tastiera per le funzioni del menu sono
3897  basate sulla versione inglese del testo Ad esempio, l'entrata nel menu
3898  
3899 \family sans
3900 M-f t 
3901 \family default
3902 aprirà il popup nuovo-file-da-template.
3903  Questo è semplice da cambiare, come tutte le scorciatoie delle operazioni
3904  del menu definite nel file unico 
3905 \family typewriter
3906 LyXDir/bind/menus.bind
3907 \family default
3908 .
3909  Ogni utente può avere la propria copia di questo file nella propria directory
3910  privata 
3911 \family typewriter
3912 ~/.lyx/bind
3913 \family default
3914 , che avrà precedenza rispetto agli altri file di sistema.
3915  In questa copia privata ognugno può facilmente cambiare le definizioni,
3916  ad esempio per la versione tedesca avremo 
3917 \family sans
3918 M-f t
3919 \family default
3920  in 
3921 \family sans
3922 M-d v
3923 \family default
3924  (per 
3925 \family sans
3926 Date\SpecialChar \menuseparator
3927 Vorlage).
3928
3929 \family default
3930  Per alcuni linguaggi, gli esempi per adattare i files 
3931 \family typewriter
3932 menus.bind
3933 \family default
3934  si possono trovare in
3935 \family sans
3936  
3937 \family typewriter
3938 LyXDir/bind/
3939 \series bold
3940 xx
3941 \series default
3942 _menus.bind
3943 \family sans
3944  (
3945 \family default
3946 \series bold
3947 xx
3948 \series default
3949  è il codice del linguaggio).
3950  Questi, se esistono (e se il vostro settaggio locale è 
3951 \family typewriter
3952 $LANG=
3953 \series bold
3954 xx
3955 \family default
3956 \series default
3957 ), saranno automaticamente usati da LyX.
3958 \end_layout
3959
3960 \begin_layout Standard
3961
3962
3963 \begin_inset ERT
3964 status collapsed
3965
3966 \begin_layout Standard
3967
3968 \backslash
3969 end{sloppypar}
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \end_layout
3976
3977 \begin_layout Standard
3978
3979 Dovete fare attenzione a che le nuove definizioni per le scorciatoie non
3980  coincidano con altre prima definite.
3981  Ad esempio, l'associazione 
3982 \family sans
3983 M-d v
3984 \family default
3985  genererà un errore per quelli che usano 
3986 \family typewriter
3987 (x)emacs.bind
3988 \family default
3989 , dove 
3990 \family sans
3991 M-d
3992 \family default
3993  è unito a 
3994 \family typewriter
3995 word-delete-forward
3996 \family default
3997 .
3998 \end_layout
3999
4000 \begin_layout Standard
4001
4002 Dalla versione 1.0 di LyX, i nomi tradotti per i menu top level (tradotti
4003  nei files 
4004 \begin_inset Quotes eld
4005 \end_inset
4006
4007 po
4008 \begin_inset Quotes erd
4009 \end_inset
4010
4011 ) sono usati dal meccanismo di assegnazione, quindi il menu 
4012 \emph on
4013 tradotto
4014 \emph default
4015  deve essere usato nel 
4016 \family typewriter
4017 menus.bind
4018 \family default
4019  tradotto.
4020 \end_layout
4021
4022 \begin_layout Section
4023
4024 Tradurre LyX
4025 \end_layout
4026
4027 \begin_layout Subsection
4028
4029 Tradurre l'interfaccia grafica utente (messaggi di testo).
4030 \end_layout
4031
4032 \begin_layout Standard
4033
4034 LyX usa la libreria GNU gettext per gestire l'internazionalizzazione dell'interf
4035 accia.
4036  Per far parlare a LyX il vostro linguaggio preferito in tutti i menu e
4037  le caselle di diagolo, avete bisogno di un po-file per quel determinato
4038  linguaggio.
4039  Quando questo è reperibile, dovrete creare da questi un mo-file ed installarlo.
4040  Tutti i passaggi necessari ad eseguire questa operazione sono spiegati
4041  nella documentazione di GNU gettext, ma, in breve, questo è quello che
4042  dovete fare (
4043 \series bold
4044 xx
4045 \series default
4046  rappresenta il codice del linguaggio):
4047 \end_layout
4048
4049 \begin_layout Standard
4050
4051
4052 \begin_inset ERT
4053 status collapsed
4054
4055 \begin_layout Standard
4056
4057 \backslash
4058 begin{sloppypar}
4059 \end_layout
4060
4061 \end_inset
4062
4063
4064 \end_layout
4065
4066 \begin_layout Itemize
4067
4068 Copiare 
4069 \family typewriter
4070 LYX-SOURCE-DIR/po/lyx.pot
4071 \family default
4072  in 
4073 \series bold
4074 xx
4075 \family typewriter
4076 \series default
4077 .po
4078 \family default
4079  (se 
4080 \family typewriter
4081 lyx.pot
4082 \family default
4083  non esiste, può essere rifatto con
4084 \family typewriter
4085  make lyx.pot
4086 \family default
4087  in quella directory, oppure potete usare un po-file esistente per altri
4088  linguaggi come se fosse un template).
4089 \end_layout
4090
4091 \begin_layout Itemize
4092
4093 Editare 
4094 \family typewriter
4095 xx.po
4096 \family default
4097
4098 \begin_inset Foot
4099 status collapsed
4100
4101 \begin_layout Standard
4102
4103 Raccomandiamo di usare Emacs per fare questo, dato che la distribuzione
4104  gettext include un appropriato supporto.
4105 \end_layout
4106
4107 \end_inset
4108
4109 .
4110  Per alcune etichette di menu, ci sono anche scorciatoie da tastiera che
4111  dovrebbero essere tradotte.
4112  Questi tasti sono segnati dopo un `
4113 \family typewriter
4114 |
4115 \family default
4116 ', e dovrebbero essere tradotti in relazione alle parole e alle frasi del
4117  linguaggio 
4118 \series bold
4119 xx
4120 \series default
4121 .
4122  C'è uno strumento chiamato 
4123 \family typewriter
4124 scgen.pl
4125 \family default
4126  scritto in Prolog in 
4127 \family typewriter
4128 LYX-SOURCE-DIR/development/tools/
4129 \family default
4130  che può essere utile per creare determinate scorciatoie.
4131  Notate che XForms (almeno la versione 0.86) non può manipolare altro che
4132  scorciatoie di caratteri di 7 bit.
4133  Dovreste inoltre aggiungere delle informazioni all'inizio del nuovo file
4134  po come il vostro indirizzo email ecc, cosi gli altri sanno dove possono
4135  rintracciarvi.
4136 \end_layout
4137
4138 \begin_layout Itemize
4139
4140 Create 
4141 \series bold
4142 xx
4143 \family typewriter
4144 \series default
4145 .mo
4146 \family default
4147 .
4148  Questo può essere fatto con
4149 \newline
4150
4151 \family typewriter
4152 msgfmt -o 
4153 \family default
4154 \series bold
4155 xx
4156 \family typewriter
4157 \series default
4158 .mo < 
4159 \family default
4160 \series bold
4161 xx
4162 \family typewriter
4163 \series default
4164 .po
4165 \end_layout
4166
4167 \begin_layout Itemize
4168
4169 Copiare ilfile mo nella vostra directory locale, precisamente nella dirctory
4170  dei messaggi dell'applicazione per il linguaggio 
4171 \series bold
4172 xx
4173 \series default
4174 , e, sotto il nome
4175 \family typewriter
4176  lyx.mo
4177 \family default
4178
4179 \newline
4180 (es.
4181  
4182 \family typewriter
4183 /usr/local/share/locale/
4184 \family default
4185 \series bold
4186 xx
4187 \family typewriter
4188 \series default
4189 /LC_MESSAGES/lyx.mo
4190 \family default
4191 )
4192 \end_layout
4193
4194 \begin_layout Standard
4195
4196
4197 \begin_inset ERT
4198 status collapsed
4199
4200 \begin_layout Standard
4201
4202 \backslash
4203 end{sloppypar}
4204 \end_layout
4205
4206 \end_inset
4207
4208
4209 \end_layout
4210
4211 \begin_layout Standard
4212
4213 Aggiungere un nuovo file po alla 
4214 \emph on
4215 distribuzion
4216 \emph default
4217 e di LyX comprende il cambiamento degli script di configurazione ed oltre,
4218  ma per come lavora gettext, attualmente non avete bisogno di codice LyX
4219  per tradurlo---se si ha 
4220 \family typewriter
4221 lyx.pot
4222 \family default
4223  (o un file po esistente), bastano gli strumenti di gettext.
4224 \end_layout
4225
4226 \begin_layout Standard
4227
4228 Se avete scritto un file di traduzione per un linguaggio che attualmente
4229  LyX non supporta, ritenetevi liberi di introdurlo magari mandando una patch.
4230  In questo caso vi raccomandiamo di leggere il README della directory 
4231 \family typewriter
4232 LYX-SOURCE-DIR/po/
4233 \family default
4234  per ulteriori informazioni.
4235 \end_layout
4236
4237 \begin_layout Subsection
4238
4239 Tradurre la documentazione.
4240 \end_layout
4241
4242 \begin_layout Standard
4243
4244 La documentazione online (nel menu 
4245 \family sans
4246 Help) 
4247 \family default
4248 può (e dovrebbe!) essere tradotto.
4249  Se ci sono versioni tradotte della documentazione disponibile
4250 \begin_inset Foot
4251 status collapsed
4252
4253 \begin_layout Standard
4254
4255 Ad Aprile 1999, quasi tutti i documenti sono stati tradotti in tedesco.
4256  Il tutorial è stato tradotto in francese, polacco, portoghese e svedese,
4257  con altre traduzioni in corso.
4258  La libreria dei documenti tradotti cresce rapidamente.
4259 \end_layout
4260
4261 \end_inset
4262
4263 , e il locale è adeguatamente settato, queste saranno usate automaticamente
4264  da LyX.
4265  LyX cerca di tradurre le versioni come 
4266 \family typewriter
4267 LyXDir/doc/
4268 \series bold
4269 xx
4270 \series default
4271 _DocName.lyx
4272 \family default
4273 , dove 
4274 \family typewriter
4275 \series bold
4276 xx
4277 \family default
4278 \series default
4279  indica il linguaggio settato dalla variabile ambientale 
4280 \family typewriter
4281 $LANG
4282 \family default
4283 .
4284  Se non c'è nulla, sarà mostrato il linguaggio di default ovvero l'inglese.
4285  Notate che le versioni tradotte devono avere gli stessi nomi dei files
4286  come gli originali (
4287 \family typewriter
4288 DocName
4289 \family default
4290  di cui sopra).
4291  Se ve la sentite di tradurre la documentazione (un buon modo per leggersi
4292  la documentazione originale BTW!), ci sono alcune cose che dovreste fare:
4293 \end_layout
4294
4295 \begin_layout Itemize
4296
4297 Leggere 
4298 \family typewriter
4299 DocStyle.lyx
4300 \family default
4301 , la guida per scrivere documentazione su LyX.
4302  Fare molta attenzione alla sezione traduzioni.
4303 \end_layout
4304
4305 \begin_layout Itemize
4306
4307 Controllare la pagina web delle traduzioni 
4308 \begin_inset LatexCommand \url[The LyX Developer's Web Site]{http://www.devel.lyx.org}
4309
4310 \end_inset
4311
4312 .
4313  In questo modo potete trovare (se ce ne sono) i documenti tradotti e quelli
4314  da tradurre.
4315  Inoltre troverete un responsabile organizzatore (se c'è) che vi aiutera
4316  nella vostra opera.
4317  Se non c'è un organizzatore fateci sapere se siete interessati.
4318 \end_layout
4319
4320 \begin_layout Standard
4321
4322 Una volta che iniziate a tradurre ci sono alcune cose che dovete ricordare:
4323 \end_layout
4324
4325 \begin_layout Itemize
4326
4327 Unirvi al team di documentazione! Ci sono informazioni su come farlo in
4328  
4329 \family typewriter
4330 Intro.lyx
4331 \family default
4332  (
4333 \family sans
4334 Help\SpecialChar \-
4335  paese.
4336  Inventare una vostra propria terminologia potrebbe solo creare confusione
4337  al lettore.
4338  
4339 \emph on
4340 (
4341 \family default
4342 Attenzione! La tipografia da assuefazione!
4343 \family sans
4344 )
4345 \end_layout
4346
4347 \begin_layout Itemize
4348
4349 Fate una copia del documento.
4350  Questo sarà la vostra copia di lavoro.
4351  Potrete inoltre usarla come vostra copia personale tradotta mettendola
4352  nella vostra directory
4353 \family typewriter
4354  ~/.lyx/doc/
4355 \family default
4356 .
4357 \end_layout
4358
4359 \begin_layout Itemize
4360
4361 Qualche volta il documento originale (dal team LyX) viene aggiornato.
4362  Usate lo strumento CVSweb reperibile presso il sito dello sviluppatore
4363  per vedere i cambiamenti avvenuti
4364 \begin_inset Foot
4365 status collapsed
4366
4367 \begin_layout Standard
4368
4369 Alternativamente, potete procurarvi una copia dell'ultima versione del documento
4370  inglese che avete tradotto.
4371 \end_layout
4372
4373 \end_inset
4374
4375 .
4376  In questo modo potrete facilmente vedere le parti del documento che vanno
4377  aggiornate.
4378 \end_layout
4379
4380 \begin_layout Itemize
4381
4382 Se per caso trovate un errore nel documento originale, correggetelo e comunicate
4383  al documentation team i cambiamenti! (non avete dimenticato di unirvi al
4384  documentation team vero?).
4385 \end_layout
4386
4387 \begin_layout Section
4388
4389 Supporto Tastiere Internazionali
4390 \end_layout
4391
4392 \begin_layout Standard
4393
4394
4395 \emph on
4396 Nota dell'editore: la seguente sezione è a cura di Ivan Schreter.
4397  Necessita di essere corretta in relazione al nuovo Documentation Style
4398  ed al fine di utilizzare le caratteristiche della versione 1.0.
4399  Il tutto va inoltre unito con le sezioni successive.-jw
4400 \end_layout
4401
4402 \begin_layout Subsection
4403
4404 Definire una propria Mappa della Tastiera: Formato File Keymap
4405 \end_layout
4406
4407 \begin_layout Standard
4408
4409 Diamo uno sguardo al file di definizione della tastiera più da vicino.
4410  E' un file di testo ASCII che definisce
4411 \end_layout
4412
4413 \begin_layout Itemize
4414
4415 key-to-key or key-to-string translations
4416 \end_layout
4417
4418 \begin_layout Itemize
4419
4420 dead keys
4421 \end_layout
4422
4423 \begin_layout Itemize
4424
4425 dead keys exceptions
4426 \end_layout
4427
4428 \begin_layout Standard
4429
4430 Per definire una traduzione tasto a tasto o tasto a stringa, usare questo
4431  comando:
4432 \end_layout
4433
4434 \begin_layout Quotation
4435
4436
4437 \family typewriter
4438
4439 \backslash
4440 kmap
4441 \family default
4442 \emph on
4443  
4444 \family typewriter
4445 \emph default
4446 key
4447 \emph on
4448  
4449 \emph default
4450 outstring
4451 \end_layout
4452
4453 \begin_layout Standard
4454
4455 dove 
4456 \family typewriter
4457 key
4458 \family default
4459  è il tasto che deve essere tradotto e 
4460 \family typewriter
4461 outstring
4462 \family default
4463  è la stringa che deve essere inserita nel documento.
4464  P er definire i tasti morti, usare:
4465 \end_layout
4466
4467 \begin_layout Quotation
4468
4469
4470 \family typewriter
4471
4472 \backslash
4473 kmod
4474 \family default
4475  
4476 \family typewriter
4477 key
4478 \family default
4479  
4480 \family typewriter
4481 deadkey
4482 \end_layout
4483
4484 \begin_layout Standard
4485
4486 dove 
4487 \family typewriter
4488 key
4489 \family default
4490  è il tasto della tastiera e
4491 \family typewriter
4492  
4493 \emph on
4494 deadkey
4495 \family default
4496 \emph toggle
4497  è il nome del tasto morto.
4498  Sono supportati i seguenti tasti morti (le scorciatoie sono tra parentesi):
4499 \end_layout
4500
4501 \begin_layout Quotation
4502
4503
4504 \emph on
4505 Name
4506 \hfill
4507 Example
4508 \end_layout
4509
4510 \begin_layout Quotation
4511
4512 acute (acu)
4513 \hfill
4514 áéíóú
4515 \end_layout
4516
4517 \begin_layout Quotation
4518
4519 grave (gra)
4520 \hfill
4521 àèìòù
4522 \end_layout
4523
4524 \begin_layout Quotation
4525
4526 macron (mac)
4527 \hfill
4528  \i \={o}
4529
4530 \end_layout
4531
4532 \begin_layout Quotation
4533
4534 tilde (til)
4535 \hfill
4536 ñÑ
4537 \end_layout
4538
4539 \begin_layout Quotation
4540
4541 underbar (underb)
4542 \hfill
4543
4544 \begin_inset ERT
4545 status collapsed
4546
4547 \begin_layout Standard
4548
4549 \backslash
4550 b o
4551 \end_layout
4552
4553 \end_inset
4554
4555
4556 \end_layout
4557
4558 \begin_layout Quotation
4559
4560 cedilla (ced)
4561 \hfill
4562 çÇ
4563 \end_layout
4564
4565 \begin_layout Quotation
4566
4567 underdot (underd)
4568 \hfill
4569
4570 \begin_inset ERT
4571 status collapsed
4572
4573 \begin_layout Standard
4574
4575 \backslash
4576 d o
4577 \end_layout
4578
4579 \end_inset
4580
4581
4582 \end_layout
4583
4584 \begin_layout Quotation
4585
4586 circumflex (circu)
4587 \hfill
4588 âêîôû
4589 \end_layout
4590
4591 \begin_layout Quotation
4592
4593 circle (circl)
4594 \hfill
4595 Å\i \r{u}
4596 \i \r{U}
4597
4598 \end_layout
4599
4600 \begin_layout Quotation
4601
4602 tie (tie)
4603 \hfill
4604
4605 \backslash
4606 t oo
4607 \end_layout
4608
4609 \begin_layout Quotation
4610
4611 breve (bre)
4612 \hfill
4613 \i \u{a}
4614
4615 \begin_inset ERT
4616 status collapsed
4617
4618 \begin_layout Standard
4619
4620 \backslash
4621 u o
4622 \end_layout
4623
4624 \end_inset
4625
4626
4627 \end_layout
4628
4629 \begin_layout Quotation
4630
4631 caron (car)
4632 \hfill
4633 \i \v{c}
4634 \i \v{s}
4635 \i \v{z}
4636
4637 \end_layout
4638
4639 \begin_layout Quotation
4640
4641 hungarian umlaut (hug)
4642 \hfill
4643 \i \H{o}
4644 \i \H{u}
4645
4646 \end_layout
4647
4648 \begin_layout Quotation
4649
4650 umlaut (uml)
4651 \hfill
4652 äöü
4653 \end_layout
4654
4655 \begin_layout Quotation
4656
4657 dot (dot)
4658 \hfill
4659 \i \.{z}
4660
4661 \begin_inset ERT
4662 status collapsed
4663
4664 \begin_layout Standard
4665
4666 \backslash
4667 .s
4668 \end_layout
4669
4670 \end_inset
4671
4672
4673 \end_layout
4674
4675 \begin_layout Standard
4676
4677 Dato che in molte tastiere internazionali ci sono delle eccezioni alle funzioni
4678  di alcuni tasti morti, potete definirli usando
4679 \end_layout
4680
4681 \begin_layout Quotation
4682
4683
4684 \family typewriter
4685
4686 \backslash
4687 kxmod
4688 \family default
4689  
4690 \family typewriter
4691 deadkey key outstring
4692 \end_layout
4693
4694 \begin_layout Standard
4695
4696 Ad esempio, sulle tastiere slovacche se immettete 
4697 \begin_inset Quotes eld
4698 \end_inset
4699
4700 caron-o
4701 \begin_inset Quotes erd
4702 \end_inset
4703
4704 , verrà scritto 
4705 \begin_inset Quotes erd
4706 \end_inset
4707
4708 circumflex-o
4709 \begin_inset Quotes erd
4710 \end_inset
4711
4712 , così dovrete cambiare
4713 \end_layout
4714
4715 \begin_layout Quotation
4716
4717
4718 \family typewriter
4719
4720 \backslash
4721 kxmod
4722 \family default
4723  
4724 \family typewriter
4725 caron o "
4726 \backslash
4727 ^o"
4728 \end_layout
4729
4730 \begin_layout Standard
4731
4732 per farlo funzionare correttamente.
4733  Inoltre, dovrete definire come eccezione i tasti morti su i e j , per rimuovere
4734  il punto prima di inserire un accento.
4735  Lo cambierò appena possibile in quanto non ho ancora avuto il tempo.
4736 \end_layout
4737
4738 \begin_layout Standard
4739
4740 Circa i caratteri, backslash non è presente, quindi per inserirlo avete
4741  bisogno del doppio backslash.
4742  Inoltre virgolette e # hanno differenti significati.
4743  # segna i commenti, le virgolette iniziano e finiscono i comandi in stile
4744  LaTeX.
4745  Per immettere le virgolette dovete usare 
4746 \family typewriter
4747
4748 \backslash
4749 "
4750 \family default
4751 , per 
4752 \family typewriter
4753 #
4754 \family default
4755 , usare 
4756 \family typewriter
4757
4758 \backslash
4759 #
4760 \family default
4761 .
4762 \end_layout
4763
4764 \begin_layout Standard
4765
4766 Se create un file di descrizione della tastiera che va bene per la vostra
4767  lingua, vi prego di mandarmelo, in modo che io possa includerlo nella prossima
4768  distribuzione delle mappe di tastiera.
4769 \end_layout
4770
4771 \begin_layout Standard
4772
4773 Molte parole chiave saranno presenti nelle future distribuzioni come: 
4774 \end_layout
4775
4776 \begin_layout Itemize
4777
4778
4779 \family typewriter
4780
4781 \backslash
4782 kinclude filename
4783 \family default
4784 \emph on
4785
4786 \hfill
4787
4788 \family typewriter
4789 \emph default
4790 include
4791 \family default
4792  un altro file
4793 \end_layout
4794
4795 \begin_layout Itemize
4796
4797
4798 \family typewriter
4799
4800 \backslash
4801 kprog program
4802 \family default
4803 \emph on
4804
4805 \hfill
4806
4807 \family typewriter
4808 \emph default
4809 define
4810 \family default
4811  un programma esterno di traduzione della tastiera 
4812 \end_layout
4813
4814 \begin_layout Standard
4815
4816 Inoltre dovrebbe apparire nel file 
4817 \family typewriter
4818 lyxrc
4819 \family default
4820  di default (ad esempio un'opzione 
4821 \family typewriter
4822
4823 \backslash
4824 kinclude
4825 \family default
4826  per includere la tastiera di default).
4827 \end_layout
4828
4829 \begin_layout Section
4830
4831 Materiale sulle tastiere internazionali
4832 \begin_inset LatexCommand \label{sec:keymap}
4833
4834 \end_inset
4835
4836
4837 \end_layout
4838
4839 \begin_layout Standard
4840
4841 Le prossime due sezioni descrivono la sintassi dei file 
4842 \family typewriter
4843 .kmap
4844 \family default
4845  e 
4846 \family typewriter
4847 .cdef
4848 \family default
4849  nel dettaglio.
4850  queste sezioni dovrebbero aiutarvi a disegnare la vostra mappa di caratteri
4851  se quelle che avete non vi soddisfano.
4852 \end_layout
4853
4854 \begin_layout Subsection
4855
4856 Il File .kmap
4857 \end_layout
4858
4859 \begin_layout Standard
4860
4861 Un file 
4862 \family sans
4863 .
4864 \family typewriter
4865 kmap
4866 \family default
4867  mappa le pressioni dei tasti sia di caratteri che di stringhe.
4868  Come suggerisce il nome, esso setta la mappa della tastiera.
4869  Il file 
4870 \family sans
4871 .
4872 \family typewriter
4873 kmap
4874 \family default
4875  contiene delle parole chiavi come 
4876 \family typewriter
4877 kmap,kmod,ksmod
4878 \family default
4879 , e 
4880 \family typewriter
4881 kcomb
4882 \family default
4883  qui di seguito descritte.
4884 \end_layout
4885
4886 \begin_layout List
4887 \labelwidthstring 00.00.0000
4888
4889
4890 \family typewriter
4891 kmap
4892 \family default
4893  Mappa il carattere rispetto a una stringa
4894 \end_layout
4895
4896 \begin_layout LyX-Code
4897
4898
4899 \backslash
4900 kmap 
4901 \family roman
4902 \emph on
4903 char
4904 \emph default
4905  
4906 \emph on
4907 string
4908 \end_layout
4909
4910 \begin_layout Standard
4911
4912 Questo mapperà 
4913 \emph on
4914 char 
4915 \emph default
4916 in 
4917 \emph on
4918 string
4919 \emph default
4920 .
4921  Notate che in 
4922 \emph on
4923 string
4924 \emph default
4925 , le due virgolette (") e il backslash (
4926 \backslash
4927 ) devono essere evitate con un precedente backslash (
4928 \backslash
4929 ).
4930 \end_layout
4931
4932 \begin_layout Standard
4933
4934 Un esempio di 
4935 \family sans
4936 kmap
4937 \family default
4938  che serve affinchè il simbolo
4939 \family sans
4940  / 
4941 \family default
4942 venga generato dal tasto
4943 \family sans
4944  & 
4945 \family default
4946 è:
4947 \end_layout
4948
4949 \begin_layout LyX-Code
4950
4951
4952 \backslash
4953 kmap & /
4954 \end_layout
4955
4956 \begin_layout List
4957 \labelwidthstring 00.00.0000
4958
4959
4960 \family typewriter
4961 kmod
4962 \family default
4963  Specifica un carattere accentato
4964 \end_layout
4965
4966 \begin_layout LyX-Code
4967
4968
4969 \backslash
4970 kmod
4971 \family roman
4972  
4973 \emph on
4974 char accent allowed
4975 \end_layout
4976
4977 \begin_layout Standard
4978
4979 Questo farà sì che il carattere 
4980 \emph on
4981 char sia accentato sul carattere ammesso
4982 \emph default
4983 .
4984  Questo è un meccanismo di tasto morto
4985 \begin_inset Foot
4986 status collapsed
4987
4988 \begin_layout Standard
4989
4990 Il termine tasto morto si riferisce ad un tasto che non produce un carattere
4991  da solo, ma soltanto quando è seguito da un altro tasto.
4992  Ad esempio, si può riprodurre un carattere tedesco con un umlaunt come
4993 \family roman
4994  
4995 \emph on
4996 ä
4997 \emph default
4998 .
4999 \end_layout
5000
5001 \end_inset
5002
5003  .
5004  
5005 \end_layout
5006
5007 \begin_layout Standard
5008
5009 Se premete 
5010 \emph on
5011 char 
5012 \emph default
5013 e poi una altro tasto non in 
5014 \emph on
5015 allowed (non permesso) 
5016 \emph default
5017 avrete un 
5018 \emph on
5019 char 
5020 \emph default
5021 seguito da un altro tasto, non abilitato.
5022  Ricordate che un Backspace cancella un tasto morto, così se premete 
5023 \emph on
5024 char
5025 \family sans
5026  Backspace
5027 \family default
5028 \emph default
5029 , il cursore non andrà una posizione indietro, bensì cancellerà l'effetto
5030  che il 
5031 \emph on
5032 char
5033 \emph default
5034  dovrebbe avere sul tasto successivo.
5035 \end_layout
5036
5037 \begin_layout Standard
5038
5039 Il seguente esempio specifica che il carattere ' dovrà essere un accento
5040  acuto, abilitato sui caratteri a, e, i, o, u, A, E, I, O, e U:
5041 \end_layout
5042
5043 \begin_layout LyX-Code
5044
5045
5046 \backslash
5047 kmod ' acute aeiouAEIOU
5048 \end_layout
5049
5050 \begin_layout List
5051 \labelwidthstring 00.00.0000
5052
5053 ksmod Specifica un'eccezione al carattere accentato
5054 \end_layout
5055
5056 \begin_layout LyX-Code
5057
5058
5059 \backslash
5060 kxmod 
5061 \family sans
5062 \emph on
5063  
5064 \family roman
5065 accent char result
5066 \end_layout
5067
5068 \begin_layout Standard
5069
5070 Questo definisce un'eccezione per l'
5071 \emph on
5072 accent 
5073 \emph default
5074 sul 
5075 \emph on
5076 char
5077 \emph default
5078 .
5079  L'
5080 \emph on
5081 accent 
5082 \emph default
5083 deve essere stato assegnato ad un tasto con una precedente dichiarazione
5084  
5085 \family typewriter
5086
5087 \backslash
5088 kmod
5089 \family default
5090  e
5091 \emph on
5092  char 
5093 \emph default
5094 non deve appartenere al set degli accenti (
5095 \emph on
5096 accent
5097 \emph default
5098 ) abilitati 
5099 \emph on
5100 (allowed)
5101 \emph default
5102 .
5103  Quando immettete la sequenza del carattere accentato (
5104 \emph on
5105 accent char sequence)
5106 \emph default
5107 , il risultato (
5108 \emph on
5109 result)
5110 \emph default
5111  viene prodotto.
5112  Se non esiste una dichiarazione nel file
5113 \family typewriter
5114 .kmap
5115 \family default
5116  e voi immettete l'
5117 \emph on
5118 accent char
5119 \emph default
5120 , avrete un'
5121 \emph on
5122 accent_key char
5123 \emph default
5124  dove 
5125 \emph on
5126 accent_key
5127 \emph default
5128  è il primo argomento della dichiarazione 
5129 \family typewriter
5130
5131 \backslash
5132 kmod
5133 \family default
5134  declaration.
5135  
5136 \end_layout
5137
5138 \begin_layout Standard
5139
5140 La seguente procedura di comandi fa in modo che venga generato äi immettendo
5141  acute-i ('i):
5142 \end_layout
5143
5144 \begin_layout LyX-Code
5145
5146
5147 \backslash
5148 kxmod acute i "
5149 \backslash
5150
5151 \backslash
5152 '{
5153 \backslash
5154
5155 \backslash
5156 i}"
5157 \end_layout
5158
5159 \begin_layout List
5160 \labelwidthstring 00.00.0000
5161
5162
5163 \family sans
5164 kcomb
5165 \family default
5166  Combina due caratteri accentati
5167 \end_layout
5168
5169 \begin_layout LyX-Code
5170
5171
5172 \backslash
5173 kcomb 
5174 \family roman
5175 \emph on
5176 accent1 accent2 allowed
5177 \end_layout
5178
5179 \begin_layout Standard
5180
5181 Questo effetto ha qualcosa di esoterico.
5182  Infatti vi permette di combinare l'effetto di 
5183 \emph on
5184 accent1
5185 \emph default
5186  e 
5187 \emph on
5188 accent2
5189 \emph default
5190  (in quell'ordiner!) su caratteri abilitati 
5191 \emph on
5192 (allowed)
5193 \emph default
5194 .
5195  I tasti per 
5196 \emph on
5197 accent1
5198 \emph default
5199  e 
5200 \emph on
5201 accent2
5202 \emph default
5203  devono essere stati settati con un comando 
5204 \family typewriter
5205
5206 \backslash
5207 kmod
5208 \family default
5209  in un punto precedente del file.
5210  
5211 \end_layout
5212
5213 \begin_layout Standard
5214
5215 Consideriamo questo esempio dal file 
5216 \family typewriter
5217 greek.kmap
5218 \family default
5219 :
5220 \end_layout
5221
5222 \begin_layout LyX-Code
5223
5224
5225 \backslash
5226 kmod ; acute aeioyvhAEIOYVH 
5227 \backslash
5228 kmod : umlaut iyIY 
5229 \backslash
5230 kcomb acute umlaut iyIY
5231 \end_layout
5232
5233 \begin_layout Standard
5234
5235 Questo vi permette di premere 
5236 \family sans
5237 ;:i
5238 \family default
5239  ed ottenere l'effetto di 
5240 \family typewriter
5241
5242 \backslash
5243 '{
5244 \backslash
5245 "{i}}
5246 \family default
5247 .
5248  Un backspace in questo caso cancella l'ultimo tasto morto, così se premete
5249 \family sans
5250  ;: Backspace i 
5251 \family default
5252 avrete 
5253 \family typewriter
5254
5255 \backslash
5256 '{i}
5257 \family default
5258 .
5259 \end_layout
5260
5261 \begin_layout Subsection
5262
5263 Il file .cdef
5264 \end_layout
5265
5266 \begin_layout Standard
5267
5268 Dopo la mappatura fatta con
5269 \family typewriter
5270  .kmap,
5271 \family sans
5272  
5273 \family default
5274 il file 
5275 \family typewriter
5276 .cdef
5277 \family default
5278  mappa le stringhe che i symboli generano rispetto ai caratteri del font
5279  corrente.
5280  La corrente distribuzione di LyX include almeno i files 
5281 \family typewriter
5282 iso8859-1.cdef
5283 \family default
5284  e 
5285 \family typewriter
5286 iso8859-2.cdef
5287 \family default
5288 .
5289 \end_layout
5290
5291 \begin_layout Standard
5292
5293 In generale il file 
5294 \family typewriter
5295 .cdef
5296 \family sans
5297  
5298 \family default
5299 è una sequenza di dichiarazioni di questa forma:
5300 \end_layout
5301
5302 \begin_layout LyX-Code
5303
5304
5305 \family roman
5306 \emph on
5307 char_index_in_set
5308 \emph default
5309  
5310 \emph on
5311  string
5312 \end_layout
5313
5314 \begin_layout Standard
5315
5316 Ad esempio, per mappare 
5317 \family sans
5318
5319 \backslash
5320 '{e}
5321 \family default
5322  sul corrispondente carattere nel set iso-8859-1 (233), si usa la seguente
5323  dichiarazione
5324 \end_layout
5325
5326 \begin_layout LyX-Code
5327
5328 233 "
5329 \backslash
5330
5331 \backslash
5332 '{e}"
5333 \end_layout
5334
5335 \begin_layout Standard
5336
5337 con 
5338 \family typewriter
5339
5340 \backslash
5341
5342 \family default
5343  e 
5344 \family typewriter
5345 "
5346 \family default
5347  estranei alla stringa.
5348  Notate che lo stesso carattere può essere applicato a più di una stringa.
5349  Nel file 
5350 \family typewriter
5351 iso-8859-7.cdef
5352 \family sans
5353  
5354 \family default
5355 avete
5356 \end_layout
5357
5358 \begin_layout LyX-Code
5359
5360 192 "
5361 \backslash
5362
5363 \backslash
5364 '{
5365 \backslash
5366
5367 \backslash
5368
5369 \backslash
5370 "{i}}"
5371 \newline
5372 192 "
5373 \backslash
5374
5375 \backslash
5376
5377 \backslash
5378 "{
5379 \backslash
5380
5381 \backslash
5382 '{i}}"
5383 \end_layout
5384
5385 \begin_layout Standard
5386
5387 Se LyX non trova una mappatura per la stringa prodotta dalla pressione del
5388  tasto o da una sequenza con tasti morti, controllerà se assomiglia ad un
5389  carattere accentato e proverà a disegnare un accento sul carattere sullo
5390  schermo.
5391 \end_layout
5392
5393 \begin_layout Subsection
5394
5395 Tasti morti
5396 \end_layout
5397
5398 \begin_layout Standard
5399
5400 C'è un altro modo per aggiungere il supporto a caratteri internazionali,
5401  ed è quello che usa la tecnica dei cosiddetti tasti morti.
5402  Un tasto morto lavora in combinazione con una lettera per produrre un carattere
5403  accentato.
5404  In questa sezione spieghiamo come si crea un semplice tasto morto per far
5405  vedere come funziona.
5406 \end_layout
5407
5408 \begin_layout Standard
5409
5410 Supponiamo di avere bisogno di un carattere circonflesso, 
5411 \begin_inset Quotes eld
5412 \end_inset
5413
5414 ^
5415 \begin_inset Quotes erd
5416 \end_inset
5417
5418 .
5419  Si potrebbe associare il tasto ^ [a.k.a.
5420 \family sans
5421 \InsetSpace ~
5422 Shift-
5423 \family default
5424 6] al comando LyX 
5425 \family typewriter
5426 accent-circumflex 
5427 \family default
5428 nel vostro file
5429 \family typewriter
5430  lyxrc
5431 \family default
5432 .
5433  Ora, se digitate il tasto ^ seguito da una lettera, la lettera avrà un
5434  accento circonflesso su di essa.
5435  Per esempio, la sequenza 
5436 \begin_inset Quotes eld
5437 \end_inset
5438
5439 ^e
5440 \begin_inset Quotes erd
5441 \end_inset
5442
5443  produce la lettera e con ^.
5444  Se provate a digitare 
5445 \begin_inset Quotes eld
5446 \end_inset
5447
5448 ^t
5449 \begin_inset Quotes erd
5450 \end_inset
5451
5452 , tuttavia, LyX segnalerà con un beep che l'operazione non è possibile dato
5453  che la t non ha mai accento.
5454  Premere 
5455 \family sans
5456 Spazio 
5457 \family default
5458 dopo un deadkey produrrà un accento semplice.
5459  Attenzione a quest'ultimo punto! Se associate un tasto ad un deadkey, dovrete
5460  riassociare il carattere su quel tasto ad un altro tasto ancora.
5461  
5462 \end_layout
5463
5464 \begin_layout Standard
5465
5466 Un altro modo comune di associare tasti morti è quello di usare 
5467 \family sans
5468 Meta-
5469 \family default
5470
5471 \family sans
5472 Ctrl-
5473 \family default
5474 , e 
5475 \family sans
5476 Shift-
5477 \family default
5478  in combinazione con un accento come 
5479 \begin_inset Quotes eld
5480 \end_inset
5481
5482
5483 \family sans
5484 ~
5485 \family default
5486
5487 \begin_inset Quotes erd
5488 \end_inset
5489
5490  o 
5491 \begin_inset Quotes eld
5492 \end_inset
5493
5494
5495 \family sans
5496 ,
5497 \family default
5498
5499 \begin_inset Quotes erd
5500 \end_inset
5501
5502  o 
5503 \begin_inset Quotes eld
5504 \end_inset
5505
5506
5507 \family sans
5508 ^
5509 \family default
5510
5511 \begin_inset Quotes erd
5512 \end_inset
5513
5514 .
5515  Un'altra tecnica consiste nell'uso di 
5516 \family typewriter
5517 xmodmap
5518 \family default
5519  e 
5520 \family typewriter
5521 xkeycaps
5522 \family default
5523  per settare il tasto speciale 
5524 \family typewriter
5525 Mode_Switch
5526 \family default
5527 .
5528  Il 
5529 \family typewriter
5530 Mode_Switch
5531 \family default
5532  si comporta in alcuni casi proprio come lo 
5533 \family sans
5534 Shift
5535 \family default
5536  e permette di associare tasti a caratteri accentati.
5537  Potete inoltre convertire tasti semplici in tasti morti associandoli ad
5538  oggetti del tipo 
5539 \family typewriter
5540 usldead_cedilla
5541 \family default
5542  e successivamente, associando questo tasto simbolico al corrispondente
5543  comando LyX.
5544 \begin_inset Foot
5545 status collapsed
5546
5547 \begin_layout Standard
5548
5549 Nota da 
5550 \noun on
5551 John Weiss
5552 \noun default
5553 : Questo è esattamente quello che faccio nei miei files 
5554 \family typewriter
5555 ~/.lyx/lyxrc
5556 \family default
5557  e 
5558 \family typewriter
5559 ~/.xmodmap
5560 \family default
5561 .
5562  Ho il mio tasto 
5563 \family sans
5564 Scroll\InsetSpace ~
5565 Lock settato come Mode_Shift
5566 \family default
5567  e un sacco di questi tasti simbolici 
5568 \family sans
5569
5570 \begin_inset Quotes eld
5571 \end_inset
5572
5573 usldead_
5574 \family typewriter
5575 *
5576 \family sans
5577
5578 \begin_inset Quotes erd
5579 \end_inset
5580
5581
5582 \family default
5583  che consentono di ottenere cose del tipo 
5584 \family sans
5585 Scroll\InsetSpace ~
5586 Lock
5587 \family default
5588 -
5589 \family sans
5590 ^
5591 \family default
5592  e 
5593 \family sans
5594 Scroll Lock-~
5595 \family default
5596 .
5597  Questo è il modo in cui genero i miei caratteri accentati.
5598 \end_layout
5599
5600 \end_inset
5601
5602  Potete fare pressocchè tutto con il tasto 
5603 \family typewriter
5604 Mode_Switch
5605 \family default
5606 : uno dei tasti 
5607 \family sans
5608 Ctrl-
5609 \family default
5610 , una funzione libera, ecc.
5611  Come per i comandi LyX che producono accenti, consultate il 
5612 \emph on
5613 Manuale di Riferimento
5614 \emph toggle
5615  per l'accento acuto.
5616  Troverete lì la lista completa.
5617 \end_layout
5618
5619 \begin_layout Subsection
5620
5621 Salvare la vostra configurazione di Linguaggio
5622 \end_layout
5623
5624 \begin_layout Standard
5625
5626
5627 \begin_inset LatexCommand \label{sec:savlang}
5628
5629 \end_inset
5630
5631 Potete editare il vostro file 
5632 \family typewriter
5633 lyxrc
5634 \family default
5635  in modo che il linguaggio da voi preferito sia configurato e caricato automatic
5636 amente allo startup di LyX.
5637  Questa sezione descrive i comandi 
5638 \family typewriter
5639 lyxrc
5640 \family default
5641  da specificare:
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 default, primary, and secondary keymaps
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 character set
5652 \end_layout
5653
5654 \begin_layout Standard
5655
5656 Guardate il vostro file 
5657 \family typewriter
5658 lyxrc
5659 \family default
5660  per i vari esempi su come configurarlo.
5661  In particolare, potete settare una keymap così:
5662 \end_layout
5663
5664 \begin_layout LyX-Code
5665
5666
5667 \backslash
5668 kbmap true
5669 \end_layout
5670
5671 \begin_layout LyX-Code
5672
5673
5674 \backslash
5675 kbmap_primary german
5676 \end_layout
5677
5678 \begin_layout LyX-Code
5679
5680
5681 \backslash
5682 kbmap_secondary american 
5683 \end_layout
5684
5685 \begin_layout LyX-Code
5686
5687 \end_layout
5688
5689 \begin_layout Standard
5690
5691 e una font-mapping (
5692 \family typewriter
5693 .cdef
5694 \family default
5695  file) in questo modo:
5696 \end_layout
5697
5698 \begin_layout LyX-Code
5699
5700
5701 \backslash
5702 screen_font_encoding iso8859-2
5703 \end_layout
5704
5705 \begin_layout Chapter
5706
5707 Installare Nuove Classi di Documento, Layouts e Templates 
5708 \begin_inset LatexCommand \label{chap:textclass}
5709
5710 \end_inset
5711
5712
5713 \end_layout
5714
5715 \begin_layout Standard
5716
5717 In questo capitolo si descrivono le procedure per creare ed installare nuovi
5718  layouts di LyX e files template, come anche si procederà ad illustrare
5719  la corretta installazione di nuove classi di documento LaTeX.
5720  Alcune definizioni: una classe di documento è un file LaTeX (che di solito
5721  hanno estensione in 
5722 \family typewriter
5723 .cls
5724 \family default
5725  o 
5726 \family typewriter
5727 .sty
5728 \family default
5729 ) che descrive il formato di un documento come un articolo, report, prestampa
5730  di giornale, ecc.
5731  e tutti i comandi di cui si ha bisogno per realizzare quel formato.
5732  Un file layout è un file LyX che corrisponde ad una classe di documento
5733  LaTeX e che dice a LyX come 
5734 \begin_inset Quotes eld
5735 \end_inset
5736
5737 disegnare
5738 \begin_inset Quotes erd
5739 \end_inset
5740
5741  le cose sullo schermo in modo da rendere le cose il più possibile vicine
5742  alla pagina finale stampata.
5743  Più precisamente, un file layout descrive una 
5744 \begin_inset Quotes eld
5745 \end_inset
5746
5747 textclass
5748 \begin_inset Quotes erd
5749 \end_inset
5750
5751  che è il costrutto interno che LyX usa per fare il rendering dello schermo.
5752  
5753 \begin_inset Quotes eld
5754 \end_inset
5755
5756 Layout
5757 \begin_inset Quotes erd
5758 \end_inset
5759
5760  e 
5761 \begin_inset Quotes eld
5762 \end_inset
5763
5764 textclass
5765 \begin_inset Quotes erd
5766 \end_inset
5767
5768  possono a volta essere usate come sinonimi, ma è meglio riferirsi al file
5769  come il layout, e all'oggetto residente nella memoria di LyX come textclass.
5770  Un file template è semplicemente un documento LyX che contiene un set di
5771  righe predefinite per una data classe di documento che sono generalmente
5772  richiesti per quella classe.
5773  I templates sono in particolare utili per cose come i manoscritti di giornale
5774  che devono essere processati elettronicamente.
5775  
5776 \end_layout
5777
5778 \begin_layout Section
5779
5780 Installare un nuovo pacchetto LaTeX
5781 \end_layout
5782
5783 \begin_layout Standard
5784
5785 Alcune installazioni possono non includere un pacchetto LaTeX che vorreste
5786  usare in LyX.
5787  Ad esempio, vorreste avere FoilTeX, un pacchetto comune (e molto potente)
5788  per preparare slides o grafici per capiprogetto.
5789 \begin_inset Foot
5790 status collapsed
5791
5792 \begin_layout Standard
5793
5794 Vedere il manuale 
5795 \emph on
5796 Extended LyX Features
5797 \emph default
5798  per ulteriori informazioni su FoilTeX
5799 \end_layout
5800
5801 \end_inset
5802
5803 Ecco di seguito tutti i passaggi necessari per avere il pacchetto e lanciarlo
5804  se si usa una recente versione di teTeX
5805 \begin_inset Foot
5806 status collapsed
5807
5808 \begin_layout Standard
5809
5810 Questa procedura è definitivamente valida per la versione v1.0 e tutte le
5811  versioni beta v0.9.
5812  Commenti sul funzionamento per le versioni v.04 sono graditi, anche se è
5813  comunque preferibile aggiornarsi alla versione v1.0.x.
5814 \end_layout
5815
5816 \end_inset
5817
5818  o altre distribuzioni basate su web2c.
5819 \end_layout
5820
5821 \begin_layout Enumerate
5822
5823 Procurarsi il pacchetto da CTAN o simili.
5824 \begin_inset Foot
5825 status collapsed
5826
5827 \begin_layout Standard
5828
5829 Vedere il manuale 
5830 \emph on
5831 Inventory of your LaTeX configuration
5832 \emph default
5833  per i dettagli su cosa è CTAN e dove possono essere trovate le classi di
5834  documento supportate.
5835 \end_layout
5836
5837 \end_inset
5838
5839
5840 \end_layout
5841
5842 \begin_layout Enumerate
5843
5844 Leggere il file 
5845 \family typewriter
5846 texmf.cnf
5847 \family default
5848  (che di solito risiede nella directory
5849 \family typewriter
5850  $TEXMF/web2c
5851 \family default
5852 , sebbene possiate lanciare 
5853 \family typewriter
5854 kpsewhich texmf.cnf
5855 \family default
5856  per localizzarlo).
5857  Questo descrive come aggiungere una directory locale
5858 \family typewriter
5859  texmf
5860 \family default
5861 ; seguire le istruzioni.
5862  Avete bisogno di inserire il nome della vostra directory locale 
5863 \family typewriter
5864 texmf
5865 \family default
5866  in 
5867 \family typewriter
5868 texmf.cnf
5869 \family default
5870 .
5871  Sotto Linux, 
5872 \family typewriter
5873 /usr/local
5874 \family default
5875  è una posizione logica dove installare software che non è presente nelle
5876  normali distribuzioni, così dovete usare
5877 \family typewriter
5878  /usr/local/texmf
5879 \family default
5880 .
5881  Di solito dovete modificare solo due cose:
5882 \end_layout
5883
5884 \begin_deeper
5885 \begin_layout Enumerate
5886
5887 Settare 
5888 \family typewriter
5889 TEXMFLOCAL
5890 \family default
5891  sulla directory che avete scelto; es.
5892  
5893 \newline
5894
5895 \family typewriter
5896 TEXMFLOCAL = /usr/local/texmf
5897 \end_layout
5898
5899 \begin_layout Enumerate
5900
5901 Assicuratevi che
5902 \family typewriter
5903  TEXMF
5904 \family default
5905  includa la variabile 
5906 \family typewriter
5907 TEXMFLOCAL
5908 \family default
5909  variable; es.
5910  
5911 \newline
5912
5913 \family typewriter
5914 TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFMAIN}
5915 \end_layout
5916 \end_deeper
5917 \begin_layout Enumerate
5918
5919 Create la vostra directory locale
5920 \family typewriter
5921  texmf
5922 \family default
5923  (es.
5924  
5925 \family typewriter
5926 /usr/local/texmf
5927 \family default
5928 ).
5929  Dovete seguire la struttura dell'esistente directory
5930 \family typewriter
5931  texmf
5932 \family default
5933  (ad esempio, i pacchetti latex dovrebbero andare sotto
5934 \family typewriter
5935  /usr/local/texmf/tex/latex/
5936 \family default
5937 ).
5938 \end_layout
5939
5940 \begin_layout Enumerate
5941
5942 Installare il pacchetto.
5943  Ad esempio, vogliamo scompattare l'archivio FoilTeX e creare
5944 \family typewriter
5945  /usr/local/texmf/tex/latex/foiltex
5946 \family default
5947 .
5948  La directory 
5949 \family typewriter
5950 foiltex
5951 \family default
5952  contiene vari files.
5953 \end_layout
5954
5955 \begin_layout Enumerate
5956
5957 Lanciare: 
5958 \family typewriter
5959 texhash
5960 \family default
5961 .
5962  Questo dovrebbe creare 
5963 \family typewriter
5964 /usr/local/texmf/ls-R 
5965 \family default
5966 tra le altre.
5967 \end_layout
5968
5969 \begin_layout Enumerate
5970
5971 Dall'interno di LyX, fate: 
5972 \family sans
5973 \bar under
5974 O
5975 \bar default
5976 ptions\SpecialChar \menuseparator
5977
5978 \bar under
5979 R
5980 \bar default
5981 econfigure
5982 \family default
5983 .
5984  Riavviate LyX.
5985 \end_layout
5986
5987 \begin_layout Standard
5988
5989 Ora dovreste vedere il vostro nuovo pacchetto--ad esempio 
5990 \family sans
5991 slides (FoilTeX)
5992 \family default
5993 ---sotto 
5994 \family sans
5995 Layout\SpecialChar \menuseparator
5996 Document
5997 \family default
5998 , campo 
5999 \family sans
6000 Class
6001 \family default
6002 .
6003  Notate che ci sono modi più semplici per installare pacchetti: potete aggiunger
6004 e un link alla nuova directory del pacchetto nella directory di sistema
6005  LaTeX (
6006 \family typewriter
6007 $TEXMF/tex/latex
6008 \family default
6009 , non dimenticate di lanciare dopo 
6010 \family typewriter
6011 texconfig
6012 \family default
6013 ), o qualche volta basta semplicemente settare la variabile ambientale $TEXINPUT
6014 S per includere un nuovo pacchetto.
6015  Tuttavia, la procedura formale descritta in 
6016 \family typewriter
6017 texmf.cnf
6018 \family default
6019  è garantito che funzioni, così dovreste provare a seguirla fino a che se
6020  ne ha la possibilità (che potrebbe perdersi se non si ha accesso da superuser).
6021 \end_layout
6022
6023 \begin_layout Section
6024
6025 Layouts
6026 \end_layout
6027
6028 \begin_layout Standard
6029
6030 Questa sezione descrive come scrivere ed installare i propri files di layout
6031  di LyX (anche detti textclass), utilizzando la textclass 
6032 \family typewriter
6033 article
6034 \family default
6035  come esempio.
6036  I files 
6037 \family typewriter
6038 .layout
6039 \family default
6040  descrivono quali stili di paragrafi sono disponibili per una data classe
6041  di documenti e come LyX dovrebbe mostrarli.
6042  Proveremo qui a fornire un'accurata descrizione del processo; tuttavia,
6043  ci sono così tanti tipi di documenti supportati dalle classi LaTeX da renderci
6044  impossibile fornire una descrizione esaustiva dell'argomento e delle possibilit
6045 à che si possono manifestare.
6046 \end_layout
6047
6048 \begin_layout Standard
6049
6050 Quando programmate di scrivere un nuovo layout, è estremamente utile guardare
6051  prima i layout di esempio distribuiti con LyX.
6052  Se usate una classe di documento LaTeX particolarmente bella che può essere
6053  di interesse anche per altre persone e che abbia un buon corrispondente
6054  layout in LyX, siete liberi di mandarcelo in modo da poterlo inserire nella
6055  distribuzione.
6056 \end_layout
6057
6058 \begin_layout Standard
6059
6060 Tutte le righe di codice di questo paragrafo sono case-insensitive; ciò
6061  significa che 
6062 \family typewriter
6063 Style
6064 \family default
6065
6066 \family typewriter
6067 style
6068 \family default
6069  e 
6070 \family typewriter
6071 StYle
6072 \family default
6073  sono lo stesso comando.
6074  I possibili valori sono scritti tra parentesi dopo il nome della caratteristica.
6075  Il valore di default se una caratteristica non è specificata nella descrizione
6076  della textclass è scritto in 
6077 \family typewriter
6078 \emph on
6079 corsivo
6080 \family default
6081 \emph default
6082 .
6083  Se l'argomento è un tipo di dati come 
6084 \begin_inset Quotes eld
6085 \end_inset
6086
6087 string
6088 \begin_inset Quotes erd
6089 \end_inset
6090
6091  o 
6092 \begin_inset Quotes eld
6093 \end_inset
6094
6095 float
6096 \begin_inset Quotes erd
6097 \end_inset
6098
6099 , il valore di default è scritto come 
6100 \family typewriter
6101 float=default
6102 \family default
6103 .
6104 \end_layout
6105
6106 \begin_layout Subsection
6107
6108 Supportare nuove classi di documento
6109 \end_layout
6110
6111 \begin_layout Standard
6112
6113 Ci sono tre situazioni che potete incontrare se volete supportare una nuova
6114  classe di documento LaTeX.
6115  I due tipi più semplici coinvolgono classe (.cls) e style (.sty) LaTeX2e.
6116  Se siete sfortunati potreste incappare nella terza situazione di supportare
6117  un file di stile LaTeX 2.09.
6118  Il processo di creazione di un file di layout per queste tre situazioni
6119  è simile; tuttavia un passo in più è richiesto per permettere a LyX di
6120  usare LaTeX 2.09.
6121 \end_layout
6122
6123 \begin_layout Subsection
6124
6125 File sty LaTex2e
6126 \end_layout
6127
6128 \begin_layout Standard
6129
6130 Se la vostra nuova classe di documento è sotto forma di style file, usato
6131  in aggiunta ad uno esistente, la classe di documento supportata, inizia
6132  copiando il layout della classe esistente nella vostra directory locale.
6133  A causa della mancanza di esempi assumeremo che il file style si chiami
6134  
6135 \family sans
6136 myclass.sty
6137 \family default
6138  e sarà usato con 
6139 \family sans
6140 report.cls
6141 \family default
6142  con una classe standard.
6143 \end_layout
6144
6145 \begin_layout LyX-Code
6146
6147 cp report.layout ~/.lyx/layouts/myclass.layout
6148 \end_layout
6149
6150 \begin_layout Standard
6151
6152 Poi editiamo 
6153 \family typewriter
6154 myclass.layout
6155 \family default
6156  e cambiamo la linea: 
6157 \end_layout
6158
6159 \begin_layout LyX-Code
6160
6161
6162 \backslash
6163 DeclareLaTeXClass{report}
6164 \end_layout
6165
6166 \begin_layout Standard
6167
6168 in modo da avere
6169 \end_layout
6170
6171 \begin_layout LyX-Code
6172
6173
6174 \backslash
6175 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6176 \end_layout
6177
6178 \begin_layout Standard
6179
6180 Poi aggiungiamo:
6181 \end_layout
6182
6183 \begin_layout LyX-Code
6184
6185 Preamble 
6186 \backslash
6187 usepackage{myclass}EndPreamble
6188 \end_layout
6189
6190 \begin_layout Standard
6191
6192 presso l'inizio del file.
6193 \end_layout
6194
6195 \begin_layout Standard
6196
6197 Lanciamo LyX e selezioniamo 
6198 \family sans
6199 \bar under
6200 O
6201 \bar default
6202 ptions\SpecialChar \menuseparator
6203
6204 \bar under
6205 R
6206 \bar default
6207 econfigure
6208 \family default
6209 .
6210  Riavviamo LyX e proviamo a creare un nuovo documento.
6211  Dovreste vedere 
6212 \family sans
6213
6214 \begin_inset Quotes eld
6215 \end_inset
6216
6217 report (myclass)
6218 \begin_inset Quotes erd
6219 \end_inset
6220
6221
6222 \family default
6223  come una classe di documento opzione nel men
6224 \family sans
6225
6226 \bar under
6227 L
6228 \bar default
6229 ayout
6230 \bar under
6231 \SpecialChar \menuseparator
6232 D
6233 \bar default
6234 ocument
6235 \family default
6236 .
6237  E' probabile che alcuni dei comandi di sezionamento ed altri differiscano
6238  dal modo di lavorare delle classi base
6239 \begin_inset Foot
6240 status collapsed
6241
6242 \begin_layout Standard
6243
6244
6245 \family typewriter
6246 Report
6247 \family default
6248  nell'esempio
6249 \end_layout
6250
6251 \end_inset
6252
6253 , così potrete giocare con i settaggi per le differenti sezioni se vorrete.
6254  In seguito l'argomento sarà ripreso.
6255 \end_layout
6256
6257 \begin_layout Subsection
6258
6259 File cls LaTeX2e
6260 \end_layout
6261
6262 \begin_layout Standard
6263
6264 In questo caso, dovrete 
6265 \begin_inset Quotes eld
6266 \end_inset
6267
6268 vedervela da soli
6269 \begin_inset Quotes erd
6270 \end_inset
6271
6272  con il vostro layout.
6273  Raccomandiamo fortemente di copiare un file di layout esistente che usa
6274  una classe di testo LaTeX simile e modificarlo per quanto possibile.
6275  oppure si può almeno usare un file esistente come punto di partenza in
6276  modo da capire quali oggetti servano ai vostri scopi.
6277  Ancora, più avanti ci saranno altri dettagli.
6278 \end_layout
6279
6280 \begin_layout Subsection
6281
6282 File sty LaTeX 2.09
6283 \end_layout
6284
6285 \begin_layout Standard
6286
6287 Se il file 
6288 \family typewriter
6289 .sty
6290 \family default
6291  è specifico per l'ormai defunto LaTeX 2.09 potete stabilirlo attraverso
6292  uno di questi due modi:
6293 \end_layout
6294
6295 \begin_layout Enumerate
6296
6297 Un file di esempio o la documentazione nel file 
6298 \family sans
6299 sty
6300 \family default
6301  stabilisce l'uso con 
6302 \family typewriter
6303
6304 \backslash
6305 documentstyle{myclass}
6306 \family default
6307  (opposto a 
6308 \family typewriter
6309
6310 \backslash
6311 documentclass
6312 \family default
6313 ).
6314 \end_layout
6315
6316 \begin_layout Enumerate
6317
6318 Lanciare LaTeX su un file di esempio produrra un banner con l'avvertimento
6319  che si sta entrando nel 
6320 \begin_inset Quotes eld
6321 \end_inset
6322
6323 compatibility mode
6324 \begin_inset Quotes erd
6325 \end_inset
6326
6327 .
6328 \end_layout
6329
6330 \begin_layout Standard
6331
6332 LyX tecnicamente supporta solo documenti LaTeX2e.
6333  Ma non mollate ancora! Dove c'è volontà c'è un modo ( oppure 
6334 \begin_inset Quotes eld
6335 \end_inset
6336
6337 adattarsi è impossibile, ma l'abbiamo comunque fatto.
6338 \begin_inset Quotes erd
6339 \end_inset
6340
6341 ).
6342  Il supporto esistente per ReVTeX 3.1, ad esempio, comprende il codice 2.09
6343  da usare nei documenti formattati 2e.
6344  Potete riutilizzare l'adattatore ReVTeX per la vostra 
6345 \family typewriter
6346 myclass.sty
6347 \family default
6348  (se risulta essere di codice 2.09).
6349  
6350 \end_layout
6351
6352 \begin_layout Standard
6353
6354 Bene, ecco cosa dovete fare:
6355 \end_layout
6356
6357 \begin_layout LyX-Code
6358
6359 cp LyXDir/tex/revtex.cls ~/tex/myclass.cls
6360 \end_layout
6361
6362 \begin_layout Standard
6363
6364 oppure dove avete i vostri files locali TeX.
6365  Ora editate 
6366 \family typewriter
6367 myclass.cls
6368 \family default
6369  e fate un trova-e-sostituisci tra 
6370 \begin_inset Quotes eld
6371 \end_inset
6372
6373 revtex
6374 \begin_inset Quotes erd
6375 \end_inset
6376
6377  e 
6378 \begin_inset Quotes erd
6379 \end_inset
6380
6381 myclass
6382 \begin_inset Quotes erd
6383 \end_inset
6384
6385 .
6386  E' probabile che alcune delle dichiarazioni 
6387 \family typewriter
6388
6389 \backslash
6390 DeclareOption 
6391 \family default
6392 nel file non sono rilevanti per il vostro file di stile, ma non ci interessano
6393  per il momento.
6394 \end_layout
6395
6396 \begin_layout Standard
6397
6398 Il prossimo passo è quello di ripetere il processo di creazione del file
6399  di layout myclass.layout di prima; solo per questa volta usate:
6400 \end_layout
6401
6402 \begin_layout LyX-Code
6403
6404
6405 \backslash
6406 DeclareLaTeXClass{myclass}
6407 \end_layout
6408
6409 \begin_layout Standard
6410
6411 e non dovreste aver bisogno di definizioni di tipo 
6412 \family typewriter
6413 Preamble
6414 \family default
6415 .
6416  Lanciate LyX e riconfigurate, riavviate LyX e con un po di fortuna avrete
6417  un sistema che ha bisogno solo di qualche accorgimento allo schermo e null'altr
6418 o.
6419  Questo implica il manipolare dei valori usati da LyX per lo spazio, lo
6420  stile dei fonts e le altre cose definite nei files 
6421 \family typewriter
6422 .layout
6423 \family default
6424 .
6425 \end_layout
6426
6427 \begin_layout Standard
6428
6429 Avrete inoltre bisogno di controllare che avete tutte le variabili d'ambiente
6430  da 
6431 \family typewriter
6432 myclass.sty
6433 \family default
6434  disponibili nel file 
6435 \family typewriter
6436 myclass.layout
6437 \family default
6438 .
6439  Se mancano alcune bisognerà inserirle.
6440  Copiate un altro stile che sembra simile e modificatelo.
6441  Il modo più semplice per farlo è con:
6442 \end_layout
6443
6444 \begin_layout LyX-Code
6445
6446 Style MissingStyle
6447 \end_layout
6448
6449 \begin_layout LyX-Code
6450
6451     CopyStyle SimilarStyle
6452 \end_layout
6453
6454 \begin_layout LyX-Code
6455
6456     # whatever is different you now redefine
6457 \end_layout
6458
6459 \begin_layout LyX-Code
6460
6461 End
6462 \end_layout
6463
6464 \begin_layout Standard
6465
6466 Guardare in seguito per i dettagli circa quello che fa ogni elemento nel
6467  file 
6468 \family typewriter
6469 .layout
6470 \family default
6471 .
6472 \end_layout
6473
6474 \begin_layout Standard
6475
6476 Dovrebbe essere abbastanza per mettervi sulla giusta strada.
6477  Fate riferimento alle successive sezioni per i dettagli sui contenuti attuali
6478  dei files layout e ricordate che se ci sono problemi potete chiedere aiuto
6479  alla mailing list di LyX.
6480  Siamo sempre lieti di avere nuove classi di documento.
6481 \end_layout
6482
6483 \begin_layout Section
6484
6485 Dichiarare una nuova textclass
6486 \end_layout
6487
6488 \begin_layout Standard
6489
6490 Quando è finalmente giunta l'ora di sporcarvi le mani e creare un vostro
6491  personale file di layout, la seguente sezione descrive a cosa andrete incontro.
6492  Il nostro consiglio è di procedere piano, salvare e testare spesso, ascoltare
6493  musica soffusa e bere un paio di bevande per adulti che gradite; qualcuna
6494  in più se siete particolarmente disorientati.
6495  Non è molto difficile, eccetto per la moltitudine di opzioni che possono
6496  creare problemi se cercate di molte cose contemporaneamente.
6497  Andate a prendervi un'altra bibita, solo per precauzione.
6498 \end_layout
6499
6500 \begin_layout Standard
6501
6502 Andiamo!
6503 \end_layout
6504
6505 \begin_layout Standard
6506
6507 Le linee in un file di layout che iniziano con # sono commenti.
6508  C'è una eccezione a questa regola: tutti i layouts dovrebbero iniziare
6509  con queste linee:
6510 \end_layout
6511
6512 \begin_layout LyX-Code
6513
6514
6515 \size small
6516 #% Do not delete the line below; configure depends on this 
6517 \end_layout
6518
6519 \begin_layout LyX-Code
6520
6521
6522 \size small
6523 #  
6524 \backslash
6525 DeclareLaTeXClass{article}
6526 \end_layout
6527
6528 \begin_layout Standard
6529
6530 La seconda linea è usata quando configurate LyX.
6531  Il file di layout è letto dallo script LaTeX
6532 \family typewriter
6533  chkconfig.ltx
6534 \family default
6535 , in un modo speciale e tale che # venga ignorato.
6536  La prima linea è solo un commento LaTeX, e la seconda contiene la dichiarazione
6537  della classe di testo.
6538  Se queste linne appaiono in un file chiamato 
6539 \family typewriter
6540 article.layout
6541 \family default
6542 , definiranno una textclass dal nome 
6543 \family typewriter
6544 article
6545 \family default
6546  (il nome del file di layout) che usa la classe di documento LaTeX 
6547 \family typewriter
6548 article.cls
6549 \family default
6550  (Il default è quello di usare lo stesso nome del layout).
6551  La stringa 
6552 \begin_inset Quotes eld
6553 \end_inset
6554
6555 article
6556 \begin_inset Quotes erd
6557 \end_inset
6558
6559  che appare sopra è usata come descrizione della textclass nel menu
6560 \family sans
6561 \bar under
6562  L
6563 \bar default
6564 ayout
6565 \bar under
6566 \SpecialChar \menuseparator
6567 D
6568 \bar default
6569 ocument .
6570 \end_layout
6571
6572 \begin_layout Standard
6573
6574 Assumiamo che scrivete la vostra texclass utilizzando la classe di documento
6575  
6576 \family typewriter
6577 article.cls
6578 \family default
6579 , dove avete cambiato le sezioni di testa.
6580  Se lo mettete in un file 
6581 \family typewriter
6582 myarticle.layout
6583 \family default
6584 , le intestazioni di questo file dovrebbero essere:
6585 \end_layout
6586
6587 \begin_layout LyX-Code
6588
6589
6590 \size small
6591 #% Do not delete the line below; configure depends on this 
6592 \end_layout
6593
6594 \begin_layout LyX-Code
6595
6596
6597 \size small
6598 #  
6599 \backslash
6600 DeclareLaTeXClass[article]{article (with my own headings)}
6601 \end_layout
6602
6603 \begin_layout Standard
6604
6605 Questi dichiarano una textclass 
6606 \family typewriter
6607 myarticle
6608 \family default
6609 , associata con la classe di documento LaTeX 
6610 \family typewriter
6611 article.cls
6612 \family default
6613  e descritta come 
6614 \begin_inset Quotes eld
6615 \end_inset
6616
6617 article (con le vostre intestazioni)
6618 \begin_inset Quotes erd
6619 \end_inset
6620
6621 .
6622  Se la vostra textclass dipende da molti pacchetti, potete dichiararla come:
6623 \end_layout
6624
6625 \begin_layout LyX-Code
6626
6627
6628 \size small
6629 #% Do not delete the line below; configure depends on this 
6630 \end_layout
6631
6632 \begin_layout LyX-Code
6633
6634
6635 \size small
6636 #  
6637 \backslash
6638 DeclareLaTeXClass[article,foo.sty]{article (with my own headings)}
6639 \end_layout
6640
6641 \begin_layout Standard
6642
6643 Queste indicano che la vostra textclass usa il pacchetto foo.sty.
6644  Infine è anche possibile dichiarare classi per codice SGML e DocBook.
6645  Le dichiarazioni tipiche avranno questa forma:
6646 \end_layout
6647
6648 \begin_layout LyX-Code
6649
6650
6651 \size small
6652 #% Do not delete the line below; configure depends on this 
6653 \end_layout
6654
6655 \begin_layout LyX-Code
6656
6657
6658 \size small
6659
6660 \backslash
6661 DeclareSGMLClass{SGML (LinuxDoc)}
6662 \end_layout
6663
6664 \begin_layout Standard
6665
6666 oppure
6667 \end_layout
6668
6669 \begin_layout LyX-Code
6670
6671 #% Do not delete the line below; configure depends on this 
6672 \end_layout
6673
6674 \begin_layout LyX-Code
6675
6676  
6677 \end_layout
6678
6679 \begin_layout LyX-Code
6680
6681
6682 \backslash
6683 DeclareDocBookClass[article]{SGML (DocBook article)}
6684 \end_layout
6685
6686 \begin_layout Standard
6687
6688 Notate che a queste dichiarazioni può essere anche dato come parametro opzionale
6689  che dichiara il nome della classe di documento (ma non una lista).
6690 \end_layout
6691
6692 \begin_layout Standard
6693
6694 Quando la textclass è stata modificata secondo i vostri gusti, tutto quello
6695  che dovete fare è copiarla in 
6696 \family typewriter
6697 $LyXDir/layouts/
6698 \family default
6699  o in 
6700 \family typewriter
6701 $UserDir/layouts
6702 \family default
6703  e lanciare 
6704 \family sans
6705 \bar under
6706 O
6707 \bar default
6708 ptions
6709 \bar under
6710 \SpecialChar \menuseparator
6711 R
6712 \bar default
6713 econfigure.
6714
6715 \family default
6716  Chiudete LyX e rilanciatelo; a questo punto la vostra nuova textclass dovrebbe
6717  essere disponibile insieme alle altre.
6718 \end_layout
6719
6720 \begin_layout Subsection
6721
6722 Parametri generali di textclass
6723 \end_layout
6724
6725 \begin_layout Standard
6726
6727 Questi sono i parametri generali che descrivono la struttura dell'intero
6728  documento:
6729 \end_layout
6730
6731 \begin_layout Standard
6732
6733
6734 \begin_inset ERT
6735 status collapsed
6736
6737 \begin_layout Standard
6738
6739 \backslash
6740 begin{sloppypar}
6741 \end_layout
6742
6743 \end_inset
6744
6745
6746 \end_layout
6747
6748 \begin_layout Description
6749
6750
6751 \family typewriter
6752 \series medium
6753 Columns
6754 \family default
6755 \series default
6756  [
6757 \family typewriter
6758 \emph on
6759 1
6760 \emph default
6761 , 2
6762 \family default
6763 ] A seconda che la classe di default abbia una o due colonne.
6764  Può essere cambiato nel menu 
6765 \family sans
6766 \bar under
6767 L
6768 \bar default
6769 ayout
6770 \bar under
6771 \SpecialChar \menuseparator
6772 D
6773 \bar default
6774 ocument.
6775
6776 \family default
6777  Questo settaggio (a volte si confonde con 
6778 \family typewriter
6779 Sides
6780 \family default
6781 ) è importante: se le vostre textclass hanno due colonne di default, ma
6782  dimenticate di settarlo correttamente, l'opzione LaTeX 
6783 \family typewriter
6784 twocolumn
6785 \family default
6786  
6787 \emph on
6788 non
6789 \emph default
6790  sarà mostrata quando selezionate 
6791 \family sans
6792 Two Columns
6793 \family default
6794  in 
6795 \family sans
6796 \bar under
6797 L
6798 \bar default
6799 ayout
6800 \bar under
6801 \SpecialChar \menuseparator
6802 D
6803 \bar default
6804 ocument.
6805 \end_layout
6806
6807 \begin_layout Description
6808
6809
6810 \family typewriter
6811 \series medium
6812 Sides
6813 \family default
6814 \series default
6815  [
6816 \family typewriter
6817 \emph on
6818 1
6819 \emph default
6820 , 2
6821 \family default
6822 ] A seconda che la classe di default debba stampare su uno o entrambi i
6823  lati del foglio.
6824  Può essere cambiato nel menu
6825 \family sans
6826 \bar under
6827  L
6828 \bar default
6829 ayout
6830 \bar under
6831 \SpecialChar \menuseparator
6832 D
6833 \bar default
6834 ocument
6835 \family default
6836 \emph toggle
6837  
6838 \family sans
6839 \emph default
6840 .
6841 \end_layout
6842
6843 \begin_layout Description
6844
6845
6846 \family typewriter
6847 \series medium
6848 PageStyle
6849 \series default
6850  
6851 \family default
6852 [
6853 \family typewriter
6854 \emph on
6855 plain
6856 \emph default
6857 , empty, headings
6858 \family default
6859 ] La classe di default pagestyle.
6860  Può essere cambiata nel menu the 
6861 \family sans
6862 \bar under
6863 L
6864 \bar default
6865 ayout
6866 \bar under
6867 \SpecialChar \menuseparator
6868 D
6869 \bar default
6870 ocument.
6871 \end_layout
6872
6873 \begin_layout Description
6874
6875
6876 \family typewriter
6877 \series medium
6878 MaxCounter
6879 \family default
6880 \series default
6881  [
6882 \family typewriter
6883 \emph on
6884 Counter_Chapter
6885 \emph default
6886 , Counter_Section, Counter_Subsection, Counter_Subsubsection, Counter_Paragraph,
6887  
6888 \newline
6889 Counter_Subparagraph, Counter_EnumI, Counter_EnumII, 
6890 \newline
6891 Counter_EnumIII, Counter_EnumIV
6892 \family default
6893 ] Il più alto livello di enumerazione automatica.
6894  Valori utili sono 
6895 \family typewriter
6896 Counter_Chapter
6897 \family default
6898  per un libro o un report e 
6899 \family typewriter
6900 Counter_Section
6901 \family default
6902  per un articolo.
6903  Se non c'è bisogno di enumerazione, ad esempio all'interno di una classe
6904  di lettere, 
6905 \family typewriter
6906 MaxCounter
6907 \family default
6908  dovrebbe essere settato su 
6909 \family typewriter
6910 Counter_EnumI
6911 \family default
6912 .
6913  
6914 \end_layout
6915
6916 \begin_layout Description
6917
6918
6919 \family typewriter
6920 \series medium
6921 ClassOptions\SpecialChar \ldots{}
6922 End
6923 \family default
6924 \series default
6925  Questa sezione descrive varie opzioni globali supportate dalla classe di
6926  documento.
6927  Guardare la sezione\InsetSpace ~
6928
6929 \begin_inset LatexCommand \label{Ref: sec:classoptions}
6930
6931 \end_inset
6932
6933 .
6934 \end_layout
6935
6936 \begin_layout Description
6937
6938
6939 \family typewriter
6940 \series medium
6941 ProvidesAmsmath 
6942 \family default
6943 \series default
6944 [
6945 \family typewriter
6946 \emph on
6947 0
6948 \emph default
6949 , 1
6950 \family default
6951 ] Se la classe già carica il pacchetto 
6952 \family typewriter
6953 amsmath
6954 \family default
6955 .
6956  Questo è il caso delle classi di documento 
6957 \family typewriter
6958 amsart
6959 \family default
6960  e 
6961 \family typewriter
6962 amsbook
6963 \family default
6964 .
6965 \end_layout
6966
6967 \begin_layout Description
6968
6969
6970 \family typewriter
6971 \series medium
6972 ProvidesMakeidx
6973 \family default
6974 \series default
6975  [
6976 \family typewriter
6977 \emph on
6978 0
6979 \emph default
6980 , 1
6981 \family default
6982 ] Se la classe fornisce la funzione del pacchetto 
6983 \family typewriter
6984 makeidx
6985 \family default
6986 .
6987  Questo è il caso delle classi di documento 
6988 \family typewriter
6989 amsart
6990 \family default
6991  e 
6992 \family typewriter
6993 amsbook
6994 \family default
6995 .
6996 \end_layout
6997
6998 \begin_layout Description
6999
7000
7001 \family typewriter
7002 \series medium
7003 ProvidesUrl
7004 \family default
7005 \series default
7006  [
7007 \family typewriter
7008 \emph on
7009 0
7010 \emph default
7011 , 1
7012 \family default
7013 ] Se la classe fornisce la funzione del pacchetto 
7014 \family typewriter
7015 url
7016 \family default
7017 .
7018  Questo è il caso della classe di documento 
7019 \family typewriter
7020 AASTeX
7021 \family default
7022 .
7023 \end_layout
7024
7025 \begin_layout Description
7026
7027
7028 \family typewriter
7029 \series medium
7030 DefaultFont
7031 \family default
7032 \series default
7033  Questo è usato per descrivere il font di default del documento.
7034  Guardare la sezione\InsetSpace ~
7035
7036 \begin_inset LatexCommand \ref{sec:fonts}
7037
7038 \end_inset
7039
7040  per una descrizione.
7041 \end_layout
7042
7043 \begin_layout Description
7044
7045
7046 \family typewriter
7047 \series medium
7048 Preamble\SpecialChar \ldots{}
7049 EndPreamble
7050 \family default
7051 \series default
7052  Un set di macro definizione che saranno emesse all'inizio dei files LaTeX.
7053  Usatelo per definizioni globali.
7054 \end_layout
7055
7056 \begin_layout Description
7057
7058
7059 \family typewriter
7060 \series medium
7061 Input
7062 \family default
7063 \series default
7064  Come implica il nome, questo comando permette di inserire un altro file
7065  di definizione di textclass per evitare una ripetizione dei comandi.
7066  Molti files di textclass, per esempio, mettono 
7067 \family typewriter
7068 stdclass.inc
7069 \family default
7070 , che contiene molti dei layouts di base.
7071 \end_layout
7072
7073 \begin_layout Description
7074
7075
7076 \family typewriter
7077 \series medium
7078 NoStyle
7079 \family default
7080 \series default
7081  Questo comando elimina uno stile esistente.
7082  E' particolarmente utile quando si vuole sopprimere un layout definito
7083  in un input file.
7084 \end_layout
7085
7086 \begin_layout Standard
7087
7088
7089 \begin_inset ERT
7090 status collapsed
7091
7092 \begin_layout Standard
7093
7094 \backslash
7095 end{sloppypar}
7096 \end_layout
7097
7098 \end_inset
7099
7100
7101 \end_layout
7102
7103 \begin_layout Subsection
7104
7105 Sezione 
7106 \family typewriter
7107 ClassOption
7108 \end_layout
7109
7110 \begin_layout Standard
7111
7112
7113 \begin_inset LatexCommand \label{sec:classoptions}
7114
7115 \end_inset
7116
7117  La sezione 
7118 \family typewriter
7119 ClassOption
7120 \family default
7121  può contenere le seguenti righe:
7122 \end_layout
7123
7124 \begin_layout Description
7125
7126
7127 \family typewriter
7128 \series medium
7129 FontSize
7130 \family default
7131 \series default
7132  [
7133 \family typewriter
7134 string="10|11|12"
7135 \family default
7136 ] Una lista delle grandezze dei font disponibili per il font principale
7137  del documento, separato da 
7138 \begin_inset Quotes eld
7139 \end_inset
7140
7141
7142 \family typewriter
7143 |
7144 \family default
7145
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149 .
7150 \end_layout
7151
7152 \begin_layout Description
7153
7154
7155 \family typewriter
7156 \series medium
7157 PageStyle
7158 \family default
7159 \series default
7160  [
7161 \family typewriter
7162 string="empty|plain|headings|fancy"
7163 \family default
7164 ] La lista degli stili di pagina disponibili, separati da 
7165 \begin_inset Quotes eld
7166 \end_inset
7167
7168
7169 \family typewriter
7170 |
7171 \family default
7172
7173 \begin_inset Quotes erd
7174 \end_inset
7175
7176 .
7177 \end_layout
7178
7179 \begin_layout Description
7180
7181
7182 \family typewriter
7183 \series medium
7184 Other
7185 \family default
7186 \series default
7187  [
7188 \family typewriter
7189 string=""
7190 \family default
7191 ] Alcune opzioni di classi di documento, separate da una virgola, che sarà
7192  aggiunta alla parte delle opzioni del comando
7193 \family typewriter
7194  
7195 \backslash
7196 documentclass
7197 \family default
7198 .
7199 \end_layout
7200
7201 \begin_layout Subsection
7202
7203 Layouts specifici di paragrafo
7204 \end_layout
7205
7206 \begin_layout Standard
7207
7208 La descrizione di un layout description è di questo tipo
7209 \begin_inset Foot
7210 status collapsed
7211
7212 \begin_layout Standard
7213
7214 Notate che questo può definire un nuovo layout o modificarne uno esistente.
7215 \end_layout
7216
7217 \end_inset
7218
7219 :
7220 \end_layout
7221
7222 \begin_layout LyX-Code
7223
7224 Style 
7225 \family roman
7226 \emph on
7227 name
7228 \end_layout
7229
7230 \begin_layout LyX-Code
7231
7232
7233 \noun on
7234 ...
7235 \end_layout
7236
7237 \begin_layout LyX-Code
7238
7239 End
7240 \end_layout
7241
7242 \begin_layout Standard
7243
7244 dove sono consentiti i seguenti comandi:
7245 \end_layout
7246
7247 \begin_layout Standard
7248
7249
7250 \begin_inset ERT
7251 status collapsed
7252
7253 \begin_layout Standard
7254
7255 \backslash
7256 begin{sloppypar}
7257 \end_layout
7258
7259 \end_inset
7260
7261
7262 \end_layout
7263
7264 \begin_layout Description
7265
7266
7267 \family typewriter
7268 \series medium
7269 CopyStyle
7270 \family default
7271 \series default
7272  Questo è usato per copiare tutte le caratteristiche di un layout esistente
7273  in quello corrente.
7274  
7275 \end_layout
7276
7277 \begin_layout Description
7278
7279
7280 \family typewriter
7281 \series medium
7282 LatexType
7283 \family default
7284 \series default
7285  [
7286 \family typewriter
7287 \emph on
7288 Paragraph
7289 \emph default
7290 , Command, Environment, Item_Environment,
7291 \family default
7292  
7293 \family typewriter
7294 List_Environment
7295 \family default
7296 ] Come dovrebbe essere tradotto il layout in LaTeX.
7297  
7298 \family typewriter
7299 Paragraph
7300 \family default
7301  non significa nulla in particolare.
7302  
7303 \family typewriter
7304 Command
7305 \family default
7306  significa 
7307 \family typewriter
7308
7309 \backslash
7310
7311 \emph on
7312 LatexName
7313 \emph default
7314 {\SpecialChar \ldots{}
7315 }
7316 \family default
7317  e 
7318 \family typewriter
7319 Environment
7320 \family default
7321  significa 
7322 \family typewriter
7323
7324 \backslash
7325 begin{
7326 \emph on
7327 LatexName
7328 \emph default
7329 }\SpecialChar \ldots{}
7330
7331 \backslash
7332 end{
7333 \emph on
7334 LatexName
7335 \emph default
7336 }
7337 \family default
7338 .
7339  
7340 \family typewriter
7341 Item_Environment
7342 \family default
7343  è lo stesso di 
7344 \family typewriter
7345 Environment
7346 \family default
7347 , eccetto che per 
7348 \family typewriter
7349
7350 \backslash
7351 item
7352 \family default
7353  che è generato per ogni paragrafo di questo ambiente.
7354  
7355 \family typewriter
7356 List_Environment
7357 \family default
7358  è lo stesso di 
7359 \family typewriter
7360 Item_Environment
7361 \family default
7362 , eccetto 
7363 \family typewriter
7364 LabelWidthString
7365 \family default
7366  che è passato come argomento per l'ambiente.
7367  
7368 \family typewriter
7369 LabelWidthString
7370 \family default
7371  può essere definito nel menu 
7372 \family sans
7373 \bar under
7374 L
7375 \bar default
7376 ayout\SpecialChar \menuseparator
7377
7378 \bar under
7379 P
7380 \bar default
7381 aragraph.
7382  
7383 \end_layout
7384
7385 \begin_layout Description
7386
7387
7388 \family typewriter
7389 \series medium
7390 InTitle
7391 \series default
7392  [1, 0] 
7393 \family default
7394 Se il valore è 1, segna il layout come necessitante di un 
7395 \family typewriter
7396
7397 \backslash
7398 maketitle
7399 \family default
7400 .
7401  
7402 \end_layout
7403
7404 \begin_layout Description
7405
7406
7407 \family typewriter
7408 \series medium
7409 LatexName
7410 \family default
7411 \series default
7412  Il nome del corrispondente materiale LaTeX.
7413  Può essere sia di ambiente che di comando.
7414 \end_layout
7415
7416 \begin_layout Description
7417
7418
7419 \family typewriter
7420 \series medium
7421 LatexParam
7422 \family default
7423 \series default
7424  Il parametro opzionale per il relativo materiale 
7425 \family typewriter
7426 LatexName
7427 \family default
7428 .
7429  Questo parametro non può essere cambiato da LyX.
7430 \end_layout
7431
7432 \begin_layout Description
7433
7434
7435 \family typewriter
7436 \series medium
7437 Margin
7438 \family default
7439 \series default
7440  [
7441 \family typewriter
7442 \emph on
7443 Static
7444 \emph default
7445 , Manual, Dynamic, First_Dynamic, Right_Address_Box
7446 \family default
7447
7448 \newline
7449 Il tipo di margine che il layout ha sul lato sinistro.
7450  
7451 \family typewriter
7452 Static
7453 \family default
7454  significa un margine statico.
7455  
7456 \family typewriter
7457 Manual
7458 \family default
7459  significa che il margine sinistro dipende dalla stringa immessa nel menu
7460  
7461 \family sans
7462 \bar under
7463 L
7464 \bar default
7465 ayout\SpecialChar \menuseparator
7466
7467 \bar under
7468 P
7469 \bar default
7470 aragraph.
7471  
7472 \family default
7473 Questo è usato per intestazione enumerate automatiche.
7474
7475 \family typewriter
7476  Dynamic
7477 \family sans
7478  
7479 \family default
7480 significa che il margine dipende dalla grandezza dell'etichetta.
7481
7482 \family sans
7483  
7484 \family default
7485 E' ovvio che l'intestazione 
7486 \begin_inset Quotes eld
7487 \end_inset
7488
7489 5.4.3.2.1 Very long headline
7490 \begin_inset Quotes erd
7491 \end_inset
7492
7493  deve avere un margine sinistro più ampio (ampio quanto 
7494 \begin_inset Quotes eld
7495 \end_inset
7496
7497 5.4.3.2.1
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501 ) di 
7502 \begin_inset Quotes eld
7503 \end_inset
7504
7505 3.2 Very long headline
7506 \begin_inset Quotes erd
7507 \end_inset
7508
7509 , anche se altri word processors non sono in grado di farlo.
7510
7511 \family sans
7512  
7513 \family typewriter
7514 First_Dynamic
7515 \family default
7516  è s simile, ma solo la prima riga del paragrafo è dinamica, mentre le altre
7517  sono statiche.
7518  usato ad esempio per le descrizioni.
7519  
7520 \family typewriter
7521 Right_Address_Box
7522 \family default
7523  significa che il margine è scelto in modo tale che la riga più lunga di
7524  questo paragrafo arriva fino al margine destro.
7525  Usato per scrivere indirizzi in alto a destra della pagina.
7526 \end_layout
7527
7528 \begin_layout Description
7529
7530
7531 \family typewriter
7532 \series medium
7533 NextNoIndent
7534 \family default
7535 \series default
7536  [
7537 \family typewriter
7538 1, 
7539 \emph on
7540 0
7541 \family default
7542 \emph default
7543 ] Se si vuole consentire al paragrafo successivo di staccare dal margine
7544  la prima riga, 0 consente di farlo, 1 no.
7545 \end_layout
7546
7547 \begin_layout Description
7548
7549
7550 \family typewriter
7551 \series medium
7552 ParIndent
7553 \family default
7554 \series default
7555  [
7556 \family typewriter
7557 string=""
7558 \family default
7559 ] Il capoverso della prima linea del paragrafo.
7560  L'argomento è passato come una stringa.
7561  Ad esempio 
7562 \family typewriter
7563 "MM"
7564 \family default
7565  significa che il paragrafo rientra con una larghezza di 
7566 \family typewriter
7567 "MM"
7568 \family default
7569  nel font normale.
7570  Potete anche avere una larghezza negativa premettendo il valore 
7571 \family typewriter
7572 "-"
7573 \family default
7574 .
7575  Questo al fine di ottenere lo stesso effetto per ogni font.
7576  Il 
7577 \family typewriter
7578 Parindent
7579 \family default
7580  sarà fisso per un certo layout.
7581  L'eccezione è lo Standard layout, dato che il rientro del paragrafo di
7582  layout standard poò essere proibito con 
7583 \family typewriter
7584 NextNoIndent
7585 \family default
7586 .
7587  Inoltre, i paragrafi con Standard layout, usano il
7588 \family typewriter
7589  Parindent
7590 \family default
7591  dell'ambiente, non il loro nativo.
7592  ad esempio, i paragrafi Standard dentro una numerazione non hanno il rientro.
7593 \end_layout
7594
7595 \begin_layout Description
7596
7597
7598 \family typewriter
7599 \series medium
7600 Parskip
7601 \family default
7602 \series default
7603  [
7604 \family typewriter
7605 float=0
7606 \family default
7607 ] LyX permette di scegliere sia il 
7608 \begin_inset Quotes eld
7609 \end_inset
7610
7611 rientra
7612 \begin_inset Quotes erd
7613 \end_inset
7614
7615  che il 
7616 \begin_inset Quotes eld
7617 \end_inset
7618
7619 salta
7620 \begin_inset Quotes erd
7621 \end_inset
7622
7623  per redigere un documento.
7624  Quando si sceglie 
7625 \begin_inset Quotes eld
7626 \end_inset
7627
7628 rientra
7629 \begin_inset Quotes erd
7630 \end_inset
7631
7632 , questo valore è completamente ignorato.
7633  Quando si sceglie 
7634 \begin_inset Quotes eld
7635 \end_inset
7636
7637 salta
7638 \begin_inset Quotes erd
7639 \end_inset
7640
7641  l'indentazione di un layout 
7642 \begin_inset Quotes eld
7643 \end_inset
7644
7645 Paragrafo
7646 \begin_inset Quotes erd
7647 \end_inset
7648
7649  in stile LaTeX è ignorato e tutti i paragrafi sono addizionalmente separati
7650  da questo argomento parskip.
7651  Lo spazio è verticale è calcolato con 
7652 \family typewriter
7653 value*DefaultHeight()
7654 \family default
7655  dove 
7656 \family typewriter
7657 DefaultHeight()
7658 \family default
7659  è l'altezza di una riga con il font normale.
7660  In questo modo l'aspetto rimane lo stesso indipendentemente dai fonts.
7661 \end_layout
7662
7663 \begin_layout Description
7664
7665
7666 \family typewriter
7667 \series medium
7668 TopSep
7669 \family default
7670 \series default
7671  [
7672 \family typewriter
7673 float=0
7674 \family default
7675 ] Lo spazio vericale con cui il primo di una catena di paragrafi con questo
7676  layout è separato dal precedente.
7677  Se il paragrafo precedente ha un altro layout, le separazioni non sono
7678  semplicemente ma è preso il massimo.
7679 \end_layout
7680
7681 \begin_layout Description
7682
7683
7684 \family typewriter
7685 \series medium
7686 BottomSep
7687 \family default
7688 \series default
7689  [
7690 \family typewriter
7691 float=0
7692 \family default
7693 ] La stessa cosa di 
7694 \family typewriter
7695 TopSep
7696 \family default
7697  per l'ultimo paragrafo.
7698 \end_layout
7699
7700 \begin_layout Description
7701
7702
7703 \family typewriter
7704 \series medium
7705 Parsep
7706 \family default
7707 \series default
7708  [
7709 \family typewriter
7710 float=0
7711 \family default
7712 ] Lo spazio verticale tra due paragrafi di questo layout.
7713 \end_layout
7714
7715 \begin_layout Description
7716
7717
7718 \family typewriter
7719 \series medium
7720 Itemsep
7721 \family default
7722 \series default
7723  [
7724 \family typewriter
7725 float=0
7726 \family default
7727 ] Questo è uno spazio extra tra i paragrafi di un ambiente di layout.
7728  Se immettete altri layouts nello stesso ambiente, ognuno sarà separato
7729  con 
7730 \family typewriter
7731 Parsep
7732 \family default
7733 .
7734  Ma la totalità degli oggetti presenti nell'ambiente sono separati addizionalmen
7735 te con 
7736 \family typewriter
7737 Itemsep
7738 \family default
7739 .
7740  
7741 \end_layout
7742
7743 \begin_layout Description
7744
7745
7746 \family typewriter
7747 \series medium
7748 LeftMargin
7749 \family default
7750 \series default
7751  [
7752 \family typewriter
7753 string=""
7754 \family default
7755 ] Se immettete layouts nell'ambiente, i margini sinistri non sono semplicemente
7756  aggiunti, ma aggiunti con un fattore 
7757 \begin_inset Formula $\frac{4}{depth+4}$
7758 \end_inset
7759
7760 .
7761  Notate che questo parametro è usato anche quando il bordo è definito come
7762  
7763 \family typewriter
7764 Manual
7765 \family default
7766  o 
7767 \family typewriter
7768 Dynamic
7769 \family default
7770 .
7771  Poi è aggiunto al bordo manuale o dinamico.
7772  Questa stringa ha lo stesso significato di 
7773 \family typewriter
7774 ParIndent
7775 \family default
7776 .
7777 \end_layout
7778
7779 \begin_layout Description
7780
7781
7782 \family typewriter
7783 \series medium
7784 RightMargin
7785 \family default
7786 \series default
7787  [
7788 \family typewriter
7789 string=""
7790 \family default
7791 ] Simile a
7792 \family typewriter
7793  LeftMargin
7794 \family default
7795 .
7796 \end_layout
7797
7798 \begin_layout Description
7799
7800
7801 \family typewriter
7802 \series medium
7803 Labeltype
7804 \family default
7805 \series default
7806  [
7807 \family typewriter
7808 \emph on
7809 No_Label
7810 \emph default
7811 , Manual, Static, Top_Environment, 
7812 \newline
7813 Centered_Top_Environment, Sensitive, Counter_Chapter, 
7814 \newline
7815 Counter_Section, Counter_Subsection, Counter_Subsubsection, 
7816 \newline
7817 Counter_Paragraph, Counter_Subparagraph, Counter_EnumI,
7818 \family default
7819  
7820 \family typewriter
7821
7822 \newline
7823 Counter_EnumII, Counter_EnumIII, Counter_EnumIV
7824 \family default
7825
7826 \newline
7827
7828 \family typewriter
7829 Manual
7830 \family default
7831  significa che l'etichetta è la primissima parola (lettera).
7832  
7833 \family typewriter
7834 Static
7835 \family default
7836  viene definito nel layout (vedere 
7837 \family typewriter
7838 LabelString
7839 \family default
7840 ).
7841  
7842 \family typewriter
7843 Top_Environment
7844 \family default
7845  e 
7846 \family typewriter
7847 Centered_Top_Environment
7848 \family default
7849  sono casi speciali di
7850 \family typewriter
7851  Static
7852 \family default
7853 .
7854  L'etichetta sarà stampata sopra il paragrafo, ma solo in cima all'ambiente
7855  o in cima ad una catena di paragrafi con questo layout.
7856  L'uso è ad esempio il layout 
7857 \family sans
7858 Abstract
7859 \family default
7860  o il
7861 \family sans
7862  Bibliography
7863 \family default
7864 .
7865  E' questo anche il caso di etichette 
7866 \family typewriter
7867 Manual
7868 \family default
7869  con tipo LaTeX 
7870 \family typewriter
7871 Enviroment
7872 \family default
7873 , per creare layouts per teoremi messi giù correttamente.
7874  
7875 \family typewriter
7876 Sensitive
7877 \family default
7878  è un caso speciale per le etichette di testo 
7879 \begin_inset Quotes eld
7880 \end_inset
7881
7882 Figura
7883 \begin_inset Quotes erd
7884 \end_inset
7885
7886  e 
7887 \begin_inset Quotes eld
7888 \end_inset
7889
7890 Tabella
7891 \begin_inset Quotes erd
7892 \end_inset
7893
7894 .
7895  
7896 \family typewriter
7897 Sensitive
7898 \family default
7899  significa che la stringa dell'etichetta dipende dal tipo di oggetto flottante.
7900  I tipi di etichetta 
7901 \family typewriter
7902 Counter_xxx
7903 \family default
7904  sdivrebbero essere abbastanza chiare.
7905 \end_layout
7906
7907 \begin_layout Description
7908
7909
7910 \family typewriter
7911 \series medium
7912 Labelsep
7913 \family default
7914 \series default
7915  [
7916 \family typewriter
7917 string=""
7918 \family default
7919 ] Lo spazio orizzontale tra l'etichetta e il corpo del testo.
7920  Usato solo per etichette che non sono sopra il corpo del testo.
7921 \end_layout
7922
7923 \begin_layout Description
7924
7925
7926 \family typewriter
7927 \series medium
7928 LabelBottomsep
7929 \family default
7930 \series default
7931  [float=0] Lo spazio verticale tra l'etichetta e il corpo del testo.
7932  Usato solo per etichette che sono sopra il corpo del testo (
7933 \family typewriter
7934 Top_Environment
7935 \family default
7936
7937 \family typewriter
7938 Centered_Top_Environment
7939 \family default
7940 ).
7941 \end_layout
7942
7943 \begin_layout Description
7944
7945
7946 \family typewriter
7947 \series medium
7948 LabelString
7949 \family default
7950 \series default
7951  [
7952 \family typewriter
7953 string=""
7954 \family default
7955 ] La stringa usata per un'etichetta del tipo 
7956 \family typewriter
7957 Static
7958 \family default
7959 .
7960  Quando il bordo è manuale questa stringa è anche usata come suggerimento
7961  per 
7962 \family typewriter
7963 LabelWidthString
7964 \family default
7965  che può essere settato nel menu
7966 \family sans
7967 \bar under
7968  L
7969 \bar default
7970 ayout
7971 \family typewriter
7972 \SpecialChar \menuseparator
7973
7974 \family sans
7975 \bar under
7976 P
7977 \bar default
7978 aragraph
7979 \family default
7980 .
7981  Quando il tipo label è Counter_xxx, questa stringa viene preposta al contatore.
7982 \end_layout
7983
7984 \begin_layout Description
7985
7986
7987 \series medium
7988 Align
7989 \series default
7990  [
7991 \emph on
7992 block
7993 \emph default
7994 , left, right, center] Allineamento del paragrafo.
7995 \end_layout
7996
7997 \begin_layout Description
7998
7999
8000 \family typewriter
8001 \series medium
8002 AlignPossible
8003 \family default
8004 \series default
8005  [
8006 \family typewriter
8007 \emph on
8008 block
8009 \emph default
8010 , left, right, center
8011 \family default
8012 ] Sono 
8013 \emph on
8014 liste
8015 \emph default
8016 , separate da una virgola, di possibili allineamenti.
8017  Alcuni stili LaTeX proibiscono certi allineamenti, dato che questi non
8018  hanno senso.
8019  Ad esempio una numerazione allineata a destra o centrata non è possibile.
8020 \end_layout
8021
8022 \begin_layout Description
8023
8024
8025 \family typewriter
8026 \series medium
8027 Fill_Top
8028 \family default
8029 \series default
8030  [
8031 \family typewriter
8032 \emph on
8033 0
8034 \emph default
8035 ,1
8036 \family default
8037 ] Con questo parametro il valore 
8038 \family sans
8039 Fill
8040 \family default
8041  della lista 
8042 \begin_inset Quotes eld
8043 \end_inset
8044
8045 Spazi verticali sopra
8046 \begin_inset Quotes erd
8047 \end_inset
8048
8049  del menu 
8050 \family sans
8051 \bar under
8052 L
8053 \bar default
8054 ayout\SpecialChar \-
8055
8056 \family default
8057
8058 \begin_inset Foot
8059 status collapsed
8060
8061 \begin_layout Standard
8062
8063
8064 \emph on
8065 Nota di Jean-Marc:
8066 \emph default
8067  Non sono sicuro che questo settaggio sia molto usato, e sarà probabilmente
8068  rimosso nelle versioni successive.
8069 \end_layout
8070
8071 \end_inset
8072
8073 .
8074 \end_layout
8075
8076 \begin_layout Description
8077
8078
8079 \family typewriter
8080 \series medium
8081 Fill_Bottom
8082 \family default
8083 \series default
8084  [
8085 \family typewriter
8086 \emph on
8087 0
8088 \emph default
8089 ,1
8090 \family default
8091 ] Simile a 
8092 \family typewriter
8093 Fill_Top
8094 \family default
8095 .
8096 \end_layout
8097
8098 \begin_layout Description
8099
8100
8101 \family typewriter
8102 \series medium
8103 NeedProtect
8104 \family default
8105 \series default
8106  [
8107 \family typewriter
8108 \emph on
8109 0
8110 \emph default
8111 ,1
8112 \family default
8113 ] Qualora comandi fragili in questo layout necessitassero di essere protetti
8114  
8115 \family typewriter
8116
8117 \backslash
8118 protetti
8119 \family default
8120 .
8121 \end_layout
8122
8123 \begin_layout Description
8124
8125
8126 \family typewriter
8127 \series medium
8128 Newline
8129 \family default
8130 \series default
8131  [
8132 \family typewriter
8133 0, 
8134 \emph on
8135 1
8136 \family default
8137 \emph default
8138 ] Se le nuove linee sono tradotte in nuove linee LaTeX (
8139 \family typewriter
8140
8141 \backslash
8142
8143 \backslash
8144
8145 \family default
8146 ) o no.
8147  La traduzione può essere evitata per facilitare l'editing di LaTeX all'interno
8148  di LyX.
8149  
8150 \end_layout
8151
8152 \begin_layout Description
8153
8154
8155 \family typewriter
8156 \series medium
8157 FreeSpacing
8158 \family default
8159 \series default
8160  [
8161 \family typewriter
8162 \emph on
8163 0
8164 \emph default
8165 , 1
8166 \family default
8167 ] Di solito LyX non vi permette di inserire più di uno spazio tra le parole,
8168  dato che lo spazio è considerato come una separazione tra due parole, non
8169  un carattere o un simbolo a se stante.
8170  Questa è una cosa molto simpatica ma a volte annoiante, ad esempio quando
8171  si scrive il codice di un programma o codice LaTeX.
8172  Per queste ragioni, 
8173 \family typewriter
8174 FreeSpacing
8175 \family default
8176  può essere abilitato.
8177  Notate che LyX creerà bianchi protetti per i bianchi addizionali se in
8178  un modo diverso dal modo-LaTeX.
8179 \end_layout
8180
8181 \begin_layout Description
8182
8183
8184 \family typewriter
8185 \series medium
8186 KeepEmpty
8187 \family default
8188 \series default
8189  [
8190 \family typewriter
8191 \emph on
8192 0
8193 \emph default
8194 , 1
8195 \family default
8196 ] Di solito LyX non vi consente di lasciare un paragrafo vuoto, dato che
8197  porterebbe ad un output LaTeX vuoto.
8198  Ci sono alcuni casi in cui però questo è auspicabile: in un template di
8199  lettera i campi richiesti possono essere rappresentati da spazi vuoti,
8200  così da agevolare le persone; in alcune classi speciali, un layout potrebbe
8201  essere usato come un tipo di interruzione, che non contiene testo, ecc.
8202 \end_layout
8203
8204 \begin_layout Description
8205
8206
8207 \family typewriter
8208 \series medium
8209 Spacing
8210 \family default
8211 \series default
8212  [
8213 \family typewriter
8214 \emph on
8215 single
8216 \emph default
8217 , onehalf, double, other 
8218 \family default
8219 \emph on
8220 value
8221 \emph default
8222 ] Questo definisce la spaziatura di default del layout.
8223  Gli argomenti
8224 \family typewriter
8225  single
8226 \family default
8227
8228 \family typewriter
8229 onehalf
8230 \family default
8231  e 
8232 \family typewriter
8233 double
8234 \family default
8235  corrispondono rispettivamentead un valore multiplo di 1, 1.25 e 1.667.
8236  Se specificate l'argomento 
8237 \family typewriter
8238 other
8239 \family default
8240 , dovrete poi fornire un argomento numerico che sarà l'attuale moltiplicatore.
8241  Notate che, contrariamente agli altri parametri, 
8242 \family typewriter
8243 Spacing
8244 \family default
8245  implica la generazione di uno specifico codice LaTeX, usando il pacchetto
8246  
8247 \family typewriter
8248 setspace.sty
8249 \family default
8250 .
8251 \end_layout
8252
8253 \begin_layout Description
8254
8255
8256 \family typewriter
8257 \series medium
8258 Font
8259 \family default
8260 \series default
8261  Il font usato 
8262 \emph on
8263 sia
8264 \emph default
8265  per il corpo del testo 
8266 \emph on
8267 che
8268 \emph default
8269  per l'etichetta.
8270  Vedere la sezione\InsetSpace ~
8271
8272 \begin_inset LatexCommand \label{Ref: sec:fonts}
8273
8274 \end_inset
8275
8276 .Notare che definire questo font automaticamente definisce 
8277 \family typewriter
8278 LabelFont 
8279 \family default
8280 allo stesso valore.
8281 \end_layout
8282
8283 \begin_layout Description
8284
8285
8286 \family typewriter
8287 \series medium
8288 TextFont
8289 \family default
8290 \series default
8291  Il font usato per il corpo del testo.
8292  Vedere la sezione\InsetSpace ~
8293
8294 \begin_inset LatexCommand \ref{sec:fonts}
8295
8296 \end_inset
8297
8298 .
8299 \end_layout
8300
8301 \begin_layout Description
8302
8303
8304 \family typewriter
8305 \series medium
8306 LabelFont
8307 \family default
8308 \series default
8309  Il font usato per le etichette.
8310  Vedere la sezione\InsetSpace ~
8311
8312 \begin_inset LatexCommand \ref{sec:fonts}
8313
8314 \end_inset
8315
8316 .
8317 \end_layout
8318
8319 \begin_layout Description
8320
8321
8322 \family typewriter
8323 \series medium
8324 Preamble\SpecialChar \ldots{}
8325 EndPreamble
8326 \family default
8327 \series default
8328  Un set di macro definizione che saranno emesse all'inizio dei files LaTeX
8329  quando il layout è usato.
8330  Usatelo per definire le macro di cui si hanno bisogno per questo particolare
8331  layout.
8332 \end_layout
8333
8334 \begin_layout Standard
8335
8336
8337 \begin_inset ERT
8338 status collapsed
8339
8340 \begin_layout Standard
8341
8342 \backslash
8343 end{sloppypar}
8344 \end_layout
8345
8346 \end_inset
8347
8348
8349 \end_layout
8350
8351 \begin_layout Subsection
8352
8353 Descrizione dei Font
8354 \end_layout
8355
8356 \begin_layout Standard
8357
8358
8359 \begin_inset LatexCommand \label{sec:fonts}
8360
8361 \end_inset
8362
8363 Una descrizione di un font appare così:
8364 \end_layout
8365
8366 \begin_layout LyX-Code
8367
8368 Font
8369 \family roman
8370 \emph on
8371  or 
8372 \family default
8373 \emph default
8374 LabelFont
8375 \end_layout
8376
8377 \begin_layout LyX-Code
8378
8379  
8380 \end_layout
8381
8382 \begin_layout LyX-Code
8383
8384 EndFont
8385 \end_layout
8386
8387 \begin_layout Standard
8388
8389 e i seguenti comandi sono disponibili:
8390 \end_layout
8391
8392 \begin_layout Description
8393
8394
8395 \family typewriter
8396 \series medium
8397 Family
8398 \family default
8399 \series default
8400  [
8401 \family typewriter
8402 \emph on
8403 Roman
8404 \emph default
8405 , Sans, Typewriter
8406 \family default
8407
8408 \end_layout
8409
8410 \begin_layout Description
8411
8412
8413 \family typewriter
8414 \series medium
8415 Series
8416 \family default
8417 \series default
8418  [
8419 \family typewriter
8420 \emph on
8421 Medium
8422 \emph default
8423 , Bold
8424 \family default
8425
8426 \end_layout
8427
8428 \begin_layout Description
8429
8430
8431 \family typewriter
8432 \series medium
8433 Shape
8434 \family default
8435 \series default
8436  [
8437 \family typewriter
8438 \emph on
8439 Up
8440 \emph default
8441 , Italic, SmallCaps
8442 \family default
8443
8444 \end_layout
8445
8446 \begin_layout Description
8447
8448
8449 \family typewriter
8450 \series medium
8451 Size
8452 \family default
8453 \series default
8454  [
8455 \family typewriter
8456 tiny, small, 
8457 \emph on
8458 normal
8459 \emph default
8460 , large, larger, largest, huge, giant
8461 \family default
8462 ]
8463 \end_layout
8464
8465 \begin_layout Description
8466
8467
8468 \family typewriter
8469 \series medium
8470 Color
8471 \series default
8472  
8473 \series bold
8474 [
8475 \series default
8476 \emph on
8477 none
8478 \emph default
8479 , black, white, red, green, blue, cyan, magenta, yellow
8480 \series bold
8481 ]
8482 \end_layout
8483
8484 \begin_layout Description
8485
8486
8487 \family typewriter
8488 \series medium
8489 Latex
8490 \family default
8491 \series default
8492  [
8493 \family typewriter
8494 \emph on
8495 no_latex
8496 \emph default
8497 , latex
8498 \family default
8499
8500 \family typewriter
8501 no_latex
8502 \family default
8503  significa che LyX tradurrà tutto in LaTeX.
8504  
8505 \family typewriter
8506 Latex
8507 \family default
8508  significa una stampata rossa e nessuna traduzione.
8509 \end_layout
8510
8511 \begin_layout Section
8512
8513 Creare Templates
8514 \begin_inset LatexCommand \label{sec:templates}
8515
8516 \end_inset
8517
8518
8519 \end_layout
8520
8521 \begin_layout Standard
8522
8523 I templates vengono creati come normali documenti.
8524  L'unica differenza è che i documenti normali contengono tutti i possibili
8525  settaggi, inclusi schemi di font e dimensioni della carta.
8526  Di solito l'utente non vuole che il template sovrascriva il suo default,
8527  per questo motivo il progettatore di template dovrebbe rimuovere i corrisponden
8528 ti comandi come 
8529 \family typewriter
8530
8531 \backslash
8532 fontscheme
8533 \family default
8534  or 
8535 \family typewriter
8536
8537 \backslash
8538 papersize
8539 \family default
8540  dal file di template di LyX.
8541  Questo si può fare con un qualsiasi editor di testo come
8542 \family typewriter
8543  vi
8544 \family default
8545  o 
8546 \family typewriter
8547 xedit
8548 \family default
8549 .
8550  
8551 \end_layout
8552
8553 \begin_layout Standard
8554
8555 Mettete il template editato che avete creato in 
8556 \family typewriter
8557 $UserDir/templates/
8558 \family default
8559 , copiate quello che usate dalla directory globale dei template in 
8560 \family typewriter
8561 $LyXDir/templates/
8562 \family default
8563  nello stesso posto, e ridefinite la directory dei template in 
8564 \family typewriter
8565 lyxrc
8566 \family default
8567  usando il comando 
8568 \family typewriter
8569
8570 \backslash
8571 template_path
8572 \family default
8573 .
8574 \end_layout
8575
8576 \begin_layout Chapter
8577
8578 Un Tutorial sulla Stampante
8579 \begin_inset LatexCommand \label{chap:printer}
8580
8581 \end_inset
8582
8583
8584 \end_layout
8585
8586 \begin_layout Section
8587
8588 Introduzione
8589 \end_layout
8590
8591 \begin_layout Standard
8592
8593 Questo capitolo descrive come sia possibile fare il setup di una stampante
8594  sotto Unix, in modo da poterla usare in LyX.
8595  Se avete un sistema Linux, e avete bisogno di settare la vostra stampante,
8596  potete anche leggere il file 
8597 \family typewriter
8598 Printing-HOWTO
8599 \family default
8600  [spesso nella directory 
8601 \family typewriter
8602 /usr/doc/FAQ/HOWTO/
8603 \family default
8604  o 
8605 \family typewriter
8606 /usr/doc/HOWTO/
8607 \family default
8608  a seconda del sistema].
8609  Inoltre dovrete installare il pacchetto Ghostscript dal vostro CD-ROM,
8610  se non lo avete ancora o mai fatto.
8611 \end_layout
8612
8613 \begin_layout Standard
8614
8615 Alcune distribuzioni Linux attualmente hanno i cosiddetti 
8616 \begin_inset Quotes eld
8617 \end_inset
8618
8619 filtri magici
8620 \begin_inset Quotes erd
8621 \end_inset
8622
8623  che settano automaticamente il vostro sistema e lo rendono pronto all'uso.
8624  Potete usare questi strumenti in alternativa o in aggiunta a quello che
8625  andremo a descrivere, anche se i risultati con questi strumenti saranno
8626  molto inferiori rispetto alle rispettive potenzialità.
8627  Se la vostra distribuzione ha un tool di configurazione anche in fase di
8628  installazione, potete certamente usarlo, ma dovrete comunque leggervi il
8629  
8630 \family typewriter
8631 Printing-HOWTO
8632 \family default
8633  quando vorrete personalizzare il setup.
8634 \end_layout
8635
8636 \begin_layout Standard
8637
8638 Così, se vi sentite avventurosi, o non avete altra scelta, continuate a
8639  leggere!
8640 \end_layout
8641
8642 \begin_layout Section
8643
8644 Il file 
8645 \family typewriter
8646 /etc/printcap
8647 \end_layout
8648
8649 \begin_layout Subsection
8650
8651 Descrizione
8652 \end_layout
8653
8654 \begin_layout Standard
8655
8656 Il file 
8657 \family typewriter
8658 /etc/printcap
8659 \family default
8660  è quello che permette di comunicare a Linux i dati della vostra stampante.
8661  Ogni entrata definisce una stampante, le da un nome con cui gli utenti
8662  possono chiamarla, e dice a Linux come gestire il relativo output.
8663  Potete ovviamente avere più 
8664 \begin_inset Quotes eld
8665 \end_inset
8666
8667 stampanti
8668 \begin_inset Quotes erd
8669 \end_inset
8670
8671  nel vostro sistema anche se gli utenti accedono ad una stessa stampante
8672  fisica, però con differenti setup o funzioni abilitate.
8673 \begin_inset Foot
8674 status collapsed
8675
8676 \begin_layout Standard
8677
8678 Nota di
8679 \noun on
8680  John Weiss
8681 \noun default
8682 : Io ho una Epson Stylus Color IIs.
8683  Quando c'è bisogno di cambiare le testine per usare il colore sulla Stylus
8684  IIs, faccio un setup per una stampante separata, che chiamo 
8685 \family typewriter
8686 color
8687 \family default
8688 .
8689  Ho anche creato una stampante 
8690 \family typewriter
8691 draft
8692 \family default
8693  che usa una risoluzione di stampa minore e meno caratteristiche di stampa.
8694  Quindi potete intuire la funzionalità di printcap.
8695 \end_layout
8696
8697 \end_inset
8698
8699  Naturalmente, avrete bisogno di un'entrata printcap per ogni stampante
8700  fisica che avete.
8701 \end_layout
8702
8703 \begin_layout Standard
8704
8705 Ecco un esempio 
8706 \family typewriter
8707 /etc/printcap
8708 \family default
8709 :
8710 \end_layout
8711
8712 \begin_layout LyX-Code
8713
8714 lp|Text on an Epson:
8715 \backslash
8716
8717 \end_layout
8718
8719 \begin_layout LyX-Code
8720
8721 :lp=/dev/lp1:
8722 \backslash
8723
8724 \end_layout
8725
8726 \begin_layout LyX-Code
8727
8728 :sd=/var/spool/lpd/lp:
8729 \backslash
8730
8731 \end_layout
8732
8733 \begin_layout LyX-Code
8734
8735 :lf=/var/spool/lpd/lp/errs:
8736 \backslash
8737
8738 \end_layout
8739
8740 \begin_layout LyX-Code
8741
8742 :mx#0:
8743 \backslash
8744
8745 \end_layout
8746
8747 \begin_layout LyX-Code
8748
8749 :sh:
8750 \backslash
8751
8752 \end_layout
8753
8754 \begin_layout LyX-Code
8755
8756 :sf:
8757 \newline
8758
8759 \end_layout
8760
8761 \begin_layout LyX-Code
8762
8763 draft|Postscript on an Epson Stylus Color IIs, 180dpi:
8764 \backslash
8765
8766 \end_layout
8767
8768 \begin_layout LyX-Code
8769
8770 :lp=/dev/lp1:
8771 \backslash
8772
8773 \end_layout
8774
8775 \begin_layout LyX-Code
8776
8777 :sd=/var/spool/lpd/draft:
8778 \backslash
8779
8780 \end_layout
8781
8782 \begin_layout LyX-Code
8783
8784 :lf=/var/spool/lpd/draft/errs:
8785 \backslash
8786
8787 \end_layout
8788
8789 \begin_layout LyX-Code
8790
8791 :if=/var/spool/lpd/draft/draft.filter:
8792 \backslash
8793
8794 \end_layout
8795
8796 \begin_layout LyX-Code
8797
8798 :mx#0:
8799 \backslash
8800
8801 \end_layout
8802
8803 \begin_layout LyX-Code
8804
8805 :sh:
8806 \backslash
8807
8808 \end_layout
8809
8810 \begin_layout LyX-Code
8811
8812 :sf:
8813 \newline
8814
8815 \end_layout
8816
8817 \begin_layout LyX-Code
8818
8819 ps|Postscript on an Epson Stylus Color IIs, 360dpi:
8820 \backslash
8821
8822 \end_layout
8823
8824 \begin_layout LyX-Code
8825
8826 :lp=/dev/lp1:
8827 \backslash
8828
8829 \end_layout
8830
8831 \begin_layout LyX-Code
8832
8833 :sd=/var/spool/lpd/ps:
8834 \backslash
8835
8836 \end_layout
8837
8838 \begin_layout LyX-Code
8839
8840 :lf=/var/spool/lpd/ps/errs:
8841 \backslash
8842
8843 \end_layout
8844
8845 \begin_layout LyX-Code
8846
8847 :if=/var/spool/lpd/ps/ps.filter:
8848 \backslash
8849
8850 \end_layout
8851
8852 \begin_layout LyX-Code
8853
8854 :mx#0:
8855 \backslash
8856
8857 \end_layout
8858
8859 \begin_layout LyX-Code
8860
8861 :sh:
8862 \backslash
8863
8864 \end_layout
8865
8866 \begin_layout LyX-Code
8867
8868 :sf:
8869 \end_layout
8870
8871 \begin_layout Standard
8872
8873 Prima di avventurarci nella spiegazione di questi geroglifici, abbiamo un
8874  messaggio importante:
8875 \end_layout
8876
8877
8878 \begin_layout Standard
8879
8880
8881 \begin_inset VSpace 0.51cm
8882 \end_inset
8883
8884
8885 \end_layout
8886
8887 \begin_layout Standard
8888 \align center
8889 ATTENZIONE! ATTENZIONE! ATTENZIONE!
8890 \end_layout
8891
8892 \begin_layout Standard
8893 \align center
8894 Usate solo una linea tra le entrate!!!
8895 \end_layout
8896
8897 \begin_layout Standard
8898 \align center
8899 Assicuratevi che la linea fra le entrate sia COMPLETAMENTE BIANCA!!!
8900 \end_layout
8901
8902 \begin_layout Standard
8903
8904
8905 \begin_inset VSpace 0.51cm
8906 \end_inset
8907
8908
8909 \end_layout
8910
8911
8912 \begin_layout Standard
8913
8914 Anche se lasciate uno spazio bianco tra le entrate, possono accadere cose
8915  strane, ed il sistema non interpreterà correttamente il file 
8916 \family typewriter
8917 /etc/printcap
8918 \family default
8919 .
8920 \end_layout
8921
8922 \begin_layout Standard
8923
8924 Date uno sguardo ad una delle entrate dell'esempio precedente.
8925  Ogni parte dell'entrata è seguita da un carattere 
8926 \begin_inset Quotes eld
8927 \end_inset
8928
8929
8930 \family typewriter
8931 :
8932 \family default
8933
8934 \begin_inset Quotes eld
8935 \end_inset
8936
8937 .
8938  Il carattere 
8939 \begin_inset Quotes eld
8940 \end_inset
8941
8942
8943 \family typewriter
8944
8945 \backslash
8946
8947 \family default
8948
8949 \begin_inset Quotes erd
8950 \end_inset
8951
8952  alla fine di ogni linea dice a Linux che l'entrata continua alla riga successiv
8953 a.
8954  Non mettete nulla dopo il 
8955 \begin_inset Quotes eld
8956 \end_inset
8957
8958
8959 \family typewriter
8960
8961 \backslash
8962
8963 \family default
8964
8965 \begin_inset Quotes erd
8966 \end_inset
8967
8968 , nemmeno uno spazio.
8969  Il 
8970 \begin_inset Quotes eld
8971 \end_inset
8972
8973
8974 \family typewriter
8975
8976 \backslash
8977
8978 \family default
8979
8980 \begin_inset Quotes erd
8981 \end_inset
8982
8983  dovrebbe seguire il 
8984 \begin_inset Quotes eld
8985 \end_inset
8986
8987
8988 \family typewriter
8989 :
8990 \family default
8991
8992 \begin_inset Quotes eld
8993 \end_inset
8994
8995  dell'ultima parte dell'entrata sulla linea che avete interrotto.
8996 \end_layout
8997
8998 \begin_layout Standard
8999
9000 Se scegliete di interrompere un'entrata di 
9001 \family typewriter
9002 printcap
9003 \family default
9004  in linee multiple, assicuratevi di mettere un 
9005 \begin_inset Quotes eld
9006 \end_inset
9007
9008
9009 \family typewriter
9010 :
9011 \family default
9012
9013 \begin_inset Quotes eld
9014 \end_inset
9015
9016  all'inizio del 
9017 \emph on
9018 testo
9019 \emph default
9020  della nuova linea, dopo ogni spazio.
9021  Ad esempio, potremmo aver scritto la prima entrata dell'esempio precedente
9022  come:
9023 \end_layout
9024
9025 \begin_layout LyX-Code
9026
9027 lp|Text:lp=/dev/lp1:sd=/var/spool/lpd/lp:lf=/var/spool/lpd/lp/errs:
9028 \end_layout
9029
9030 \begin_layout Standard
9031
9032 Notate che c'è un solo 
9033 \begin_inset Quotes eld
9034 \end_inset
9035
9036
9037 \family typewriter
9038 :
9039 \family default
9040
9041 \begin_inset Quotes eld
9042 \end_inset
9043
9044  tra ognuna delle parti dell'entrata.
9045  Se volete dividere questa entrata in due linee:
9046 \end_layout
9047
9048 \begin_layout LyX-Code
9049
9050 lp|Text:lp=/dev/lp1:sd=/var/spool/lpd/lp:
9051 \backslash
9052
9053 \end_layout
9054
9055 \begin_layout LyX-Code
9056
9057 :lf=/var/spool/lpd/lp/errs:
9058 \end_layout
9059
9060 \begin_layout Standard
9061
9062 Abbiamo interrotto la linea al punto 
9063 \begin_inset Quotes eld
9064 \end_inset
9065
9066
9067 \family typewriter
9068 :
9069 \family default
9070
9071 \begin_inset Quotes eld
9072 \end_inset
9073
9074  aggiungendo un 
9075 \begin_inset Quotes eld
9076 \end_inset
9077
9078
9079 \family typewriter
9080
9081 \backslash
9082
9083 \family default
9084
9085 \begin_inset Quotes erd
9086 \end_inset
9087
9088 , e iniziando la nuova linea che degli spazi e poi un 
9089 \begin_inset Quotes eld
9090 \end_inset
9091
9092
9093 \family typewriter
9094 :
9095 \family default
9096
9097 \begin_inset Quotes eld
9098 \end_inset
9099
9100  prima di continuare.
9101  E' uso comune quello di far rientrare la linea successiva di un pochettino
9102  in questi casi.
9103 \end_layout
9104
9105 \begin_layout Standard
9106
9107 Andremo ora a spiegare ogni parte di un'entrata di 
9108 \family typewriter
9109 /etc/printcap
9110 \family default
9111 .
9112  Notate che ci sono altre opzioni che potete aggiungere ad un'entrata.
9113  Noi ci occuperemo soltanto delle quattro basi quì, e vi preghiamo di riferirvi
9114  alle man page su 
9115 \family typewriter
9116 printcap
9117 \family default
9118  per le informazioni addizionali.
9119 \end_layout
9120
9121 \begin_layout Subsection
9122
9123 Il Nome della Stampante
9124 \end_layout
9125
9126 \begin_layout Standard
9127
9128 La prima linea di un'entrata di 
9129 \family typewriter
9130 printcap
9131 \family default
9132  è il nome della stampante.
9133  Contiene il nome della stampante, seguito da un carattere 
9134 \begin_inset Quotes eld
9135 \end_inset
9136
9137
9138 \family typewriter
9139 |
9140 \family default
9141
9142 \begin_inset Quotes erd
9143 \end_inset
9144
9145  , seguito da un testo che descrive la stampante, e infine, naturalmente,
9146  il carattere 
9147 \begin_inset Quotes eld
9148 \end_inset
9149
9150
9151 \family typewriter
9152 :
9153 \family default
9154
9155 \begin_inset Quotes eld
9156 \end_inset
9157
9158 .
9159  Ad esempio:
9160 \end_layout
9161
9162 \begin_layout LyX-Code
9163
9164 draft|OurPrinter in Draft Mode:
9165 \backslash
9166
9167 \end_layout
9168
9169 \begin_layout Standard
9170
9171 è una stampante chiamata 
9172 \begin_inset Quotes eld
9173 \end_inset
9174
9175
9176 \family typewriter
9177 draft
9178 \family default
9179
9180 \begin_inset Quotes erd
9181 \end_inset
9182
9183  con la descrizione 
9184 \begin_inset Quotes eld
9185 \end_inset
9186
9187 Nostra stampante in modalità bozza
9188 \begin_inset Quotes erd
9189 \end_inset
9190
9191  [Notate che l' 
9192 \begin_inset Quotes eld
9193 \end_inset
9194
9195
9196 \family typewriter
9197
9198 \backslash
9199
9200 \family default
9201
9202 \begin_inset Quotes erd
9203 \end_inset
9204
9205  alla fine della linea, indica che continueremo l'entrata alla riga successiva.]
9206  Il nome 
9207 \family typewriter
9208 draft
9209 \family default
9210  è quello che in genere passate a molte stampanti con l'opzione 
9211 \family typewriter
9212 -P
9213 \family default
9214  dei comandi.
9215  [Il programma 
9216 \family typewriter
9217 lpr
9218 \family default
9219  è come un comando.]
9220 \end_layout
9221
9222 \begin_layout Standard
9223
9224 Di solito si usa chiamare la vostra stampante principale PostScript® come
9225  
9226 \begin_inset Quotes eld
9227 \end_inset
9228
9229
9230 \family typewriter
9231 ps
9232 \family default
9233
9234 \begin_inset Quotes erd
9235 \end_inset
9236
9237  e chiamare la vostra stampante di testo 
9238 \begin_inset Quotes eld
9239 \end_inset
9240
9241
9242 \family typewriter
9243 lp
9244 \family default
9245
9246 \begin_inset Quotes erd
9247 \end_inset
9248
9249 .
9250 \end_layout
9251
9252 \begin_layout Subsection
9253
9254 Il Dispositivo di Stampa
9255 \end_layout
9256
9257 \begin_layout Standard
9258
9259 La prossima parte del nostro esempio di entrate 
9260 \family typewriter
9261 printcap
9262 \family default
9263  identifica il dispositivo di stampa.
9264  in tutti gli esempi citati c'è una linea:
9265 \end_layout
9266
9267 \begin_layout LyX-Code
9268
9269 :lp=/dev/lp1:
9270 \backslash
9271
9272 \end_layout
9273
9274 \begin_layout Standard
9275
9276 [Ancora, notate che 
9277 \begin_inset Quotes eld
9278 \end_inset
9279
9280
9281 \family typewriter
9282
9283 \backslash
9284
9285 \family default
9286
9287 \begin_inset Quotes erd
9288 \end_inset
9289
9290  alla fine della linea, così some l'inizio con 
9291 \begin_inset Quotes eld
9292 \end_inset
9293
9294
9295 \family typewriter
9296 :
9297 \family default
9298
9299 \begin_inset Quotes eld
9300 \end_inset
9301
9302  con relativi spazi di rientro.]
9303 \end_layout
9304
9305 \begin_layout Standard
9306
9307 Il tag 
9308 \begin_inset Quotes eld
9309 \end_inset
9310
9311
9312 \family typewriter
9313 lp=
9314 \family default
9315
9316 \begin_inset Quotes erd
9317 \end_inset
9318
9319  porta il nome del dispositivo di stampa.
9320  In questo caso è 
9321 \family typewriter
9322 /dev/lp1
9323 \family default
9324 , ovvero la porta parallela.
9325  Ci sono stampanti che che si connettono tramite porta seriale.
9326  se ne avete una, dovrete usare 
9327 \family typewriter
9328 /dev/ttyS0
9329 \family default
9330  per la prima porta seriale, 
9331 \family typewriter
9332 /dev/ttyS1
9333 \family default
9334  per la successiva e così via.
9335  Se volete aggiungere altri comandi relativi alla stampante nelle entrate
9336  di 
9337 \family typewriter
9338 printc
9339 \family default
9340 ap, come il baud rate della stampante, dovete riferirvi alle man pages di
9341  
9342 \family typewriter
9343 printcap
9344 \family default
9345 , che possono aiutarvi.
9346 \end_layout
9347
9348 \begin_layout Standard
9349
9350 Molte stampanti, tuttavia, usano la porta parallela.
9351  In aggiunta, la porta stampante sulla 
9352 \emph on
9353 maggior parte
9354 \emph default
9355  dei computer PC-compatibli sarà 
9356 \family typewriter
9357 /dev/lp1
9358 \family default
9359 .
9360  Se volete sapere perchè, guardatevi questa nota.
9361 \begin_inset Foot
9362 status collapsed
9363
9364 \begin_layout Standard
9365
9366 Perchè è 
9367 \family typewriter
9368 /dev/lp1
9369 \family default
9370  e 
9371 \emph on
9372 non 
9373 \family typewriter
9374 /dev/lp0
9375 \family default
9376 \emph default
9377  la prima porta stampantet? Va rilevato che l'indirizzo I/O di ogni porta
9378  parallela è codificato nel kernel di linux.
9379  L'indirizzo 
9380 \family typewriter
9381 0x3BC
9382 \family default
9383  è 
9384 \family typewriter
9385 /dev/lp0
9386 \family default
9387 ; l'indirizzo 
9388 \family typewriter
9389 0x378
9390 \family default
9391  è 
9392 \family typewriter
9393 /dev/lp1
9394 \family default
9395 ; e 
9396 \family typewriter
9397 0x278
9398 \family default
9399  è 
9400 \family typewriter
9401 /dev/lp2
9402 \family default
9403 .
9404  Dato che molti dei computer PC-compatibli assegna la prima porta parallela
9405  all'indirizzo I/O 
9406 \family typewriter
9407 0x378
9408 \family default
9409  di default, 
9410 \family typewriter
9411 /dev/lp1
9412 \family default
9413  sarà quindi la porta parallela sulla maggior parte dei sistemi.
9414 \end_layout
9415
9416 \begin_layout Standard
9417
9418 Se avete più di una porta parallela, la situazione cambia.
9419  Inoltre se alterate l'indirizzo I/O della porta per qualsiasi motivo, poi
9420  uno degli altri dispositivi 
9421 \family typewriter
9422 lp
9423 \family default
9424  potrebbe puntare sulla porta parallela.
9425  Su alcuni sistemi questo può creare molti problemi.
9426  in alcuni casi potete andare in DOS è controllare quale indirizzo è stato
9427  assegnato alla vostra porta.
9428  Dopodichè potete usare questo indirizzo per stabilire se la porta parallela
9429  è 
9430 \family typewriter
9431 /dev/lp0
9432 \family default
9433
9434 \family typewriter
9435 /dev/lp1
9436 \family default
9437 , o 
9438 \family typewriter
9439 /dev/lp2
9440 \family default
9441 .
9442 \end_layout
9443
9444 \end_inset
9445
9446  Il vostro sistema non sarà differente, tuttavia controllate sempre a cosa
9447  corrisponde la vostra porta parallela.
9448 \end_layout
9449
9450 \begin_layout Subsection
9451
9452 La Directory Spool e il File Log
9453 \end_layout
9454
9455 \begin_layout Standard
9456
9457 Oltre a dare un nome alla vostra stampante e a dire a Linux quale dispositivo
9458  è, avete ancora bisogno di una directory per il print spooling.
9459  la sigla 
9460 \begin_inset Quotes eld
9461 \end_inset
9462
9463
9464 \family typewriter
9465 sd=
9466 \family default
9467
9468 \begin_inset Quotes erd
9469 \end_inset
9470
9471  identifica la directory di spool per la stampante.
9472  E' inoltre una buona idea avere un log file per gli eventuali errori.
9473  la sigla 
9474 \begin_inset Quotes eld
9475 \end_inset
9476
9477
9478 \family typewriter
9479 lf=
9480 \family default
9481
9482 \begin_inset Quotes erd
9483 \end_inset
9484
9485  lo identifica.
9486 \end_layout
9487
9488 \begin_layout Standard
9489
9490 Molti sistemi mettono tutte le code di stampa nella directory 
9491 \family typewriter
9492 /var/spool/lpd
9493 \family default
9494 ; alcuni usano solo 
9495 \family typewriter
9496 /var/spool
9497 \family default
9498 .
9499  In ogni caso, entrata del printcap tradizionalmente ha la sua propria spool
9500  directory dichiarata dopo il nome della stampante.
9501  Dovrete essere 
9502 \begin_inset Quotes eld
9503 \end_inset
9504
9505 root
9506 \begin_inset Quotes erd
9507 \end_inset
9508
9509  e creare queste directory da soli.
9510  Dovrete inoltre cambiare la proprietà di queste directory, cosicchè il
9511  loro gruppo sia il gruppo 
9512 \family typewriter
9513 daemon
9514 \family default
9515 .
9516  Potete farlo col comando, 
9517 \begin_inset Quotes eld
9518 \end_inset
9519
9520
9521 \family typewriter
9522 chgrp daemon 
9523 \family default
9524 \emph on
9525 dirname
9526 \emph default
9527
9528 \begin_inset Quotes erd
9529 \end_inset
9530
9531 , dove 
9532 \emph on
9533 dirname
9534 \emph default
9535  è il nome della directory di spool.
9536 \end_layout
9537
9538 \begin_layout Standard
9539
9540 Ad esempio, guardiamo l'entrata per la stampante 
9541 \begin_inset Quotes eld
9542 \end_inset
9543
9544
9545 \family typewriter
9546 ps
9547 \family default
9548
9549 \begin_inset Quotes erd
9550 \end_inset
9551
9552  nell'esempio.
9553  Contiene le linee:
9554 \end_layout
9555
9556 \begin_layout LyX-Code
9557
9558 :sd=/var/spool/lpd/ps:
9559 \backslash
9560
9561 \end_layout
9562
9563 \begin_layout LyX-Code
9564
9565 :lf=/var/spool/lpd/ps/errs:
9566 \backslash
9567
9568 \end_layout
9569
9570 \begin_layout Standard
9571
9572 Questo indica che la directory di spool è 
9573 \family typewriter
9574 /var/spool/lpd/ps
9575 \family default
9576  e che il log file è
9577 \family typewriter
9578  /var/spool/lpd/ps/errs
9579 \family default
9580 .
9581  Dovete 
9582 \begin_inset Quotes eld
9583 \end_inset
9584
9585 creare
9586 \begin_inset Quotes erd
9587 \end_inset
9588
9589  questo file con il comando 
9590 \begin_inset Quotes eld
9591 \end_inset
9592
9593
9594 \family typewriter
9595 touch errs
9596 \family default
9597
9598 \begin_inset Quotes erd
9599 \end_inset
9600
9601  nella directory di spool.
9602 \end_layout
9603
9604 \begin_layout Standard
9605
9606 Similmente, l'entrata per la stampante 
9607 \begin_inset Quotes eld
9608 \end_inset
9609
9610
9611 \family typewriter
9612 lp
9613 \family default
9614
9615 \begin_inset Quotes erd
9616 \end_inset
9617
9618  contiene:
9619 \end_layout
9620
9621 \begin_layout LyX-Code
9622
9623 :sd=/var/spool/lpd/lp:
9624 \backslash
9625
9626 \end_layout
9627
9628 \begin_layout LyX-Code
9629
9630 :lf=/var/spool/lpd/lp/errs:
9631 \backslash
9632
9633 \end_layout
9634
9635 \begin_layout Standard
9636
9637 Ancora, la spool directory è 
9638 \family typewriter
9639 /var/spool/lpd/lp
9640 \family default
9641  e il log file è
9642 \family typewriter
9643 /var/spool/lpd/lp/errs
9644 \family default
9645 .
9646  
9647 \end_layout
9648
9649 \begin_layout Subsection
9650
9651 Il Filter File
9652 \end_layout
9653
9654 \begin_layout Standard
9655
9656 A differenza di 
9657 \begin_inset Quotes eld
9658 \end_inset
9659
9660
9661 \family typewriter
9662 lp
9663 \family default
9664
9665 \begin_inset Quotes erd
9666 \end_inset
9667
9668 , che passa semplicemente il testo non formattato alla stampante, le stampanti
9669  
9670 \begin_inset Quotes eld
9671 \end_inset
9672
9673
9674 \family typewriter
9675 draft
9676 \family default
9677
9678 \begin_inset Quotes erd
9679 \end_inset
9680
9681  e 
9682 \begin_inset Quotes eld
9683 \end_inset
9684
9685
9686 \family typewriter
9687 ps
9688 \family default
9689
9690 \begin_inset Quotes erd
9691 \end_inset
9692
9693  hanno bisogno di un filtro [ecco perchè c'è una riga addizionale].
9694  La riga 
9695 \family typewriter
9696 printcap
9697 \family default
9698  per il programma filtro è 
9699 \begin_inset Quotes eld
9700 \end_inset
9701
9702
9703 \family typewriter
9704 if=
9705 \family default
9706
9707 \begin_inset Quotes erd
9708 \end_inset
9709
9710  [sta per 
9711 \family typewriter
9712 i
9713 \family default
9714 nput 
9715 \family typewriter
9716 f
9717 \family default
9718 ilter, significa l'input dello spool].
9719 \end_layout
9720
9721 \begin_layout Standard
9722
9723 Ci sono generalmente molte righe per i programmi filtro, che permettono
9724  di specificare un filtro differente per diversi scopi.
9725  Potete selezionare i filtri come opzioni a 
9726 \family typewriter
9727 lpr
9728 \family default
9729 , ma non ci inoltriamo per questa strada.
9730 \end_layout
9731
9732 \begin_layout Standard
9733
9734 Diamo un'occhiata alle righe per la stampante 
9735 \begin_inset Quotes eld
9736 \end_inset
9737
9738
9739 \family typewriter
9740 ps
9741 \family default
9742
9743 \begin_inset Quotes erd
9744 \end_inset
9745
9746 :
9747 \end_layout
9748
9749 \begin_layout LyX-Code
9750
9751 :if=/var/spool/lpd/ps/ps.filter:
9752 \backslash
9753
9754 \end_layout
9755
9756 \begin_layout Standard
9757
9758 Il file 
9759 \begin_inset Quotes eld
9760 \end_inset
9761
9762
9763 \family typewriter
9764 ps.filter
9765 \family default
9766
9767 \begin_inset Quotes erd
9768 \end_inset
9769
9770  è uno script di shell che risiede nella directory di spool per la stampante
9771  
9772 \begin_inset Quotes eld
9773 \end_inset
9774
9775
9776 \family typewriter
9777 ps
9778 \family default
9779
9780 \begin_inset Quotes erd
9781 \end_inset
9782
9783 .
9784  Potete anche specificare l'indirizzo e il nome del file del programma;
9785  tuttavia, chiamando un programma con uno script di shell vi permette di
9786  specificare le opzioni dalla riga di comando.
9787 \end_layout
9788
9789 \begin_layout Standard
9790
9791 Tutti i filtri, sia programmi o script di shell, dovrebbero prendere l'input
9792  da 
9793 \family typewriter
9794 stdin
9795 \family default
9796  [il flusso di input standard] e mandare il loro output a 
9797 \family typewriter
9798 stdout
9799 \family default
9800  [il flusso standard di uotput.the standard output stream].
9801 \end_layout
9802
9803 \begin_layout Subsection
9804
9805 Entrate Addizionali
9806 \end_layout
9807
9808 \begin_layout Standard
9809
9810 Ci sono tre cose addizionali che dovete mettere nel vostro 
9811 \family typewriter
9812 printcap
9813 \family default
9814 .
9815  Potete vederle alla fine dei tre esempi, e sono:
9816 \end_layout
9817
9818 \begin_layout LyX-Code
9819
9820 :mx#0:
9821 \backslash
9822
9823 \end_layout
9824
9825 \begin_layout LyX-Code
9826
9827 :sh:
9828 \backslash
9829
9830 \end_layout
9831
9832 \begin_layout LyX-Code
9833
9834 :sf:
9835 \end_layout
9836
9837 \begin_layout Standard
9838
9839 Il 
9840 \begin_inset Quotes eld
9841 \end_inset
9842
9843
9844 \family typewriter
9845 mx#0
9846 \family default
9847
9848 \begin_inset Quotes erd
9849 \end_inset
9850
9851  significa 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855 non limitare la grandezza del file che possiamo stampare.
9856 \begin_inset Quotes erd
9857 \end_inset
9858
9859  Il 
9860 \begin_inset Quotes eld
9861 \end_inset
9862
9863
9864 \family typewriter
9865 sf
9866 \family default
9867
9868 \begin_inset Quotes erd
9869 \end_inset
9870
9871  previene che il form-feed sia mandato dopo la fine del documento.
9872  Infine, l' 
9873 \begin_inset Quotes eld
9874 \end_inset
9875
9876
9877 \family typewriter
9878 sh
9879 \family default
9880
9881 \begin_inset Quotes erd
9882 \end_inset
9883
9884  previene che l'intestazione sia mandata all'inizio di ogni job.
9885  Probabilmente voi volete sempre aggiungere queste entrate al vostro 
9886 \family typewriter
9887 printcap
9888 \family default
9889 .
9890 \end_layout
9891
9892 \begin_layout Section
9893
9894 Creare un Filtro di Stampa
9895 \end_layout
9896
9897 \begin_layout Subsection
9898
9899 Stampare Files PostScript® Usando Ghostscript
9900 \end_layout
9901
9902 \begin_layout Standard
9903
9904 Il modo più semplice per far capire alla vostra stampante il PostScript®
9905  è quello di usare il programma Ghostscript come filtro di stampa.
9906  Ci sono probabilmente altri modi, ma questo è quello più comune.
9907  Se, per qualche ragione non potete o volete usare Ghostscript, dovrete
9908  provvedere da soli [guardatevi 
9909 \family typewriter
9910 Printing-HOWTO
9911 \family default
9912  per iniziare].
9913 \end_layout
9914
9915 \begin_layout Standard
9916
9917 La prima cosa che dovete fare è installare Ghostscript.
9918  C'è almeno una versione in ogni distribuzione Linux.
9919  se non c'è la potete ottenereThe first thing you should do is install Ghostscri
9920 pt.
9921  There should be a version in your Linux da uno dall'archivio FTP di Linux
9922  
9923 \family typewriter
9924 sunsite.unc.edu
9925 \family default
9926 .
9927  Una volta installato, lanciatelo usando 
9928 \end_layout
9929
9930 \begin_layout LyX-Code
9931
9932 gs -h | more
9933 \end_layout
9934
9935 \begin_layout Standard
9936
9937 dalla linea di comando.
9938  Questo farà una lista dei dispositivi di stampa disponibili con relativi
9939  formati.
9940  Quì di seguito riportiamo una lista che vi aiuta a capire meglio a quale
9941  dispositivo Ghostscript corrisponde ogni stampante.
9942 \end_layout
9943
9944 \begin_layout Itemize
9945
9946 Stampanti Apple:
9947 \end_layout
9948
9949 \begin_deeper
9950 \begin_layout Description
9951
9952 appledmp Apple dot matrix printers
9953 \end_layout
9954
9955 \begin_layout Description
9956
9957 iwhi Imagewriter in high-res mode
9958 \end_layout
9959
9960 \begin_layout Description
9961
9962 iwlo Imagewriter in low-res mode
9963 \end_layout
9964
9965 \begin_layout Description
9966
9967 iwlq Imagewriter LQ in 
9968 \begin_inset Formula $320\times216$
9969 \end_inset
9970
9971  dpi mode
9972 \end_layout
9973 \end_deeper
9974 \begin_layout Itemize
9975
9976 Stampanti Canon:
9977 \end_layout
9978
9979 \begin_deeper
9980 \begin_layout Description
9981
9982 bj10e BubbleJet BJ-10e
9983 \end_layout
9984
9985 \begin_layout Description
9986
9987 bj200 BubbleJet BJ-200
9988 \end_layout
9989
9990 \begin_layout Description
9991
9992 bjc600 Color BubbleJet BJC-600, BJC-4000 and BJC-70.
9993 \begin_inset Foot
9994 status collapsed
9995
9996 \begin_layout Standard
9997
9998 Buona anche per alcune Apple come la StyleWriter 2x00
9999 \end_layout
10000
10001 \end_inset
10002
10003
10004 \end_layout
10005
10006 \begin_layout Description
10007
10008 bjc800 Color BubbleJet BJC-800
10009 \end_layout
10010
10011 \begin_layout Description
10012
10013 lbp8 LBP-II8 laser printer
10014 \end_layout
10015
10016 \begin_layout Description
10017
10018 lips3 LIPS-III laser printer in CaPSL mode
10019 \end_layout
10020 \end_deeper
10021 \begin_layout Itemize
10022
10023 Stampanti DEC:
10024 \end_layout
10025
10026 \begin_deeper
10027 \begin_layout Description
10028
10029 la50 LA50
10030 \end_layout
10031
10032 \begin_layout Description
10033
10034 la70 LA70
10035 \end_layout
10036
10037 \begin_layout Description
10038
10039 la70t LA70 with low-res text enhancement
10040 \end_layout
10041
10042 \begin_layout Description
10043
10044 la75 LA75
10045 \end_layout
10046
10047 \begin_layout Description
10048
10049 la75plus LA75 Plus
10050 \end_layout
10051
10052 \begin_layout Description
10053
10054 ln03 LN03
10055 \end_layout
10056
10057 \begin_layout Description
10058
10059 lj250 LJ250 color printer
10060 \end_layout
10061
10062 \begin_layout Description
10063
10064 declj250 Alternate LJ250 driver0
10065 \end_layout
10066 \end_deeper
10067 \begin_layout Itemize
10068
10069 Stampanti Epson:
10070 \end_layout
10071
10072 \begin_deeper
10073 \begin_layout Description
10074
10075 ap3250 ActionPrinter AP3250 [ed ogni stampante che usa il linguaggio ESC/P2]
10076 \end_layout
10077
10078 \begin_layout Description
10079
10080 escp2 Tutte le stampantil Epson che usano i comandi ESC/P2 [questo driver
10081  non è più disponibile, usare 
10082 \series bold
10083 ap3250
10084 \series default
10085 .]
10086 \end_layout
10087
10088 \begin_layout Description
10089
10090 epson All 9- and 24-pin dot matrix printers [e compatibili]
10091 \end_layout
10092
10093 \begin_layout Description
10094
10095 eps9mid All 9-pin dot matrix printers [e compatibili] in intermediate resolution
10096 \end_layout
10097
10098 \begin_layout Description
10099
10100 eps9hi All 9-pin dot matrix printers [e compatibili] in triple resolution
10101 \end_layout
10102
10103 \begin_layout Description
10104
10105 epsonc LQ-2550 color printer [buono anche per Fujitsu 1200, 2400, e3400]
10106 \end_layout
10107
10108 \begin_layout Description
10109
10110 st800 Stylus 800 inkjet
10111 \end_layout
10112
10113 \begin_layout Description
10114
10115 stcolor the Stylus Color, Stylus Color Pro, Stylus Color II and IIs color
10116  inkjet printers
10117 \end_layout
10118 \end_deeper
10119 \begin_layout Itemize
10120
10121 Stampanti Hewlet Packard [HP]:
10122 \end_layout
10123
10124 \begin_deeper
10125 \begin_layout Description
10126
10127 lp2563 2563B line printer
10128 \end_layout
10129
10130 \begin_layout Description
10131
10132 cdeskjet DeskJet 500C with 1 bpp color
10133 \end_layout
10134
10135 \begin_layout Description
10136
10137 cdjcolor DeskJet 500C [and 540C] with 24 bpp color and Floyd-Steinberg dithering
10138 \end_layout
10139
10140 \begin_layout Description
10141
10142 cdjmono DeskJet 500C [and 510C, 520C, 540C], monochrome only.
10143 \end_layout
10144
10145 \begin_layout Description
10146
10147 cdj500 same as 
10148 \series bold
10149 cdjcolor
10150 \end_layout
10151
10152 \begin_layout Description
10153
10154 cdj550 DeskJet 550C and 560C
10155 \end_layout
10156
10157 \begin_layout Description
10158
10159 deskjet DeskJet and DeskJet Plus
10160 \end_layout
10161
10162 \begin_layout Description
10163
10164 djet500 DeskJet 500
10165 \end_layout
10166
10167 \begin_layout Description
10168
10169 djet500c Alternate DeskJet 500C driver [does not work with the 550C or the
10170  560C]
10171 \end_layout
10172
10173 \begin_layout Description
10174
10175 dnj650c DesignJet 650C
10176 \end_layout
10177
10178 \begin_layout Description
10179
10180 ljet2p LaserJet IId, LaserJet IIp, and LaserJet III* with TIFF compression
10181 \end_layout
10182
10183 \begin_layout Description
10184
10185 ljet3 LaserJet III* with Delta Row compression
10186 \end_layout
10187
10188 \begin_layout Description
10189
10190 ljet3d LaserJet IIID with duplex capability
10191 \end_layout
10192
10193 \begin_layout Description
10194
10195 ljet4 LaserJet 4 [default res=600dpi]
10196 \end_layout
10197
10198 \begin_layout Description
10199
10200 lj4dith LaserJet 4 with Floyd-Steinberg dithering
10201 \end_layout
10202
10203 \begin_layout Description
10204
10205 ljetplus LaserJet Plus
10206 \end_layout
10207
10208 \begin_layout Description
10209
10210 pj PaintJet XL
10211 \end_layout
10212
10213 \begin_layout Description
10214
10215 pjetxl Alternate PaintJet XL driver
10216 \end_layout
10217
10218 \begin_layout Description
10219
10220 pjxl PaintJet XL color
10221 \end_layout
10222
10223 \begin_layout Description
10224
10225 pjxl300 PaintJet XL300 color [and 1200C]
10226 \end_layout
10227
10228 \begin_layout Description
10229
10230 paintjet Alternate PaintJet color driver
10231 \end_layout
10232 \end_deeper
10233 \begin_layout Itemize
10234
10235 Stampanti Tektronix:
10236 \end_layout
10237
10238 \begin_deeper
10239 \begin_layout Description
10240
10241 t4693d2 4693d color printer with 2 bits/RGB component [=6 bpp]
10242 \end_layout
10243
10244 \begin_layout Description
10245
10246 t4693d4 4693d color printer with 4 bits/RGB component [=12 bpp]
10247 \end_layout
10248
10249 \begin_layout Description
10250
10251 t4693d8 4693d color printer with 8 bits/RGB component [=24 bpp]
10252 \end_layout
10253
10254 \begin_layout Description
10255
10256 tek4696 4695 and 4696 inkjet plotters
10257 \end_layout
10258 \end_deeper
10259 \begin_layout Itemize
10260
10261 Stampanti varie:
10262 \end_layout
10263
10264 \begin_deeper
10265 \begin_layout Description
10266
10267 cp50 Mitsubishi CP50 color printer
10268 \end_layout
10269
10270 \begin_layout Description
10271
10272 ibmpro IBM 9-pin Proprinter
10273 \end_layout
10274
10275 \begin_layout Description
10276
10277 imagen Imagen ImPress printers
10278 \end_layout
10279
10280 \begin_layout Description
10281
10282 jetp3852 IBM Jetprinter ink-jet color printer (Model #3852)
10283 \end_layout
10284
10285 \begin_layout Description
10286
10287 m8510 C.Itoh M8510 printer
10288 \end_layout
10289
10290 \begin_layout Description
10291
10292 necp6 NEC P6/P6+/P60 printers at 360 dpi 
10293 \end_layout
10294
10295 \begin_layout Description
10296
10297 nwp533 Sony Microsystems NWP533 laser printer [Sony only]
10298 \end_layout
10299
10300 \begin_layout Description
10301
10302 oce9050 OCE 9050 printer
10303 \end_layout
10304
10305 \begin_layout Description
10306
10307 oki182 Okidata MicroLine 182
10308 \end_layout
10309
10310 \begin_layout Description
10311
10312 okiibm Okidata MicroLine IBM-compatible printers
10313 \end_layout
10314
10315 \begin_layout Description
10316
10317 r4081 Ricoh 4081 laser printer
10318 \end_layout
10319
10320 \begin_layout Description
10321
10322 sj48 StarJet 48 inkjet printer
10323 \end_layout
10324
10325 \begin_layout Description
10326
10327 sparc SPARCprinter
10328 \end_layout
10329
10330 \begin_layout Description
10331
10332 xes Xerox XES printers (2700, 3700, 4045, etc.)
10333 \end_layout
10334 \end_deeper
10335 \begin_layout Standard
10336
10337 Se il pacchetto Ghostscript che avete nella vostra distribuzione non include
10338  la vostra stampante potete sempre scaricarvi il codice e compilarvelo da
10339  soli.
10340  Se la vostra stampante non è 
10341 \emph on
10342 direttamente
10343 \emph toggle
10344  supportata da Ghostscript, provate a scegliere una compatibile.
10345 \end_layout
10346
10347 \begin_layout Standard
10348
10349 Notate che alcune stampanti richiedono comandi speciali.
10350  Ad esempio il driver 
10351 \family typewriter
10352 stcolor
10353 \family default
10354  richiede che il file 
10355 \family typewriter
10356 stcolor.ps
10357 \family default
10358  sia letto prima dell'input file.
10359  Vi conviene leggere la documentazione di Ghostscript per i dettagli.
10360 \end_layout
10361
10362 \begin_layout Standard
10363
10364 Poi, create il filtro.
10365  Suggeriamo di dargli il nome 
10366 \begin_inset Quotes eld
10367 \end_inset
10368
10369
10370 \emph on
10371 pname
10372 \family typewriter
10373 \emph default
10374 .filter
10375 \family default
10376
10377 \begin_inset Quotes erd
10378 \end_inset
10379
10380 , dove
10381 \begin_inset Quotes eld
10382 \end_inset
10383
10384
10385 \emph on
10386 pname
10387 \emph default
10388
10389 \begin_inset Quotes erd
10390 \end_inset
10391
10392  è il nome che avete dato alla stampante nel file 
10393 \family typewriter
10394 printcap
10395 \family default
10396 .
10397  Suggeriamo inoltre di mettere lo script di filtro nella directory di spool
10398  della stampante.
10399  Il filtro dovrebbe contenere quanto segue:
10400 \end_layout
10401
10402 \begin_layout LyX-Code
10403
10404 #!/bin/sh
10405 \end_layout
10406
10407 \begin_layout LyX-Code
10408
10409 /usr/bin/gs -q -dSAFER  -dNOPAUSE -sDEVICE=
10410 \family roman
10411 \emph on
10412 devname
10413 \family default
10414 \emph default
10415  
10416 \backslash
10417
10418 \end_layout
10419
10420 \begin_layout LyX-Code
10421
10422 [-r
10423 \family roman
10424 \emph on
10425 ResNum
10426 \family default
10427 \emph default
10428  
10429 \family roman
10430 \emph on
10431 ExtraOptions
10432 \family default
10433 \emph default
10434 ] -sOutputFile=- [
10435 \family roman
10436 \emph on
10437 precmd
10438 \family default
10439 \emph default
10440 .ps] -
10441 \end_layout
10442
10443 \begin_layout Standard
10444
10445 dove 
10446 \emph on
10447 devname
10448 \emph default
10449  è il nome del dispositivo Ghostscript; 
10450 \emph on
10451 ResNum 
10452 \emph default
10453 è la risoluzione che volete usare;s the resolution you want to use; 
10454 \emph on
10455 ExtraOptions
10456 \emph default
10457  indica ogni opzione addizionale passata a Ghostscript; e 
10458 \begin_inset Quotes eld
10459 \end_inset
10460
10461
10462 \emph on
10463 precmd
10464 \emph default
10465 .
10466 \family typewriter
10467 ps
10468 \family default
10469
10470 \begin_inset Quotes erd
10471 \end_inset
10472
10473  è il nome del file che deve essere letto prima dell'input [come il file
10474  
10475 \family typewriter
10476 stcolor.ps
10477 \family default
10478  per il driver 
10479 \family typewriter
10480 stcolor
10481 \family default
10482 ].
10483  La 
10484 \begin_inset Quotes eld
10485 \end_inset
10486
10487
10488 \family typewriter
10489
10490 \backslash
10491
10492 \family default
10493
10494 \begin_inset Quotes erd
10495 \end_inset
10496
10497  spezza il comando in linee multiple.
10498 \end_layout
10499
10500 \begin_layout Standard
10501
10502 Notate che gli esempi fatti assumono che 
10503 \family typewriter
10504 gs
10505 \family default
10506  sia nella directory 
10507 \family typewriter
10508 /usr/bin
10509 \family default
10510 .
10511  Il vostro sistema potrebbe avere una configurazione diversa.
10512 \end_layout
10513
10514 \begin_layout Standard
10515
10516 Differenti drivers Ghostscript trattano l'argomento 
10517 \begin_inset Quotes eld
10518 \end_inset
10519
10520
10521 \family typewriter
10522 -r
10523 \family default
10524
10525 \begin_inset Quotes erd
10526 \end_inset
10527
10528  differentemente.
10529  Alcuni cercano un numero singolo, ad esempio, 
10530 \begin_inset Quotes eld
10531 \end_inset
10532
10533
10534 \family typewriter
10535 -r600
10536 \family default
10537
10538 \begin_inset Quotes erd
10539 \end_inset
10540
10541 .
10542  Altri vogliono risoluzioni DPI separate per le direzioni x e y, es.
10543  
10544 \begin_inset Quotes eld
10545 \end_inset
10546
10547
10548 \family typewriter
10549 -r360x360
10550 \family default
10551
10552 \begin_inset Quotes erd
10553 \end_inset
10554
10555 .
10556  Il driver della stampante può avere altre opzioni, quindi è meglio consultare
10557  la documentazione di Ghostscript per maggiori informazioni.
10558 \end_layout
10559
10560 \begin_layout Standard
10561
10562 Dopo che avete creato il printer filter, usate 
10563 \begin_inset Quotes eld
10564 \end_inset
10565
10566
10567 \family typewriter
10568 chmod a+x
10569 \family default
10570
10571 \begin_inset Quotes erd
10572 \end_inset
10573
10574  sullo script file per renderlo eseguibile.
10575  [dovete essere root per farlo].
10576 \end_layout
10577
10578 \begin_layout Standard
10579
10580 Ecco un esempio print file Ghostscript, usato da 
10581 \noun on
10582 John Weiss
10583 \noun default
10584  per la sua Epson Stylus Color IIs:
10585 \end_layout
10586
10587 \begin_layout LyX-Code
10588
10589 #!/bin/sh
10590 \end_layout
10591
10592 \begin_layout LyX-Code
10593
10594 /usr/bin/gs -q -dSAFER -sDEVICE=stcolor 
10595 \backslash
10596
10597 \end_layout
10598
10599 \begin_layout LyX-Code
10600
10601 -r360x360 -sDithering=fsmono 
10602 \backslash
10603
10604 \end_layout
10605
10606 \begin_layout LyX-Code
10607
10608 -dNOPAUSE -dnoWeave 
10609 \backslash
10610
10611 \end_layout
10612
10613 \begin_layout LyX-Code
10614
10615 -sOutputFile=- stcolor.ps -
10616 \end_layout
10617
10618 \begin_layout Standard
10619
10620 Questo filtro genera un output monocromatico a 360dpi su una Epson Stylus
10621  Color IIs.
10622 \begin_inset Foot
10623 status collapsed
10624
10625 \begin_layout Standard
10626
10627 Nota da 
10628 \noun on
10629 John Weiss
10630 \noun default
10631 : Questa è la mia stampante ps.
10632  Io uso un filtro simile sulla stampante 
10633 \family typewriter
10634 draft
10635 \family default
10636 , che ha l'opzione 
10637 \family typewriter
10638 -r180x180
10639 \family default
10640  invece di quello che avete visto.
10641  E per la mia stampante 
10642 \family typewriter
10643 color
10644 \family default
10645 , uso un valore differente dell'opzione 
10646 \family typewriter
10647 -sDithering
10648 \family default
10649 .
10650 \end_layout
10651
10652 \end_inset
10653
10654
10655 \end_layout
10656
10657 \begin_layout Subsection
10658
10659 Se Già avete una Stampante PostScript®\SpecialChar \ldots{}
10660
10661 \end_layout
10662
10663 \begin_layout Standard
10664
10665 Molte stampanti laser moderne oggi hanno il supporto per PostScript®.
10666  Su alcune stampanti laser, PostScript® è attualmente il linguaggio nativo
10667  della stampante.
10668  Se avete una stampante, non avete bisogno del filtro e potete passare un
10669  file PostScript® direttamente alla stampante.
10670  Di contro, se volete stampare un file di testo, avrete comunque bisogno
10671  di formattarlo in qualche modo in PostScript®.
10672 \end_layout
10673
10674 \begin_layout Standard
10675
10676 Siamo a conoscenza di tre programmi che traducono il testo ASCII in PostScript®:
10677  
10678 \family typewriter
10679 nenscript
10680 \family default
10681
10682 \family typewriter
10683 a2ps
10684 \family default
10685 , e 
10686 \family typewriter
10687 mpage
10688 \family default
10689 .
10690  
10691 \family typewriter
10692 mpage
10693 \family default
10694  possono anche stampare pagine multiple su un singolo foglio di carta.
10695  Dovete quindi creare uno script di filtro usando uno di questi programmi
10696  per la stampante 
10697 \family typewriter
10698 lp
10699 \family default
10700 .
10701  [La stampante
10702 \family typewriter
10703  lp
10704 \family default
10705  è tradizionalmente il nome della stampante che stampa file di testo ASCII.]
10706  Leggete il 
10707 \family typewriter
10708 Printing-HOWTO
10709 \family default
10710  per maggiori informazioni.
10711 \end_layout
10712
10713 \begin_layout Section
10714
10715 Il Demone Print Spool, 
10716 \family typewriter
10717 lpd
10718 \end_layout
10719
10720 \begin_layout Standard
10721
10722 Il programma che generalmente fa lo spooling e la stampa dei files è 
10723 \family typewriter
10724 lpd
10725 \family default
10726 .
10727  E' anche il programma che legge il file 
10728 \family typewriter
10729 /etc/printcap
10730 \family default
10731 .
10732  Da qualche parte nei vostri scripts di bootup,
10733 \begin_inset Foot
10734 status collapsed
10735
10736 \begin_layout Standard
10737
10738 Alcune macchine tengono i loro scripts di bootup nella directory 
10739 \family typewriter
10740 /etc/rc.d
10741 \family default
10742 .
10743  Altri usano 
10744 \family typewriter
10745 /etc/init.d
10746 \family default
10747 .
10748  Dovete capire da voi che sistema è usato.
10749 \end_layout
10750
10751 \end_inset
10752
10753  dovete eseguire 
10754 \family typewriter
10755 lpd
10756 \family default
10757  per iniziare lo spooling ad ogni avvio del sistema.
10758  Potete anche eseguire 
10759 \family typewriter
10760 lpd
10761 \family default
10762  come un job di backgroung dalla linea di comando se loggate come root.
10763  
10764 \end_layout
10765
10766 \begin_layout Standard
10767
10768 Una volta che
10769 \family typewriter
10770  lpd
10771 \family default
10772  è in esecuzione sul vostro sistema, potete controllare il suo comportamento
10773  e quello del print spool usando il comando 
10774 \family typewriter
10775 lpc
10776 \family default
10777 .
10778  Ancora una volta, dovete essere root per pare ciò.
10779 \end_layout
10780
10781 \begin_layout Section
10782
10783 Assemblando il Tutto
10784 \end_layout
10785
10786 \begin_layout Standard
10787
10788 Concluderemo questo mini-HOWTO con i passaggi che dovete seguire per avere
10789  un setup minimale.
10790  Quando avrete finito, avrete due stampanti, una chiamata 
10791 \begin_inset Quotes eld
10792 \end_inset
10793
10794
10795 \family typewriter
10796 lp
10797 \family default
10798
10799 \begin_inset Quotes erd
10800 \end_inset
10801
10802  per stampare testoASCII, e una seconda chiamata 
10803 \begin_inset Quotes eld
10804 \end_inset
10805
10806
10807 \family typewriter
10808 ps
10809 \family default
10810
10811 \begin_inset Quotes erd
10812 \end_inset
10813
10814  per i files PostScript®.
10815  Il file filtro per la stampante 
10816 \begin_inset Quotes eld
10817 \end_inset
10818
10819
10820 \family typewriter
10821 ps
10822 \family default
10823
10824 \begin_inset Quotes erd
10825 \end_inset
10826
10827  [incluso sotto] funziona su ogni stampante compatibile Epson [ovvero pressocchè
10828  la totalità delle stampanti dot-matrix attualmente in commercio], usando
10829  la risoluzione di stampa di default.
10830 \end_layout
10831
10832 \begin_layout Enumerate
10833
10834 Entrate come 
10835 \begin_inset Quotes eld
10836 \end_inset
10837
10838 root
10839 \begin_inset Quotes erd
10840 \end_inset
10841
10842  o usate 
10843 \begin_inset Quotes eld
10844 \end_inset
10845
10846
10847 \family typewriter
10848 su root
10849 \family default
10850
10851 \begin_inset Quotes erd
10852 \end_inset
10853
10854 .
10855  
10856 \end_layout
10857
10858 \begin_layout Enumerate
10859
10860 Eseguite i seguenti comandi:
10861 \end_layout
10862
10863 \begin_deeper
10864 \begin_layout Enumerate
10865
10866
10867 \family typewriter
10868 cd /var/spool
10869 \end_layout
10870
10871 \begin_layout Enumerate
10872
10873
10874 \family typewriter
10875 mkdir lpd
10876 \family default
10877  
10878 \end_layout
10879
10880 \begin_deeper
10881 \begin_layout Standard
10882
10883 [se non esiste già]
10884 \end_layout
10885 \end_deeper
10886 \begin_layout Enumerate
10887
10888
10889 \family typewriter
10890 chgrp lp lpd
10891 \end_layout
10892
10893 \begin_deeper
10894 \begin_layout Standard
10895
10896 [potreste dover usare 
10897 \begin_inset Quotes eld
10898 \end_inset
10899
10900
10901 \family typewriter
10902 daemon
10903 \family default
10904
10905 \begin_inset Quotes erd
10906 \end_inset
10907
10908  al posto di 
10909 \begin_inset Quotes eld
10910 \end_inset
10911
10912
10913 \family typewriter
10914 lp
10915 \family default
10916
10917 \begin_inset Quotes erd
10918 \end_inset
10919
10920 ]
10921 \end_layout
10922 \end_deeper
10923 \begin_layout Enumerate
10924
10925
10926 \family typewriter
10927 cd lpd
10928 \end_layout
10929
10930 \begin_layout Enumerate
10931
10932
10933 \family typewriter
10934 mkdir lp ps
10935 \end_layout
10936
10937 \begin_deeper
10938 \begin_layout Standard
10939
10940 [fatelo solo se queste directory non esistono già]
10941 \end_layout
10942 \end_deeper
10943 \begin_layout Enumerate
10944
10945
10946 \family typewriter
10947 touch lp/errs ps/errs
10948 \end_layout
10949
10950 \begin_layout Enumerate
10951
10952
10953 \family typewriter
10954 chgrp daemon lp ps lp/errs ps/errs
10955 \end_layout
10956 \end_deeper
10957 \begin_layout Enumerate
10958
10959 Ora editate il file 
10960 \family typewriter
10961 /etc/printcap
10962 \end_layout
10963
10964 \begin_deeper
10965 \begin_layout Enumerate
10966
10967 Se il file esiste, quindi\SpecialChar \ldots{}
10968
10969 \end_layout
10970
10971 \begin_deeper
10972 \begin_layout Enumerate
10973
10974 \SpecialChar \ldots{}
10975 rinominate la vecchia versione in qualcosa tipo 
10976 \begin_inset Quotes eld
10977 \end_inset
10978
10979
10980 \family typewriter
10981 /etc/printcap.orig
10982 \family default
10983
10984 \begin_inset Quotes erd
10985 \end_inset
10986
10987
10988 \end_layout
10989
10990 \begin_layout Enumerate
10991
10992 \SpecialChar \ldots{}
10993 oppure, commentate tutto il file mettendo 
10994 \begin_inset Quotes eld
10995 \end_inset
10996
10997
10998 \family typewriter
10999 #
11000 \family default
11001
11002 \begin_inset Quotes erd
11003 \end_inset
11004
11005  all'inizio di ogni riga.
11006 \end_layout
11007 \end_deeper
11008 \begin_layout Enumerate
11009
11010 Mettete quanto segue in 
11011 \family typewriter
11012 /etc/printcap
11013 \family default
11014 :
11015 \end_layout
11016
11017 \begin_deeper
11018 \begin_layout LyX-Code
11019
11020 lp|Text printer:
11021 \backslash
11022
11023 \end_layout
11024
11025 \begin_layout LyX-Code
11026
11027 :lp=/dev/lp1:
11028 \backslash
11029
11030 \end_layout
11031
11032 \begin_layout LyX-Code
11033
11034 :sd=/var/spool/lpd/lp:
11035 \backslash
11036
11037 \end_layout
11038
11039 \begin_layout LyX-Code
11040
11041 :lf=/var/spool/lpd/lp/errs:
11042 \backslash
11043
11044 \end_layout
11045
11046 \begin_layout LyX-Code
11047
11048 :mx#0:sh:sf:
11049 \newline
11050
11051 \end_layout
11052
11053 \begin_layout LyX-Code
11054
11055 ps|Postscript printer:
11056 \backslash
11057
11058 \end_layout
11059
11060 \begin_layout LyX-Code
11061
11062 :lp=/dev/lp1:
11063 \backslash
11064
11065 \end_layout
11066
11067 \begin_layout LyX-Code
11068
11069 :sd=/var/spool/lpd/ps:
11070 \backslash
11071
11072 \end_layout
11073
11074 \begin_layout LyX-Code
11075
11076 :lf=/var/spool/lpd/ps/errs:
11077 \backslash
11078
11079 \end_layout
11080
11081 \begin_layout LyX-Code
11082
11083 :if=/var/spool/lpd/ps/ps.filter:
11084 \backslash
11085
11086 \end_layout
11087
11088 \begin_layout LyX-Code
11089
11090 :mx#0:sh:sf:
11091 \end_layout
11092 \end_deeper
11093 \begin_layout Enumerate
11094
11095 ASSICURATEVI CHE:
11096 \end_layout
11097
11098 \begin_deeper
11099 \begin_layout Enumerate
11100
11101 le linee bianche tra due entrate non abbiano nulla al loro interno, nemmeno
11102  spazi bianchi.
11103 \end_layout
11104
11105 \begin_layout Enumerate
11106
11107 niente segue il carattere 
11108 \begin_inset Quotes eld
11109 \end_inset
11110
11111
11112 \family typewriter
11113
11114 \backslash
11115
11116 \family default
11117
11118 \begin_inset Quotes erd
11119 \end_inset
11120
11121  alla fine di ogni linea.
11122 \end_layout
11123 \end_deeper
11124 \end_deeper
11125 \begin_layout Enumerate
11126
11127 Poi, create lo script filtro per la stampante 
11128 \begin_inset Quotes eld
11129 \end_inset
11130
11131
11132 \family typewriter
11133 ps
11134 \family default
11135
11136 \begin_inset Quotes erd
11137 \end_inset
11138
11139 .
11140 \end_layout
11141
11142 \begin_deeper
11143 \begin_layout Enumerate
11144
11145 Mettete quanto segue nel file 
11146 \family typewriter
11147 /var/spool/lpd/ps/ps.filter
11148 \family default
11149 :
11150 \end_layout
11151
11152 \begin_deeper
11153 \begin_layout LyX-Code
11154
11155 #!/bin/sh
11156 \end_layout
11157
11158 \begin_layout LyX-Code
11159
11160 /usr/bin/gs -q -dSAFER -dNOPAUSE 
11161 \backslash
11162
11163 \end_layout
11164
11165 \begin_layout LyX-Code
11166
11167 -sDEVICE=epson -sOutputFile=- -
11168 \end_layout
11169
11170 \begin_layout Standard
11171
11172 [Se non avete una stampantedot-matrix compatibile Epson, rimpiazzate 
11173 \begin_inset Quotes eld
11174 \end_inset
11175
11176
11177 \family typewriter
11178 epson
11179 \family default
11180
11181 \begin_inset Quotes erd
11182 \end_inset
11183
11184  con l'appropriato nome del dispositivo Ghostscript.
11185  Inoltre, se il programma 
11186 \family typewriter
11187 gs
11188 \family default
11189  non è in 
11190 \family typewriter
11191 /usr/bin
11192 \family default
11193 , mettete l'indirizzo corretto.]
11194 \end_layout
11195 \end_deeper
11196 \begin_layout Enumerate
11197
11198 Eseguite questi comandi:
11199 \end_layout
11200
11201 \begin_deeper
11202 \begin_layout Enumerate
11203
11204
11205 \family typewriter
11206 chmod a+x /var/spool/lpd/ps/ps.filter
11207 \end_layout
11208
11209 \begin_layout Enumerate
11210
11211
11212 \family typewriter
11213 chgrp daemon /var/spool/lpd/ps/ps.filter
11214 \end_layout
11215 \end_deeper
11216 \end_deeper
11217 \begin_layout Enumerate
11218
11219 Infine, lanciate il demone della stampante, 
11220 \family typewriter
11221 lpd
11222 \family default
11223 :
11224 \end_layout
11225
11226 \begin_deeper
11227 \begin_layout Enumerate
11228
11229 Se non è già in uso, usate 
11230 \begin_inset Quotes eld
11231 \end_inset
11232
11233
11234 \family typewriter
11235 lpd &
11236 \family default
11237
11238 \begin_inset Quotes erd
11239 \end_inset
11240
11241  per avviarlo.
11242 \end_layout
11243
11244 \begin_layout Enumerate
11245
11246 Se è già in esecuzione, eseguite 
11247 \begin_inset Quotes eld
11248 \end_inset
11249
11250
11251 \family typewriter
11252 lpc
11253 \family default
11254
11255 \begin_inset Quotes erd
11256 \end_inset
11257
11258 .
11259  Poi, da dentro 
11260 \family typewriter
11261 lpc
11262 \family default
11263 , date un 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \family typewriter
11269 restart all
11270 \family default
11271
11272 \begin_inset Quotes erd
11273 \end_inset
11274
11275  e un 
11276 \begin_inset Quotes eld
11277 \end_inset
11278
11279
11280 \family typewriter
11281 up all
11282 \family default
11283
11284 \begin_inset Quotes erd
11285 \end_inset
11286
11287  per attivare i nuovi spools di stampa.
11288  [Il comando 
11289 \begin_inset Quotes eld
11290 \end_inset
11291
11292
11293 \family typewriter
11294 quit
11295 \family default
11296
11297 \begin_inset Quotes erd
11298 \end_inset
11299
11300  abbandona 
11301 \family typewriter
11302 lpc
11303 \family default
11304 ].
11305 \end_layout
11306
11307 \begin_layout Enumerate
11308
11309 Assicuratevi di aggiungere il comando appropriato ai vostri scripts di bootup
11310  in modo che 
11311 \family typewriter
11312 lpd
11313 \family default
11314  sia eseguito ad ogni avvio del sistema.
11315 \end_layout
11316 \end_deeper
11317 \begin_layout Enumerate
11318
11319 Potete ora uscire da root e testare le vostre nuove stampanti per assicurarvi
11320  che funzionino.
11321  Date il comando 
11322 \begin_inset Quotes eld
11323 \end_inset
11324
11325
11326 \family typewriter
11327 lpr -Plp
11328 \family default
11329
11330 \begin_inset Quotes erd
11331 \end_inset
11332
11333  seguito dal nome di un piccolo file di testo ASCIIper verificare che la
11334  stampante 
11335 \begin_inset Quotes eld
11336 \end_inset
11337
11338
11339 \family typewriter
11340 lp
11341 \family default
11342
11343 \begin_inset Quotes erd
11344 \end_inset
11345
11346  funzioni.
11347  Poi usate 
11348 \begin_inset Quotes eld
11349 \end_inset
11350
11351
11352 \family typewriter
11353 lpr -Pps
11354 \family default
11355
11356 \begin_inset Quotes erd
11357 \end_inset
11358
11359  seguito dal nome di un piccolo file PostScript® per testare la stampante
11360  
11361 \begin_inset Quotes eld
11362 \end_inset
11363
11364
11365 \family typewriter
11366 ps
11367 \family default
11368
11369 \begin_inset Quotes erd
11370 \end_inset
11371
11372 .
11373  
11374 \end_layout
11375
11376 \begin_layout Standard
11377
11378 Un avvertimento: quando testate 
11379 \begin_inset Quotes eld
11380 \end_inset
11381
11382
11383 \family typewriter
11384 ps
11385 \family default
11386
11387 \begin_inset Quotes erd
11388 \end_inset
11389
11390 , se qualcosa va storto, il sistema potrebbe passare dell'iimondizia alla
11391  stampante.
11392  Se avviene questo, spegnete la stampante ed usate i comandi 
11393 \family typewriter
11394 lpq
11395 \family default
11396  e 
11397 \family typewriter
11398 lprm
11399 \family default
11400  per killare il print job.
11401  Dopo aver killato il print job, potete riaccendere la stampante.
11402 \end_layout
11403
11404 \begin_layout Standard
11405
11406 Se nessuna di queste stampanti funziona, controllate di nuovo tutto, consultate
11407  le pagine 
11408 \family typewriter
11409 man
11410 \family default
11411  per 
11412 \family typewriter
11413 printcap
11414 \family default
11415  e 
11416 \family typewriter
11417 lpd
11418 \family default
11419 , e leggete il 
11420 \family typewriter
11421 Printing-HOWTO
11422 \family default
11423  per aiuto.
11424 \end_layout
11425
11426 \begin_layout Standard
11427
11428 Se tutto funziona, congratulazioni!
11429 \end_layout
11430
11431 \begin_layout Chapter
11432
11433 Il materiale esterno
11434 \end_layout
11435
11436 \begin_layout Section
11437
11438 Background
11439 \end_layout
11440
11441 \begin_layout Standard
11442
11443 Una caratteristica spesso richiesta dagli utenti LyX è quella di interfacciare
11444  LyX con Xfig, Dia, o altre applicazioni specializzate nella produzioni
11445  di un certo tipo di diagrammi, figure, schemi e simili cose che possono
11446  essere rilevanti per il vostro documento.
11447  Prima in LyX era solo possibile includere immagini fisse, statiche, noiose
11448  con l'insieme figure, ma ci sono numerose limitazioni relative a questo
11449  approccio:
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 Se volete cambiare la figura, dovete richiamare manualmente un programma
11455  esterno
11456 \end_layout
11457
11458 \begin_layout Itemize
11459
11460 LyX non notifica i cambiamenti ai riferimenti dei files, così quello che
11461  è visualizzato sullo schermo può rapidamente diventare obsoleto, e questo
11462  è aggravato da una media di aggiornamenti dello schermo
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 L'insieme delle figure supporta solo materiale PostScript
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 L'insieme delle figure non fornisce nessun meccanismo per copiare con differenti
11473  formati esportati come DocBook, HTML, o raw Ascii
11474 \end_layout
11475
11476 \begin_layout Standard
11477
11478 L'insieme del materiale esterno prova a risolvere tutti questi problemi
11479 \begin_inset Foot
11480 status collapsed
11481
11482 \begin_layout Standard
11483
11484 Anche se l'insieme delle figure non può risolvere tutti i problemi, è ancora
11485  valutabile perchè fornisce un'anteprima in linea della figura, e supporta
11486  trasformazioni geometriche avanzate con una semplice interfaccia utente.
11487 \end_layout
11488
11489 \end_inset
11490
11491 .
11492  Effettua ciò offrendo un metodo generale per interfacciare LyX alle applicazion
11493 i esterne.
11494  Invece di introdurre una lunga lista di insiemi ritagliati per ogni specifica
11495  applicazione, abbiamo scelto di sacrificare la visualizzazione in line
11496  del materiale incluso al fine di fornire uno strumento generale per affrontare
11497  una grande quantità di applicazioni.
11498  Il risultato è l'insieme esterno.
11499  Un insieme esterno presenta se stesso nel documento semplicemente come
11500  un bottone, ma non lasciatevi ingannare.
11501  Quando ci cliccate sopra, apparirà una finestra di dialogo che vi permetterà
11502  di scegliere esattamente quale materiale includere, è più avanti imparerete
11503  che in realtà è un potente meccanismo che può risolvere molti problemi
11504  ed anche di più.
11505 \end_layout
11506
11507 \begin_layout Section
11508
11509 Come funziona?
11510 \end_layout
11511
11512 \begin_layout Standard
11513
11514 L'insieme esterno è basato sul concetto di 
11515 \emph on
11516 template
11517 \emph default
11518 .
11519  Un template è una specificazione di come LyX dovrebbe interfacciarsi con
11520  un certo tipo di materiale.
11521  In genere LyX viene distribuito con una serie di template predefiniti per
11522  figure XFig, diagrammi Dia, varie immagini in formato raster, gnuplot,
11523  ed oltre.
11524  Potete controllare la lista attuale attraverso il comando 
11525 \family sans
11526 Insert\SpecialChar \menuseparator
11527 Insert external material.
11528  
11529 \family default
11530 Inoltre, è possibile adattare i vostri personali template per supportare
11531  uno specifico tipo di materiale.
11532  Più avanti descriveremo più in dettaglio gli elementi coinvolti, e si spera
11533  che possiate creare dei template che poi ci manderete per includerli nelle
11534  successive versioni di LyX.
11535 \end_layout
11536
11537 \begin_layout Standard
11538
11539 Un'altra idea di base dell'insieme esterno è di distinguere tra il file
11540  originale che serve come base per il materiale finale e il file prodotto
11541  che è incluso nel vostro documento esportato o stampato.
11542  Per esempio, consideriamo il caso di una figura prodotta con XFig.
11543  L'applicazione XFig lavora su un file originale con estensione 
11544 \family typewriter
11545 .fig
11546 \family default
11547 .
11548  All'interno di XFig create e modificate la vostra figura, e quando avete
11549  finito salvate il file 
11550 \family typewriter
11551 fig
11552 \family default
11553 .
11554  Quando vorrete includere la figura nel vostro documento, basta richiamare
11555  
11556 \family typewriter
11557 transfig
11558 \family default
11559  al fine di creare un file PostScript che può essere prontamente incluso
11560  nel vostro file LaTeX.
11561  In questo caso, il file 
11562 \family typewriter
11563 .fig
11564 \family default
11565  è il file originale, è il file PostScript è quello prodotto.
11566 \end_layout
11567
11568 \begin_layout Standard
11569
11570 Questa distinzione è importante al fine di effettuare l'aggiornamento del
11571  materiale mentre si è in fase di scrittura del documento.
11572  Inoltre, ci fornisce quella flessibilità che è necessaria per supportare
11573  molteplici formati di export.
11574  Ad esempio, nel caso di un file Ascii, non è esattamente una buona idea
11575  quella di includere la figura come un raw PostScript; dovreste invece preferire
11576  l'includere un riferimento alla figura oppure provare a richiamare qualche
11577  convertitore grafico da Ascii per rendere il risultato finale accettabile.
11578  L'insieme materiale esterno vi permette di farlo, perchè è parametrizzato
11579  su differenti formati di export supportati da LyX.
11580 \end_layout
11581
11582 \begin_layout Standard
11583
11584 Oltre a supportare la produzione di differenti prodotti in relazione al
11585  formato esportato, l'insieme esterno supporta una stretta integrazione
11586  con le applicazioni di editing e di visualizzazione.
11587  Nel caso di una figura XFig, potete richiamare xfig sul file originale
11588  con un singolo clic all'interno di LyX oltre che avere un'anteprima del
11589  file PostScript prodotto con ghostview sempre con un semplice clic.
11590  Non c'è più bisogno di smanettare con la riga di comando o con il browser
11591  per trovare e manipolare i files originali o quelli prodotti.
11592  In questo modo potrete finalmente utilizzare a pieno molte differenti applicazi
11593 oni che risultano rilevanti nella scrittura di un documento, al fine di
11594  essere maggiormente produttivi.
11595 \end_layout
11596
11597 \begin_layout Standard
11598
11599 Quindi, in definitiva, LyX ha informazioni circa un numero di programmi
11600  differenti da usare dietro le quinte per realizzare tutto questo marchingegno.
11601  Questa informazione, infatti, è esattamente ciò che è contenuto nei templates.
11602  Per ogni template, c'è associata una lista di linee di comando usate per
11603  irchiamare le applicazioni, convertire il file originale nel file prodotto
11604  ed altro ancora.
11605  Questo meccanismo permette all'utente avanzato di estendere le capacità
11606  di LyX senza smanettare col codice sorgente.
11607  Questo richiede un imponente lavoro per definire tutti i differenti comandi
11608  e flags, ma fortunatamente, il team di LyX ha già fatto questo lavoro per
11609  voi!
11610 \end_layout
11611
11612 \begin_layout Standard
11613
11614 Ma prima che gli alberi diventino grattacieli, dobbiamo ammettere che abbiamo
11615  fatto alcuni piccole scorciatoie.
11616  Siccome il set esterno può produrre molti tipi di files prodotti per i
11617  relativi formati di export, ci si potrebbe anche aspettare che sia possibile
11618  vedere l'anteprima di ogni prodotto.
11619  Ma, ancora una voltea, il team di LyX ha deciso per una linea che mantenesse
11620  l'interfaccia utente semplice.
11621  Per evitare di mettere un pulsante per ogni formato di file esportato,
11622  si è deciso di introdurre il concetto di formato primario di file ed avere
11623  solo un bottone.
11624  Quando si preme View result nella finestra dell'insieme esterno, verrà
11625  visualizzata un'immagine del file prodotto nel formato di file primario.
11626  E questo è specificato dalla vostra classe di documento.
11627  Per la maggior parte delle classi di documento il formato primario di file
11628  è LaTeX, ma per la classe di documento DocBook, il formato di file primario
11629  è DocBook.
11630  Così quando si visualizza il file prodotto, ricordatevi che sarà solo un'antepr
11631 ima di quello che sarà il risultato principale.
11632  Se volete vedere come lavorano gli altri formati, dovete esportarli e fare
11633  l'anteprima manualmente.
11634 \end_layout
11635
11636 \begin_layout Section
11637
11638 La finestra di dialogo Materiale Esterno
11639 \end_layout
11640
11641 \begin_layout Standard
11642
11643 Inserite un insieme esterno dal menu 
11644 \family sans
11645 Insert
11646 \family default
11647 .
11648  Quando fate questo, un bottone viene inserito nel vostro documento e viene
11649  mostrata la finestra di dialogo dell'insieme materiale esterno.
11650  Questa finestra vi permette di descrivere esattamente quale materiale deve
11651  essere incluso.
11652  Inoltre, fornisce un accesso alle applicazioni esterne per vedere, editare
11653  e produrre il materiale usato nel file risultante.
11654 \end_layout
11655
11656 \begin_layout Standard
11657
11658 In cima a questa finestra, c'è una lista a cascata dove è possibile scegliere
11659  quale template l'insieme deve usare.
11660  Immediatamente sotto troviamo un'area di testo con una descrizione del
11661  template scelto che dovrebbe aiutarvi ad usarlo.
11662  Più spesso, fornisce oltre ad una descrizione del template anche alcune
11663  indicazioni su come parametrizzarne l'uso.
11664  Ancora più in basso si trova un campo di inserimento di nome di file con
11665  un bottone browse che permette di scegliere quale file deve essere incluso.
11666  Questo campo specifica il file originale.
11667  Siccome il file prodotto è generato automaticamente quando se ne ha bisogno,
11668  non c'è motivo per consentirne l'accesso nell'interfaccia utente.
11669 \end_layout
11670
11671 \begin_layout Standard
11672
11673 In basso alla finestra di dialogo troverete una casella di immissione chiamata
11674  
11675 \family sans
11676 parameters
11677 \family default
11678 .
11679  Questo box è generalmente usato per parametrizzare uno specifico template.
11680  L'uso specifico dovrebbe essere indicato e chiarito nella casella di definizion
11681 e e aiuto associata al template, ma in genere permette tipicamente di definire
11682  le variazioni su come il file prodotto dovrebbe essere generato.
11683 \end_layout
11684
11685 \begin_layout Standard
11686
11687 Nella parte destra della finestra ci sono tre bottoni: 
11688 \family sans
11689 Edit file
11690 \family default
11691
11692 \family sans
11693 View result
11694 \family default
11695  e 
11696 \family sans
11697 Update result
11698 \family default
11699 .
11700  Questi rispettivamente permettono di editare il vostro file originale con
11701  l'applicazione di editing opportuna, vedere il file prodotto come incluso
11702  nel formato primario di documento, ed infine forzare un aggiornamento del
11703  materiale risultante nel formato primario.
11704  Normalmente il bottone 
11705 \family sans
11706 Update result
11707 \family default
11708  sarà disabilitato perchè molti template sono configurati per aggiornare
11709  automaticamente il file prodotto quando ce ne è bisogno.
11710  In questi casi non c'è bisogno di forzare la produzione di un nuovo file
11711  prodotto.
11712  Tuttavia alcuni templates sono configurati per non produrre automaticamente
11713  il prodotto residuale, in quanto il costo di produrre un file prodotto
11714  potrebbe essere così grande da renderne impossibile l'attuazione.
11715  Questi insiemi sono conosciuti come insiemi 
11716 \emph on
11717 manuali 
11718 \emph default
11719 esterni.
11720  In questi casi potete usare il bottone per forzare la produzione del file
11721  prodotto proprio quando ne avete bisogno, controllando così il lavoro che
11722  viene fatto.
11723  Infatti, è sotto la 
11724 \emph on
11725 vostra
11726 \emph default
11727  responsabilità fare questo per mantenere i files prodotti costantemente
11728  aggiornati: prima di stampare, prima di esportare, prima di visualizzare,
11729  ecc.
11730  Forse, in futuro, sarà possibile che LyX vi aiuti in questo compito.
11731  Sarebbe infatti simpatico poter usare un comando 
11732 \family sans
11733 Edit\SpecialChar \menuseparator
11734 Update all external inset
11735 \family default
11736  per aggiornare tutti gli insiemi esterni che usano un template manuale.
11737  Ma vi anticipiamo che potrebbe richiedere molto tempo per l'implementazione.
11738 \end_layout
11739
11740 \begin_layout Standard
11741
11742 In basso alla finestra di dialogo troverete i soliti bottoni 
11743 \family sans
11744 OK
11745 \family default
11746  e 
11747 \family sans
11748 Cancel
11749 \family default
11750 .
11751  L'unica cosa utile da ricordare circa questi è che ogni cambiamento nel
11752  template, nome del file o parametri sono attualmente applicati quando si
11753  premono i bottoni 
11754 \family sans
11755 Edit file
11756 \family default
11757
11758 \family sans
11759 View result
11760 \family default
11761  e 
11762 \family sans
11763 Update result
11764 \family default
11765 .
11766  Questo implica che dopo aver usato uno di questi, potrete sono annullare
11767  i cambiamenti che sono stati effettuati attraverso quei bottoni premendo
11768  
11769 \family sans
11770 cancel
11771 \family default
11772 .
11773  Fortunatamente, potete usare la funzione undo generale in LyX per ritornare
11774  allo stato precedente.
11775 \end_layout
11776
11777 \begin_layout Section
11778
11779 Esempi
11780 \end_layout
11781
11782 \begin_layout Standard
11783
11784 In questa sezione, dovremmo includere alcuni esempi circa l'uso dell'insieme
11785  del materiale esterno.
11786  Questi esempi potrebbero includere:
11787 \end_layout
11788
11789 \begin_layout Itemize
11790
11791 Immagini raster esterne
11792 \end_layout
11793
11794 \begin_layout Itemize
11795
11796 figure esterne XFig
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 Diagrammi a scacchi
11802 \end_layout
11803
11804 \begin_layout Itemize
11805
11806 Campioni di suoni
11807 \end_layout
11808
11809 \begin_layout Itemize
11810
11811 Uso dei makefiles
11812 \end_layout
11813
11814 \begin_layout Itemize
11815
11816 Templates LyX esterni ricorsivi
11817 \end_layout
11818
11819 \begin_layout Section
11820
11821 Il file di configurazione external template
11822 \end_layout
11823
11824 \begin_layout Standard
11825
11826 E' relativamente semplice aggiungere definizioni di template esterni a LyX.
11827  Tuttavia state attenti poichè fare queste cose in maniera approssimativa
11828  
11829 \emph on
11830 potrebbe
11831 \emph default
11832  probabilmente creare un buco di sicurezza facilmente sfruttabile.
11833  Così prima di procedere, leggete il successivo capitolo sulla sicurezza.
11834 \end_layout
11835
11836 \begin_layout Standard
11837
11838 Dopo aver detto queste cose, vi incoraggiamo a farci pervenire ogni template
11839  interessante che create.
11840 \end_layout
11841
11842 \begin_layout Standard
11843
11844 I templates sono definiti nel file 
11845 \family typewriter
11846 lib/external_template
11847 \family default
11848 .
11849  Forse, prima o poi qualcuno documenterà i contenuti dei templates e la
11850  sintassi usata per definirne di propri.
11851 \end_layout
11852
11853 \begin_layout Section
11854
11855 Il meccanismo di sostituzione
11856 \end_layout
11857
11858 \begin_layout Standard
11859
11860 Quando l'insieme del materiale esterno richiama un programma esterno, è
11861  fatto sulla base di un comando definito nel file di configurazione del
11862  template.
11863  Questi comandi possono contenere varie macro che vengono espanse prima
11864  dell'esecuzione.
11865  L'esecuzione avviene sempre nella directory del documento contenuto.
11866 \end_layout
11867
11868 \begin_layout Standard
11869
11870 Inoltre, ogni volta che viene visualizzato un insieme esterno, il nome sarà
11871  prodotto dal meccanismo di sostituzione.
11872 \end_layout
11873
11874 \begin_layout Standard
11875
11876 Le macro disponibili sono le seguenti:
11877 \end_layout
11878
11879 \begin_layout Description
11880
11881 $$FName Il nome del file specificato nella finestra dell'insieme esterno.
11882 \end_layout
11883
11884 \begin_layout Description
11885
11886 $$Basename Il nome del file senza estensione.
11887 \end_layout
11888
11889 \begin_layout Description
11890
11891 $$Tempname Un nome e un indirizzo completo di un file temporaneo che sarà
11892  automaticamente cancellato quando si chiude il documento contenuto, oppure
11893  quando è cancellato l'insieme esterno.
11894 \end_layout
11895
11896 \begin_layout Description
11897
11898 $$Contents("filename.ext") Questa macro espanderà il contenuto del file col
11899  nome 
11900 \family typewriter
11901 filename.ext
11902 \family default
11903 .
11904 \end_layout
11905
11906 \begin_layout Description
11907
11908 $$Sysdir Questa macro espanderà all'indirizzo assoluto della directory di
11909  sistema.
11910  E' tipicamente usato per puntare i vari script di aiuto che sono inseriti
11911  in LyX
11912 \end_layout
11913
11914 \begin_layout Standard
11915
11916 In aggiunta a questi gli strumenti espanderanno le variabili d'ambiente
11917  generali con una sintassi del tipo 
11918 \family typewriter
11919 ${PATH}
11920 \family default
11921 .
11922 \end_layout
11923
11924 \begin_layout Section
11925
11926 Discussione sulla sicurezza
11927 \end_layout
11928
11929 \begin_layout Standard
11930
11931 L'insieme del materiale esterno si interfaccia con molti programmi esterni
11932  e lo fa automaticamente, per questo vanno considerate le implicazioni di
11933  sicurezza di questo.
11934  In particolare, siccome avete l'opzione di includere dei vostri nomi dei
11935  file e/o stringhe di parametri, e questi vengono aperti in un comando,
11936  sembrerebbe che sia possibile creare un documento maligno che può eseguire
11937  comandi arbitrari quando un utente vede o stampa un documento.
11938  Questo lo vogliamo definitivamente evitare.
11939 \end_layout
11940
11941 \begin_layout Standard
11942
11943 Tuttavia, dato che i comandi dei programmi esterni sono specificati solo
11944  nel file di configurazione del template, non ci sono problemi di sicurezza
11945  se LyX è configurato bene solo con templates sicuri.
11946  E' così perche i programmi esterni sono richiamati con la chiamata di sitema
11947  
11948 \family typewriter
11949 execvp
11950 \family default
11951  piuttosto che con 
11952 \family typewriter
11953 system
11954 \family default
11955 , quindi non è possibile eseguire comandi arbitrari dal file o dalla sezione
11956  dei parametri attraverso la shell.
11957 \end_layout
11958
11959 \begin_layout Standard
11960
11961 Tutto ciò implica che siete limitati nelle stringhe di comando che potete
11962  usare nei template dei materiali esterni, In particolare canali e redirection
11963  non sono subito disponibili.
11964  Ciò dovrebbe essere così se LyX dovesse rimanere sicuro.
11965  Se volete usare alcune funzioni della shell, dovrete scrivere uno script
11966  sicuro per farlo in maniera controllata, dopodochè richimare lo script
11967  dalla linea di comando.
11968  Nella directory 
11969 \family typewriter
11970 lib/scripts
11971 \family default
11972  dell'installazione di LyX, potrete trovare uno script sicuro preconfezionato
11973  
11974 \family typewriter
11975 general_command_wrapper.py
11976 \family default
11977  che supporta la redirection di input e output.
11978  Questo può essere un esempio di come scrivere script di template sicuri.
11979  Per un esempio più avanzato che usa fork e simili, date uno sguardo allo
11980  script di conversione 
11981 \family typewriter
11982 pic2ascii.py
11983 \family default
11984 .
11985  
11986 \end_layout
11987
11988 \begin_layout Standard
11989
11990 E' possibile progettare un template che interagisce direttamente con la
11991  shell, ma dato che questo potrebbe permettere ad un utente con cattive
11992  intenzioni di eseguire comandi arbitrari scivendo intelligenti filename
11993  e/o parametri, raccomandiamo in generale di usare solo script sicuri che
11994  lavorano solo con le chiamate di sistema 
11995 \family typewriter
11996 execvp
11997 \family default
11998  in maniera controllata.
11999  Naturalmente se si lavora in un ambiente controllato potrebbe essere allettante
12000  ritornare ad usare gli script di shell ordinari.
12001  Se lo fate state attenti poichè 
12002 \emph on
12003 andrete a creare
12004 \emph default
12005  un buco di sicurezza facilmente sfruttabile nel vostro sistema.
12006  Naturalmente è ragionevole che questi templates non sicuri non verranno
12007  mai inclusi nella distribuzione LyX standard, sebbene incoraggiamo le persone
12008  a sottoporre nuovi templates nella tradizione open source.
12009  Ma LyX come rilasciato nei canali ufficiali di distribuzioni non avrà mai
12010  tamplates non sicuri.
12011 \end_layout
12012
12013 \begin_layout Standard
12014
12015 L'insieme del materiale esterno fornisce molta potenza, perciò dovete stare
12016  attenti a non introdurre elementi di azzardo sulla sicurezza a questa potenza.
12017  Un lieve errore in una singola riga di un semplice script può creare grandi
12018  problemi di sicurezza.
12019  Così, se non capite completamente questo tema, vi consigliamo di consultare
12020  un professionista della sicurezza oppure il team di sviluppo di LyX se
12021  avete domande sulle implicazioni di sicurezza circa uno script.
12022  E, ovviamente, fate questo prima di usare lo script in un ambiente non
12023  sicuro.
12024 \end_layout
12025
12026 \begin_layout Section
12027
12028 Il futuro dell'insieme esterno
12029 \end_layout
12030
12031 \begin_layout Standard
12032
12033 La corrente implementazione dell'insieme esterno èun costrutto potente e
12034  stabile che fornisce un accesso diretto alle parti più interne di LyX,
12035  ma come ogni caratteristca di LyX, dovrebbe essere sempre considerata un
12036  work-in-progress.
12037  Quando e se qualcuno ha il tempo di continuare a lavorarci su, ecco alcune
12038  direzioni generali che possono essere seguite:
12039 \end_layout
12040
12041 \begin_layout Itemize
12042
12043 Supportare l'anteprima in linea in vari formati, piuttosto che il bottone
12044  di testo a cui si è obbligati attualmente.
12045 \end_layout
12046
12047 \begin_layout Itemize
12048
12049 Supportare l'editing in linea attraverso l'uso di OpenParts o altri protocolli
12050  rilevanti.
12051 \end_layout
12052
12053 \begin_layout Itemize
12054
12055 Estendere l'informazioni dinamica per avere campi di parametri opzionali
12056  per i comandi di conversione in tutti i formati di export, ed avere campi
12057  di parametri opzionali per ciò che è prodotto all'interno di tutti i differenti
12058  formati esportati.
12059  Al momento siamo costretti ad usare una sola stringa di parametri che è
12060  multiplata tra queste numerosi applicazioni.
12061  Inoltre un cambiamento come questo ci permetterebbe di liberarci delle
12062  strane restrizioni del formato principale.
12063 \end_layout
12064
12065 \begin_layout Itemize
12066
12067 Estendere l'area di lavoro per fornire delle opzioni di personalizzazione
12068  più intelligenti in aggiunta alla piuttosto semplicistica stringa di parametri.
12069  Con un linguaggio di script adatto, sarà possibile implementare versioni
12070  user friendly di molti insiemi di personalizzazione che supportano una
12071  grande quantità di formati, pacchetti LaTeX, editors, ecc.
12072 \end_layout
12073
12074 \end_body
12075 \end_document