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