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