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