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