]> git.lyx.org Git - lyx.git/blob - lib/doc/it_Customization.lyx
fix bogus keybinding (bug 1422)
[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 Oltre a questo, ci sono alcuni punti da considerare:
3243 \end_layout
3244
3245 \begin_layout Itemize
3246 Sia il server che i clients devono girare su macchine UNIX o OS/2.
3247  Le comunicazioni tra LyX su UNIX e i clients su OS/2 o viceversa non sono
3248  attualmente possibili.
3249 \end_layout
3250
3251 \begin_layout Itemize
3252 Su OS/2, solo un client per volta può connettersi al server LyX.
3253 \end_layout
3254
3255 \begin_layout Itemize
3256 Su OS/2, i clients devono aprire il canale d'ingresso in modalità 
3257 \family typewriter
3258 O_WRONLY
3259 \family default
3260 .
3261 \end_layout
3262
3263 \begin_layout Standard
3264 Potete trovare degli esempi completi scritti in C nella distribuzione dei
3265  codici come 
3266 \family typewriter
3267 development/server_monitor.c
3268 \family default
3269 .
3270 \end_layout
3271
3272 \begin_layout Section
3273 Comunicazione normale
3274 \end_layout
3275
3276 \begin_layout Standard
3277 Per assegnare una chiamata LyX, il client scrive una riga di codice ASCII
3278  nel canale di input.
3279  Questa linea ha il seguente formato:
3280 \end_layout
3281
3282 \begin_layout Quote
3283 LYXCMD:
3284 \emph on
3285 clientname
3286 \emph default
3287 :
3288 \emph on
3289 function
3290 \emph default
3291 :
3292 \emph on
3293 argument
3294 \end_layout
3295
3296 \begin_layout Standard
3297 In questo caso 
3298 \emph on
3299 clientname
3300 \emph default
3301  è un nome che il client può scegliere arbitrariamente.
3302  Il suo unico uso è che LyX gli risponderà se questi manda una risposta
3303  - così un client può mandare risultati da differenti richiedenti.
3304 \end_layout
3305
3306 \begin_layout Standard
3307
3308 \emph on
3309 function
3310 \emph default
3311  è la funzione che volete che LyX esegua.
3312  E' lo stesso dei comandi che dovreste usare in minibuffer.
3313 \end_layout
3314
3315 \begin_layout Standard
3316
3317 \emph on
3318 argument
3319 \emph default
3320  è un argomento opzionale rilevante solo per alcune funzioni ( ad esempio
3321  
3322 \begin_inset Quotes eld
3323 \end_inset
3324
3325 auto-inserimento
3326 \begin_inset Quotes erd
3327 \end_inset
3328
3329  che inserisce l'argomento come testo nella posizione del cursore.)
3330 \end_layout
3331
3332 \begin_layout Quote
3333 La risposta da LyX arriverà nel canale di output e sarà del tipo
3334 \end_layout
3335
3336 \begin_layout Quote
3337 INFO:
3338 \emph on
3339 clientname
3340 \emph default
3341 :
3342 \emph on
3343 function
3344 \emph default
3345 :
3346 \emph on
3347 data
3348 \end_layout
3349
3350 \begin_layout Standard
3351 Dove
3352 \emph on
3353  clientname
3354 \emph default
3355  e 
3356 \emph on
3357 function
3358 \emph default
3359  sono richiamati dalla richiesta di comando, mentre 
3360 \emph on
3361 data
3362 \emph default
3363  è un'informazione più o meno utile a seconda dell'esecuzione del comando.
3364  Alcuni comandi restituiscono informazioni circa lo stato interno di LyX,
3365  come il 
3366 \begin_inset Quotes eld
3367 \end_inset
3368
3369 font-state
3370 \begin_inset Quotes erd
3371 \end_inset
3372
3373 , mentre altri restituiscono risposte 
3374 \begin_inset Quotes eld
3375 \end_inset
3376
3377 vuote
3378 \begin_inset Quotes erd
3379 \end_inset
3380
3381 .
3382  Questo significa che l'esecuzione del comando ha avuto fine.
3383 \end_layout
3384
3385 \begin_layout Standard
3386 In caso di errori, la risposta da LyX avrà questa forma
3387 \end_layout
3388
3389 \begin_layout Quote
3390 ERROR:
3391 \emph on
3392 clientname
3393 \emph default
3394 :
3395 \emph on
3396 function
3397 \emph default
3398 :
3399 \emph on
3400 error message
3401 \end_layout
3402
3403 \begin_layout Standard
3404 dover l'
3405 \emph on
3406 error message
3407 \emph default
3408  dovrebbe contenere la spiegazione del perchè il comando è fallito.
3409 \end_layout
3410
3411 \begin_layout Standard
3412 Esempi:
3413 \end_layout
3414
3415 \begin_layout LyX-Code
3416 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
3417 \end_layout
3418
3419 \begin_layout LyX-Code
3420 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
3421 \newline
3422 read a <~/.lyxpipe.out
3423 \newline
3424 echo $a
3425 \end_layout
3426
3427 \begin_layout Section
3428 Notifica
3429 \end_layout
3430
3431 \begin_layout Standard
3432 LyX può notificare ai clients gli eventi asincroni.
3433  Correntemente lo farà soltanto se l'utente assegna una sequenza di tasti
3434  alla funzione 
3435 \begin_inset Quotes eld
3436 \end_inset
3437
3438 notifica
3439 \begin_inset Quotes erd
3440 \end_inset
3441
3442 .
3443 \end_layout
3444
3445 \begin_layout Standard
3446 Il formato della stringa che LyX manda è:
3447 \end_layout
3448
3449 \begin_layout Quote
3450
3451 \family typewriter
3452 NOTIFY:
3453 \family default
3454 \emph on
3455 key-sequence
3456 \end_layout
3457
3458 \begin_layout Standard
3459 dove 
3460 \emph on
3461 key-sequence
3462 \emph default
3463  è la rappresentazione stampata della sequenza di tasti premuta dall'utente.
3464 \end_layout
3465
3466 \begin_layout Standard
3467 Questo meccanismo può essere usato per estendere il set di comandi LyX ed
3468  implementare macro: assegnare una sequenza di tasti a 
3469 \begin_inset Quotes eld
3470 \end_inset
3471
3472 notifica
3473 \begin_inset Quotes erd
3474 \end_inset
3475
3476 , lanciare un client che ascolta sul canale d'uscita, fornisce il comando
3477  relativo alla sequenza e inizia una funzione che può usare le chiamate
3478  e le richieste di LyX per assegnare un comando o una serie di comandi a
3479  LyX.
3480 \end_layout
3481
3482 \begin_layout Section
3483 Il Protocollo Server LyX semplice
3484 \end_layout
3485
3486 \begin_layout Standard
3487 Lyx implementa un semplice protocollo che può essere usato per la gestione
3488  delle sessioni.
3489  Tutti i messaggi sono della forma:
3490 \end_layout
3491
3492 \begin_layout Quote
3493 LYXSRV:
3494 \emph on
3495 clientname
3496 \emph default
3497 :
3498 \emph on
3499 protocol message
3500 \end_layout
3501
3502 \begin_layout Standard
3503 dove 
3504 \emph on
3505 protocol message
3506 \emph default
3507  può essere 
3508 \begin_inset Quotes eld
3509 \end_inset
3510
3511 hello
3512 \begin_inset Quotes erd
3513 \end_inset
3514
3515  o 
3516 \begin_inset Quotes eld
3517 \end_inset
3518
3519 bye
3520 \begin_inset Quotes erd
3521 \end_inset
3522
3523 .
3524  Se 
3525 \begin_inset Quotes eld
3526 \end_inset
3527
3528 hello
3529 \begin_inset Quotes erd
3530 \end_inset
3531
3532  è ricevuto da un client, LyX ritornerà indietro per informare il client
3533  che sta ascoltando il suo messaggio, mentre 
3534 \begin_inset Quotes eld
3535 \end_inset
3536
3537 bye
3538 \begin_inset Quotes erd
3539 \end_inset
3540
3541  mandato da LyX informa i clients che LyX sta chiudendo.
3542 \end_layout
3543
3544 \begin_layout Chapter
3545 Internazionalizzare LyX
3546 \begin_inset LatexCommand \label{chap:i18n}
3547
3548 \end_inset
3549
3550
3551 \end_layout
3552
3553 \begin_layout Standard
3554 LyX supporta l'uso di interfacce tradotte.
3555  L'ultima volta che abbiamo controllato, LyX forniva testi in 14 linguaggi
3556  diversi oltre l'inglese di base.
3557  Il linguaggio scelto è definito linguaggio 
3558 \emph on
3559 locale
3560 \emph default
3561 .
3562  (per ulteriori letture sui settaggi locali, riferirsi alla documentazione
3563  del vostro sistema operativo.
3564  Per Linux, le manual page di locale(5) sono un ottimo punto di partenza).
3565 \end_layout
3566
3567 \begin_layout Standard
3568 Notate che queste traduzioni funzionano, ma contengono alcuni difetti.
3569  In particolare, tutti i menu di pop-up sono stati progettati in inglese,
3570  questo significa che alcune traduzioni potrebbero essere troppo grandi
3571  rispetto allo spazio ad esse assegnate in fase di progettazione.
3572  Questo è solo un problema di visualizzazione che non causa molti problemi.
3573  Inoltre, potrete notare che che molte delle traduzioni non definiscono
3574  le scorciatoie per tutto.
3575  A volte , molto semplicemente, non ci sono abbastanza lettere disponibili.
3576  Altre volte, il traduttore non lo ha ancorafatto.
3577  Cercheremo di ovviare a questi inconvenienti nelle prossime versioni di
3578  LyX.
3579 \end_layout
3580
3581 \begin_layout Section
3582 Selezionare un linguaggio alternativo per l'interfaccia utente
3583 \end_layout
3584
3585 \begin_layout Standard
3586 Questa possibilità è disabilitata di default, ciò significa che il testo
3587  sarà in inglese.
3588  Per abilitare un linguaggio alternativo bisogna settare la variabile ambientale
3589  appropriata.
3590  Usate 
3591 \family typewriter
3592 "setenv LANG xx"
3593 \family default
3594  per le interfacce di classe csh o 
3595 \family typewriter
3596 "export LANG=xx"
3597 \family default
3598  per la classe sh.
3599  Sostituite le 
3600 \family typewriter
3601 xx
3602 \family default
3603  con il codice di due lettere del linguaggio che volete.
3604  Ad esempio 
3605 \family typewriter
3606 no
3607 \family default
3608  è Norvegiese.
3609 \end_layout
3610
3611 \begin_layout Standard
3612 Evidenetemente vorrete mettere la linea appropriata in 
3613 \family typewriter
3614 ~/.Xsession
3615 \family default
3616  or 
3617 \family typewriter
3618 ~/.xinitrc
3619 \family default
3620  in modo che la traduzione sia attivata di default.
3621  Ricordate che se LyX è configurato e compilato con 
3622 \begin_inset Quotes eld
3623 \end_inset
3624
3625
3626 \family typewriter
3627 --disable-nls
3628 \family default
3629
3630 \begin_inset Quotes erd
3631 \end_inset
3632
3633 ,questo non funzionerà.
3634 \end_layout
3635
3636 \begin_layout Section
3637 Usare scorciatoie per linguaggi alternativi
3638 \end_layout
3639
3640 \begin_layout Standard
3641 \begin_inset ERT
3642 status collapsed
3643
3644 \begin_layout Standard
3645
3646 \backslash
3647 begin{sloppypar}
3648 \end_layout
3649
3650 \end_inset
3651
3652
3653 \end_layout
3654
3655 \begin_layout Standard
3656 Una causa principale di inconsistenza nelle versioni tradotte di LyX è il
3657  fatto che tutte le scorciatoie da tastiera per le funzioni del menu sono
3658  basate sulla versione inglese del testo Ad esempio, l'entrata nel menu
3659  
3660 \family sans
3661 M-f t 
3662 \family default
3663 aprirà il popup nuovo-file-da-template.
3664  Questo è semplice da cambiare, come tutte le scorciatoie delle operazioni
3665  del menu definite nel file unico 
3666 \family typewriter
3667 LyXDir/bind/menus.bind
3668 \family default
3669 .
3670  Ogni utente può avere la propria copia di questo file nella propria directory
3671  privata 
3672 \family typewriter
3673 ~/.lyx/bind
3674 \family default
3675 , che avrà precedenza rispetto agli altri file di sistema.
3676  In questa copia privata ognugno può facilmente cambiare le definizioni,
3677  ad esempio per la versione tedesca avremo 
3678 \family sans
3679 M-f t
3680 \family default
3681  in 
3682 \family sans
3683 M-d v
3684 \family default
3685  (per 
3686 \family sans
3687 Date\SpecialChar \menuseparator
3688 Vorlage).
3689
3690 \family default
3691  Per alcuni linguaggi, gli esempi per adattare i files 
3692 \family typewriter
3693 menus.bind
3694 \family default
3695  si possono trovare in
3696 \family sans
3697  
3698 \family typewriter
3699 LyXDir/bind/
3700 \series bold
3701 xx
3702 \series default
3703 _menus.bind
3704 \family sans
3705  (
3706 \family default
3707 \series bold
3708 xx
3709 \series default
3710  è il codice del linguaggio).
3711  Questi, se esistono (e se il vostro settaggio locale è 
3712 \family typewriter
3713 $LANG=
3714 \series bold
3715 xx
3716 \family default
3717 \series default
3718 ), saranno automaticamente usati da LyX.
3719 \end_layout
3720
3721 \begin_layout Standard
3722 \begin_inset ERT
3723 status collapsed
3724
3725 \begin_layout Standard
3726
3727 \backslash
3728 end{sloppypar}
3729 \end_layout
3730
3731 \end_inset
3732
3733
3734 \end_layout
3735
3736 \begin_layout Standard
3737 Dovete fare attenzione a che le nuove definizioni per le scorciatoie non
3738  coincidano con altre prima definite.
3739  Ad esempio, l'associazione 
3740 \family sans
3741 M-d v
3742 \family default
3743  genererà un errore per quelli che usano 
3744 \family typewriter
3745 (x)emacs.bind
3746 \family default
3747 , dove 
3748 \family sans
3749 M-d
3750 \family default
3751  è unito a 
3752 \family typewriter
3753 word-delete-forward
3754 \family default
3755 .
3756 \end_layout
3757
3758 \begin_layout Standard
3759 Dalla versione 1.0 di LyX, i nomi tradotti per i menu top level (tradotti
3760  nei files 
3761 \begin_inset Quotes eld
3762 \end_inset
3763
3764 po
3765 \begin_inset Quotes erd
3766 \end_inset
3767
3768 ) sono usati dal meccanismo di assegnazione, quindi il menu 
3769 \emph on
3770 tradotto
3771 \emph default
3772  deve essere usato nel 
3773 \family typewriter
3774 menus.bind
3775 \family default
3776  tradotto.
3777 \end_layout
3778
3779 \begin_layout Section
3780 Tradurre LyX
3781 \end_layout
3782
3783 \begin_layout Subsection
3784 Tradurre l'interfaccia grafica utente (messaggi di testo).
3785 \end_layout
3786
3787 \begin_layout Standard
3788 LyX usa la libreria GNU gettext per gestire l'internazionalizzazione dell'interf
3789 accia.
3790  Per far parlare a LyX il vostro linguaggio preferito in tutti i menu e
3791  le caselle di diagolo, avete bisogno di un po-file per quel determinato
3792  linguaggio.
3793  Quando questo è reperibile, dovrete creare da questi un mo-file ed installarlo.
3794  Tutti i passaggi necessari ad eseguire questa operazione sono spiegati
3795  nella documentazione di GNU gettext, ma, in breve, questo è quello che
3796  dovete fare (
3797 \series bold
3798 xx
3799 \series default
3800  rappresenta il codice del linguaggio):
3801 \end_layout
3802
3803 \begin_layout Standard
3804 \begin_inset ERT
3805 status collapsed
3806
3807 \begin_layout Standard
3808
3809 \backslash
3810 begin{sloppypar}
3811 \end_layout
3812
3813 \end_inset
3814
3815
3816 \end_layout
3817
3818 \begin_layout Itemize
3819 Copiare 
3820 \family typewriter
3821 LYX-SOURCE-DIR/po/lyx.pot
3822 \family default
3823  in 
3824 \series bold
3825 xx
3826 \family typewriter
3827 \series default
3828 .po
3829 \family default
3830  (se 
3831 \family typewriter
3832 lyx.pot
3833 \family default
3834  non esiste, può essere rifatto con
3835 \family typewriter
3836  make lyx.pot
3837 \family default
3838  in quella directory, oppure potete usare un po-file esistente per altri
3839  linguaggi come se fosse un template).
3840 \end_layout
3841
3842 \begin_layout Itemize
3843 Editare 
3844 \family typewriter
3845 xx.po
3846 \family default
3847
3848 \begin_inset Foot
3849 status collapsed
3850
3851 \begin_layout Standard
3852 Raccomandiamo di usare Emacs per fare questo, dato che la distribuzione
3853  gettext include un appropriato supporto.
3854 \end_layout
3855
3856 \end_inset
3857
3858 .
3859  Per alcune etichette di menu, ci sono anche scorciatoie da tastiera che
3860  dovrebbero essere tradotte.
3861  Questi tasti sono segnati dopo un `
3862 \family typewriter
3863 |
3864 \family default
3865 ', e dovrebbero essere tradotti in relazione alle parole e alle frasi del
3866  linguaggio 
3867 \series bold
3868 xx
3869 \series default
3870 .
3871  C'è uno strumento chiamato 
3872 \family typewriter
3873 scgen.pl
3874 \family default
3875  scritto in Prolog in 
3876 \family typewriter
3877 LYX-SOURCE-DIR/development/tools/
3878 \family default
3879  che può essere utile per creare determinate scorciatoie.
3880  Notate che XForms (almeno la versione 0.86) non può manipolare altro che
3881  scorciatoie di caratteri di 7 bit.
3882  Dovreste inoltre aggiungere delle informazioni all'inizio del nuovo file
3883  po come il vostro indirizzo email ecc, cosi gli altri sanno dove possono
3884  rintracciarvi.
3885 \end_layout
3886
3887 \begin_layout Itemize
3888 Create 
3889 \series bold
3890 xx
3891 \family typewriter
3892 \series default
3893 .mo
3894 \family default
3895 .
3896  Questo può essere fatto con
3897 \newline
3898
3899 \family typewriter
3900 msgfmt -o 
3901 \family default
3902 \series bold
3903 xx
3904 \family typewriter
3905 \series default
3906 .mo < 
3907 \family default
3908 \series bold
3909 xx
3910 \family typewriter
3911 \series default
3912 .po
3913 \end_layout
3914
3915 \begin_layout Itemize
3916 Copiare ilfile mo nella vostra directory locale, precisamente nella dirctory
3917  dei messaggi dell'applicazione per il linguaggio 
3918 \series bold
3919 xx
3920 \series default
3921 , e, sotto il nome
3922 \family typewriter
3923  lyx.mo
3924 \family default
3925
3926 \newline
3927 (es.
3928  
3929 \family typewriter
3930 /usr/local/share/locale/
3931 \family default
3932 \series bold
3933 xx
3934 \family typewriter
3935 \series default
3936 /LC_MESSAGES/lyx.mo
3937 \family default
3938 )
3939 \end_layout
3940
3941 \begin_layout Standard
3942 \begin_inset ERT
3943 status collapsed
3944
3945 \begin_layout Standard
3946
3947 \backslash
3948 end{sloppypar}
3949 \end_layout
3950
3951 \end_inset
3952
3953
3954 \end_layout
3955
3956 \begin_layout Standard
3957 Aggiungere un nuovo file po alla 
3958 \emph on
3959 distribuzion
3960 \emph default
3961 e di LyX comprende il cambiamento degli script di configurazione ed oltre,
3962  ma per come lavora gettext, attualmente non avete bisogno di codice LyX
3963  per tradurlo---se si ha 
3964 \family typewriter
3965 lyx.pot
3966 \family default
3967  (o un file po esistente), bastano gli strumenti di gettext.
3968 \end_layout
3969
3970 \begin_layout Standard
3971 Se avete scritto un file di traduzione per un linguaggio che attualmente
3972  LyX non supporta, ritenetevi liberi di introdurlo magari mandando una patch.
3973  In questo caso vi raccomandiamo di leggere il README della directory 
3974 \family typewriter
3975 LYX-SOURCE-DIR/po/
3976 \family default
3977  per ulteriori informazioni.
3978 \end_layout
3979
3980 \begin_layout Subsection
3981 Tradurre la documentazione.
3982 \end_layout
3983
3984 \begin_layout Standard
3985 La documentazione online (nel menu 
3986 \family sans
3987 Help) 
3988 \family default
3989 può (e dovrebbe!) essere tradotto.
3990  Se ci sono versioni tradotte della documentazione disponibile
3991 \begin_inset Foot
3992 status collapsed
3993
3994 \begin_layout Standard
3995 Ad Aprile 1999, quasi tutti i documenti sono stati tradotti in tedesco.
3996  Il tutorial è stato tradotto in francese, polacco, portoghese e svedese,
3997  con altre traduzioni in corso.
3998  La libreria dei documenti tradotti cresce rapidamente.
3999 \end_layout
4000
4001 \end_inset
4002
4003 , e il locale è adeguatamente settato, queste saranno usate automaticamente
4004  da LyX.
4005  LyX cerca di tradurre le versioni come 
4006 \family typewriter
4007 LyXDir/doc/
4008 \series bold
4009 xx
4010 \series default
4011 _DocName.lyx
4012 \family default
4013 , dove 
4014 \family typewriter
4015 \series bold
4016 xx
4017 \family default
4018 \series default
4019  indica il linguaggio settato dalla variabile ambientale 
4020 \family typewriter
4021 $LANG
4022 \family default
4023 .
4024  Se non c'è nulla, sarà mostrato il linguaggio di default ovvero l'inglese.
4025  Notate che le versioni tradotte devono avere gli stessi nomi dei files
4026  come gli originali (
4027 \family typewriter
4028 DocName
4029 \family default
4030  di cui sopra).
4031  Se ve la sentite di tradurre la documentazione (un buon modo per leggersi
4032  la documentazione originale BTW!), ci sono alcune cose che dovreste fare:
4033 \end_layout
4034
4035 \begin_layout Itemize
4036 Leggere 
4037 \family typewriter
4038 DocStyle.lyx
4039 \family default
4040 , la guida per scrivere documentazione su LyX.
4041  Fare molta attenzione alla sezione traduzioni.
4042 \end_layout
4043
4044 \begin_layout Itemize
4045 Controllare la pagina web delle traduzioni 
4046 \begin_inset LatexCommand \url[The LyX Developer's Web Site]{http://www.devel.lyx.org}
4047
4048 \end_inset
4049
4050 .
4051  In questo modo potete trovare (se ce ne sono) i documenti tradotti e quelli
4052  da tradurre.
4053  Inoltre troverete un responsabile organizzatore (se c'è) che vi aiutera
4054  nella vostra opera.
4055  Se non c'è un organizzatore fateci sapere se siete interessati.
4056 \end_layout
4057
4058 \begin_layout Standard
4059 Una volta che iniziate a tradurre ci sono alcune cose che dovete ricordare:
4060 \end_layout
4061
4062 \begin_layout Itemize
4063 Unirvi al team di documentazione! Ci sono informazioni su come farlo in
4064  
4065 \family typewriter
4066 Intro.lyx
4067 \family default
4068  (
4069 \family sans
4070 Help\SpecialChar \-
4071  paese.
4072  Inventare una vostra propria terminologia potrebbe solo creare confusione
4073  al lettore.
4074  
4075 \emph on
4076 (
4077 \family default
4078 Attenzione! La tipografia da assuefazione!
4079 \family sans
4080 )
4081 \end_layout
4082
4083 \begin_layout Itemize
4084 Fate una copia del documento.
4085  Questo sarà la vostra copia di lavoro.
4086  Potrete inoltre usarla come vostra copia personale tradotta mettendola
4087  nella vostra directory
4088 \family typewriter
4089  ~/.lyx/doc/
4090 \family default
4091 .
4092 \end_layout
4093
4094 \begin_layout Itemize
4095 Qualche volta il documento originale (dal team LyX) viene aggiornato.
4096  Usate lo strumento CVSweb reperibile presso il sito dello sviluppatore
4097  per vedere i cambiamenti avvenuti
4098 \begin_inset Foot
4099 status collapsed
4100
4101 \begin_layout Standard
4102 Alternativamente, potete procurarvi una copia dell'ultima versione del documento
4103  inglese che avete tradotto.
4104 \end_layout
4105
4106 \end_inset
4107
4108 .
4109  In questo modo potrete facilmente vedere le parti del documento che vanno
4110  aggiornate.
4111 \end_layout
4112
4113 \begin_layout Itemize
4114 Se per caso trovate un errore nel documento originale, correggetelo e comunicate
4115  al documentation team i cambiamenti! (non avete dimenticato di unirvi al
4116  documentation team vero?).
4117 \end_layout
4118
4119 \begin_layout Section
4120 Supporto Tastiere Internazionali
4121 \end_layout
4122
4123 \begin_layout Standard
4124
4125 \emph on
4126 Nota dell'editore: la seguente sezione è a cura di Ivan Schreter.
4127  Necessita di essere corretta in relazione al nuovo Documentation Style
4128  ed al fine di utilizzare le caratteristiche della versione 1.0.
4129  Il tutto va inoltre unito con le sezioni successive.-jw
4130 \end_layout
4131
4132 \begin_layout Subsection
4133 Definire una propria Mappa della Tastiera: Formato File Keymap
4134 \end_layout
4135
4136 \begin_layout Standard
4137 Diamo uno sguardo al file di definizione della tastiera più da vicino.
4138  E' un file di testo ASCII che definisce
4139 \end_layout
4140
4141 \begin_layout Itemize
4142 key-to-key or key-to-string translations
4143 \end_layout
4144
4145 \begin_layout Itemize
4146 dead keys
4147 \end_layout
4148
4149 \begin_layout Itemize
4150 dead keys exceptions
4151 \end_layout
4152
4153 \begin_layout Standard
4154 Per definire una traduzione tasto a tasto o tasto a stringa, usare questo
4155  comando:
4156 \end_layout
4157
4158 \begin_layout Quotation
4159
4160 \family typewriter
4161
4162 \backslash
4163 kmap
4164 \family default
4165 \emph on
4166  
4167 \family typewriter
4168 \emph default
4169 key
4170 \emph on
4171  
4172 \emph default
4173 outstring
4174 \end_layout
4175
4176 \begin_layout Standard
4177 dove 
4178 \family typewriter
4179 key
4180 \family default
4181  è il tasto che deve essere tradotto e 
4182 \family typewriter
4183 outstring
4184 \family default
4185  è la stringa che deve essere inserita nel documento.
4186  P er definire i tasti morti, usare:
4187 \end_layout
4188
4189 \begin_layout Quotation
4190
4191 \family typewriter
4192
4193 \backslash
4194 kmod
4195 \family default
4196  
4197 \family typewriter
4198 key
4199 \family default
4200  
4201 \family typewriter
4202 deadkey
4203 \end_layout
4204
4205 \begin_layout Standard
4206 dove 
4207 \family typewriter
4208 key
4209 \family default
4210  è il tasto della tastiera e
4211 \family typewriter
4212  
4213 \emph on
4214 deadkey
4215 \family default
4216 \emph toggle
4217  è il nome del tasto morto.
4218  Sono supportati i seguenti tasti morti (le scorciatoie sono tra parentesi):
4219 \end_layout
4220
4221 \begin_layout Quotation
4222
4223 \emph on
4224 Name
4225 \hfill
4226 Example
4227 \end_layout
4228
4229 \begin_layout Quotation
4230 acute (acu)
4231 \hfill
4232 áéíóú
4233 \end_layout
4234
4235 \begin_layout Quotation
4236 grave (gra)
4237 \hfill
4238 àèìòù
4239 \end_layout
4240
4241 \begin_layout Quotation
4242 macron (mac)
4243 \hfill
4244  \i \={o}
4245
4246 \end_layout
4247
4248 \begin_layout Quotation
4249 tilde (til)
4250 \hfill
4251 ñÑ
4252 \end_layout
4253
4254 \begin_layout Quotation
4255 underbar (underb)
4256 \hfill
4257
4258 \begin_inset ERT
4259 status collapsed
4260
4261 \begin_layout Standard
4262
4263 \backslash
4264 b o
4265 \end_layout
4266
4267 \end_inset
4268
4269
4270 \end_layout
4271
4272 \begin_layout Quotation
4273 cedilla (ced)
4274 \hfill
4275 çÇ
4276 \end_layout
4277
4278 \begin_layout Quotation
4279 underdot (underd)
4280 \hfill
4281
4282 \begin_inset ERT
4283 status collapsed
4284
4285 \begin_layout Standard
4286
4287 \backslash
4288 d o
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \end_layout
4295
4296 \begin_layout Quotation
4297 circumflex (circu)
4298 \hfill
4299 âêîôû
4300 \end_layout
4301
4302 \begin_layout Quotation
4303 circle (circl)
4304 \hfill
4305 Å\i \r{u}
4306 \i \r{U}
4307
4308 \end_layout
4309
4310 \begin_layout Quotation
4311 tie (tie)
4312 \hfill
4313
4314 \backslash
4315 t oo
4316 \end_layout
4317
4318 \begin_layout Quotation
4319 breve (bre)
4320 \hfill
4321 \i \u{a}
4322
4323 \begin_inset ERT
4324 status collapsed
4325
4326 \begin_layout Standard
4327
4328 \backslash
4329 u o
4330 \end_layout
4331
4332 \end_inset
4333
4334
4335 \end_layout
4336
4337 \begin_layout Quotation
4338 caron (car)
4339 \hfill
4340 \i \v{c}
4341 \i \v{s}
4342 \i \v{z}
4343
4344 \end_layout
4345
4346 \begin_layout Quotation
4347 hungarian umlaut (hug)
4348 \hfill
4349 \i \H{o}
4350 \i \H{u}
4351
4352 \end_layout
4353
4354 \begin_layout Quotation
4355 umlaut (uml)
4356 \hfill
4357 äöü
4358 \end_layout
4359
4360 \begin_layout Quotation
4361 dot (dot)
4362 \hfill
4363 \i \.{z}
4364
4365 \begin_inset ERT
4366 status collapsed
4367
4368 \begin_layout Standard
4369
4370 \backslash
4371 .s
4372 \end_layout
4373
4374 \end_inset
4375
4376
4377 \end_layout
4378
4379 \begin_layout Standard
4380 Dato che in molte tastiere internazionali ci sono delle eccezioni alle funzioni
4381  di alcuni tasti morti, potete definirli usando
4382 \end_layout
4383
4384 \begin_layout Quotation
4385
4386 \family typewriter
4387
4388 \backslash
4389 kxmod
4390 \family default
4391  
4392 \family typewriter
4393 deadkey key outstring
4394 \end_layout
4395
4396 \begin_layout Standard
4397 Ad esempio, sulle tastiere slovacche se immettete 
4398 \begin_inset Quotes eld
4399 \end_inset
4400
4401 caron-o
4402 \begin_inset Quotes erd
4403 \end_inset
4404
4405 , verrà scritto 
4406 \begin_inset Quotes erd
4407 \end_inset
4408
4409 circumflex-o
4410 \begin_inset Quotes erd
4411 \end_inset
4412
4413 , così dovrete cambiare
4414 \end_layout
4415
4416 \begin_layout Quotation
4417
4418 \family typewriter
4419
4420 \backslash
4421 kxmod
4422 \family default
4423  
4424 \family typewriter
4425 caron o "
4426 \backslash
4427 ^o"
4428 \end_layout
4429
4430 \begin_layout Standard
4431 per farlo funzionare correttamente.
4432  Inoltre, dovrete definire come eccezione i tasti morti su i e j , per rimuovere
4433  il punto prima di inserire un accento.
4434  Lo cambierò appena possibile in quanto non ho ancora avuto il tempo.
4435 \end_layout
4436
4437 \begin_layout Standard
4438 Circa i caratteri, backslash non è presente, quindi per inserirlo avete
4439  bisogno del doppio backslash.
4440  Inoltre virgolette e # hanno differenti significati.
4441  # segna i commenti, le virgolette iniziano e finiscono i comandi in stile
4442  LaTeX.
4443  Per immettere le virgolette dovete usare 
4444 \family typewriter
4445
4446 \backslash
4447 "
4448 \family default
4449 , per 
4450 \family typewriter
4451 #
4452 \family default
4453 , usare 
4454 \family typewriter
4455
4456 \backslash
4457 #
4458 \family default
4459 .
4460 \end_layout
4461
4462 \begin_layout Standard
4463 Se create un file di descrizione della tastiera che va bene per la vostra
4464  lingua, vi prego di mandarmelo, in modo che io possa includerlo nella prossima
4465  distribuzione delle mappe di tastiera.
4466 \end_layout
4467
4468 \begin_layout Standard
4469 Molte parole chiave saranno presenti nelle future distribuzioni come: 
4470 \end_layout
4471
4472 \begin_layout Itemize
4473
4474 \family typewriter
4475
4476 \backslash
4477 kinclude filename
4478 \family default
4479 \emph on
4480
4481 \hfill
4482
4483 \family typewriter
4484 \emph default
4485 include
4486 \family default
4487  un altro file
4488 \end_layout
4489
4490 \begin_layout Itemize
4491
4492 \family typewriter
4493
4494 \backslash
4495 kprog program
4496 \family default
4497 \emph on
4498
4499 \hfill
4500
4501 \family typewriter
4502 \emph default
4503 define
4504 \family default
4505  un programma esterno di traduzione della tastiera 
4506 \end_layout
4507
4508 \begin_layout Standard
4509 Inoltre dovrebbe apparire nel file 
4510 \family typewriter
4511 lyxrc
4512 \family default
4513  di default (ad esempio un'opzione 
4514 \family typewriter
4515
4516 \backslash
4517 kinclude
4518 \family default
4519  per includere la tastiera di default).
4520 \end_layout
4521
4522 \begin_layout Section
4523 Materiale sulle tastiere internazionali
4524 \begin_inset LatexCommand \label{sec:keymap}
4525
4526 \end_inset
4527
4528
4529 \end_layout
4530
4531 \begin_layout Standard
4532 Le prossime due sezioni descrivono la sintassi dei file 
4533 \family typewriter
4534 .kmap
4535 \family default
4536  e 
4537 \family typewriter
4538 .cdef
4539 \family default
4540  nel dettaglio.
4541  queste sezioni dovrebbero aiutarvi a disegnare la vostra mappa di caratteri
4542  se quelle che avete non vi soddisfano.
4543 \end_layout
4544
4545 \begin_layout Subsection
4546 Il File .kmap
4547 \end_layout
4548
4549 \begin_layout Standard
4550 Un file 
4551 \family sans
4552 .
4553 \family typewriter
4554 kmap
4555 \family default
4556  mappa le pressioni dei tasti sia di caratteri che di stringhe.
4557  Come suggerisce il nome, esso setta la mappa della tastiera.
4558  Il file 
4559 \family sans
4560 .
4561 \family typewriter
4562 kmap
4563 \family default
4564  contiene delle parole chiavi come 
4565 \family typewriter
4566 kmap,kmod,ksmod
4567 \family default
4568 , e 
4569 \family typewriter
4570 kcomb
4571 \family default
4572  qui di seguito descritte.
4573 \end_layout
4574
4575 \begin_layout List
4576 \labelwidthstring 00.00.0000
4577
4578 \family typewriter
4579 kmap
4580 \family default
4581  Mappa il carattere rispetto a una stringa
4582 \end_layout
4583
4584 \begin_layout LyX-Code
4585
4586 \backslash
4587 kmap 
4588 \family roman
4589 \emph on
4590 char
4591 \emph default
4592  
4593 \emph on
4594 string
4595 \end_layout
4596
4597 \begin_layout Standard
4598 Questo mapperà 
4599 \emph on
4600 char 
4601 \emph default
4602 in 
4603 \emph on
4604 string
4605 \emph default
4606 .
4607  Notate che in 
4608 \emph on
4609 string
4610 \emph default
4611 , le due virgolette (") e il backslash (
4612 \backslash
4613 ) devono essere evitate con un precedente backslash (
4614 \backslash
4615 ).
4616 \end_layout
4617
4618 \begin_layout Standard
4619 Un esempio di 
4620 \family sans
4621 kmap
4622 \family default
4623  che serve affinchè il simbolo
4624 \family sans
4625  / 
4626 \family default
4627 venga generato dal tasto
4628 \family sans
4629  & 
4630 \family default
4631 è:
4632 \end_layout
4633
4634 \begin_layout LyX-Code
4635
4636 \backslash
4637 kmap & /
4638 \end_layout
4639
4640 \begin_layout List
4641 \labelwidthstring 00.00.0000
4642
4643 \family typewriter
4644 kmod
4645 \family default
4646  Specifica un carattere accentato
4647 \end_layout
4648
4649 \begin_layout LyX-Code
4650
4651 \backslash
4652 kmod
4653 \family roman
4654  
4655 \emph on
4656 char accent allowed
4657 \end_layout
4658
4659 \begin_layout Standard
4660 Questo farà sì che il carattere 
4661 \emph on
4662 char sia accentato sul carattere ammesso
4663 \emph default
4664 .
4665  Questo è un meccanismo di tasto morto
4666 \begin_inset Foot
4667 status collapsed
4668
4669 \begin_layout Standard
4670 Il termine tasto morto si riferisce ad un tasto che non produce un carattere
4671  da solo, ma soltanto quando è seguito da un altro tasto.
4672  Ad esempio, si può riprodurre un carattere tedesco con un umlaunt come
4673 \family roman
4674  
4675 \emph on
4676 ä
4677 \emph default
4678 .
4679 \end_layout
4680
4681 \end_inset
4682
4683  .
4684  
4685 \end_layout
4686
4687 \begin_layout Standard
4688 Se premete 
4689 \emph on
4690 char 
4691 \emph default
4692 e poi una altro tasto non in 
4693 \emph on
4694 allowed (non permesso) 
4695 \emph default
4696 avrete un 
4697 \emph on
4698 char 
4699 \emph default
4700 seguito da un altro tasto, non abilitato.
4701  Ricordate che un Backspace cancella un tasto morto, così se premete 
4702 \emph on
4703 char
4704 \family sans
4705  Backspace
4706 \family default
4707 \emph default
4708 , il cursore non andrà una posizione indietro, bensì cancellerà l'effetto
4709  che il 
4710 \emph on
4711 char
4712 \emph default
4713  dovrebbe avere sul tasto successivo.
4714 \end_layout
4715
4716 \begin_layout Standard
4717 Il seguente esempio specifica che il carattere ' dovrà essere un accento
4718  acuto, abilitato sui caratteri a, e, i, o, u, A, E, I, O, e U:
4719 \end_layout
4720
4721 \begin_layout LyX-Code
4722
4723 \backslash
4724 kmod ' acute aeiouAEIOU
4725 \end_layout
4726
4727 \begin_layout List
4728 \labelwidthstring 00.00.0000
4729 ksmod Specifica un'eccezione al carattere accentato
4730 \end_layout
4731
4732 \begin_layout LyX-Code
4733
4734 \backslash
4735 kxmod 
4736 \family sans
4737 \emph on
4738  
4739 \family roman
4740 accent char result
4741 \end_layout
4742
4743 \begin_layout Standard
4744 Questo definisce un'eccezione per l'
4745 \emph on
4746 accent 
4747 \emph default
4748 sul 
4749 \emph on
4750 char
4751 \emph default
4752 .
4753  L'
4754 \emph on
4755 accent 
4756 \emph default
4757 deve essere stato assegnato ad un tasto con una precedente dichiarazione
4758  
4759 \family typewriter
4760
4761 \backslash
4762 kmod
4763 \family default
4764  e
4765 \emph on
4766  char 
4767 \emph default
4768 non deve appartenere al set degli accenti (
4769 \emph on
4770 accent
4771 \emph default
4772 ) abilitati 
4773 \emph on
4774 (allowed)
4775 \emph default
4776 .
4777  Quando immettete la sequenza del carattere accentato (
4778 \emph on
4779 accent char sequence)
4780 \emph default
4781 , il risultato (
4782 \emph on
4783 result)
4784 \emph default
4785  viene prodotto.
4786  Se non esiste una dichiarazione nel file
4787 \family typewriter
4788 .kmap
4789 \family default
4790  e voi immettete l'
4791 \emph on
4792 accent char
4793 \emph default
4794 , avrete un'
4795 \emph on
4796 accent_key char
4797 \emph default
4798  dove 
4799 \emph on
4800 accent_key
4801 \emph default
4802  è il primo argomento della dichiarazione 
4803 \family typewriter
4804
4805 \backslash
4806 kmod
4807 \family default
4808  declaration.
4809  
4810 \end_layout
4811
4812 \begin_layout Standard
4813 La seguente procedura di comandi fa in modo che venga generato äi immettendo
4814  acute-i ('i):
4815 \end_layout
4816
4817 \begin_layout LyX-Code
4818
4819 \backslash
4820 kxmod acute i "
4821 \backslash
4822
4823 \backslash
4824 '{
4825 \backslash
4826
4827 \backslash
4828 i}"
4829 \end_layout
4830
4831 \begin_layout List
4832 \labelwidthstring 00.00.0000
4833
4834 \family sans
4835 kcomb
4836 \family default
4837  Combina due caratteri accentati
4838 \end_layout
4839
4840 \begin_layout LyX-Code
4841
4842 \backslash
4843 kcomb 
4844 \family roman
4845 \emph on
4846 accent1 accent2 allowed
4847 \end_layout
4848
4849 \begin_layout Standard
4850 Questo effetto ha qualcosa di esoterico.
4851  Infatti vi permette di combinare l'effetto di 
4852 \emph on
4853 accent1
4854 \emph default
4855  e 
4856 \emph on
4857 accent2
4858 \emph default
4859  (in quell'ordiner!) su caratteri abilitati 
4860 \emph on
4861 (allowed)
4862 \emph default
4863 .
4864  I tasti per 
4865 \emph on
4866 accent1
4867 \emph default
4868  e 
4869 \emph on
4870 accent2
4871 \emph default
4872  devono essere stati settati con un comando 
4873 \family typewriter
4874
4875 \backslash
4876 kmod
4877 \family default
4878  in un punto precedente del file.
4879  
4880 \end_layout
4881
4882 \begin_layout Standard
4883 Consideriamo questo esempio dal file 
4884 \family typewriter
4885 greek.kmap
4886 \family default
4887 :
4888 \end_layout
4889
4890 \begin_layout LyX-Code
4891
4892 \backslash
4893 kmod ; acute aeioyvhAEIOYVH 
4894 \backslash
4895 kmod : umlaut iyIY 
4896 \backslash
4897 kcomb acute umlaut iyIY
4898 \end_layout
4899
4900 \begin_layout Standard
4901 Questo vi permette di premere 
4902 \family sans
4903 ;:i
4904 \family default
4905  ed ottenere l'effetto di 
4906 \family typewriter
4907
4908 \backslash
4909 '{
4910 \backslash
4911 "{i}}
4912 \family default
4913 .
4914  Un backspace in questo caso cancella l'ultimo tasto morto, così se premete
4915 \family sans
4916  ;: Backspace i 
4917 \family default
4918 avrete 
4919 \family typewriter
4920
4921 \backslash
4922 '{i}
4923 \family default
4924 .
4925 \end_layout
4926
4927 \begin_layout Subsection
4928 Il file .cdef
4929 \end_layout
4930
4931 \begin_layout Standard
4932 Dopo la mappatura fatta con
4933 \family typewriter
4934  .kmap,
4935 \family sans
4936  
4937 \family default
4938 il file 
4939 \family typewriter
4940 .cdef
4941 \family default
4942  mappa le stringhe che i symboli generano rispetto ai caratteri del font
4943  corrente.
4944  La corrente distribuzione di LyX include almeno i files 
4945 \family typewriter
4946 iso8859-1.cdef
4947 \family default
4948  e 
4949 \family typewriter
4950 iso8859-2.cdef
4951 \family default
4952 .
4953 \end_layout
4954
4955 \begin_layout Standard
4956 In generale il file 
4957 \family typewriter
4958 .cdef
4959 \family sans
4960  
4961 \family default
4962 è una sequenza di dichiarazioni di questa forma:
4963 \end_layout
4964
4965 \begin_layout LyX-Code
4966
4967 \family roman
4968 \emph on
4969 char_index_in_set
4970 \emph default
4971  
4972 \emph on
4973  string
4974 \end_layout
4975
4976 \begin_layout Standard
4977 Ad esempio, per mappare 
4978 \family sans
4979
4980 \backslash
4981 '{e}
4982 \family default
4983  sul corrispondente carattere nel set iso-8859-1 (233), si usa la seguente
4984  dichiarazione
4985 \end_layout
4986
4987 \begin_layout LyX-Code
4988 233 "
4989 \backslash
4990
4991 \backslash
4992 '{e}"
4993 \end_layout
4994
4995 \begin_layout Standard
4996 con 
4997 \family typewriter
4998
4999 \backslash
5000
5001 \family default
5002  e 
5003 \family typewriter
5004 "
5005 \family default
5006  estranei alla stringa.
5007  Notate che lo stesso carattere può essere applicato a più di una stringa.
5008  Nel file 
5009 \family typewriter
5010 iso-8859-7.cdef
5011 \family sans
5012  
5013 \family default
5014 avete
5015 \end_layout
5016
5017 \begin_layout LyX-Code
5018 192 "
5019 \backslash
5020
5021 \backslash
5022 '{
5023 \backslash
5024
5025 \backslash
5026
5027 \backslash
5028 "{i}}"
5029 \newline
5030 192 "
5031 \backslash
5032
5033 \backslash
5034
5035 \backslash
5036 "{
5037 \backslash
5038
5039 \backslash
5040 '{i}}"
5041 \end_layout
5042
5043 \begin_layout Standard
5044 Se LyX non trova una mappatura per la stringa prodotta dalla pressione del
5045  tasto o da una sequenza con tasti morti, controllerà se assomiglia ad un
5046  carattere accentato e proverà a disegnare un accento sul carattere sullo
5047  schermo.
5048 \end_layout
5049
5050 \begin_layout Subsection
5051 Tasti morti
5052 \end_layout
5053
5054 \begin_layout Standard
5055 C'è un altro modo per aggiungere il supporto a caratteri internazionali,
5056  ed è quello che usa la tecnica dei cosiddetti tasti morti.
5057  Un tasto morto lavora in combinazione con una lettera per produrre un carattere
5058  accentato.
5059  In questa sezione spieghiamo come si crea un semplice tasto morto per far
5060  vedere come funziona.
5061 \end_layout
5062
5063 \begin_layout Standard
5064 Supponiamo di avere bisogno di un carattere circonflesso, 
5065 \begin_inset Quotes eld
5066 \end_inset
5067
5068 ^
5069 \begin_inset Quotes erd
5070 \end_inset
5071
5072 .
5073  Si potrebbe associare il tasto ^ [a.k.a.
5074 \family sans
5075 \InsetSpace ~
5076 Shift-
5077 \family default
5078 6] al comando LyX 
5079 \family typewriter
5080 accent-circumflex 
5081 \family default
5082 nel vostro file
5083 \family typewriter
5084  lyxrc
5085 \family default
5086 .
5087  Ora, se digitate il tasto ^ seguito da una lettera, la lettera avrà un
5088  accento circonflesso su di essa.
5089  Per esempio, la sequenza 
5090 \begin_inset Quotes eld
5091 \end_inset
5092
5093 ^e
5094 \begin_inset Quotes erd
5095 \end_inset
5096
5097  produce la lettera e con ^.
5098  Se provate a digitare 
5099 \begin_inset Quotes eld
5100 \end_inset
5101
5102 ^t
5103 \begin_inset Quotes erd
5104 \end_inset
5105
5106 , tuttavia, LyX segnalerà con un beep che l'operazione non è possibile dato
5107  che la t non ha mai accento.
5108  Premere 
5109 \family sans
5110 Spazio 
5111 \family default
5112 dopo un deadkey produrrà un accento semplice.
5113  Attenzione a quest'ultimo punto! Se associate un tasto ad un deadkey, dovrete
5114  riassociare il carattere su quel tasto ad un altro tasto ancora.
5115  
5116 \end_layout
5117
5118 \begin_layout Standard
5119 Un altro modo comune di associare tasti morti è quello di usare 
5120 \family sans
5121 Meta-
5122 \family default
5123
5124 \family sans
5125 Ctrl-
5126 \family default
5127 , e 
5128 \family sans
5129 Shift-
5130 \family default
5131  in combinazione con un accento come 
5132 \begin_inset Quotes eld
5133 \end_inset
5134
5135
5136 \family sans
5137 ~
5138 \family default
5139
5140 \begin_inset Quotes erd
5141 \end_inset
5142
5143  o 
5144 \begin_inset Quotes eld
5145 \end_inset
5146
5147
5148 \family sans
5149 ,
5150 \family default
5151
5152 \begin_inset Quotes erd
5153 \end_inset
5154
5155  o 
5156 \begin_inset Quotes eld
5157 \end_inset
5158
5159
5160 \family sans
5161 ^
5162 \family default
5163
5164 \begin_inset Quotes erd
5165 \end_inset
5166
5167 .
5168  Un'altra tecnica consiste nell'uso di 
5169 \family typewriter
5170 xmodmap
5171 \family default
5172  e 
5173 \family typewriter
5174 xkeycaps
5175 \family default
5176  per settare il tasto speciale 
5177 \family typewriter
5178 Mode_Switch
5179 \family default
5180 .
5181  Il 
5182 \family typewriter
5183 Mode_Switch
5184 \family default
5185  si comporta in alcuni casi proprio come lo 
5186 \family sans
5187 Shift
5188 \family default
5189  e permette di associare tasti a caratteri accentati.
5190  Potete inoltre convertire tasti semplici in tasti morti associandoli ad
5191  oggetti del tipo 
5192 \family typewriter
5193 usldead_cedilla
5194 \family default
5195  e successivamente, associando questo tasto simbolico al corrispondente
5196  comando LyX.
5197 \begin_inset Foot
5198 status collapsed
5199
5200 \begin_layout Standard
5201 Nota da 
5202 \noun on
5203 John Weiss
5204 \noun default
5205 : Questo è esattamente quello che faccio nei miei files 
5206 \family typewriter
5207 ~/.lyx/lyxrc
5208 \family default
5209  e 
5210 \family typewriter
5211 ~/.xmodmap
5212 \family default
5213 .
5214  Ho il mio tasto 
5215 \family sans
5216 Scroll\InsetSpace ~
5217 Lock settato come Mode_Shift
5218 \family default
5219  e un sacco di questi tasti simbolici 
5220 \family sans
5221
5222 \begin_inset Quotes eld
5223 \end_inset
5224
5225 usldead_
5226 \family typewriter
5227 *
5228 \family sans
5229
5230 \begin_inset Quotes erd
5231 \end_inset
5232
5233
5234 \family default
5235  che consentono di ottenere cose del tipo 
5236 \family sans
5237 Scroll\InsetSpace ~
5238 Lock
5239 \family default
5240 -
5241 \family sans
5242 ^
5243 \family default
5244  e 
5245 \family sans
5246 Scroll Lock-~
5247 \family default
5248 .
5249  Questo è il modo in cui genero i miei caratteri accentati.
5250 \end_layout
5251
5252 \end_inset
5253
5254  Potete fare pressocchè tutto con il tasto 
5255 \family typewriter
5256 Mode_Switch
5257 \family default
5258 : uno dei tasti 
5259 \family sans
5260 Ctrl-
5261 \family default
5262 , una funzione libera, ecc.
5263  Come per i comandi LyX che producono accenti, consultate il 
5264 \emph on
5265 Manuale di Riferimento
5266 \emph toggle
5267  per l'accento acuto.
5268  Troverete lì la lista completa.
5269 \end_layout
5270
5271 \begin_layout Subsection
5272 Salvare la vostra configurazione di Linguaggio
5273 \end_layout
5274
5275 \begin_layout Standard
5276 \begin_inset LatexCommand \label{sec:savlang}
5277
5278 \end_inset
5279
5280 Potete editare il vostro file 
5281 \family typewriter
5282 lyxrc
5283 \family default
5284  in modo che il linguaggio da voi preferito sia configurato e caricato automatic
5285 amente allo startup di LyX.
5286  Questa sezione descrive i comandi 
5287 \family typewriter
5288 lyxrc
5289 \family default
5290  da specificare:
5291 \end_layout
5292
5293 \begin_layout Itemize
5294 default, primary, and secondary keymaps
5295 \end_layout
5296
5297 \begin_layout Itemize
5298 character set
5299 \end_layout
5300
5301 \begin_layout Standard
5302 Guardate il vostro file 
5303 \family typewriter
5304 lyxrc
5305 \family default
5306  per i vari esempi su come configurarlo.
5307  In particolare, potete settare una keymap così:
5308 \end_layout
5309
5310 \begin_layout LyX-Code
5311
5312 \backslash
5313 kbmap true
5314 \end_layout
5315
5316 \begin_layout LyX-Code
5317
5318 \backslash
5319 kbmap_primary german
5320 \end_layout
5321
5322 \begin_layout LyX-Code
5323
5324 \backslash
5325 kbmap_secondary american 
5326 \end_layout
5327
5328 \begin_layout LyX-Code
5329
5330 \end_layout
5331
5332 \begin_layout Standard
5333 e una font-mapping (
5334 \family typewriter
5335 .cdef
5336 \family default
5337  file) in questo modo:
5338 \end_layout
5339
5340 \begin_layout LyX-Code
5341
5342 \backslash
5343 screen_font_encoding iso8859-2
5344 \end_layout
5345
5346 \begin_layout Chapter
5347 Installare Nuove Classi di Documento, Layouts e Templates 
5348 \begin_inset LatexCommand \label{chap:textclass}
5349
5350 \end_inset
5351
5352
5353 \end_layout
5354
5355 \begin_layout Standard
5356 In questo capitolo si descrivono le procedure per creare ed installare nuovi
5357  layouts di LyX e files template, come anche si procederà ad illustrare
5358  la corretta installazione di nuove classi di documento LaTeX.
5359  Alcune definizioni: una classe di documento è un file LaTeX (che di solito
5360  hanno estensione in 
5361 \family typewriter
5362 .cls
5363 \family default
5364  o 
5365 \family typewriter
5366 .sty
5367 \family default
5368 ) che descrive il formato di un documento come un articolo, report, prestampa
5369  di giornale, ecc.
5370  e tutti i comandi di cui si ha bisogno per realizzare quel formato.
5371  Un file layout è un file LyX che corrisponde ad una classe di documento
5372  LaTeX e che dice a LyX come 
5373 \begin_inset Quotes eld
5374 \end_inset
5375
5376 disegnare
5377 \begin_inset Quotes erd
5378 \end_inset
5379
5380  le cose sullo schermo in modo da rendere le cose il più possibile vicine
5381  alla pagina finale stampata.
5382  Più precisamente, un file layout descrive una 
5383 \begin_inset Quotes eld
5384 \end_inset
5385
5386 textclass
5387 \begin_inset Quotes erd
5388 \end_inset
5389
5390  che è il costrutto interno che LyX usa per fare il rendering dello schermo.
5391  
5392 \begin_inset Quotes eld
5393 \end_inset
5394
5395 Layout
5396 \begin_inset Quotes erd
5397 \end_inset
5398
5399  e 
5400 \begin_inset Quotes eld
5401 \end_inset
5402
5403 textclass
5404 \begin_inset Quotes erd
5405 \end_inset
5406
5407  possono a volta essere usate come sinonimi, ma è meglio riferirsi al file
5408  come il layout, e all'oggetto residente nella memoria di LyX come textclass.
5409  Un file template è semplicemente un documento LyX che contiene un set di
5410  righe predefinite per una data classe di documento che sono generalmente
5411  richiesti per quella classe.
5412  I templates sono in particolare utili per cose come i manoscritti di giornale
5413  che devono essere processati elettronicamente.
5414  
5415 \end_layout
5416
5417 \begin_layout Section
5418 Installare un nuovo pacchetto LaTeX
5419 \end_layout
5420
5421 \begin_layout Standard
5422 Alcune installazioni possono non includere un pacchetto LaTeX che vorreste
5423  usare in LyX.
5424  Ad esempio, vorreste avere FoilTeX, un pacchetto comune (e molto potente)
5425  per preparare slides o grafici per capiprogetto.
5426 \begin_inset Foot
5427 status collapsed
5428
5429 \begin_layout Standard
5430 Vedere il manuale 
5431 \emph on
5432 Extended LyX Features
5433 \emph default
5434  per ulteriori informazioni su FoilTeX
5435 \end_layout
5436
5437 \end_inset
5438
5439 Ecco di seguito tutti i passaggi necessari per avere il pacchetto e lanciarlo
5440  se si usa una recente versione di teTeX
5441 \begin_inset Foot
5442 status collapsed
5443
5444 \begin_layout Standard
5445 Questa procedura è definitivamente valida per la versione v1.0 e tutte le
5446  versioni beta v0.9.
5447  Commenti sul funzionamento per le versioni v.04 sono graditi, anche se è
5448  comunque preferibile aggiornarsi alla versione v1.0.x.
5449 \end_layout
5450
5451 \end_inset
5452
5453  o altre distribuzioni basate su web2c.
5454 \end_layout
5455
5456 \begin_layout Enumerate
5457 Procurarsi il pacchetto da CTAN o simili.
5458 \begin_inset Foot
5459 status collapsed
5460
5461 \begin_layout Standard
5462 Vedere il manuale 
5463 \emph on
5464 Inventory of your LaTeX configuration
5465 \emph default
5466  per i dettagli su cosa è CTAN e dove possono essere trovate le classi di
5467  documento supportate.
5468 \end_layout
5469
5470 \end_inset
5471
5472
5473 \end_layout
5474
5475 \begin_layout Enumerate
5476 Leggere il file 
5477 \family typewriter
5478 texmf.cnf
5479 \family default
5480  (che di solito risiede nella directory
5481 \family typewriter
5482  $TEXMF/web2c
5483 \family default
5484 , sebbene possiate lanciare 
5485 \family typewriter
5486 kpsewhich texmf.cnf
5487 \family default
5488  per localizzarlo).
5489  Questo descrive come aggiungere una directory locale
5490 \family typewriter
5491  texmf
5492 \family default
5493 ; seguire le istruzioni.
5494  Avete bisogno di inserire il nome della vostra directory locale 
5495 \family typewriter
5496 texmf
5497 \family default
5498  in 
5499 \family typewriter
5500 texmf.cnf
5501 \family default
5502 .
5503  Sotto Linux, 
5504 \family typewriter
5505 /usr/local
5506 \family default
5507  è una posizione logica dove installare software che non è presente nelle
5508  normali distribuzioni, così dovete usare
5509 \family typewriter
5510  /usr/local/texmf
5511 \family default
5512 .
5513  Di solito dovete modificare solo due cose:
5514 \end_layout
5515
5516 \begin_deeper
5517 \begin_layout Enumerate
5518 Settare 
5519 \family typewriter
5520 TEXMFLOCAL
5521 \family default
5522  sulla directory che avete scelto; es.
5523  
5524 \newline
5525
5526 \family typewriter
5527 TEXMFLOCAL = /usr/local/texmf
5528 \end_layout
5529
5530 \begin_layout Enumerate
5531 Assicuratevi che
5532 \family typewriter
5533  TEXMF
5534 \family default
5535  includa la variabile 
5536 \family typewriter
5537 TEXMFLOCAL
5538 \family default
5539  variable; es.
5540  
5541 \newline
5542
5543 \family typewriter
5544 TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFMAIN}
5545 \end_layout
5546
5547 \end_deeper
5548 \begin_layout Enumerate
5549 Create la vostra directory locale
5550 \family typewriter
5551  texmf
5552 \family default
5553  (es.
5554  
5555 \family typewriter
5556 /usr/local/texmf
5557 \family default
5558 ).
5559  Dovete seguire la struttura dell'esistente directory
5560 \family typewriter
5561  texmf
5562 \family default
5563  (ad esempio, i pacchetti latex dovrebbero andare sotto
5564 \family typewriter
5565  /usr/local/texmf/tex/latex/
5566 \family default
5567 ).
5568 \end_layout
5569
5570 \begin_layout Enumerate
5571 Installare il pacchetto.
5572  Ad esempio, vogliamo scompattare l'archivio FoilTeX e creare
5573 \family typewriter
5574  /usr/local/texmf/tex/latex/foiltex
5575 \family default
5576 .
5577  La directory 
5578 \family typewriter
5579 foiltex
5580 \family default
5581  contiene vari files.
5582 \end_layout
5583
5584 \begin_layout Enumerate
5585 Lanciare: 
5586 \family typewriter
5587 texhash
5588 \family default
5589 .
5590  Questo dovrebbe creare 
5591 \family typewriter
5592 /usr/local/texmf/ls-R 
5593 \family default
5594 tra le altre.
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598 Dall'interno di LyX, fate: 
5599 \family sans
5600 \bar under
5601 O
5602 \bar default
5603 ptions\SpecialChar \menuseparator
5604
5605 \bar under
5606 R
5607 \bar default
5608 econfigure
5609 \family default
5610 .
5611  Riavviate LyX.
5612 \end_layout
5613
5614 \begin_layout Standard
5615 Ora dovreste vedere il vostro nuovo pacchetto--ad esempio 
5616 \family sans
5617 slides (FoilTeX)
5618 \family default
5619 ---sotto 
5620 \family sans
5621 Layout\SpecialChar \menuseparator
5622 Document
5623 \family default
5624 , campo 
5625 \family sans
5626 Class
5627 \family default
5628 .
5629  Notate che ci sono modi più semplici per installare pacchetti: potete aggiunger
5630 e un link alla nuova directory del pacchetto nella directory di sistema
5631  LaTeX (
5632 \family typewriter
5633 $TEXMF/tex/latex
5634 \family default
5635 , non dimenticate di lanciare dopo 
5636 \family typewriter
5637 texconfig
5638 \family default
5639 ), o qualche volta basta semplicemente settare la variabile ambientale $TEXINPUT
5640 S per includere un nuovo pacchetto.
5641  Tuttavia, la procedura formale descritta in 
5642 \family typewriter
5643 texmf.cnf
5644 \family default
5645  è garantito che funzioni, così dovreste provare a seguirla fino a che se
5646  ne ha la possibilità (che potrebbe perdersi se non si ha accesso da superuser).
5647 \end_layout
5648
5649 \begin_layout Section
5650 Layouts
5651 \end_layout
5652
5653 \begin_layout Standard
5654 Questa sezione descrive come scrivere ed installare i propri files di layout
5655  di LyX (anche detti textclass), utilizzando la textclass 
5656 \family typewriter
5657 article
5658 \family default
5659  come esempio.
5660  I files 
5661 \family typewriter
5662 .layout
5663 \family default
5664  descrivono quali stili di paragrafi sono disponibili per una data classe
5665  di documenti e come LyX dovrebbe mostrarli.
5666  Proveremo qui a fornire un'accurata descrizione del processo; tuttavia,
5667  ci sono così tanti tipi di documenti supportati dalle classi LaTeX da renderci
5668  impossibile fornire una descrizione esaustiva dell'argomento e delle possibilit
5669 à che si possono manifestare.
5670 \end_layout
5671
5672 \begin_layout Standard
5673 Quando programmate di scrivere un nuovo layout, è estremamente utile guardare
5674  prima i layout di esempio distribuiti con LyX.
5675  Se usate una classe di documento LaTeX particolarmente bella che può essere
5676  di interesse anche per altre persone e che abbia un buon corrispondente
5677  layout in LyX, siete liberi di mandarcelo in modo da poterlo inserire nella
5678  distribuzione.
5679 \end_layout
5680
5681 \begin_layout Standard
5682 Tutte le righe di codice di questo paragrafo sono case-insensitive; ciò
5683  significa che 
5684 \family typewriter
5685 Style
5686 \family default
5687
5688 \family typewriter
5689 style
5690 \family default
5691  e 
5692 \family typewriter
5693 StYle
5694 \family default
5695  sono lo stesso comando.
5696  I possibili valori sono scritti tra parentesi dopo il nome della caratteristica.
5697  Il valore di default se una caratteristica non è specificata nella descrizione
5698  della textclass è scritto in 
5699 \family typewriter
5700 \emph on
5701 corsivo
5702 \family default
5703 \emph default
5704 .
5705  Se l'argomento è un tipo di dati come 
5706 \begin_inset Quotes eld
5707 \end_inset
5708
5709 string
5710 \begin_inset Quotes erd
5711 \end_inset
5712
5713  o 
5714 \begin_inset Quotes eld
5715 \end_inset
5716
5717 float
5718 \begin_inset Quotes erd
5719 \end_inset
5720
5721 , il valore di default è scritto come 
5722 \family typewriter
5723 float=default
5724 \family default
5725 .
5726 \end_layout
5727
5728 \begin_layout Subsection
5729 Supportare nuove classi di documento
5730 \end_layout
5731
5732 \begin_layout Standard
5733 Ci sono tre situazioni che potete incontrare se volete supportare una nuova
5734  classe di documento LaTeX.
5735  I due tipi più semplici coinvolgono classe (.cls) e style (.sty) LaTeX2e.
5736  Se siete sfortunati potreste incappare nella terza situazione di supportare
5737  un file di stile LaTeX 2.09.
5738  Il processo di creazione di un file di layout per queste tre situazioni
5739  è simile; tuttavia un passo in più è richiesto per permettere a LyX di
5740  usare LaTeX 2.09.
5741 \end_layout
5742
5743 \begin_layout Subsection
5744 File sty LaTex2e
5745 \end_layout
5746
5747 \begin_layout Standard
5748 Se la vostra nuova classe di documento è sotto forma di style file, usato
5749  in aggiunta ad uno esistente, la classe di documento supportata, inizia
5750  copiando il layout della classe esistente nella vostra directory locale.
5751  A causa della mancanza di esempi assumeremo che il file style si chiami
5752  
5753 \family sans
5754 myclass.sty
5755 \family default
5756  e sarà usato con 
5757 \family sans
5758 report.cls
5759 \family default
5760  con una classe standard.
5761 \end_layout
5762
5763 \begin_layout LyX-Code
5764 cp report.layout ~/.lyx/layouts/myclass.layout
5765 \end_layout
5766
5767 \begin_layout Standard
5768 Poi editiamo 
5769 \family typewriter
5770 myclass.layout
5771 \family default
5772  e cambiamo la linea: 
5773 \end_layout
5774
5775 \begin_layout LyX-Code
5776
5777 \backslash
5778 DeclareLaTeXClass{report}
5779 \end_layout
5780
5781 \begin_layout Standard
5782 in modo da avere
5783 \end_layout
5784
5785 \begin_layout LyX-Code
5786
5787 \backslash
5788 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
5789 \end_layout
5790
5791 \begin_layout Standard
5792 Poi aggiungiamo:
5793 \end_layout
5794
5795 \begin_layout LyX-Code
5796 Preamble 
5797 \backslash
5798 usepackage{myclass}EndPreamble
5799 \end_layout
5800
5801 \begin_layout Standard
5802 presso l'inizio del file.
5803 \end_layout
5804
5805 \begin_layout Standard
5806 Lanciamo LyX e selezioniamo 
5807 \family sans
5808 \bar under
5809 O
5810 \bar default
5811 ptions\SpecialChar \menuseparator
5812
5813 \bar under
5814 R
5815 \bar default
5816 econfigure
5817 \family default
5818 .
5819  Riavviamo LyX e proviamo a creare un nuovo documento.
5820  Dovreste vedere 
5821 \family sans
5822
5823 \begin_inset Quotes eld
5824 \end_inset
5825
5826 report (myclass)
5827 \begin_inset Quotes erd
5828 \end_inset
5829
5830
5831 \family default
5832  come una classe di documento opzione nel men
5833 \family sans
5834
5835 \bar under
5836 L
5837 \bar default
5838 ayout
5839 \bar under
5840 \SpecialChar \menuseparator
5841 D
5842 \bar default
5843 ocument
5844 \family default
5845 .
5846  E' probabile che alcuni dei comandi di sezionamento ed altri differiscano
5847  dal modo di lavorare delle classi base
5848 \begin_inset Foot
5849 status collapsed
5850
5851 \begin_layout Standard
5852
5853 \family typewriter
5854 Report
5855 \family default
5856  nell'esempio
5857 \end_layout
5858
5859 \end_inset
5860
5861 , così potrete giocare con i settaggi per le differenti sezioni se vorrete.
5862  In seguito l'argomento sarà ripreso.
5863 \end_layout
5864
5865 \begin_layout Subsection
5866 File cls LaTeX2e
5867 \end_layout
5868
5869 \begin_layout Standard
5870 In questo caso, dovrete 
5871 \begin_inset Quotes eld
5872 \end_inset
5873
5874 vedervela da soli
5875 \begin_inset Quotes erd
5876 \end_inset
5877
5878  con il vostro layout.
5879  Raccomandiamo fortemente di copiare un file di layout esistente che usa
5880  una classe di testo LaTeX simile e modificarlo per quanto possibile.
5881  oppure si può almeno usare un file esistente come punto di partenza in
5882  modo da capire quali oggetti servano ai vostri scopi.
5883  Ancora, più avanti ci saranno altri dettagli.
5884 \end_layout
5885
5886 \begin_layout Subsection
5887 File sty LaTeX 2.09
5888 \end_layout
5889
5890 \begin_layout Standard
5891 Se il file 
5892 \family typewriter
5893 .sty
5894 \family default
5895  è specifico per l'ormai defunto LaTeX 2.09 potete stabilirlo attraverso
5896  uno di questi due modi:
5897 \end_layout
5898
5899 \begin_layout Enumerate
5900 Un file di esempio o la documentazione nel file 
5901 \family sans
5902 sty
5903 \family default
5904  stabilisce l'uso con 
5905 \family typewriter
5906
5907 \backslash
5908 documentstyle{myclass}
5909 \family default
5910  (opposto a 
5911 \family typewriter
5912
5913 \backslash
5914 documentclass
5915 \family default
5916 ).
5917 \end_layout
5918
5919 \begin_layout Enumerate
5920 Lanciare LaTeX su un file di esempio produrra un banner con l'avvertimento
5921  che si sta entrando nel 
5922 \begin_inset Quotes eld
5923 \end_inset
5924
5925 compatibility mode
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929 .
5930 \end_layout
5931
5932 \begin_layout Standard
5933 LyX tecnicamente supporta solo documenti LaTeX2e.
5934  Ma non mollate ancora! Dove c'è volontà c'è un modo ( oppure 
5935 \begin_inset Quotes eld
5936 \end_inset
5937
5938 adattarsi è impossibile, ma l'abbiamo comunque fatto.
5939 \begin_inset Quotes erd
5940 \end_inset
5941
5942 ).
5943  Il supporto esistente per ReVTeX 3.1, ad esempio, comprende il codice 2.09
5944  da usare nei documenti formattati 2e.
5945  Potete riutilizzare l'adattatore ReVTeX per la vostra 
5946 \family typewriter
5947 myclass.sty
5948 \family default
5949  (se risulta essere di codice 2.09).
5950  
5951 \end_layout
5952
5953 \begin_layout Standard
5954 Bene, ecco cosa dovete fare:
5955 \end_layout
5956
5957 \begin_layout LyX-Code
5958 cp LyXDir/tex/revtex.cls ~/tex/myclass.cls
5959 \end_layout
5960
5961 \begin_layout Standard
5962 oppure dove avete i vostri files locali TeX.
5963  Ora editate 
5964 \family typewriter
5965 myclass.cls
5966 \family default
5967  e fate un trova-e-sostituisci tra 
5968 \begin_inset Quotes eld
5969 \end_inset
5970
5971 revtex
5972 \begin_inset Quotes erd
5973 \end_inset
5974
5975  e 
5976 \begin_inset Quotes erd
5977 \end_inset
5978
5979 myclass
5980 \begin_inset Quotes erd
5981 \end_inset
5982
5983 .
5984  E' probabile che alcune delle dichiarazioni 
5985 \family typewriter
5986
5987 \backslash
5988 DeclareOption 
5989 \family default
5990 nel file non sono rilevanti per il vostro file di stile, ma non ci interessano
5991  per il momento.
5992 \end_layout
5993
5994 \begin_layout Standard
5995 Il prossimo passo è quello di ripetere il processo di creazione del file
5996  di layout myclass.layout di prima; solo per questa volta usate:
5997 \end_layout
5998
5999 \begin_layout LyX-Code
6000
6001 \backslash
6002 DeclareLaTeXClass{myclass}
6003 \end_layout
6004
6005 \begin_layout Standard
6006 e non dovreste aver bisogno di definizioni di tipo 
6007 \family typewriter
6008 Preamble
6009 \family default
6010 .
6011  Lanciate LyX e riconfigurate, riavviate LyX e con un po di fortuna avrete
6012  un sistema che ha bisogno solo di qualche accorgimento allo schermo e null'altr
6013 o.
6014  Questo implica il manipolare dei valori usati da LyX per lo spazio, lo
6015  stile dei fonts e le altre cose definite nei files 
6016 \family typewriter
6017 .layout
6018 \family default
6019 .
6020 \end_layout
6021
6022 \begin_layout Standard
6023 Avrete inoltre bisogno di controllare che avete tutte le variabili d'ambiente
6024  da 
6025 \family typewriter
6026 myclass.sty
6027 \family default
6028  disponibili nel file 
6029 \family typewriter
6030 myclass.layout
6031 \family default
6032 .
6033  Se mancano alcune bisognerà inserirle.
6034  Copiate un altro stile che sembra simile e modificatelo.
6035  Il modo più semplice per farlo è con:
6036 \end_layout
6037
6038 \begin_layout LyX-Code
6039 Style MissingStyle
6040 \end_layout
6041
6042 \begin_layout LyX-Code
6043     CopyStyle SimilarStyle
6044 \end_layout
6045
6046 \begin_layout LyX-Code
6047     # whatever is different you now redefine
6048 \end_layout
6049
6050 \begin_layout LyX-Code
6051 End
6052 \end_layout
6053
6054 \begin_layout Standard
6055 Guardare in seguito per i dettagli circa quello che fa ogni elemento nel
6056  file 
6057 \family typewriter
6058 .layout
6059 \family default
6060 .
6061 \end_layout
6062
6063 \begin_layout Standard
6064 Dovrebbe essere abbastanza per mettervi sulla giusta strada.
6065  Fate riferimento alle successive sezioni per i dettagli sui contenuti attuali
6066  dei files layout e ricordate che se ci sono problemi potete chiedere aiuto
6067  alla mailing list di LyX.
6068  Siamo sempre lieti di avere nuove classi di documento.
6069 \end_layout
6070
6071 \begin_layout Section
6072 Dichiarare una nuova textclass
6073 \end_layout
6074
6075 \begin_layout Standard
6076 Quando è finalmente giunta l'ora di sporcarvi le mani e creare un vostro
6077  personale file di layout, la seguente sezione descrive a cosa andrete incontro.
6078  Il nostro consiglio è di procedere piano, salvare e testare spesso, ascoltare
6079  musica soffusa e bere un paio di bevande per adulti che gradite; qualcuna
6080  in più se siete particolarmente disorientati.
6081  Non è molto difficile, eccetto per la moltitudine di opzioni che possono
6082  creare problemi se cercate di molte cose contemporaneamente.
6083  Andate a prendervi un'altra bibita, solo per precauzione.
6084 \end_layout
6085
6086 \begin_layout Standard
6087 Andiamo!
6088 \end_layout
6089
6090 \begin_layout Standard
6091 Le linee in un file di layout che iniziano con # sono commenti.
6092  C'è una eccezione a questa regola: tutti i layouts dovrebbero iniziare
6093  con queste linee:
6094 \end_layout
6095
6096 \begin_layout LyX-Code
6097
6098 \size small
6099 #% Do not delete the line below; configure depends on this 
6100 \end_layout
6101
6102 \begin_layout LyX-Code
6103
6104 \size small
6105 #  
6106 \backslash
6107 DeclareLaTeXClass{article}
6108 \end_layout
6109
6110 \begin_layout Standard
6111 La seconda linea è usata quando configurate LyX.
6112  Il file di layout è letto dallo script LaTeX
6113 \family typewriter
6114  chkconfig.ltx
6115 \family default
6116 , in un modo speciale e tale che # venga ignorato.
6117  La prima linea è solo un commento LaTeX, e la seconda contiene la dichiarazione
6118  della classe di testo.
6119  Se queste linne appaiono in un file chiamato 
6120 \family typewriter
6121 article.layout
6122 \family default
6123 , definiranno una textclass dal nome 
6124 \family typewriter
6125 article
6126 \family default
6127  (il nome del file di layout) che usa la classe di documento LaTeX 
6128 \family typewriter
6129 article.cls
6130 \family default
6131  (Il default è quello di usare lo stesso nome del layout).
6132  La stringa 
6133 \begin_inset Quotes eld
6134 \end_inset
6135
6136 article
6137 \begin_inset Quotes erd
6138 \end_inset
6139
6140  che appare sopra è usata come descrizione della textclass nel menu
6141 \family sans
6142 \bar under
6143  L
6144 \bar default
6145 ayout
6146 \bar under
6147 \SpecialChar \menuseparator
6148 D
6149 \bar default
6150 ocument .
6151 \end_layout
6152
6153 \begin_layout Standard
6154 Assumiamo che scrivete la vostra texclass utilizzando la classe di documento
6155  
6156 \family typewriter
6157 article.cls
6158 \family default
6159 , dove avete cambiato le sezioni di testa.
6160  Se lo mettete in un file 
6161 \family typewriter
6162 myarticle.layout
6163 \family default
6164 , le intestazioni di questo file dovrebbero essere:
6165 \end_layout
6166
6167 \begin_layout LyX-Code
6168
6169 \size small
6170 #% Do not delete the line below; configure depends on this 
6171 \end_layout
6172
6173 \begin_layout LyX-Code
6174
6175 \size small
6176 #  
6177 \backslash
6178 DeclareLaTeXClass[article]{article (with my own headings)}
6179 \end_layout
6180
6181 \begin_layout Standard
6182 Questi dichiarano una textclass 
6183 \family typewriter
6184 myarticle
6185 \family default
6186 , associata con la classe di documento LaTeX 
6187 \family typewriter
6188 article.cls
6189 \family default
6190  e descritta come 
6191 \begin_inset Quotes eld
6192 \end_inset
6193
6194 article (con le vostre intestazioni)
6195 \begin_inset Quotes erd
6196 \end_inset
6197
6198 .
6199  Se la vostra textclass dipende da molti pacchetti, potete dichiararla come:
6200 \end_layout
6201
6202 \begin_layout LyX-Code
6203
6204 \size small
6205 #% Do not delete the line below; configure depends on this 
6206 \end_layout
6207
6208 \begin_layout LyX-Code
6209
6210 \size small
6211 #  
6212 \backslash
6213 DeclareLaTeXClass[article,foo.sty]{article (with my own headings)}
6214 \end_layout
6215
6216 \begin_layout Standard
6217 Queste indicano che la vostra textclass usa il pacchetto foo.sty.
6218  Infine è anche possibile dichiarare classi per codice SGML e DocBook.
6219  Le dichiarazioni tipiche avranno questa forma:
6220 \end_layout
6221
6222 \begin_layout LyX-Code
6223
6224 \size small
6225 #% Do not delete the line below; configure depends on this 
6226 \end_layout
6227
6228 \begin_layout LyX-Code
6229
6230 \size small
6231
6232 \backslash
6233 DeclareSGMLClass{SGML (LinuxDoc)}
6234 \end_layout
6235
6236 \begin_layout Standard
6237 oppure
6238 \end_layout
6239
6240 \begin_layout LyX-Code
6241 #% Do not delete the line below; configure depends on this 
6242 \end_layout
6243
6244 \begin_layout LyX-Code
6245  
6246 \end_layout
6247
6248 \begin_layout LyX-Code
6249
6250 \backslash
6251 DeclareDocBookClass[article]{SGML (DocBook article)}
6252 \end_layout
6253
6254 \begin_layout Standard
6255 Notate che a queste dichiarazioni può essere anche dato come parametro opzionale
6256  che dichiara il nome della classe di documento (ma non una lista).
6257 \end_layout
6258
6259 \begin_layout Standard
6260 Quando la textclass è stata modificata secondo i vostri gusti, tutto quello
6261  che dovete fare è copiarla in 
6262 \family typewriter
6263 $LyXDir/layouts/
6264 \family default
6265  o in 
6266 \family typewriter
6267 $UserDir/layouts
6268 \family default
6269  e lanciare 
6270 \family sans
6271 \bar under
6272 O
6273 \bar default
6274 ptions
6275 \bar under
6276 \SpecialChar \menuseparator
6277 R
6278 \bar default
6279 econfigure.
6280
6281 \family default
6282  Chiudete LyX e rilanciatelo; a questo punto la vostra nuova textclass dovrebbe
6283  essere disponibile insieme alle altre.
6284 \end_layout
6285
6286 \begin_layout Subsection
6287 Parametri generali di textclass
6288 \end_layout
6289
6290 \begin_layout Standard
6291 Questi sono i parametri generali che descrivono la struttura dell'intero
6292  documento:
6293 \end_layout
6294
6295 \begin_layout Standard
6296 \begin_inset ERT
6297 status collapsed
6298
6299 \begin_layout Standard
6300
6301 \backslash
6302 begin{sloppypar}
6303 \end_layout
6304
6305 \end_inset
6306
6307
6308 \end_layout
6309
6310 \begin_layout Description
6311
6312 \family typewriter
6313 \series medium
6314 Columns
6315 \family default
6316 \series default
6317  [
6318 \family typewriter
6319 \emph on
6320 1
6321 \emph default
6322 , 2
6323 \family default
6324 ] A seconda che la classe di default abbia una o due colonne.
6325  Può essere cambiato nel menu 
6326 \family sans
6327 \bar under
6328 L
6329 \bar default
6330 ayout
6331 \bar under
6332 \SpecialChar \menuseparator
6333 D
6334 \bar default
6335 ocument.
6336
6337 \family default
6338  Questo settaggio (a volte si confonde con 
6339 \family typewriter
6340 Sides
6341 \family default
6342 ) è importante: se le vostre textclass hanno due colonne di default, ma
6343  dimenticate di settarlo correttamente, l'opzione LaTeX 
6344 \family typewriter
6345 twocolumn
6346 \family default
6347  
6348 \emph on
6349 non
6350 \emph default
6351  sarà mostrata quando selezionate 
6352 \family sans
6353 Two Columns
6354 \family default
6355  in 
6356 \family sans
6357 \bar under
6358 L
6359 \bar default
6360 ayout
6361 \bar under
6362 \SpecialChar \menuseparator
6363 D
6364 \bar default
6365 ocument.
6366 \end_layout
6367
6368 \begin_layout Description
6369
6370 \family typewriter
6371 \series medium
6372 Sides
6373 \family default
6374 \series default
6375  [
6376 \family typewriter
6377 \emph on
6378 1
6379 \emph default
6380 , 2
6381 \family default
6382 ] A seconda che la classe di default debba stampare su uno o entrambi i
6383  lati del foglio.
6384  Può essere cambiato nel menu
6385 \family sans
6386 \bar under
6387  L
6388 \bar default
6389 ayout
6390 \bar under
6391 \SpecialChar \menuseparator
6392 D
6393 \bar default
6394 ocument
6395 \family default
6396 \emph toggle
6397  
6398 \family sans
6399 \emph default
6400 .
6401 \end_layout
6402
6403 \begin_layout Description
6404
6405 \family typewriter
6406 \series medium
6407 PageStyle
6408 \series default
6409  
6410 \family default
6411 [
6412 \family typewriter
6413 \emph on
6414 plain
6415 \emph default
6416 , empty, headings
6417 \family default
6418 ] La classe di default pagestyle.
6419  Può essere cambiata nel menu the 
6420 \family sans
6421 \bar under
6422 L
6423 \bar default
6424 ayout
6425 \bar under
6426 \SpecialChar \menuseparator
6427 D
6428 \bar default
6429 ocument.
6430 \end_layout
6431
6432 \begin_layout Description
6433
6434 \family typewriter
6435 \series medium
6436 MaxCounter
6437 \family default
6438 \series default
6439  [
6440 \family typewriter
6441 \emph on
6442 Counter_Chapter
6443 \emph default
6444 , Counter_Section, Counter_Subsection, Counter_Subsubsection, Counter_Paragraph,
6445  
6446 \newline
6447 Counter_Subparagraph, Counter_EnumI, Counter_EnumII, 
6448 \newline
6449 Counter_EnumIII, Counter_E
6450 numIV
6451 \family default
6452 ] Il più alto livello di enumerazione automatica.
6453  Valori utili sono 
6454 \family typewriter
6455 Counter_Chapter
6456 \family default
6457  per un libro o un report e 
6458 \family typewriter
6459 Counter_Section
6460 \family default
6461  per un articolo.
6462  Se non c'è bisogno di enumerazione, ad esempio all'interno di una classe
6463  di lettere, 
6464 \family typewriter
6465 MaxCounter
6466 \family default
6467  dovrebbe essere settato su 
6468 \family typewriter
6469 Counter_EnumI
6470 \family default
6471 .
6472  
6473 \end_layout
6474
6475 \begin_layout Description
6476
6477 \family typewriter
6478 \series medium
6479 ClassOptions\SpecialChar \ldots{}
6480 End
6481 \family default
6482 \series default
6483  Questa sezione descrive varie opzioni globali supportate dalla classe di
6484  documento.
6485  Guardare la sezione\InsetSpace ~
6486
6487 \begin_inset LatexCommand \label{Ref: sec:classoptions}
6488
6489 \end_inset
6490
6491 .
6492 \end_layout
6493
6494 \begin_layout Description
6495
6496 \family typewriter
6497 \series medium
6498 ProvidesAmsmath 
6499 \family default
6500 \series default
6501 [
6502 \family typewriter
6503 \emph on
6504 0
6505 \emph default
6506 , 1
6507 \family default
6508 ] Se la classe già carica il pacchetto 
6509 \family typewriter
6510 amsmath
6511 \family default
6512 .
6513  Questo è il caso delle classi di documento 
6514 \family typewriter
6515 amsart
6516 \family default
6517  e 
6518 \family typewriter
6519 amsbook
6520 \family default
6521 .
6522 \end_layout
6523
6524 \begin_layout Description
6525
6526 \family typewriter
6527 \series medium
6528 ProvidesMakeidx
6529 \family default
6530 \series default
6531  [
6532 \family typewriter
6533 \emph on
6534 0
6535 \emph default
6536 , 1
6537 \family default
6538 ] Se la classe fornisce la funzione del pacchetto 
6539 \family typewriter
6540 makeidx
6541 \family default
6542 .
6543  Questo è il caso delle classi di documento 
6544 \family typewriter
6545 amsart
6546 \family default
6547  e 
6548 \family typewriter
6549 amsbook
6550 \family default
6551 .
6552 \end_layout
6553
6554 \begin_layout Description
6555
6556 \family typewriter
6557 \series medium
6558 ProvidesUrl
6559 \family default
6560 \series default
6561  [
6562 \family typewriter
6563 \emph on
6564 0
6565 \emph default
6566 , 1
6567 \family default
6568 ] Se la classe fornisce la funzione del pacchetto 
6569 \family typewriter
6570 url
6571 \family default
6572 .
6573  Questo è il caso della classe di documento 
6574 \family typewriter
6575 AASTeX
6576 \family default
6577 .
6578 \end_layout
6579
6580 \begin_layout Description
6581
6582 \family typewriter
6583 \series medium
6584 DefaultFont
6585 \family default
6586 \series default
6587  Questo è usato per descrivere il font di default del documento.
6588  Guardare la sezione\InsetSpace ~
6589
6590 \begin_inset LatexCommand \ref{sec:fonts}
6591
6592 \end_inset
6593
6594  per una descrizione.
6595 \end_layout
6596
6597 \begin_layout Description
6598
6599 \family typewriter
6600 \series medium
6601 Preamble\SpecialChar \ldots{}
6602 EndPreamble
6603 \family default
6604 \series default
6605  Un set di macro definizione che saranno emesse all'inizio dei files LaTeX.
6606  Usatelo per definizioni globali.
6607 \end_layout
6608
6609 \begin_layout Description
6610
6611 \family typewriter
6612 \series medium
6613 Input
6614 \family default
6615 \series default
6616  Come implica il nome, questo comando permette di inserire un altro file
6617  di definizione di textclass per evitare una ripetizione dei comandi.
6618  Molti files di textclass, per esempio, mettono 
6619 \family typewriter
6620 stdclass.inc
6621 \family default
6622 , che contiene molti dei layouts di base.
6623 \end_layout
6624
6625 \begin_layout Description
6626
6627 \family typewriter
6628 \series medium
6629 NoStyle
6630 \family default
6631 \series default
6632  Questo comando elimina uno stile esistente.
6633  E' particolarmente utile quando si vuole sopprimere un layout definito
6634  in un input file.
6635 \end_layout
6636
6637 \begin_layout Standard
6638 \begin_inset ERT
6639 status collapsed
6640
6641 \begin_layout Standard
6642
6643 \backslash
6644 end{sloppypar}
6645 \end_layout
6646
6647 \end_inset
6648
6649
6650 \end_layout
6651
6652 \begin_layout Subsection
6653 Sezione 
6654 \family typewriter
6655 ClassOption
6656 \end_layout
6657
6658 \begin_layout Standard
6659 \begin_inset LatexCommand \label{sec:classoptions}
6660
6661 \end_inset
6662
6663  La sezione 
6664 \family typewriter
6665 ClassOption
6666 \family default
6667  può contenere le seguenti righe:
6668 \end_layout
6669
6670 \begin_layout Description
6671
6672 \family typewriter
6673 \series medium
6674 FontSize
6675 \family default
6676 \series default
6677  [
6678 \family typewriter
6679 string="10|11|12"
6680 \family default
6681 ] Una lista delle grandezze dei font disponibili per il font principale
6682  del documento, separato da 
6683 \begin_inset Quotes eld
6684 \end_inset
6685
6686
6687 \family typewriter
6688 |
6689 \family default
6690
6691 \begin_inset Quotes erd
6692 \end_inset
6693
6694 .
6695 \end_layout
6696
6697 \begin_layout Description
6698
6699 \family typewriter
6700 \series medium
6701 PageStyle
6702 \family default
6703 \series default
6704  [
6705 \family typewriter
6706 string="empty|plain|headings|fancy"
6707 \family default
6708 ] La lista degli stili di pagina disponibili, separati da 
6709 \begin_inset Quotes eld
6710 \end_inset
6711
6712
6713 \family typewriter
6714 |
6715 \family default
6716
6717 \begin_inset Quotes erd
6718 \end_inset
6719
6720 .
6721 \end_layout
6722
6723 \begin_layout Description
6724
6725 \family typewriter
6726 \series medium
6727 Other
6728 \family default
6729 \series default
6730  [
6731 \family typewriter
6732 string=""
6733 \family default
6734 ] Alcune opzioni di classi di documento, separate da una virgola, che sarà
6735  aggiunta alla parte delle opzioni del comando
6736 \family typewriter
6737  
6738 \backslash
6739 documentclass
6740 \family default
6741 .
6742 \end_layout
6743
6744 \begin_layout Subsection
6745 Layouts specifici di paragrafo
6746 \end_layout
6747
6748 \begin_layout Standard
6749 La descrizione di un layout description è di questo tipo
6750 \begin_inset Foot
6751 status collapsed
6752
6753 \begin_layout Standard
6754 Notate che questo può definire un nuovo layout o modificarne uno esistente.
6755 \end_layout
6756
6757 \end_inset
6758
6759 :
6760 \end_layout
6761
6762 \begin_layout LyX-Code
6763 Style 
6764 \family roman
6765 \emph on
6766 name
6767 \end_layout
6768
6769 \begin_layout LyX-Code
6770
6771 \noun on
6772 ...
6773 \end_layout
6774
6775 \begin_layout LyX-Code
6776 End
6777 \end_layout
6778
6779 \begin_layout Standard
6780 dove sono consentiti i seguenti comandi:
6781 \end_layout
6782
6783 \begin_layout Standard
6784 \begin_inset ERT
6785 status collapsed
6786
6787 \begin_layout Standard
6788
6789 \backslash
6790 begin{sloppypar}
6791 \end_layout
6792
6793 \end_inset
6794
6795
6796 \end_layout
6797
6798 \begin_layout Description
6799
6800 \family typewriter
6801 \series medium
6802 CopyStyle
6803 \family default
6804 \series default
6805  Questo è usato per copiare tutte le caratteristiche di un layout esistente
6806  in quello corrente.
6807  
6808 \end_layout
6809
6810 \begin_layout Description
6811
6812 \family typewriter
6813 \series medium
6814 LatexType
6815 \family default
6816 \series default
6817  [
6818 \family typewriter
6819 \emph on
6820 Paragraph
6821 \emph default
6822 , Command, Environment, Item_Environment,
6823 \family default
6824  
6825 \family typewriter
6826 List_Environment
6827 \family default
6828 ] Come dovrebbe essere tradotto il layout in LaTeX.
6829  
6830 \family typewriter
6831 Paragraph
6832 \family default
6833  non significa nulla in particolare.
6834  
6835 \family typewriter
6836 Command
6837 \family default
6838  significa 
6839 \family typewriter
6840
6841 \backslash
6842
6843 \emph on
6844 LatexName
6845 \emph default
6846 {\SpecialChar \ldots{}
6847 }
6848 \family default
6849  e 
6850 \family typewriter
6851 Environment
6852 \family default
6853  significa 
6854 \family typewriter
6855
6856 \backslash
6857 begin{
6858 \emph on
6859 LatexName
6860 \emph default
6861 }\SpecialChar \ldots{}
6862
6863 \backslash
6864 end{
6865 \emph on
6866 LatexName
6867 \emph default
6868 }
6869 \family default
6870 .
6871  
6872 \family typewriter
6873 Item_Environment
6874 \family default
6875  è lo stesso di 
6876 \family typewriter
6877 Environment
6878 \family default
6879 , eccetto che per 
6880 \family typewriter
6881
6882 \backslash
6883 item
6884 \family default
6885  che è generato per ogni paragrafo di questo ambiente.
6886  
6887 \family typewriter
6888 List_Environment
6889 \family default
6890  è lo stesso di 
6891 \family typewriter
6892 Item_Environment
6893 \family default
6894 , eccetto 
6895 \family typewriter
6896 LabelWidthString
6897 \family default
6898  che è passato come argomento per l'ambiente.
6899  
6900 \family typewriter
6901 LabelWidthString
6902 \family default
6903  può essere definito nel menu 
6904 \family sans
6905 \bar under
6906 L
6907 \bar default
6908 ayout\SpecialChar \menuseparator
6909
6910 \bar under
6911 P
6912 \bar default
6913 aragraph.
6914  
6915 \end_layout
6916
6917 \begin_layout Description
6918
6919 \family typewriter
6920 \series medium
6921 InTitle
6922 \series default
6923  [1, 0] 
6924 \family default
6925 Se il valore è 1, segna il layout come necessitante di un 
6926 \family typewriter
6927
6928 \backslash
6929 maketitle
6930 \family default
6931 .
6932  
6933 \end_layout
6934
6935 \begin_layout Description
6936
6937 \family typewriter
6938 \series medium
6939 LatexName
6940 \family default
6941 \series default
6942  Il nome del corrispondente materiale LaTeX.
6943  Può essere sia di ambiente che di comando.
6944 \end_layout
6945
6946 \begin_layout Description
6947
6948 \family typewriter
6949 \series medium
6950 LatexParam
6951 \family default
6952 \series default
6953  Il parametro opzionale per il relativo materiale 
6954 \family typewriter
6955 LatexName
6956 \family default
6957 .
6958  Questo parametro non può essere cambiato da LyX.
6959 \end_layout
6960
6961 \begin_layout Description
6962
6963 \family typewriter
6964 \series medium
6965 Margin
6966 \family default
6967 \series default
6968  [
6969 \family typewriter
6970 \emph on
6971 Static
6972 \emph default
6973 , Manual, Dynamic, First_Dynamic, Right_Address_Box
6974 \family default
6975
6976 \newline
6977 Il tipo di margine che il layout ha sul lato sinistro.
6978  
6979 \family typewriter
6980 Static
6981 \family default
6982  significa un margine statico.
6983  
6984 \family typewriter
6985 Manual
6986 \family default
6987  significa che il margine sinistro dipende dalla stringa immessa nel menu
6988  
6989 \family sans
6990 \bar under
6991 L
6992 \bar default
6993 ayout\SpecialChar \menuseparator
6994
6995 \bar under
6996 P
6997 \bar default
6998 aragraph.
6999  
7000 \family default
7001 Questo è usato per intestazione enumerate automatiche.
7002
7003 \family typewriter
7004  Dynamic
7005 \family sans
7006  
7007 \family default
7008 significa che il margine dipende dalla grandezza dell'etichetta.
7009
7010 \family sans
7011  
7012 \family default
7013 E' ovvio che l'intestazione 
7014 \begin_inset Quotes eld
7015 \end_inset
7016
7017 5.4.3.2.1 Very long headline
7018 \begin_inset Quotes erd
7019 \end_inset
7020
7021  deve avere un margine sinistro più ampio (ampio quanto 
7022 \begin_inset Quotes eld
7023 \end_inset
7024
7025 5.4.3.2.1
7026 \begin_inset Quotes erd
7027 \end_inset
7028
7029 ) di 
7030 \begin_inset Quotes eld
7031 \end_inset
7032
7033 3.2 Very long headline
7034 \begin_inset Quotes erd
7035 \end_inset
7036
7037 , anche se altri word processors non sono in grado di farlo.
7038
7039 \family sans
7040  
7041 \family typewriter
7042 First_Dynamic
7043 \family default
7044  è s simile, ma solo la prima riga del paragrafo è dinamica, mentre le altre
7045  sono statiche.
7046  usato ad esempio per le descrizioni.
7047  
7048 \family typewriter
7049 Right_Address_Box
7050 \family default
7051  significa che il margine è scelto in modo tale che la riga più lunga di
7052  questo paragrafo arriva fino al margine destro.
7053  Usato per scrivere indirizzi in alto a destra della pagina.
7054 \end_layout
7055
7056 \begin_layout Description
7057
7058 \family typewriter
7059 \series medium
7060 NextNoIndent
7061 \family default
7062 \series default
7063  [
7064 \family typewriter
7065 1, 
7066 \emph on
7067 0
7068 \family default
7069 \emph default
7070 ] Se si vuole consentire al paragrafo successivo di staccare dal margine
7071  la prima riga, 0 consente di farlo, 1 no.
7072 \end_layout
7073
7074 \begin_layout Description
7075
7076 \family typewriter
7077 \series medium
7078 ParIndent
7079 \family default
7080 \series default
7081  [
7082 \family typewriter
7083 string=""
7084 \family default
7085 ] Il capoverso della prima linea del paragrafo.
7086  L'argomento è passato come una stringa.
7087  Ad esempio 
7088 \family typewriter
7089 "MM"
7090 \family default
7091  significa che il paragrafo rientra con una larghezza di 
7092 \family typewriter
7093 "MM"
7094 \family default
7095  nel font normale.
7096  Potete anche avere una larghezza negativa premettendo il valore 
7097 \family typewriter
7098 "-"
7099 \family default
7100 .
7101  Questo al fine di ottenere lo stesso effetto per ogni font.
7102  Il 
7103 \family typewriter
7104 Parindent
7105 \family default
7106  sarà fisso per un certo layout.
7107  L'eccezione è lo Standard layout, dato che il rientro del paragrafo di
7108  layout standard poò essere proibito con 
7109 \family typewriter
7110 NextNoIndent
7111 \family default
7112 .
7113  Inoltre, i paragrafi con Standard layout, usano il
7114 \family typewriter
7115  Parindent
7116 \family default
7117  dell'ambiente, non il loro nativo.
7118  ad esempio, i paragrafi Standard dentro una numerazione non hanno il rientro.
7119 \end_layout
7120
7121 \begin_layout Description
7122
7123 \family typewriter
7124 \series medium
7125 Parskip
7126 \family default
7127 \series default
7128  [
7129 \family typewriter
7130 float=0
7131 \family default
7132 ] LyX permette di scegliere sia il 
7133 \begin_inset Quotes eld
7134 \end_inset
7135
7136 rientra
7137 \begin_inset Quotes erd
7138 \end_inset
7139
7140  che il 
7141 \begin_inset Quotes eld
7142 \end_inset
7143
7144 salta
7145 \begin_inset Quotes erd
7146 \end_inset
7147
7148  per redigere un documento.
7149  Quando si sceglie 
7150 \begin_inset Quotes eld
7151 \end_inset
7152
7153 rientra
7154 \begin_inset Quotes erd
7155 \end_inset
7156
7157 , questo valore è completamente ignorato.
7158  Quando si sceglie 
7159 \begin_inset Quotes eld
7160 \end_inset
7161
7162 salta
7163 \begin_inset Quotes erd
7164 \end_inset
7165
7166  l'indentazione di un layout 
7167 \begin_inset Quotes eld
7168 \end_inset
7169
7170 Paragrafo
7171 \begin_inset Quotes erd
7172 \end_inset
7173
7174  in stile LaTeX è ignorato e tutti i paragrafi sono addizionalmente separati
7175  da questo argomento parskip.
7176  Lo spazio è verticale è calcolato con 
7177 \family typewriter
7178 value*DefaultHeight()
7179 \family default
7180  dove 
7181 \family typewriter
7182 DefaultHeight()
7183 \family default
7184  è l'altezza di una riga con il font normale.
7185  In questo modo l'aspetto rimane lo stesso indipendentemente dai fonts.
7186 \end_layout
7187
7188 \begin_layout Description
7189
7190 \family typewriter
7191 \series medium
7192 TopSep
7193 \family default
7194 \series default
7195  [
7196 \family typewriter
7197 float=0
7198 \family default
7199 ] Lo spazio vericale con cui il primo di una catena di paragrafi con questo
7200  layout è separato dal precedente.
7201  Se il paragrafo precedente ha un altro layout, le separazioni non sono
7202  semplicemente ma è preso il massimo.
7203 \end_layout
7204
7205 \begin_layout Description
7206
7207 \family typewriter
7208 \series medium
7209 BottomSep
7210 \family default
7211 \series default
7212  [
7213 \family typewriter
7214 float=0
7215 \family default
7216 ] La stessa cosa di 
7217 \family typewriter
7218 TopSep
7219 \family default
7220  per l'ultimo paragrafo.
7221 \end_layout
7222
7223 \begin_layout Description
7224
7225 \family typewriter
7226 \series medium
7227 Parsep
7228 \family default
7229 \series default
7230  [
7231 \family typewriter
7232 float=0
7233 \family default
7234 ] Lo spazio verticale tra due paragrafi di questo layout.
7235 \end_layout
7236
7237 \begin_layout Description
7238
7239 \family typewriter
7240 \series medium
7241 Itemsep
7242 \family default
7243 \series default
7244  [
7245 \family typewriter
7246 float=0
7247 \family default
7248 ] Questo è uno spazio extra tra i paragrafi di un ambiente di layout.
7249  Se immettete altri layouts nello stesso ambiente, ognuno sarà separato
7250  con 
7251 \family typewriter
7252 Parsep
7253 \family default
7254 .
7255  Ma la totalità degli oggetti presenti nell'ambiente sono separati addizionalmen
7256 te con 
7257 \family typewriter
7258 Itemsep
7259 \family default
7260 .
7261  
7262 \end_layout
7263
7264 \begin_layout Description
7265
7266 \family typewriter
7267 \series medium
7268 LeftMargin
7269 \family default
7270 \series default
7271  [
7272 \family typewriter
7273 string=""
7274 \family default
7275 ] Se immettete layouts nell'ambiente, i margini sinistri non sono semplicemente
7276  aggiunti, ma aggiunti con un fattore 
7277 \begin_inset Formula $\frac{4}{depth+4}$
7278 \end_inset
7279
7280 .
7281  Notate che questo parametro è usato anche quando il bordo è definito come
7282  
7283 \family typewriter
7284 Manual
7285 \family default
7286  o 
7287 \family typewriter
7288 Dynamic
7289 \family default
7290 .
7291  Poi è aggiunto al bordo manuale o dinamico.
7292  Questa stringa ha lo stesso significato di 
7293 \family typewriter
7294 ParIndent
7295 \family default
7296 .
7297 \end_layout
7298
7299 \begin_layout Description
7300
7301 \family typewriter
7302 \series medium
7303 RightMargin
7304 \family default
7305 \series default
7306  [
7307 \family typewriter
7308 string=""
7309 \family default
7310 ] Simile a
7311 \family typewriter
7312  LeftMargin
7313 \family default
7314 .
7315 \end_layout
7316
7317 \begin_layout Description
7318
7319 \family typewriter
7320 \series medium
7321 Labeltype
7322 \family default
7323 \series default
7324  [
7325 \family typewriter
7326 \emph on
7327 No_Label
7328 \emph default
7329 , Manual, Static, Top_Environment, 
7330 \newline
7331 Centered_Top_Environment, Sensitive,
7332  Counter_Chapter, 
7333 \newline
7334 Counter_Section, Counter_Subsection, Counter_Subsubsection,
7335  
7336 \newline
7337 Counter_Paragraph, Counter_Subparagraph, Counter_EnumI,
7338 \family default
7339  
7340 \family typewriter
7341
7342 \newline
7343 Counter_EnumII, Counter_EnumIII, Counter_EnumIV
7344 \family default
7345
7346 \newline
7347
7348 \family typewriter
7349 Manual
7350 \family default
7351  significa che l'etichetta è la primissima parola (lettera).
7352  
7353 \family typewriter
7354 Static
7355 \family default
7356  viene definito nel layout (vedere 
7357 \family typewriter
7358 LabelString
7359 \family default
7360 ).
7361  
7362 \family typewriter
7363 Top_Environment
7364 \family default
7365  e 
7366 \family typewriter
7367 Centered_Top_Environment
7368 \family default
7369  sono casi speciali di
7370 \family typewriter
7371  Static
7372 \family default
7373 .
7374  L'etichetta sarà stampata sopra il paragrafo, ma solo in cima all'ambiente
7375  o in cima ad una catena di paragrafi con questo layout.
7376  L'uso è ad esempio il layout 
7377 \family sans
7378 Abstract
7379 \family default
7380  o il
7381 \family sans
7382  Bibliography
7383 \family default
7384 .
7385  E' questo anche il caso di etichette 
7386 \family typewriter
7387 Manual
7388 \family default
7389  con tipo LaTeX 
7390 \family typewriter
7391 Enviroment
7392 \family default
7393 , per creare layouts per teoremi messi giù correttamente.
7394  
7395 \family typewriter
7396 Sensitive
7397 \family default
7398  è un caso speciale per le etichette di testo 
7399 \begin_inset Quotes eld
7400 \end_inset
7401
7402 Figura
7403 \begin_inset Quotes erd
7404 \end_inset
7405
7406  e 
7407 \begin_inset Quotes eld
7408 \end_inset
7409
7410 Tabella
7411 \begin_inset Quotes erd
7412 \end_inset
7413
7414 .
7415  
7416 \family typewriter
7417 Sensitive
7418 \family default
7419  significa che la stringa dell'etichetta dipende dal tipo di oggetto flottante.
7420  I tipi di etichetta 
7421 \family typewriter
7422 Counter_xxx
7423 \family default
7424  sdivrebbero essere abbastanza chiare.
7425 \end_layout
7426
7427 \begin_layout Description
7428
7429 \family typewriter
7430 \series medium
7431 Labelsep
7432 \family default
7433 \series default
7434  [
7435 \family typewriter
7436 string=""
7437 \family default
7438 ] Lo spazio orizzontale tra l'etichetta e il corpo del testo.
7439  Usato solo per etichette che non sono sopra il corpo del testo.
7440 \end_layout
7441
7442 \begin_layout Description
7443
7444 \family typewriter
7445 \series medium
7446 LabelBottomsep
7447 \family default
7448 \series default
7449  [float=0] Lo spazio verticale tra l'etichetta e il corpo del testo.
7450  Usato solo per etichette che sono sopra il corpo del testo (
7451 \family typewriter
7452 Top_Environment
7453 \family default
7454
7455 \family typewriter
7456 Centered_Top_Environment
7457 \family default
7458 ).
7459 \end_layout
7460
7461 \begin_layout Description
7462
7463 \family typewriter
7464 \series medium
7465 LabelString
7466 \family default
7467 \series default
7468  [
7469 \family typewriter
7470 string=""
7471 \family default
7472 ] La stringa usata per un'etichetta del tipo 
7473 \family typewriter
7474 Static
7475 \family default
7476 .
7477  Quando il bordo è manuale questa stringa è anche usata come suggerimento
7478  per 
7479 \family typewriter
7480 LabelWidthString
7481 \family default
7482  che può essere settato nel menu
7483 \family sans
7484 \bar under
7485  L
7486 \bar default
7487 ayout
7488 \family typewriter
7489 \SpecialChar \menuseparator
7490
7491 \family sans
7492 \bar under
7493 P
7494 \bar default
7495 aragraph
7496 \family default
7497 .
7498  Quando il tipo label è Counter_xxx, questa stringa viene preposta al contatore.
7499 \end_layout
7500
7501 \begin_layout Description
7502
7503 \series medium
7504 Align
7505 \series default
7506  [
7507 \emph on
7508 block
7509 \emph default
7510 , left, right, center] Allineamento del paragrafo.
7511 \end_layout
7512
7513 \begin_layout Description
7514
7515 \family typewriter
7516 \series medium
7517 AlignPossible
7518 \family default
7519 \series default
7520  [
7521 \family typewriter
7522 \emph on
7523 block
7524 \emph default
7525 , left, right, center
7526 \family default
7527 ] Sono 
7528 \emph on
7529 liste
7530 \emph default
7531 , separate da una virgola, di possibili allineamenti.
7532  Alcuni stili LaTeX proibiscono certi allineamenti, dato che questi non
7533  hanno senso.
7534  Ad esempio una numerazione allineata a destra o centrata non è possibile.
7535 \end_layout
7536
7537 \begin_layout Description
7538
7539 \family typewriter
7540 \series medium
7541 Fill_Top
7542 \family default
7543 \series default
7544  [
7545 \family typewriter
7546 \emph on
7547 0
7548 \emph default
7549 ,1
7550 \family default
7551 ] Con questo parametro il valore 
7552 \family sans
7553 Fill
7554 \family default
7555  della lista 
7556 \begin_inset Quotes eld
7557 \end_inset
7558
7559 Spazi verticali sopra
7560 \begin_inset Quotes erd
7561 \end_inset
7562
7563  del menu 
7564 \family sans
7565 \bar under
7566 L
7567 \bar default
7568 ayout\SpecialChar \-
7569
7570 \family default
7571
7572 \begin_inset Foot
7573 status collapsed
7574
7575 \begin_layout Standard
7576
7577 \emph on
7578 Nota di Jean-Marc:
7579 \emph default
7580  Non sono sicuro che questo settaggio sia molto usato, e sarà probabilmente
7581  rimosso nelle versioni successive.
7582 \end_layout
7583
7584 \end_inset
7585
7586 .
7587 \end_layout
7588
7589 \begin_layout Description
7590
7591 \family typewriter
7592 \series medium
7593 Fill_Bottom
7594 \family default
7595 \series default
7596  [
7597 \family typewriter
7598 \emph on
7599 0
7600 \emph default
7601 ,1
7602 \family default
7603 ] Simile a 
7604 \family typewriter
7605 Fill_Top
7606 \family default
7607 .
7608 \end_layout
7609
7610 \begin_layout Description
7611
7612 \family typewriter
7613 \series medium
7614 NeedProtect
7615 \family default
7616 \series default
7617  [
7618 \family typewriter
7619 \emph on
7620 0
7621 \emph default
7622 ,1
7623 \family default
7624 ] Qualora comandi fragili in questo layout necessitassero di essere protetti
7625  
7626 \family typewriter
7627
7628 \backslash
7629 protetti
7630 \family default
7631 .
7632 \end_layout
7633
7634 \begin_layout Description
7635
7636 \family typewriter
7637 \series medium
7638 Newline
7639 \family default
7640 \series default
7641  [
7642 \family typewriter
7643 0, 
7644 \emph on
7645 1
7646 \family default
7647 \emph default
7648 ] Se le nuove linee sono tradotte in nuove linee LaTeX (
7649 \family typewriter
7650
7651 \backslash
7652
7653 \backslash
7654
7655 \family default
7656 ) o no.
7657  La traduzione può essere evitata per facilitare l'editing di LaTeX all'interno
7658  di LyX.
7659  
7660 \end_layout
7661
7662 \begin_layout Description
7663
7664 \family typewriter
7665 \series medium
7666 FreeSpacing
7667 \family default
7668 \series default
7669  [
7670 \family typewriter
7671 \emph on
7672 0
7673 \emph default
7674 , 1
7675 \family default
7676 ] Di solito LyX non vi permette di inserire più di uno spazio tra le parole,
7677  dato che lo spazio è considerato come una separazione tra due parole, non
7678  un carattere o un simbolo a se stante.
7679  Questa è una cosa molto simpatica ma a volte annoiante, ad esempio quando
7680  si scrive il codice di un programma o codice LaTeX.
7681  Per queste ragioni, 
7682 \family typewriter
7683 FreeSpacing
7684 \family default
7685  può essere abilitato.
7686  Notate che LyX creerà bianchi protetti per i bianchi addizionali se in
7687  un modo diverso dal modo-LaTeX.
7688 \end_layout
7689
7690 \begin_layout Description
7691
7692 \family typewriter
7693 \series medium
7694 KeepEmpty
7695 \family default
7696 \series default
7697  [
7698 \family typewriter
7699 \emph on
7700 0
7701 \emph default
7702 , 1
7703 \family default
7704 ] Di solito LyX non vi consente di lasciare un paragrafo vuoto, dato che
7705  porterebbe ad un output LaTeX vuoto.
7706  Ci sono alcuni casi in cui però questo è auspicabile: in un template di
7707  lettera i campi richiesti possono essere rappresentati da spazi vuoti,
7708  così da agevolare le persone; in alcune classi speciali, un layout potrebbe
7709  essere usato come un tipo di interruzione, che non contiene testo, ecc.
7710 \end_layout
7711
7712 \begin_layout Description
7713
7714 \family typewriter
7715 \series medium
7716 Spacing
7717 \family default
7718 \series default
7719  [
7720 \family typewriter
7721 \emph on
7722 single
7723 \emph default
7724 , onehalf, double, other 
7725 \family default
7726 \emph on
7727 value
7728 \emph default
7729 ] Questo definisce la spaziatura di default del layout.
7730  Gli argomenti
7731 \family typewriter
7732  single
7733 \family default
7734
7735 \family typewriter
7736 onehalf
7737 \family default
7738  e 
7739 \family typewriter
7740 double
7741 \family default
7742  corrispondono rispettivamentead un valore multiplo di 1, 1.25 e 1.667.
7743  Se specificate l'argomento 
7744 \family typewriter
7745 other
7746 \family default
7747 , dovrete poi fornire un argomento numerico che sarà l'attuale moltiplicatore.
7748  Notate che, contrariamente agli altri parametri, 
7749 \family typewriter
7750 Spacing
7751 \family default
7752  implica la generazione di uno specifico codice LaTeX, usando il pacchetto
7753  
7754 \family typewriter
7755 setspace.sty
7756 \family default
7757 .
7758 \end_layout
7759
7760 \begin_layout Description
7761
7762 \family typewriter
7763 \series medium
7764 Font
7765 \family default
7766 \series default
7767  Il font usato 
7768 \emph on
7769 sia
7770 \emph default
7771  per il corpo del testo 
7772 \emph on
7773 che
7774 \emph default
7775  per l'etichetta.
7776  Vedere la sezione\InsetSpace ~
7777
7778 \begin_inset LatexCommand \label{Ref: sec:fonts}
7779
7780 \end_inset
7781
7782 .Notare che definire questo font automaticamente definisce 
7783 \family typewriter
7784 LabelFont 
7785 \family default
7786 allo stesso valore.
7787 \end_layout
7788
7789 \begin_layout Description
7790
7791 \family typewriter
7792 \series medium
7793 TextFont
7794 \family default
7795 \series default
7796  Il font usato per il corpo del testo.
7797  Vedere la sezione\InsetSpace ~
7798
7799 \begin_inset LatexCommand \ref{sec:fonts}
7800
7801 \end_inset
7802
7803 .
7804 \end_layout
7805
7806 \begin_layout Description
7807
7808 \family typewriter
7809 \series medium
7810 LabelFont
7811 \family default
7812 \series default
7813  Il font usato per le etichette.
7814  Vedere la sezione\InsetSpace ~
7815
7816 \begin_inset LatexCommand \ref{sec:fonts}
7817
7818 \end_inset
7819
7820 .
7821 \end_layout
7822
7823 \begin_layout Description
7824
7825 \family typewriter
7826 \series medium
7827 Preamble\SpecialChar \ldots{}
7828 EndPreamble
7829 \family default
7830 \series default
7831  Un set di macro definizione che saranno emesse all'inizio dei files LaTeX
7832  quando il layout è usato.
7833  Usatelo per definire le macro di cui si hanno bisogno per questo particolare
7834  layout.
7835 \end_layout
7836
7837 \begin_layout Standard
7838 \begin_inset ERT
7839 status collapsed
7840
7841 \begin_layout Standard
7842
7843 \backslash
7844 end{sloppypar}
7845 \end_layout
7846
7847 \end_inset
7848
7849
7850 \end_layout
7851
7852 \begin_layout Subsection
7853 Descrizione dei Font
7854 \end_layout
7855
7856 \begin_layout Standard
7857 \begin_inset LatexCommand \label{sec:fonts}
7858
7859 \end_inset
7860
7861 Una descrizione di un font appare così:
7862 \end_layout
7863
7864 \begin_layout LyX-Code
7865 Font
7866 \family roman
7867 \emph on
7868  or 
7869 \family default
7870 \emph default
7871 LabelFont
7872 \end_layout
7873
7874 \begin_layout LyX-Code
7875  
7876 \end_layout
7877
7878 \begin_layout LyX-Code
7879 EndFont
7880 \end_layout
7881
7882 \begin_layout Standard
7883 e i seguenti comandi sono disponibili:
7884 \end_layout
7885
7886 \begin_layout Description
7887
7888 \family typewriter
7889 \series medium
7890 Family
7891 \family default
7892 \series default
7893  [
7894 \family typewriter
7895 \emph on
7896 Roman
7897 \emph default
7898 , Sans, Typewriter
7899 \family default
7900
7901 \end_layout
7902
7903 \begin_layout Description
7904
7905 \family typewriter
7906 \series medium
7907 Series
7908 \family default
7909 \series default
7910  [
7911 \family typewriter
7912 \emph on
7913 Medium
7914 \emph default
7915 , Bold
7916 \family default
7917
7918 \end_layout
7919
7920 \begin_layout Description
7921
7922 \family typewriter
7923 \series medium
7924 Shape
7925 \family default
7926 \series default
7927  [
7928 \family typewriter
7929 \emph on
7930 Up
7931 \emph default
7932 , Italic, SmallCaps
7933 \family default
7934
7935 \end_layout
7936
7937 \begin_layout Description
7938
7939 \family typewriter
7940 \series medium
7941 Size
7942 \family default
7943 \series default
7944  [
7945 \family typewriter
7946 tiny, small, 
7947 \emph on
7948 normal
7949 \emph default
7950 , large, larger, largest, huge, giant
7951 \family default
7952 ]
7953 \end_layout
7954
7955 \begin_layout Description
7956
7957 \family typewriter
7958 \series medium
7959 Color
7960 \series default
7961  
7962 \series bold
7963 [
7964 \series default
7965 \emph on
7966 none
7967 \emph default
7968 , black, white, red, green, blue, cyan, magenta, yellow
7969 \series bold
7970 ]
7971 \end_layout
7972
7973 \begin_layout Description
7974
7975 \family typewriter
7976 \series medium
7977 Latex
7978 \family default
7979 \series default
7980  [
7981 \family typewriter
7982 \emph on
7983 no_latex
7984 \emph default
7985 , latex
7986 \family default
7987
7988 \family typewriter
7989 no_latex
7990 \family default
7991  significa che LyX tradurrà tutto in LaTeX.
7992  
7993 \family typewriter
7994 Latex
7995 \family default
7996  significa una stampata rossa e nessuna traduzione.
7997 \end_layout
7998
7999 \begin_layout Section
8000 Creare Templates
8001 \begin_inset LatexCommand \label{sec:templates}
8002
8003 \end_inset
8004
8005
8006 \end_layout
8007
8008 \begin_layout Standard
8009 I templates vengono creati come normali documenti.
8010  L'unica differenza è che i documenti normali contengono tutti i possibili
8011  settaggi, inclusi schemi di font e dimensioni della carta.
8012  Di solito l'utente non vuole che il template sovrascriva il suo default,
8013  per questo motivo il progettatore di template dovrebbe rimuovere i corrisponden
8014 ti comandi come 
8015 \family typewriter
8016
8017 \backslash
8018 fontscheme
8019 \family default
8020  or 
8021 \family typewriter
8022
8023 \backslash
8024 papersize
8025 \family default
8026  dal file di template di LyX.
8027  Questo si può fare con un qualsiasi editor di testo come
8028 \family typewriter
8029  vi
8030 \family default
8031  o 
8032 \family typewriter
8033 xedit
8034 \family default
8035 .
8036  
8037 \end_layout
8038
8039 \begin_layout Standard
8040 Mettete il template editato che avete creato in 
8041 \family typewriter
8042 $UserDir/templates/
8043 \family default
8044 , copiate quello che usate dalla directory globale dei template in 
8045 \family typewriter
8046 $LyXDir/templates/
8047 \family default
8048  nello stesso posto, e ridefinite la directory dei template in 
8049 \family typewriter
8050 lyxrc
8051 \family default
8052  usando il comando 
8053 \family typewriter
8054
8055 \backslash
8056 template_path
8057 \family default
8058 .
8059 \end_layout
8060
8061 \begin_layout Chapter
8062 Un Tutorial sulla Stampante
8063 \begin_inset LatexCommand \label{chap:printer}
8064
8065 \end_inset
8066
8067
8068 \end_layout
8069
8070 \begin_layout Section
8071 Introduzione
8072 \end_layout
8073
8074 \begin_layout Standard
8075 Questo capitolo descrive come sia possibile fare il setup di una stampante
8076  sotto Unix, in modo da poterla usare in LyX.
8077  Se avete un sistema Linux, e avete bisogno di settare la vostra stampante,
8078  potete anche leggere il file 
8079 \family typewriter
8080 Printing-HOWTO
8081 \family default
8082  [spesso nella directory 
8083 \family typewriter
8084 /usr/doc/FAQ/HOWTO/
8085 \family default
8086  o 
8087 \family typewriter
8088 /usr/doc/HOWTO/
8089 \family default
8090  a seconda del sistema].
8091  Inoltre dovrete installare il pacchetto Ghostscript dal vostro CD-ROM,
8092  se non lo avete ancora o mai fatto.
8093 \end_layout
8094
8095 \begin_layout Standard
8096 Alcune distribuzioni Linux attualmente hanno i cosiddetti 
8097 \begin_inset Quotes eld
8098 \end_inset
8099
8100 filtri magici
8101 \begin_inset Quotes erd
8102 \end_inset
8103
8104  che settano automaticamente il vostro sistema e lo rendono pronto all'uso.
8105  Potete usare questi strumenti in alternativa o in aggiunta a quello che
8106  andremo a descrivere, anche se i risultati con questi strumenti saranno
8107  molto inferiori rispetto alle rispettive potenzialità.
8108  Se la vostra distribuzione ha un tool di configurazione anche in fase di
8109  installazione, potete certamente usarlo, ma dovrete comunque leggervi il
8110  
8111 \family typewriter
8112 Printing-HOWTO
8113 \family default
8114  quando vorrete personalizzare il setup.
8115 \end_layout
8116
8117 \begin_layout Standard
8118 Così, se vi sentite avventurosi, o non avete altra scelta, continuate a
8119  leggere!
8120 \end_layout
8121
8122 \begin_layout Section
8123 Il file 
8124 \family typewriter
8125 /etc/printcap
8126 \end_layout
8127
8128 \begin_layout Subsection
8129 Descrizione
8130 \end_layout
8131
8132 \begin_layout Standard
8133 Il file 
8134 \family typewriter
8135 /etc/printcap
8136 \family default
8137  è quello che permette di comunicare a Linux i dati della vostra stampante.
8138  Ogni entrata definisce una stampante, le da un nome con cui gli utenti
8139  possono chiamarla, e dice a Linux come gestire il relativo output.
8140  Potete ovviamente avere più 
8141 \begin_inset Quotes eld
8142 \end_inset
8143
8144 stampanti
8145 \begin_inset Quotes erd
8146 \end_inset
8147
8148  nel vostro sistema anche se gli utenti accedono ad una stessa stampante
8149  fisica, però con differenti setup o funzioni abilitate.
8150 \begin_inset Foot
8151 status collapsed
8152
8153 \begin_layout Standard
8154 Nota di
8155 \noun on
8156  John Weiss
8157 \noun default
8158 : Io ho una Epson Stylus Color IIs.
8159  Quando c'è bisogno di cambiare le testine per usare il colore sulla Stylus
8160  IIs, faccio un setup per una stampante separata, che chiamo 
8161 \family typewriter
8162 color
8163 \family default
8164 .
8165  Ho anche creato una stampante 
8166 \family typewriter
8167 draft
8168 \family default
8169  che usa una risoluzione di stampa minore e meno caratteristiche di stampa.
8170  Quindi potete intuire la funzionalità di printcap.
8171 \end_layout
8172
8173 \end_inset
8174
8175  Naturalmente, avrete bisogno di un'entrata printcap per ogni stampante
8176  fisica che avete.
8177 \end_layout
8178
8179 \begin_layout Standard
8180 Ecco un esempio 
8181 \family typewriter
8182 /etc/printcap
8183 \family default
8184 :
8185 \end_layout
8186
8187 \begin_layout LyX-Code
8188 lp|Text on an Epson:
8189 \backslash
8190
8191 \end_layout
8192
8193 \begin_layout LyX-Code
8194 :lp=/dev/lp1:
8195 \backslash
8196
8197 \end_layout
8198
8199 \begin_layout LyX-Code
8200 :sd=/var/spool/lpd/lp:
8201 \backslash
8202
8203 \end_layout
8204
8205 \begin_layout LyX-Code
8206 :lf=/var/spool/lpd/lp/errs:
8207 \backslash
8208
8209 \end_layout
8210
8211 \begin_layout LyX-Code
8212 :mx#0:
8213 \backslash
8214
8215 \end_layout
8216
8217 \begin_layout LyX-Code
8218 :sh:
8219 \backslash
8220
8221 \end_layout
8222
8223 \begin_layout LyX-Code
8224 :sf:
8225 \newline
8226
8227 \end_layout
8228
8229 \begin_layout LyX-Code
8230 draft|Postscript on an Epson Stylus Color IIs, 180dpi:
8231 \backslash
8232
8233 \end_layout
8234
8235 \begin_layout LyX-Code
8236 :lp=/dev/lp1:
8237 \backslash
8238
8239 \end_layout
8240
8241 \begin_layout LyX-Code
8242 :sd=/var/spool/lpd/draft:
8243 \backslash
8244
8245 \end_layout
8246
8247 \begin_layout LyX-Code
8248 :lf=/var/spool/lpd/draft/errs:
8249 \backslash
8250
8251 \end_layout
8252
8253 \begin_layout LyX-Code
8254 :if=/var/spool/lpd/draft/draft.filter:
8255 \backslash
8256
8257 \end_layout
8258
8259 \begin_layout LyX-Code
8260 :mx#0:
8261 \backslash
8262
8263 \end_layout
8264
8265 \begin_layout LyX-Code
8266 :sh:
8267 \backslash
8268
8269 \end_layout
8270
8271 \begin_layout LyX-Code
8272 :sf:
8273 \newline
8274
8275 \end_layout
8276
8277 \begin_layout LyX-Code
8278 ps|Postscript on an Epson Stylus Color IIs, 360dpi:
8279 \backslash
8280
8281 \end_layout
8282
8283 \begin_layout LyX-Code
8284 :lp=/dev/lp1:
8285 \backslash
8286
8287 \end_layout
8288
8289 \begin_layout LyX-Code
8290 :sd=/var/spool/lpd/ps:
8291 \backslash
8292
8293 \end_layout
8294
8295 \begin_layout LyX-Code
8296 :lf=/var/spool/lpd/ps/errs:
8297 \backslash
8298
8299 \end_layout
8300
8301 \begin_layout LyX-Code
8302 :if=/var/spool/lpd/ps/ps.filter:
8303 \backslash
8304
8305 \end_layout
8306
8307 \begin_layout LyX-Code
8308 :mx#0:
8309 \backslash
8310
8311 \end_layout
8312
8313 \begin_layout LyX-Code
8314 :sh:
8315 \backslash
8316
8317 \end_layout
8318
8319 \begin_layout LyX-Code
8320 :sf:
8321 \end_layout
8322
8323 \begin_layout Standard
8324 Prima di avventurarci nella spiegazione di questi geroglifici, abbiamo un
8325  messaggio importante:
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 \align center
8337 ATTENZIONE! ATTENZIONE! ATTENZIONE!
8338 \end_layout
8339
8340 \begin_layout Standard
8341 \align center
8342 Usate solo una linea tra le entrate!!!
8343 \end_layout
8344
8345 \begin_layout Standard
8346 \align center
8347 Assicuratevi che la linea fra le entrate sia COMPLETAMENTE BIANCA!!!
8348 \end_layout
8349
8350 \begin_layout Standard
8351 \begin_inset VSpace 0.51cm
8352 \end_inset
8353
8354
8355 \end_layout
8356
8357 \begin_layout Standard
8358 Anche se lasciate uno spazio bianco tra le entrate, possono accadere cose
8359  strane, ed il sistema non interpreterà correttamente il file 
8360 \family typewriter
8361 /etc/printcap
8362 \family default
8363 .
8364 \end_layout
8365
8366 \begin_layout Standard
8367 Date uno sguardo ad una delle entrate dell'esempio precedente.
8368  Ogni parte dell'entrata è seguita da un carattere 
8369 \begin_inset Quotes eld
8370 \end_inset
8371
8372
8373 \family typewriter
8374 :
8375 \family default
8376
8377 \begin_inset Quotes eld
8378 \end_inset
8379
8380 .
8381  Il carattere 
8382 \begin_inset Quotes eld
8383 \end_inset
8384
8385
8386 \family typewriter
8387
8388 \backslash
8389
8390 \family default
8391
8392 \begin_inset Quotes erd
8393 \end_inset
8394
8395  alla fine di ogni linea dice a Linux che l'entrata continua alla riga successiv
8396 a.
8397  Non mettete nulla dopo il 
8398 \begin_inset Quotes eld
8399 \end_inset
8400
8401
8402 \family typewriter
8403
8404 \backslash
8405
8406 \family default
8407
8408 \begin_inset Quotes erd
8409 \end_inset
8410
8411 , nemmeno uno spazio.
8412  Il 
8413 \begin_inset Quotes eld
8414 \end_inset
8415
8416
8417 \family typewriter
8418
8419 \backslash
8420
8421 \family default
8422
8423 \begin_inset Quotes erd
8424 \end_inset
8425
8426  dovrebbe seguire il 
8427 \begin_inset Quotes eld
8428 \end_inset
8429
8430
8431 \family typewriter
8432 :
8433 \family default
8434
8435 \begin_inset Quotes eld
8436 \end_inset
8437
8438  dell'ultima parte dell'entrata sulla linea che avete interrotto.
8439 \end_layout
8440
8441 \begin_layout Standard
8442 Se scegliete di interrompere un'entrata di 
8443 \family typewriter
8444 printcap
8445 \family default
8446  in linee multiple, assicuratevi di mettere un 
8447 \begin_inset Quotes eld
8448 \end_inset
8449
8450
8451 \family typewriter
8452 :
8453 \family default
8454
8455 \begin_inset Quotes eld
8456 \end_inset
8457
8458  all'inizio del 
8459 \emph on
8460 testo
8461 \emph default
8462  della nuova linea, dopo ogni spazio.
8463  Ad esempio, potremmo aver scritto la prima entrata dell'esempio precedente
8464  come:
8465 \end_layout
8466
8467 \begin_layout LyX-Code
8468 lp|Text:lp=/dev/lp1:sd=/var/spool/lpd/lp:lf=/var/spool/lpd/lp/errs:
8469 \end_layout
8470
8471 \begin_layout Standard
8472 Notate che c'è un solo 
8473 \begin_inset Quotes eld
8474 \end_inset
8475
8476
8477 \family typewriter
8478 :
8479 \family default
8480
8481 \begin_inset Quotes eld
8482 \end_inset
8483
8484  tra ognuna delle parti dell'entrata.
8485  Se volete dividere questa entrata in due linee:
8486 \end_layout
8487
8488 \begin_layout LyX-Code
8489 lp|Text:lp=/dev/lp1:sd=/var/spool/lpd/lp:
8490 \backslash
8491
8492 \end_layout
8493
8494 \begin_layout LyX-Code
8495 :lf=/var/spool/lpd/lp/errs:
8496 \end_layout
8497
8498 \begin_layout Standard
8499 Abbiamo interrotto la linea al punto 
8500 \begin_inset Quotes eld
8501 \end_inset
8502
8503
8504 \family typewriter
8505 :
8506 \family default
8507
8508 \begin_inset Quotes eld
8509 \end_inset
8510
8511  aggiungendo un 
8512 \begin_inset Quotes eld
8513 \end_inset
8514
8515
8516 \family typewriter
8517
8518 \backslash
8519
8520 \family default
8521
8522 \begin_inset Quotes erd
8523 \end_inset
8524
8525 , e iniziando la nuova linea che degli spazi e poi un 
8526 \begin_inset Quotes eld
8527 \end_inset
8528
8529
8530 \family typewriter
8531 :
8532 \family default
8533
8534 \begin_inset Quotes eld
8535 \end_inset
8536
8537  prima di continuare.
8538  E' uso comune quello di far rientrare la linea successiva di un pochettino
8539  in questi casi.
8540 \end_layout
8541
8542 \begin_layout Standard
8543 Andremo ora a spiegare ogni parte di un'entrata di 
8544 \family typewriter
8545 /etc/printcap
8546 \family default
8547 .
8548  Notate che ci sono altre opzioni che potete aggiungere ad un'entrata.
8549  Noi ci occuperemo soltanto delle quattro basi quì, e vi preghiamo di riferirvi
8550  alle man page su 
8551 \family typewriter
8552 printcap
8553 \family default
8554  per le informazioni addizionali.
8555 \end_layout
8556
8557 \begin_layout Subsection
8558 Il Nome della Stampante
8559 \end_layout
8560
8561 \begin_layout Standard
8562 La prima linea di un'entrata di 
8563 \family typewriter
8564 printcap
8565 \family default
8566  è il nome della stampante.
8567  Contiene il nome della stampante, seguito da un carattere 
8568 \begin_inset Quotes eld
8569 \end_inset
8570
8571
8572 \family typewriter
8573 |
8574 \family default
8575
8576 \begin_inset Quotes erd
8577 \end_inset
8578
8579  , seguito da un testo che descrive la stampante, e infine, naturalmente,
8580  il carattere 
8581 \begin_inset Quotes eld
8582 \end_inset
8583
8584
8585 \family typewriter
8586 :
8587 \family default
8588
8589 \begin_inset Quotes eld
8590 \end_inset
8591
8592 .
8593  Ad esempio:
8594 \end_layout
8595
8596 \begin_layout LyX-Code
8597 draft|OurPrinter in Draft Mode:
8598 \backslash
8599
8600 \end_layout
8601
8602 \begin_layout Standard
8603 è una stampante chiamata 
8604 \begin_inset Quotes eld
8605 \end_inset
8606
8607
8608 \family typewriter
8609 draft
8610 \family default
8611
8612 \begin_inset Quotes erd
8613 \end_inset
8614
8615  con la descrizione 
8616 \begin_inset Quotes eld
8617 \end_inset
8618
8619 Nostra stampante in modalità bozza
8620 \begin_inset Quotes erd
8621 \end_inset
8622
8623  [Notate che l' 
8624 \begin_inset Quotes eld
8625 \end_inset
8626
8627
8628 \family typewriter
8629
8630 \backslash
8631
8632 \family default
8633
8634 \begin_inset Quotes erd
8635 \end_inset
8636
8637  alla fine della linea, indica che continueremo l'entrata alla riga successiva.]
8638  Il nome 
8639 \family typewriter
8640 draft
8641 \family default
8642  è quello che in genere passate a molte stampanti con l'opzione 
8643 \family typewriter
8644 -P
8645 \family default
8646  dei comandi.
8647  [Il programma 
8648 \family typewriter
8649 lpr
8650 \family default
8651  è come un comando.]
8652 \end_layout
8653
8654 \begin_layout Standard
8655 Di solito si usa chiamare la vostra stampante principale PostScript® come
8656  
8657 \begin_inset Quotes eld
8658 \end_inset
8659
8660
8661 \family typewriter
8662 ps
8663 \family default
8664
8665 \begin_inset Quotes erd
8666 \end_inset
8667
8668  e chiamare la vostra stampante di testo 
8669 \begin_inset Quotes eld
8670 \end_inset
8671
8672
8673 \family typewriter
8674 lp
8675 \family default
8676
8677 \begin_inset Quotes erd
8678 \end_inset
8679
8680 .
8681 \end_layout
8682
8683 \begin_layout Subsection
8684 Il Dispositivo di Stampa
8685 \end_layout
8686
8687 \begin_layout Standard
8688 La prossima parte del nostro esempio di entrate 
8689 \family typewriter
8690 printcap
8691 \family default
8692  identifica il dispositivo di stampa.
8693  in tutti gli esempi citati c'è una linea:
8694 \end_layout
8695
8696 \begin_layout LyX-Code
8697 :lp=/dev/lp1:
8698 \backslash
8699
8700 \end_layout
8701
8702 \begin_layout Standard
8703 [Ancora, notate che 
8704 \begin_inset Quotes eld
8705 \end_inset
8706
8707
8708 \family typewriter
8709
8710 \backslash
8711
8712 \family default
8713
8714 \begin_inset Quotes erd
8715 \end_inset
8716
8717  alla fine della linea, così some l'inizio con 
8718 \begin_inset Quotes eld
8719 \end_inset
8720
8721
8722 \family typewriter
8723 :
8724 \family default
8725
8726 \begin_inset Quotes eld
8727 \end_inset
8728
8729  con relativi spazi di rientro.]
8730 \end_layout
8731
8732 \begin_layout Standard
8733 Il tag 
8734 \begin_inset Quotes eld
8735 \end_inset
8736
8737
8738 \family typewriter
8739 lp=
8740 \family default
8741
8742 \begin_inset Quotes erd
8743 \end_inset
8744
8745  porta il nome del dispositivo di stampa.
8746  In questo caso è 
8747 \family typewriter
8748 /dev/lp1
8749 \family default
8750 , ovvero la porta parallela.
8751  Ci sono stampanti che che si connettono tramite porta seriale.
8752  se ne avete una, dovrete usare 
8753 \family typewriter
8754 /dev/ttyS0
8755 \family default
8756  per la prima porta seriale, 
8757 \family typewriter
8758 /dev/ttyS1
8759 \family default
8760  per la successiva e così via.
8761  Se volete aggiungere altri comandi relativi alla stampante nelle entrate
8762  di 
8763 \family typewriter
8764 printc
8765 \family default
8766 ap, come il baud rate della stampante, dovete riferirvi alle man pages di
8767  
8768 \family typewriter
8769 printcap
8770 \family default
8771 , che possono aiutarvi.
8772 \end_layout
8773
8774 \begin_layout Standard
8775 Molte stampanti, tuttavia, usano la porta parallela.
8776  In aggiunta, la porta stampante sulla 
8777 \emph on
8778 maggior parte
8779 \emph default
8780  dei computer PC-compatibli sarà 
8781 \family typewriter
8782 /dev/lp1
8783 \family default
8784 .
8785  Se volete sapere perchè, guardatevi questa nota.
8786 \begin_inset Foot
8787 status collapsed
8788
8789 \begin_layout Standard
8790 Perchè è 
8791 \family typewriter
8792 /dev/lp1
8793 \family default
8794  e 
8795 \emph on
8796 non 
8797 \family typewriter
8798 /dev/lp0
8799 \family default
8800 \emph default
8801  la prima porta stampantet? Va rilevato che l'indirizzo I/O di ogni porta
8802  parallela è codificato nel kernel di linux.
8803  L'indirizzo 
8804 \family typewriter
8805 0x3BC
8806 \family default
8807  è 
8808 \family typewriter
8809 /dev/lp0
8810 \family default
8811 ; l'indirizzo 
8812 \family typewriter
8813 0x378
8814 \family default
8815  è 
8816 \family typewriter
8817 /dev/lp1
8818 \family default
8819 ; e 
8820 \family typewriter
8821 0x278
8822 \family default
8823  è 
8824 \family typewriter
8825 /dev/lp2
8826 \family default
8827 .
8828  Dato che molti dei computer PC-compatibli assegna la prima porta parallela
8829  all'indirizzo I/O 
8830 \family typewriter
8831 0x378
8832 \family default
8833  di default, 
8834 \family typewriter
8835 /dev/lp1
8836 \family default
8837  sarà quindi la porta parallela sulla maggior parte dei sistemi.
8838 \end_layout
8839
8840 \begin_layout Standard
8841 Se avete più di una porta parallela, la situazione cambia.
8842  Inoltre se alterate l'indirizzo I/O della porta per qualsiasi motivo, poi
8843  uno degli altri dispositivi 
8844 \family typewriter
8845 lp
8846 \family default
8847  potrebbe puntare sulla porta parallela.
8848  Su alcuni sistemi questo può creare molti problemi.
8849  in alcuni casi potete andare in DOS è controllare quale indirizzo è stato
8850  assegnato alla vostra porta.
8851  Dopodichè potete usare questo indirizzo per stabilire se la porta parallela
8852  è 
8853 \family typewriter
8854 /dev/lp0
8855 \family default
8856
8857 \family typewriter
8858 /dev/lp1
8859 \family default
8860 , o 
8861 \family typewriter
8862 /dev/lp2
8863 \family default
8864 .
8865 \end_layout
8866
8867 \end_inset
8868
8869  Il vostro sistema non sarà differente, tuttavia controllate sempre a cosa
8870  corrisponde la vostra porta parallela.
8871 \end_layout
8872
8873 \begin_layout Subsection
8874 La Directory Spool e il File Log
8875 \end_layout
8876
8877 \begin_layout Standard
8878 Oltre a dare un nome alla vostra stampante e a dire a Linux quale dispositivo
8879  è, avete ancora bisogno di una directory per il print spooling.
8880  la sigla 
8881 \begin_inset Quotes eld
8882 \end_inset
8883
8884
8885 \family typewriter
8886 sd=
8887 \family default
8888
8889 \begin_inset Quotes erd
8890 \end_inset
8891
8892  identifica la directory di spool per la stampante.
8893  E' inoltre una buona idea avere un log file per gli eventuali errori.
8894  la sigla 
8895 \begin_inset Quotes eld
8896 \end_inset
8897
8898
8899 \family typewriter
8900 lf=
8901 \family default
8902
8903 \begin_inset Quotes erd
8904 \end_inset
8905
8906  lo identifica.
8907 \end_layout
8908
8909 \begin_layout Standard
8910 Molti sistemi mettono tutte le code di stampa nella directory 
8911 \family typewriter
8912 /var/spool/lpd
8913 \family default
8914 ; alcuni usano solo 
8915 \family typewriter
8916 /var/spool
8917 \family default
8918 .
8919  In ogni caso, entrata del printcap tradizionalmente ha la sua propria spool
8920  directory dichiarata dopo il nome della stampante.
8921  Dovrete essere 
8922 \begin_inset Quotes eld
8923 \end_inset
8924
8925 root
8926 \begin_inset Quotes erd
8927 \end_inset
8928
8929  e creare queste directory da soli.
8930  Dovrete inoltre cambiare la proprietà di queste directory, cosicchè il
8931  loro gruppo sia il gruppo 
8932 \family typewriter
8933 daemon
8934 \family default
8935 .
8936  Potete farlo col comando, 
8937 \begin_inset Quotes eld
8938 \end_inset
8939
8940
8941 \family typewriter
8942 chgrp daemon 
8943 \family default
8944 \emph on
8945 dirname
8946 \emph default
8947
8948 \begin_inset Quotes erd
8949 \end_inset
8950
8951 , dove 
8952 \emph on
8953 dirname
8954 \emph default
8955  è il nome della directory di spool.
8956 \end_layout
8957
8958 \begin_layout Standard
8959 Ad esempio, guardiamo l'entrata per la stampante 
8960 \begin_inset Quotes eld
8961 \end_inset
8962
8963
8964 \family typewriter
8965 ps
8966 \family default
8967
8968 \begin_inset Quotes erd
8969 \end_inset
8970
8971  nell'esempio.
8972  Contiene le linee:
8973 \end_layout
8974
8975 \begin_layout LyX-Code
8976 :sd=/var/spool/lpd/ps:
8977 \backslash
8978
8979 \end_layout
8980
8981 \begin_layout LyX-Code
8982 :lf=/var/spool/lpd/ps/errs:
8983 \backslash
8984
8985 \end_layout
8986
8987 \begin_layout Standard
8988 Questo indica che la directory di spool è 
8989 \family typewriter
8990 /var/spool/lpd/ps
8991 \family default
8992  e che il log file è
8993 \family typewriter
8994  /var/spool/lpd/ps/errs
8995 \family default
8996 .
8997  Dovete 
8998 \begin_inset Quotes eld
8999 \end_inset
9000
9001 creare
9002 \begin_inset Quotes erd
9003 \end_inset
9004
9005  questo file con il comando 
9006 \begin_inset Quotes eld
9007 \end_inset
9008
9009
9010 \family typewriter
9011 touch errs
9012 \family default
9013
9014 \begin_inset Quotes erd
9015 \end_inset
9016
9017  nella directory di spool.
9018 \end_layout
9019
9020 \begin_layout Standard
9021 Similmente, l'entrata per la stampante 
9022 \begin_inset Quotes eld
9023 \end_inset
9024
9025
9026 \family typewriter
9027 lp
9028 \family default
9029
9030 \begin_inset Quotes erd
9031 \end_inset
9032
9033  contiene:
9034 \end_layout
9035
9036 \begin_layout LyX-Code
9037 :sd=/var/spool/lpd/lp:
9038 \backslash
9039
9040 \end_layout
9041
9042 \begin_layout LyX-Code
9043 :lf=/var/spool/lpd/lp/errs:
9044 \backslash
9045
9046 \end_layout
9047
9048 \begin_layout Standard
9049 Ancora, la spool directory è 
9050 \family typewriter
9051 /var/spool/lpd/lp
9052 \family default
9053  e il log file è
9054 \family typewriter
9055 /var/spool/lpd/lp/errs
9056 \family default
9057 .
9058  
9059 \end_layout
9060
9061 \begin_layout Subsection
9062 Il Filter File
9063 \end_layout
9064
9065 \begin_layout Standard
9066 A differenza di 
9067 \begin_inset Quotes eld
9068 \end_inset
9069
9070
9071 \family typewriter
9072 lp
9073 \family default
9074
9075 \begin_inset Quotes erd
9076 \end_inset
9077
9078 , che passa semplicemente il testo non formattato alla stampante, le stampanti
9079  
9080 \begin_inset Quotes eld
9081 \end_inset
9082
9083
9084 \family typewriter
9085 draft
9086 \family default
9087
9088 \begin_inset Quotes erd
9089 \end_inset
9090
9091  e 
9092 \begin_inset Quotes eld
9093 \end_inset
9094
9095
9096 \family typewriter
9097 ps
9098 \family default
9099
9100 \begin_inset Quotes erd
9101 \end_inset
9102
9103  hanno bisogno di un filtro [ecco perchè c'è una riga addizionale].
9104  La riga 
9105 \family typewriter
9106 printcap
9107 \family default
9108  per il programma filtro è 
9109 \begin_inset Quotes eld
9110 \end_inset
9111
9112
9113 \family typewriter
9114 if=
9115 \family default
9116
9117 \begin_inset Quotes erd
9118 \end_inset
9119
9120  [sta per 
9121 \family typewriter
9122 i
9123 \family default
9124 nput 
9125 \family typewriter
9126 f
9127 \family default
9128 ilter, significa l'input dello spool].
9129 \end_layout
9130
9131 \begin_layout Standard
9132 Ci sono generalmente molte righe per i programmi filtro, che permettono
9133  di specificare un filtro differente per diversi scopi.
9134  Potete selezionare i filtri come opzioni a 
9135 \family typewriter
9136 lpr
9137 \family default
9138 , ma non ci inoltriamo per questa strada.
9139 \end_layout
9140
9141 \begin_layout Standard
9142 Diamo un'occhiata alle righe per la stampante 
9143 \begin_inset Quotes eld
9144 \end_inset
9145
9146
9147 \family typewriter
9148 ps
9149 \family default
9150
9151 \begin_inset Quotes erd
9152 \end_inset
9153
9154 :
9155 \end_layout
9156
9157 \begin_layout LyX-Code
9158 :if=/var/spool/lpd/ps/ps.filter:
9159 \backslash
9160
9161 \end_layout
9162
9163 \begin_layout Standard
9164 Il file 
9165 \begin_inset Quotes eld
9166 \end_inset
9167
9168
9169 \family typewriter
9170 ps.filter
9171 \family default
9172
9173 \begin_inset Quotes erd
9174 \end_inset
9175
9176  è uno script di shell che risiede nella directory di spool per la stampante
9177  
9178 \begin_inset Quotes eld
9179 \end_inset
9180
9181
9182 \family typewriter
9183 ps
9184 \family default
9185
9186 \begin_inset Quotes erd
9187 \end_inset
9188
9189 .
9190  Potete anche specificare l'indirizzo e il nome del file del programma;
9191  tuttavia, chiamando un programma con uno script di shell vi permette di
9192  specificare le opzioni dalla riga di comando.
9193 \end_layout
9194
9195 \begin_layout Standard
9196 Tutti i filtri, sia programmi o script di shell, dovrebbero prendere l'input
9197  da 
9198 \family typewriter
9199 stdin
9200 \family default
9201  [il flusso di input standard] e mandare il loro output a 
9202 \family typewriter
9203 stdout
9204 \family default
9205  [il flusso standard di uotput.the standard output stream].
9206 \end_layout
9207
9208 \begin_layout Subsection
9209 Entrate Addizionali
9210 \end_layout
9211
9212 \begin_layout Standard
9213 Ci sono tre cose addizionali che dovete mettere nel vostro 
9214 \family typewriter
9215 printcap
9216 \family default
9217 .
9218  Potete vederle alla fine dei tre esempi, e sono:
9219 \end_layout
9220
9221 \begin_layout LyX-Code
9222 :mx#0:
9223 \backslash
9224
9225 \end_layout
9226
9227 \begin_layout LyX-Code
9228 :sh:
9229 \backslash
9230
9231 \end_layout
9232
9233 \begin_layout LyX-Code
9234 :sf:
9235 \end_layout
9236
9237 \begin_layout Standard
9238 Il 
9239 \begin_inset Quotes eld
9240 \end_inset
9241
9242
9243 \family typewriter
9244 mx#0
9245 \family default
9246
9247 \begin_inset Quotes erd
9248 \end_inset
9249
9250  significa 
9251 \begin_inset Quotes eld
9252 \end_inset
9253
9254 non limitare la grandezza del file che possiamo stampare.
9255 \begin_inset Quotes erd
9256 \end_inset
9257
9258  Il 
9259 \begin_inset Quotes eld
9260 \end_inset
9261
9262
9263 \family typewriter
9264 sf
9265 \family default
9266
9267 \begin_inset Quotes erd
9268 \end_inset
9269
9270  previene che il form-feed sia mandato dopo la fine del documento.
9271  Infine, l' 
9272 \begin_inset Quotes eld
9273 \end_inset
9274
9275
9276 \family typewriter
9277 sh
9278 \family default
9279
9280 \begin_inset Quotes erd
9281 \end_inset
9282
9283  previene che l'intestazione sia mandata all'inizio di ogni job.
9284  Probabilmente voi volete sempre aggiungere queste entrate al vostro 
9285 \family typewriter
9286 printcap
9287 \family default
9288 .
9289 \end_layout
9290
9291 \begin_layout Section
9292 Creare un Filtro di Stampa
9293 \end_layout
9294
9295 \begin_layout Subsection
9296 Stampare Files PostScript® Usando Ghostscript
9297 \end_layout
9298
9299 \begin_layout Standard
9300 Il modo più semplice per far capire alla vostra stampante il PostScript®
9301  è quello di usare il programma Ghostscript come filtro di stampa.
9302  Ci sono probabilmente altri modi, ma questo è quello più comune.
9303  Se, per qualche ragione non potete o volete usare Ghostscript, dovrete
9304  provvedere da soli [guardatevi 
9305 \family typewriter
9306 Printing-HOWTO
9307 \family default
9308  per iniziare].
9309 \end_layout
9310
9311 \begin_layout Standard
9312 La prima cosa che dovete fare è installare Ghostscript.
9313  C'è almeno una versione in ogni distribuzione Linux.
9314  se non c'è la potete ottenereThe first thing you should do is install Ghostscri
9315 pt.
9316  There should be a version in your Linux da uno dall'archivio FTP di Linux
9317  
9318 \family typewriter
9319 sunsite.unc.edu
9320 \family default
9321 .
9322  Una volta installato, lanciatelo usando 
9323 \end_layout
9324
9325 \begin_layout LyX-Code
9326 gs -h | more
9327 \end_layout
9328
9329 \begin_layout Standard
9330 dalla linea di comando.
9331  Questo farà una lista dei dispositivi di stampa disponibili con relativi
9332  formati.
9333  Quì di seguito riportiamo una lista che vi aiuta a capire meglio a quale
9334  dispositivo Ghostscript corrisponde ogni stampante.
9335 \end_layout
9336
9337 \begin_layout Itemize
9338 Stampanti Apple:
9339 \end_layout
9340
9341 \begin_deeper
9342 \begin_layout Description
9343 appledmp Apple dot matrix printers
9344 \end_layout
9345
9346 \begin_layout Description
9347 iwhi Imagewriter in high-res mode
9348 \end_layout
9349
9350 \begin_layout Description
9351 iwlo Imagewriter in low-res mode
9352 \end_layout
9353
9354 \begin_layout Description
9355 iwlq Imagewriter LQ in 
9356 \begin_inset Formula $320\times216$
9357 \end_inset
9358
9359  dpi mode
9360 \end_layout
9361
9362 \end_deeper
9363 \begin_layout Itemize
9364 Stampanti Canon:
9365 \end_layout
9366
9367 \begin_deeper
9368 \begin_layout Description
9369 bj10e BubbleJet BJ-10e
9370 \end_layout
9371
9372 \begin_layout Description
9373 bj200 BubbleJet BJ-200
9374 \end_layout
9375
9376 \begin_layout Description
9377 bjc600 Color BubbleJet BJC-600, BJC-4000 and BJC-70.
9378 \begin_inset Foot
9379 status collapsed
9380
9381 \begin_layout Standard
9382 Buona anche per alcune Apple come la StyleWriter 2x00
9383 \end_layout
9384
9385 \end_inset
9386
9387
9388 \end_layout
9389
9390 \begin_layout Description
9391 bjc800 Color BubbleJet BJC-800
9392 \end_layout
9393
9394 \begin_layout Description
9395 lbp8 LBP-II8 laser printer
9396 \end_layout
9397
9398 \begin_layout Description
9399 lips3 LIPS-III laser printer in CaPSL mode
9400 \end_layout
9401
9402 \end_deeper
9403 \begin_layout Itemize
9404 Stampanti DEC:
9405 \end_layout
9406
9407 \begin_deeper
9408 \begin_layout Description
9409 la50 LA50
9410 \end_layout
9411
9412 \begin_layout Description
9413 la70 LA70
9414 \end_layout
9415
9416 \begin_layout Description
9417 la70t LA70 with low-res text enhancement
9418 \end_layout
9419
9420 \begin_layout Description
9421 la75 LA75
9422 \end_layout
9423
9424 \begin_layout Description
9425 la75plus LA75 Plus
9426 \end_layout
9427
9428 \begin_layout Description
9429 ln03 LN03
9430 \end_layout
9431
9432 \begin_layout Description
9433 lj250 LJ250 color printer
9434 \end_layout
9435
9436 \begin_layout Description
9437 declj250 Alternate LJ250 driver0
9438 \end_layout
9439
9440 \end_deeper
9441 \begin_layout Itemize
9442 Stampanti Epson:
9443 \end_layout
9444
9445 \begin_deeper
9446 \begin_layout Description
9447 ap3250 ActionPrinter AP3250 [ed ogni stampante che usa il linguaggio ESC/P2]
9448 \end_layout
9449
9450 \begin_layout Description
9451 escp2 Tutte le stampantil Epson che usano i comandi ESC/P2 [questo driver
9452  non è più disponibile, usare 
9453 \series bold
9454 ap3250
9455 \series default
9456 .]
9457 \end_layout
9458
9459 \begin_layout Description
9460 epson All 9- and 24-pin dot matrix printers [e compatibili]
9461 \end_layout
9462
9463 \begin_layout Description
9464 eps9mid All 9-pin dot matrix printers [e compatibili] in intermediate resolution
9465 \end_layout
9466
9467 \begin_layout Description
9468 eps9hi All 9-pin dot matrix printers [e compatibili] in triple resolution
9469 \end_layout
9470
9471 \begin_layout Description
9472 epsonc LQ-2550 color printer [buono anche per Fujitsu 1200, 2400, e3400]
9473 \end_layout
9474
9475 \begin_layout Description
9476 st800 Stylus 800 inkjet
9477 \end_layout
9478
9479 \begin_layout Description
9480 stcolor the Stylus Color, Stylus Color Pro, Stylus Color II and IIs color
9481  inkjet printers
9482 \end_layout
9483
9484 \end_deeper
9485 \begin_layout Itemize
9486 Stampanti Hewlet Packard [HP]:
9487 \end_layout
9488
9489 \begin_deeper
9490 \begin_layout Description
9491 lp2563 2563B line printer
9492 \end_layout
9493
9494 \begin_layout Description
9495 cdeskjet DeskJet 500C with 1 bpp color
9496 \end_layout
9497
9498 \begin_layout Description
9499 cdjcolor DeskJet 500C [and 540C] with 24 bpp color and Floyd-Steinberg dithering
9500 \end_layout
9501
9502 \begin_layout Description
9503 cdjmono DeskJet 500C [and 510C, 520C, 540C], monochrome only.
9504 \end_layout
9505
9506 \begin_layout Description
9507 cdj500 same as 
9508 \series bold
9509 cdjcolor
9510 \end_layout
9511
9512 \begin_layout Description
9513 cdj550 DeskJet 550C and 560C
9514 \end_layout
9515
9516 \begin_layout Description
9517 deskjet DeskJet and DeskJet Plus
9518 \end_layout
9519
9520 \begin_layout Description
9521 djet500 DeskJet 500
9522 \end_layout
9523
9524 \begin_layout Description
9525 djet500c Alternate DeskJet 500C driver [does not work with the 550C or the
9526  560C]
9527 \end_layout
9528
9529 \begin_layout Description
9530 dnj650c DesignJet 650C
9531 \end_layout
9532
9533 \begin_layout Description
9534 ljet2p LaserJet IId, LaserJet IIp, and LaserJet III* with TIFF compression
9535 \end_layout
9536
9537 \begin_layout Description
9538 ljet3 LaserJet III* with Delta Row compression
9539 \end_layout
9540
9541 \begin_layout Description
9542 ljet3d LaserJet IIID with duplex capability
9543 \end_layout
9544
9545 \begin_layout Description
9546 ljet4 LaserJet 4 [default res=600dpi]
9547 \end_layout
9548
9549 \begin_layout Description
9550 lj4dith LaserJet 4 with Floyd-Steinberg dithering
9551 \end_layout
9552
9553 \begin_layout Description
9554 ljetplus LaserJet Plus
9555 \end_layout
9556
9557 \begin_layout Description
9558 pj PaintJet XL
9559 \end_layout
9560
9561 \begin_layout Description
9562 pjetxl Alternate PaintJet XL driver
9563 \end_layout
9564
9565 \begin_layout Description
9566 pjxl PaintJet XL color
9567 \end_layout
9568
9569 \begin_layout Description
9570 pjxl300 PaintJet XL300 color [and 1200C]
9571 \end_layout
9572
9573 \begin_layout Description
9574 paintjet Alternate PaintJet color driver
9575 \end_layout
9576
9577 \end_deeper
9578 \begin_layout Itemize
9579 Stampanti Tektronix:
9580 \end_layout
9581
9582 \begin_deeper
9583 \begin_layout Description
9584 t4693d2 4693d color printer with 2 bits/RGB component [=6 bpp]
9585 \end_layout
9586
9587 \begin_layout Description
9588 t4693d4 4693d color printer with 4 bits/RGB component [=12 bpp]
9589 \end_layout
9590
9591 \begin_layout Description
9592 t4693d8 4693d color printer with 8 bits/RGB component [=24 bpp]
9593 \end_layout
9594
9595 \begin_layout Description
9596 tek4696 4695 and 4696 inkjet plotters
9597 \end_layout
9598
9599 \end_deeper
9600 \begin_layout Itemize
9601 Stampanti varie:
9602 \end_layout
9603
9604 \begin_deeper
9605 \begin_layout Description
9606 cp50 Mitsubishi CP50 color printer
9607 \end_layout
9608
9609 \begin_layout Description
9610 ibmpro IBM 9-pin Proprinter
9611 \end_layout
9612
9613 \begin_layout Description
9614 imagen Imagen ImPress printers
9615 \end_layout
9616
9617 \begin_layout Description
9618 jetp3852 IBM Jetprinter ink-jet color printer (Model #3852)
9619 \end_layout
9620
9621 \begin_layout Description
9622 m8510 C.Itoh M8510 printer
9623 \end_layout
9624
9625 \begin_layout Description
9626 necp6 NEC P6/P6+/P60 printers at 360 dpi 
9627 \end_layout
9628
9629 \begin_layout Description
9630 nwp533 Sony Microsystems NWP533 laser printer [Sony only]
9631 \end_layout
9632
9633 \begin_layout Description
9634 oce9050 OCE 9050 printer
9635 \end_layout
9636
9637 \begin_layout Description
9638 oki182 Okidata MicroLine 182
9639 \end_layout
9640
9641 \begin_layout Description
9642 okiibm Okidata MicroLine IBM-compatible printers
9643 \end_layout
9644
9645 \begin_layout Description
9646 r4081 Ricoh 4081 laser printer
9647 \end_layout
9648
9649 \begin_layout Description
9650 sj48 StarJet 48 inkjet printer
9651 \end_layout
9652
9653 \begin_layout Description
9654 sparc SPARCprinter
9655 \end_layout
9656
9657 \begin_layout Description
9658 xes Xerox XES printers (2700, 3700, 4045, etc.)
9659 \end_layout
9660
9661 \end_deeper
9662 \begin_layout Standard
9663 Se il pacchetto Ghostscript che avete nella vostra distribuzione non include
9664  la vostra stampante potete sempre scaricarvi il codice e compilarvelo da
9665  soli.
9666  Se la vostra stampante non è 
9667 \emph on
9668 direttamente
9669 \emph toggle
9670  supportata da Ghostscript, provate a scegliere una compatibile.
9671 \end_layout
9672
9673 \begin_layout Standard
9674 Notate che alcune stampanti richiedono comandi speciali.
9675  Ad esempio il driver 
9676 \family typewriter
9677 stcolor
9678 \family default
9679  richiede che il file 
9680 \family typewriter
9681 stcolor.ps
9682 \family default
9683  sia letto prima dell'input file.
9684  Vi conviene leggere la documentazione di Ghostscript per i dettagli.
9685 \end_layout
9686
9687 \begin_layout Standard
9688 Poi, create il filtro.
9689  Suggeriamo di dargli il nome 
9690 \begin_inset Quotes eld
9691 \end_inset
9692
9693
9694 \emph on
9695 pname
9696 \family typewriter
9697 \emph default
9698 .filter
9699 \family default
9700
9701 \begin_inset Quotes erd
9702 \end_inset
9703
9704 , dove
9705 \begin_inset Quotes eld
9706 \end_inset
9707
9708
9709 \emph on
9710 pname
9711 \emph default
9712
9713 \begin_inset Quotes erd
9714 \end_inset
9715
9716  è il nome che avete dato alla stampante nel file 
9717 \family typewriter
9718 printcap
9719 \family default
9720 .
9721  Suggeriamo inoltre di mettere lo script di filtro nella directory di spool
9722  della stampante.
9723  Il filtro dovrebbe contenere quanto segue:
9724 \end_layout
9725
9726 \begin_layout LyX-Code
9727 #!/bin/sh
9728 \end_layout
9729
9730 \begin_layout LyX-Code
9731 /usr/bin/gs -q -dSAFER  -dNOPAUSE -sDEVICE=
9732 \family roman
9733 \emph on
9734 devname
9735 \family default
9736 \emph default
9737  
9738 \backslash
9739
9740 \end_layout
9741
9742 \begin_layout LyX-Code
9743 [-r
9744 \family roman
9745 \emph on
9746 ResNum
9747 \family default
9748 \emph default
9749  
9750 \family roman
9751 \emph on
9752 ExtraOptions
9753 \family default
9754 \emph default
9755 ] -sOutputFile=- [
9756 \family roman
9757 \emph on
9758 precmd
9759 \family default
9760 \emph default
9761 .ps] -
9762 \end_layout
9763
9764 \begin_layout Standard
9765 dove 
9766 \emph on
9767 devname
9768 \emph default
9769  è il nome del dispositivo Ghostscript; 
9770 \emph on
9771 ResNum 
9772 \emph default
9773 è la risoluzione che volete usare;s the resolution you want to use; 
9774 \emph on
9775 ExtraOptions
9776 \emph default
9777  indica ogni opzione addizionale passata a Ghostscript; e 
9778 \begin_inset Quotes eld
9779 \end_inset
9780
9781
9782 \emph on
9783 precmd
9784 \emph default
9785 .
9786 \family typewriter
9787 ps
9788 \family default
9789
9790 \begin_inset Quotes erd
9791 \end_inset
9792
9793  è il nome del file che deve essere letto prima dell'input [come il file
9794  
9795 \family typewriter
9796 stcolor.ps
9797 \family default
9798  per il driver 
9799 \family typewriter
9800 stcolor
9801 \family default
9802 ].
9803  La 
9804 \begin_inset Quotes eld
9805 \end_inset
9806
9807
9808 \family typewriter
9809
9810 \backslash
9811
9812 \family default
9813
9814 \begin_inset Quotes erd
9815 \end_inset
9816
9817  spezza il comando in linee multiple.
9818 \end_layout
9819
9820 \begin_layout Standard
9821 Notate che gli esempi fatti assumono che 
9822 \family typewriter
9823 gs
9824 \family default
9825  sia nella directory 
9826 \family typewriter
9827 /usr/bin
9828 \family default
9829 .
9830  Il vostro sistema potrebbe avere una configurazione diversa.
9831 \end_layout
9832
9833 \begin_layout Standard
9834 Differenti drivers Ghostscript trattano l'argomento 
9835 \begin_inset Quotes eld
9836 \end_inset
9837
9838
9839 \family typewriter
9840 -r
9841 \family default
9842
9843 \begin_inset Quotes erd
9844 \end_inset
9845
9846  differentemente.
9847  Alcuni cercano un numero singolo, ad esempio, 
9848 \begin_inset Quotes eld
9849 \end_inset
9850
9851
9852 \family typewriter
9853 -r600
9854 \family default
9855
9856 \begin_inset Quotes erd
9857 \end_inset
9858
9859 .
9860  Altri vogliono risoluzioni DPI separate per le direzioni x e y, es.
9861  
9862 \begin_inset Quotes eld
9863 \end_inset
9864
9865
9866 \family typewriter
9867 -r360x360
9868 \family default
9869
9870 \begin_inset Quotes erd
9871 \end_inset
9872
9873 .
9874  Il driver della stampante può avere altre opzioni, quindi è meglio consultare
9875  la documentazione di Ghostscript per maggiori informazioni.
9876 \end_layout
9877
9878 \begin_layout Standard
9879 Dopo che avete creato il printer filter, usate 
9880 \begin_inset Quotes eld
9881 \end_inset
9882
9883
9884 \family typewriter
9885 chmod a+x
9886 \family default
9887
9888 \begin_inset Quotes erd
9889 \end_inset
9890
9891  sullo script file per renderlo eseguibile.
9892  [dovete essere root per farlo].
9893 \end_layout
9894
9895 \begin_layout Standard
9896 Ecco un esempio print file Ghostscript, usato da 
9897 \noun on
9898 John Weiss
9899 \noun default
9900  per la sua Epson Stylus Color IIs:
9901 \end_layout
9902
9903 \begin_layout LyX-Code
9904 #!/bin/sh
9905 \end_layout
9906
9907 \begin_layout LyX-Code
9908 /usr/bin/gs -q -dSAFER -sDEVICE=stcolor 
9909 \backslash
9910
9911 \end_layout
9912
9913 \begin_layout LyX-Code
9914 -r360x360 -sDithering=fsmono 
9915 \backslash
9916
9917 \end_layout
9918
9919 \begin_layout LyX-Code
9920 -dNOPAUSE -dnoWeave 
9921 \backslash
9922
9923 \end_layout
9924
9925 \begin_layout LyX-Code
9926 -sOutputFile=- stcolor.ps -
9927 \end_layout
9928
9929 \begin_layout Standard
9930 Questo filtro genera un output monocromatico a 360dpi su una Epson Stylus
9931  Color IIs.
9932 \begin_inset Foot
9933 status collapsed
9934
9935 \begin_layout Standard
9936 Nota da 
9937 \noun on
9938 John Weiss
9939 \noun default
9940 : Questa è la mia stampante ps.
9941  Io uso un filtro simile sulla stampante 
9942 \family typewriter
9943 draft
9944 \family default
9945 , che ha l'opzione 
9946 \family typewriter
9947 -r180x180
9948 \family default
9949  invece di quello che avete visto.
9950  E per la mia stampante 
9951 \family typewriter
9952 color
9953 \family default
9954 , uso un valore differente dell'opzione 
9955 \family typewriter
9956 -sDithering
9957 \family default
9958 .
9959 \end_layout
9960
9961 \end_inset
9962
9963
9964 \end_layout
9965
9966 \begin_layout Subsection
9967 Se Già avete una Stampante PostScript®\SpecialChar \ldots{}
9968
9969 \end_layout
9970
9971 \begin_layout Standard
9972 Molte stampanti laser moderne oggi hanno il supporto per PostScript®.
9973  Su alcune stampanti laser, PostScript® è attualmente il linguaggio nativo
9974  della stampante.
9975  Se avete una stampante, non avete bisogno del filtro e potete passare un
9976  file PostScript® direttamente alla stampante.
9977  Di contro, se volete stampare un file di testo, avrete comunque bisogno
9978  di formattarlo in qualche modo in PostScript®.
9979 \end_layout
9980
9981 \begin_layout Standard
9982 Siamo a conoscenza di tre programmi che traducono il testo ASCII in PostScript®:
9983  
9984 \family typewriter
9985 nenscript
9986 \family default
9987
9988 \family typewriter
9989 a2ps
9990 \family default
9991 , e 
9992 \family typewriter
9993 mpage
9994 \family default
9995 .
9996  
9997 \family typewriter
9998 mpage
9999 \family default
10000  possono anche stampare pagine multiple su un singolo foglio di carta.
10001  Dovete quindi creare uno script di filtro usando uno di questi programmi
10002  per la stampante 
10003 \family typewriter
10004 lp
10005 \family default
10006 .
10007  [La stampante
10008 \family typewriter
10009  lp
10010 \family default
10011  è tradizionalmente il nome della stampante che stampa file di testo ASCII.]
10012  Leggete il 
10013 \family typewriter
10014 Printing-HOWTO
10015 \family default
10016  per maggiori informazioni.
10017 \end_layout
10018
10019 \begin_layout Section
10020 Il Demone Print Spool, 
10021 \family typewriter
10022 lpd
10023 \end_layout
10024
10025 \begin_layout Standard
10026 Il programma che generalmente fa lo spooling e la stampa dei files è 
10027 \family typewriter
10028 lpd
10029 \family default
10030 .
10031  E' anche il programma che legge il file 
10032 \family typewriter
10033 /etc/printcap
10034 \family default
10035 .
10036  Da qualche parte nei vostri scripts di bootup,
10037 \begin_inset Foot
10038 status collapsed
10039
10040 \begin_layout Standard
10041 Alcune macchine tengono i loro scripts di bootup nella directory 
10042 \family typewriter
10043 /etc/rc.d
10044 \family default
10045 .
10046  Altri usano 
10047 \family typewriter
10048 /etc/init.d
10049 \family default
10050 .
10051  Dovete capire da voi che sistema è usato.
10052 \end_layout
10053
10054 \end_inset
10055
10056  dovete eseguire 
10057 \family typewriter
10058 lpd
10059 \family default
10060  per iniziare lo spooling ad ogni avvio del sistema.
10061  Potete anche eseguire 
10062 \family typewriter
10063 lpd
10064 \family default
10065  come un job di backgroung dalla linea di comando se loggate come root.
10066  
10067 \end_layout
10068
10069 \begin_layout Standard
10070 Una volta che
10071 \family typewriter
10072  lpd
10073 \family default
10074  è in esecuzione sul vostro sistema, potete controllare il suo comportamento
10075  e quello del print spool usando il comando 
10076 \family typewriter
10077 lpc
10078 \family default
10079 .
10080  Ancora una volta, dovete essere root per pare ciò.
10081 \end_layout
10082
10083 \begin_layout Section
10084 Assemblando il Tutto
10085 \end_layout
10086
10087 \begin_layout Standard
10088 Concluderemo questo mini-HOWTO con i passaggi che dovete seguire per avere
10089  un setup minimale.
10090  Quando avrete finito, avrete due stampanti, una chiamata 
10091 \begin_inset Quotes eld
10092 \end_inset
10093
10094
10095 \family typewriter
10096 lp
10097 \family default
10098
10099 \begin_inset Quotes erd
10100 \end_inset
10101
10102  per stampare testoASCII, e una seconda chiamata 
10103 \begin_inset Quotes eld
10104 \end_inset
10105
10106
10107 \family typewriter
10108 ps
10109 \family default
10110
10111 \begin_inset Quotes erd
10112 \end_inset
10113
10114  per i files PostScript®.
10115  Il file filtro per la stampante 
10116 \begin_inset Quotes eld
10117 \end_inset
10118
10119
10120 \family typewriter
10121 ps
10122 \family default
10123
10124 \begin_inset Quotes erd
10125 \end_inset
10126
10127  [incluso sotto] funziona su ogni stampante compatibile Epson [ovvero pressocchè
10128  la totalità delle stampanti dot-matrix attualmente in commercio], usando
10129  la risoluzione di stampa di default.
10130 \end_layout
10131
10132 \begin_layout Enumerate
10133 Entrate come 
10134 \begin_inset Quotes eld
10135 \end_inset
10136
10137 root
10138 \begin_inset Quotes erd
10139 \end_inset
10140
10141  o usate 
10142 \begin_inset Quotes eld
10143 \end_inset
10144
10145
10146 \family typewriter
10147 su root
10148 \family default
10149
10150 \begin_inset Quotes erd
10151 \end_inset
10152
10153 .
10154  
10155 \end_layout
10156
10157 \begin_layout Enumerate
10158 Eseguite i seguenti comandi:
10159 \end_layout
10160
10161 \begin_deeper
10162 \begin_layout Enumerate
10163
10164 \family typewriter
10165 cd /var/spool
10166 \end_layout
10167
10168 \begin_layout Enumerate
10169
10170 \family typewriter
10171 mkdir lpd
10172 \family default
10173  
10174 \end_layout
10175
10176 \begin_deeper
10177 \begin_layout Standard
10178 [se non esiste già]
10179 \end_layout
10180
10181 \end_deeper
10182 \begin_layout Enumerate
10183
10184 \family typewriter
10185 chgrp lp lpd
10186 \end_layout
10187
10188 \begin_deeper
10189 \begin_layout Standard
10190 [potreste dover usare 
10191 \begin_inset Quotes eld
10192 \end_inset
10193
10194
10195 \family typewriter
10196 daemon
10197 \family default
10198
10199 \begin_inset Quotes erd
10200 \end_inset
10201
10202  al posto di 
10203 \begin_inset Quotes eld
10204 \end_inset
10205
10206
10207 \family typewriter
10208 lp
10209 \family default
10210
10211 \begin_inset Quotes erd
10212 \end_inset
10213
10214 ]
10215 \end_layout
10216
10217 \end_deeper
10218 \begin_layout Enumerate
10219
10220 \family typewriter
10221 cd lpd
10222 \end_layout
10223
10224 \begin_layout Enumerate
10225
10226 \family typewriter
10227 mkdir lp ps
10228 \end_layout
10229
10230 \begin_deeper
10231 \begin_layout Standard
10232 [fatelo solo se queste directory non esistono già]
10233 \end_layout
10234
10235 \end_deeper
10236 \begin_layout Enumerate
10237
10238 \family typewriter
10239 touch lp/errs ps/errs
10240 \end_layout
10241
10242 \begin_layout Enumerate
10243
10244 \family typewriter
10245 chgrp daemon lp ps lp/errs ps/errs
10246 \end_layout
10247
10248 \end_deeper
10249 \begin_layout Enumerate
10250 Ora editate il file 
10251 \family typewriter
10252 /etc/printcap
10253 \end_layout
10254
10255 \begin_deeper
10256 \begin_layout Enumerate
10257 Se il file esiste, quindi\SpecialChar \ldots{}
10258
10259 \end_layout
10260
10261 \begin_deeper
10262 \begin_layout Enumerate
10263 \SpecialChar \ldots{}
10264 rinominate la vecchia versione in qualcosa tipo 
10265 \begin_inset Quotes eld
10266 \end_inset
10267
10268
10269 \family typewriter
10270 /etc/printcap.orig
10271 \family default
10272
10273 \begin_inset Quotes erd
10274 \end_inset
10275
10276
10277 \end_layout
10278
10279 \begin_layout Enumerate
10280 \SpecialChar \ldots{}
10281 oppure, commentate tutto il file mettendo 
10282 \begin_inset Quotes eld
10283 \end_inset
10284
10285
10286 \family typewriter
10287 #
10288 \family default
10289
10290 \begin_inset Quotes erd
10291 \end_inset
10292
10293  all'inizio di ogni riga.
10294 \end_layout
10295
10296 \end_deeper
10297 \begin_layout Enumerate
10298 Mettete quanto segue in 
10299 \family typewriter
10300 /etc/printcap
10301 \family default
10302 :
10303 \end_layout
10304
10305 \begin_deeper
10306 \begin_layout LyX-Code
10307 lp|Text printer:
10308 \backslash
10309
10310 \end_layout
10311
10312 \begin_layout LyX-Code
10313 :lp=/dev/lp1:
10314 \backslash
10315
10316 \end_layout
10317
10318 \begin_layout LyX-Code
10319 :sd=/var/spool/lpd/lp:
10320 \backslash
10321
10322 \end_layout
10323
10324 \begin_layout LyX-Code
10325 :lf=/var/spool/lpd/lp/errs:
10326 \backslash
10327
10328 \end_layout
10329
10330 \begin_layout LyX-Code
10331 :mx#0:sh:sf:
10332 \newline
10333
10334 \end_layout
10335
10336 \begin_layout LyX-Code
10337 ps|Postscript printer:
10338 \backslash
10339
10340 \end_layout
10341
10342 \begin_layout LyX-Code
10343 :lp=/dev/lp1:
10344 \backslash
10345
10346 \end_layout
10347
10348 \begin_layout LyX-Code
10349 :sd=/var/spool/lpd/ps:
10350 \backslash
10351
10352 \end_layout
10353
10354 \begin_layout LyX-Code
10355 :lf=/var/spool/lpd/ps/errs:
10356 \backslash
10357
10358 \end_layout
10359
10360 \begin_layout LyX-Code
10361 :if=/var/spool/lpd/ps/ps.filter:
10362 \backslash
10363
10364 \end_layout
10365
10366 \begin_layout LyX-Code
10367 :mx#0:sh:sf:
10368 \end_layout
10369
10370 \end_deeper
10371 \begin_layout Enumerate
10372 ASSICURATEVI CHE:
10373 \end_layout
10374
10375 \begin_deeper
10376 \begin_layout Enumerate
10377 le linee bianche tra due entrate non abbiano nulla al loro interno, nemmeno
10378  spazi bianchi.
10379 \end_layout
10380
10381 \begin_layout Enumerate
10382 niente segue il carattere 
10383 \begin_inset Quotes eld
10384 \end_inset
10385
10386
10387 \family typewriter
10388
10389 \backslash
10390
10391 \family default
10392
10393 \begin_inset Quotes erd
10394 \end_inset
10395
10396  alla fine di ogni linea.
10397 \end_layout
10398
10399 \end_deeper
10400 \end_deeper
10401 \begin_layout Enumerate
10402 Poi, create lo script filtro per la stampante 
10403 \begin_inset Quotes eld
10404 \end_inset
10405
10406
10407 \family typewriter
10408 ps
10409 \family default
10410
10411 \begin_inset Quotes erd
10412 \end_inset
10413
10414 .
10415 \end_layout
10416
10417 \begin_deeper
10418 \begin_layout Enumerate
10419 Mettete quanto segue nel file 
10420 \family typewriter
10421 /var/spool/lpd/ps/ps.filter
10422 \family default
10423 :
10424 \end_layout
10425
10426 \begin_deeper
10427 \begin_layout LyX-Code
10428 #!/bin/sh
10429 \end_layout
10430
10431 \begin_layout LyX-Code
10432 /usr/bin/gs -q -dSAFER -dNOPAUSE 
10433 \backslash
10434
10435 \end_layout
10436
10437 \begin_layout LyX-Code
10438 -sDEVICE=epson -sOutputFile=- -
10439 \end_layout
10440
10441 \begin_layout Standard
10442 [Se non avete una stampantedot-matrix compatibile Epson, rimpiazzate 
10443 \begin_inset Quotes eld
10444 \end_inset
10445
10446
10447 \family typewriter
10448 epson
10449 \family default
10450
10451 \begin_inset Quotes erd
10452 \end_inset
10453
10454  con l'appropriato nome del dispositivo Ghostscript.
10455  Inoltre, se il programma 
10456 \family typewriter
10457 gs
10458 \family default
10459  non è in 
10460 \family typewriter
10461 /usr/bin
10462 \family default
10463 , mettete l'indirizzo corretto.]
10464 \end_layout
10465
10466 \end_deeper
10467 \begin_layout Enumerate
10468 Eseguite questi comandi:
10469 \end_layout
10470
10471 \begin_deeper
10472 \begin_layout Enumerate
10473
10474 \family typewriter
10475 chmod a+x /var/spool/lpd/ps/ps.filter
10476 \end_layout
10477
10478 \begin_layout Enumerate
10479
10480 \family typewriter
10481 chgrp daemon /var/spool/lpd/ps/ps.filter
10482 \end_layout
10483
10484 \end_deeper
10485 \end_deeper
10486 \begin_layout Enumerate
10487 Infine, lanciate il demone della stampante, 
10488 \family typewriter
10489 lpd
10490 \family default
10491 :
10492 \end_layout
10493
10494 \begin_deeper
10495 \begin_layout Enumerate
10496 Se non è già in uso, usate 
10497 \begin_inset Quotes eld
10498 \end_inset
10499
10500
10501 \family typewriter
10502 lpd &
10503 \family default
10504
10505 \begin_inset Quotes erd
10506 \end_inset
10507
10508  per avviarlo.
10509 \end_layout
10510
10511 \begin_layout Enumerate
10512 Se è già in esecuzione, eseguite 
10513 \begin_inset Quotes eld
10514 \end_inset
10515
10516
10517 \family typewriter
10518 lpc
10519 \family default
10520
10521 \begin_inset Quotes erd
10522 \end_inset
10523
10524 .
10525  Poi, da dentro 
10526 \family typewriter
10527 lpc
10528 \family default
10529 , date un 
10530 \begin_inset Quotes eld
10531 \end_inset
10532
10533
10534 \family typewriter
10535 restart all
10536 \family default
10537
10538 \begin_inset Quotes erd
10539 \end_inset
10540
10541  e un 
10542 \begin_inset Quotes eld
10543 \end_inset
10544
10545
10546 \family typewriter
10547 up all
10548 \family default
10549
10550 \begin_inset Quotes erd
10551 \end_inset
10552
10553  per attivare i nuovi spools di stampa.
10554  [Il comando 
10555 \begin_inset Quotes eld
10556 \end_inset
10557
10558
10559 \family typewriter
10560 quit
10561 \family default
10562
10563 \begin_inset Quotes erd
10564 \end_inset
10565
10566  abbandona 
10567 \family typewriter
10568 lpc
10569 \family default
10570 ].
10571 \end_layout
10572
10573 \begin_layout Enumerate
10574 Assicuratevi di aggiungere il comando appropriato ai vostri scripts di bootup
10575  in modo che 
10576 \family typewriter
10577 lpd
10578 \family default
10579  sia eseguito ad ogni avvio del sistema.
10580 \end_layout
10581
10582 \end_deeper
10583 \begin_layout Enumerate
10584 Potete ora uscire da root e testare le vostre nuove stampanti per assicurarvi
10585  che funzionino.
10586  Date il comando 
10587 \begin_inset Quotes eld
10588 \end_inset
10589
10590
10591 \family typewriter
10592 lpr -Plp
10593 \family default
10594
10595 \begin_inset Quotes erd
10596 \end_inset
10597
10598  seguito dal nome di un piccolo file di testo ASCIIper verificare che la
10599  stampante 
10600 \begin_inset Quotes eld
10601 \end_inset
10602
10603
10604 \family typewriter
10605 lp
10606 \family default
10607
10608 \begin_inset Quotes erd
10609 \end_inset
10610
10611  funzioni.
10612  Poi usate 
10613 \begin_inset Quotes eld
10614 \end_inset
10615
10616
10617 \family typewriter
10618 lpr -Pps
10619 \family default
10620
10621 \begin_inset Quotes erd
10622 \end_inset
10623
10624  seguito dal nome di un piccolo file PostScript® per testare la stampante
10625  
10626 \begin_inset Quotes eld
10627 \end_inset
10628
10629
10630 \family typewriter
10631 ps
10632 \family default
10633
10634 \begin_inset Quotes erd
10635 \end_inset
10636
10637 .
10638  
10639 \end_layout
10640
10641 \begin_layout Standard
10642 Un avvertimento: quando testate 
10643 \begin_inset Quotes eld
10644 \end_inset
10645
10646
10647 \family typewriter
10648 ps
10649 \family default
10650
10651 \begin_inset Quotes erd
10652 \end_inset
10653
10654 , se qualcosa va storto, il sistema potrebbe passare dell'iimondizia alla
10655  stampante.
10656  Se avviene questo, spegnete la stampante ed usate i comandi 
10657 \family typewriter
10658 lpq
10659 \family default
10660  e 
10661 \family typewriter
10662 lprm
10663 \family default
10664  per killare il print job.
10665  Dopo aver killato il print job, potete riaccendere la stampante.
10666 \end_layout
10667
10668 \begin_layout Standard
10669 Se nessuna di queste stampanti funziona, controllate di nuovo tutto, consultate
10670  le pagine 
10671 \family typewriter
10672 man
10673 \family default
10674  per 
10675 \family typewriter
10676 printcap
10677 \family default
10678  e 
10679 \family typewriter
10680 lpd
10681 \family default
10682 , e leggete il 
10683 \family typewriter
10684 Printing-HOWTO
10685 \family default
10686  per aiuto.
10687 \end_layout
10688
10689 \begin_layout Standard
10690 Se tutto funziona, congratulazioni!
10691 \end_layout
10692
10693 \begin_layout Chapter
10694 Il materiale esterno
10695 \end_layout
10696
10697 \begin_layout Section
10698 Background
10699 \end_layout
10700
10701 \begin_layout Standard
10702 Una caratteristica spesso richiesta dagli utenti LyX è quella di interfacciare
10703  LyX con Xfig, Dia, o altre applicazioni specializzate nella produzioni
10704  di un certo tipo di diagrammi, figure, schemi e simili cose che possono
10705  essere rilevanti per il vostro documento.
10706  Prima in LyX era solo possibile includere immagini fisse, statiche, noiose
10707  con l'insieme figure, ma ci sono numerose limitazioni relative a questo
10708  approccio:
10709 \end_layout
10710
10711 \begin_layout Itemize
10712 Se volete cambiare la figura, dovete richiamare manualmente un programma
10713  esterno
10714 \end_layout
10715
10716 \begin_layout Itemize
10717 LyX non notifica i cambiamenti ai riferimenti dei files, così quello che
10718  è visualizzato sullo schermo può rapidamente diventare obsoleto, e questo
10719  è aggravato da una media di aggiornamenti dello schermo
10720 \end_layout
10721
10722 \begin_layout Itemize
10723 L'insieme delle figure supporta solo materiale PostScript
10724 \end_layout
10725
10726 \begin_layout Itemize
10727 L'insieme delle figure non fornisce nessun meccanismo per copiare con differenti
10728  formati esportati come DocBook, HTML, o raw Ascii
10729 \end_layout
10730
10731 \begin_layout Standard
10732 L'insieme del materiale esterno prova a risolvere tutti questi problemi
10733 \begin_inset Foot
10734 status collapsed
10735
10736 \begin_layout Standard
10737 Anche se l'insieme delle figure non può risolvere tutti i problemi, è ancora
10738  valutabile perchè fornisce un'anteprima in linea della figura, e supporta
10739  trasformazioni geometriche avanzate con una semplice interfaccia utente.
10740 \end_layout
10741
10742 \end_inset
10743
10744 .
10745  Effettua ciò offrendo un metodo generale per interfacciare LyX alle applicazion
10746 i esterne.
10747  Invece di introdurre una lunga lista di insiemi ritagliati per ogni specifica
10748  applicazione, abbiamo scelto di sacrificare la visualizzazione in line
10749  del materiale incluso al fine di fornire uno strumento generale per affrontare
10750  una grande quantità di applicazioni.
10751  Il risultato è l'insieme esterno.
10752  Un insieme esterno presenta se stesso nel documento semplicemente come
10753  un bottone, ma non lasciatevi ingannare.
10754  Quando ci cliccate sopra, apparirà una finestra di dialogo che vi permetterà
10755  di scegliere esattamente quale materiale includere, è più avanti imparerete
10756  che in realtà è un potente meccanismo che può risolvere molti problemi
10757  ed anche di più.
10758 \end_layout
10759
10760 \begin_layout Section
10761 Come funziona?
10762 \end_layout
10763
10764 \begin_layout Standard
10765 L'insieme esterno è basato sul concetto di 
10766 \emph on
10767 template
10768 \emph default
10769 .
10770  Un template è una specificazione di come LyX dovrebbe interfacciarsi con
10771  un certo tipo di materiale.
10772  In genere LyX viene distribuito con una serie di template predefiniti per
10773  figure XFig, diagrammi Dia, varie immagini in formato raster, gnuplot,
10774  ed oltre.
10775  Potete controllare la lista attuale attraverso il comando 
10776 \family sans
10777 Insert\SpecialChar \menuseparator
10778 Insert external material.
10779  
10780 \family default
10781 Inoltre, è possibile adattare i vostri personali template per supportare
10782  uno specifico tipo di materiale.
10783  Più avanti descriveremo più in dettaglio gli elementi coinvolti, e si spera
10784  che possiate creare dei template che poi ci manderete per includerli nelle
10785  successive versioni di LyX.
10786 \end_layout
10787
10788 \begin_layout Standard
10789 Un'altra idea di base dell'insieme esterno è di distinguere tra il file
10790  originale che serve come base per il materiale finale e il file prodotto
10791  che è incluso nel vostro documento esportato o stampato.
10792  Per esempio, consideriamo il caso di una figura prodotta con XFig.
10793  L'applicazione XFig lavora su un file originale con estensione 
10794 \family typewriter
10795 .fig
10796 \family default
10797 .
10798  All'interno di XFig create e modificate la vostra figura, e quando avete
10799  finito salvate il file 
10800 \family typewriter
10801 fig
10802 \family default
10803 .
10804  Quando vorrete includere la figura nel vostro documento, basta richiamare
10805  
10806 \family typewriter
10807 transfig
10808 \family default
10809  al fine di creare un file PostScript che può essere prontamente incluso
10810  nel vostro file LaTeX.
10811  In questo caso, il file 
10812 \family typewriter
10813 .fig
10814 \family default
10815  è il file originale, è il file PostScript è quello prodotto.
10816 \end_layout
10817
10818 \begin_layout Standard
10819 Questa distinzione è importante al fine di effettuare l'aggiornamento del
10820  materiale mentre si è in fase di scrittura del documento.
10821  Inoltre, ci fornisce quella flessibilità che è necessaria per supportare
10822  molteplici formati di export.
10823  Ad esempio, nel caso di un file Ascii, non è esattamente una buona idea
10824  quella di includere la figura come un raw PostScript; dovreste invece preferire
10825  l'includere un riferimento alla figura oppure provare a richiamare qualche
10826  convertitore grafico da Ascii per rendere il risultato finale accettabile.
10827  L'insieme materiale esterno vi permette di farlo, perchè è parametrizzato
10828  su differenti formati di export supportati da LyX.
10829 \end_layout
10830
10831 \begin_layout Standard
10832 Oltre a supportare la produzione di differenti prodotti in relazione al
10833  formato esportato, l'insieme esterno supporta una stretta integrazione
10834  con le applicazioni di editing e di visualizzazione.
10835  Nel caso di una figura XFig, potete richiamare xfig sul file originale
10836  con un singolo clic all'interno di LyX oltre che avere un'anteprima del
10837  file PostScript prodotto con ghostview sempre con un semplice clic.
10838  Non c'è più bisogno di smanettare con la riga di comando o con il browser
10839  per trovare e manipolare i files originali o quelli prodotti.
10840  In questo modo potrete finalmente utilizzare a pieno molte differenti applicazi
10841 oni che risultano rilevanti nella scrittura di un documento, al fine di
10842  essere maggiormente produttivi.
10843 \end_layout
10844
10845 \begin_layout Standard
10846 Quindi, in definitiva, LyX ha informazioni circa un numero di programmi
10847  differenti da usare dietro le quinte per realizzare tutto questo marchingegno.
10848  Questa informazione, infatti, è esattamente ciò che è contenuto nei templates.
10849  Per ogni template, c'è associata una lista di linee di comando usate per
10850  irchiamare le applicazioni, convertire il file originale nel file prodotto
10851  ed altro ancora.
10852  Questo meccanismo permette all'utente avanzato di estendere le capacità
10853  di LyX senza smanettare col codice sorgente.
10854  Questo richiede un imponente lavoro per definire tutti i differenti comandi
10855  e flags, ma fortunatamente, il team di LyX ha già fatto questo lavoro per
10856  voi!
10857 \end_layout
10858
10859 \begin_layout Standard
10860 Ma prima che gli alberi diventino grattacieli, dobbiamo ammettere che abbiamo
10861  fatto alcuni piccole scorciatoie.
10862  Siccome il set esterno può produrre molti tipi di files prodotti per i
10863  relativi formati di export, ci si potrebbe anche aspettare che sia possibile
10864  vedere l'anteprima di ogni prodotto.
10865  Ma, ancora una voltea, il team di LyX ha deciso per una linea che mantenesse
10866  l'interfaccia utente semplice.
10867  Per evitare di mettere un pulsante per ogni formato di file esportato,
10868  si è deciso di introdurre il concetto di formato primario di file ed avere
10869  solo un bottone.
10870  Quando si preme View result nella finestra dell'insieme esterno, verrà
10871  visualizzata un'immagine del file prodotto nel formato di file primario.
10872  E questo è specificato dalla vostra classe di documento.
10873  Per la maggior parte delle classi di documento il formato primario di file
10874  è LaTeX, ma per la classe di documento DocBook, il formato di file primario
10875  è DocBook.
10876  Così quando si visualizza il file prodotto, ricordatevi che sarà solo un'antepr
10877 ima di quello che sarà il risultato principale.
10878  Se volete vedere come lavorano gli altri formati, dovete esportarli e fare
10879  l'anteprima manualmente.
10880 \end_layout
10881
10882 \begin_layout Section
10883 La finestra di dialogo Materiale Esterno
10884 \end_layout
10885
10886 \begin_layout Standard
10887 Inserite un insieme esterno dal menu 
10888 \family sans
10889 Insert
10890 \family default
10891 .
10892  Quando fate questo, un bottone viene inserito nel vostro documento e viene
10893  mostrata la finestra di dialogo dell'insieme materiale esterno.
10894  Questa finestra vi permette di descrivere esattamente quale materiale deve
10895  essere incluso.
10896  Inoltre, fornisce un accesso alle applicazioni esterne per vedere, editare
10897  e produrre il materiale usato nel file risultante.
10898 \end_layout
10899
10900 \begin_layout Standard
10901 In cima a questa finestra, c'è una lista a cascata dove è possibile scegliere
10902  quale template l'insieme deve usare.
10903  Immediatamente sotto troviamo un'area di testo con una descrizione del
10904  template scelto che dovrebbe aiutarvi ad usarlo.
10905  Più spesso, fornisce oltre ad una descrizione del template anche alcune
10906  indicazioni su come parametrizzarne l'uso.
10907  Ancora più in basso si trova un campo di inserimento di nome di file con
10908  un bottone browse che permette di scegliere quale file deve essere incluso.
10909  Questo campo specifica il file originale.
10910  Siccome il file prodotto è generato automaticamente quando se ne ha bisogno,
10911  non c'è motivo per consentirne l'accesso nell'interfaccia utente.
10912 \end_layout
10913
10914 \begin_layout Standard
10915 In basso alla finestra di dialogo troverete una casella di immissione chiamata
10916  
10917 \family sans
10918 parameters
10919 \family default
10920 .
10921  Questo box è generalmente usato per parametrizzare uno specifico template.
10922  L'uso specifico dovrebbe essere indicato e chiarito nella casella di definizion
10923 e e aiuto associata al template, ma in genere permette tipicamente di definire
10924  le variazioni su come il file prodotto dovrebbe essere generato.
10925 \end_layout
10926
10927 \begin_layout Standard
10928 Nella parte destra della finestra ci sono tre bottoni: 
10929 \family sans
10930 Edit file
10931 \family default
10932
10933 \family sans
10934 View result
10935 \family default
10936  e 
10937 \family sans
10938 Update result
10939 \family default
10940 .
10941  Questi rispettivamente permettono di editare il vostro file originale con
10942  l'applicazione di editing opportuna, vedere il file prodotto come incluso
10943  nel formato primario di documento, ed infine forzare un aggiornamento del
10944  materiale risultante nel formato primario.
10945  Normalmente il bottone 
10946 \family sans
10947 Update result
10948 \family default
10949  sarà disabilitato perchè molti template sono configurati per aggiornare
10950  automaticamente il file prodotto quando ce ne è bisogno.
10951  In questi casi non c'è bisogno di forzare la produzione di un nuovo file
10952  prodotto.
10953  Tuttavia alcuni templates sono configurati per non produrre automaticamente
10954  il prodotto residuale, in quanto il costo di produrre un file prodotto
10955  potrebbe essere così grande da renderne impossibile l'attuazione.
10956  Questi insiemi sono conosciuti come insiemi 
10957 \emph on
10958 manuali 
10959 \emph default
10960 esterni.
10961  In questi casi potete usare il bottone per forzare la produzione del file
10962  prodotto proprio quando ne avete bisogno, controllando così il lavoro che
10963  viene fatto.
10964  Infatti, è sotto la 
10965 \emph on
10966 vostra
10967 \emph default
10968  responsabilità fare questo per mantenere i files prodotti costantemente
10969  aggiornati: prima di stampare, prima di esportare, prima di visualizzare,
10970  ecc.
10971  Forse, in futuro, sarà possibile che LyX vi aiuti in questo compito.
10972  Sarebbe infatti simpatico poter usare un comando 
10973 \family sans
10974 Edit\SpecialChar \menuseparator
10975 Update all external inset
10976 \family default
10977  per aggiornare tutti gli insiemi esterni che usano un template manuale.
10978  Ma vi anticipiamo che potrebbe richiedere molto tempo per l'implementazione.
10979 \end_layout
10980
10981 \begin_layout Standard
10982 In basso alla finestra di dialogo troverete i soliti bottoni 
10983 \family sans
10984 OK
10985 \family default
10986  e 
10987 \family sans
10988 Cancel
10989 \family default
10990 .
10991  L'unica cosa utile da ricordare circa questi è che ogni cambiamento nel
10992  template, nome del file o parametri sono attualmente applicati quando si
10993  premono i bottoni 
10994 \family sans
10995 Edit file
10996 \family default
10997
10998 \family sans
10999 View result
11000 \family default
11001  e 
11002 \family sans
11003 Update result
11004 \family default
11005 .
11006  Questo implica che dopo aver usato uno di questi, potrete sono annullare
11007  i cambiamenti che sono stati effettuati attraverso quei bottoni premendo
11008  
11009 \family sans
11010 cancel
11011 \family default
11012 .
11013  Fortunatamente, potete usare la funzione undo generale in LyX per ritornare
11014  allo stato precedente.
11015 \end_layout
11016
11017 \begin_layout Section
11018 Esempi
11019 \end_layout
11020
11021 \begin_layout Standard
11022 In questa sezione, dovremmo includere alcuni esempi circa l'uso dell'insieme
11023  del materiale esterno.
11024  Questi esempi potrebbero includere:
11025 \end_layout
11026
11027 \begin_layout Itemize
11028 Immagini raster esterne
11029 \end_layout
11030
11031 \begin_layout Itemize
11032 figure esterne XFig
11033 \end_layout
11034
11035 \begin_layout Itemize
11036 Diagrammi a scacchi
11037 \end_layout
11038
11039 \begin_layout Itemize
11040 Campioni di suoni
11041 \end_layout
11042
11043 \begin_layout Itemize
11044 Uso dei makefiles
11045 \end_layout
11046
11047 \begin_layout Itemize
11048 Templates LyX esterni ricorsivi
11049 \end_layout
11050
11051 \begin_layout Section
11052 Il file di configurazione external template
11053 \end_layout
11054
11055 \begin_layout Standard
11056 E' relativamente semplice aggiungere definizioni di template esterni a LyX.
11057  Tuttavia state attenti poichè fare queste cose in maniera approssimativa
11058  
11059 \emph on
11060 potrebbe
11061 \emph default
11062  probabilmente creare un buco di sicurezza facilmente sfruttabile.
11063  Così prima di procedere, leggete il successivo capitolo sulla sicurezza.
11064 \end_layout
11065
11066 \begin_layout Standard
11067 Dopo aver detto queste cose, vi incoraggiamo a farci pervenire ogni template
11068  interessante che create.
11069 \end_layout
11070
11071 \begin_layout Standard
11072 I templates sono definiti nel file 
11073 \family typewriter
11074 lib/external_template
11075 \family default
11076 .
11077  Forse, prima o poi qualcuno documenterà i contenuti dei templates e la
11078  sintassi usata per definirne di propri.
11079 \end_layout
11080
11081 \begin_layout Section
11082 Il meccanismo di sostituzione
11083 \end_layout
11084
11085 \begin_layout Standard
11086 Quando l'insieme del materiale esterno richiama un programma esterno, è
11087  fatto sulla base di un comando definito nel file di configurazione del
11088  template.
11089  Questi comandi possono contenere varie macro che vengono espanse prima
11090  dell'esecuzione.
11091  L'esecuzione avviene sempre nella directory del documento contenuto.
11092 \end_layout
11093
11094 \begin_layout Standard
11095 Inoltre, ogni volta che viene visualizzato un insieme esterno, il nome sarà
11096  prodotto dal meccanismo di sostituzione.
11097 \end_layout
11098
11099 \begin_layout Standard
11100 Le macro disponibili sono le seguenti:
11101 \end_layout
11102
11103 \begin_layout Description
11104 $$FName Il nome del file specificato nella finestra dell'insieme esterno.
11105 \end_layout
11106
11107 \begin_layout Description
11108 $$Basename Il nome del file senza estensione.
11109 \end_layout
11110
11111 \begin_layout Description
11112 $$Tempname Un nome e un indirizzo completo di un file temporaneo che sarà
11113  automaticamente cancellato quando si chiude il documento contenuto, oppure
11114  quando è cancellato l'insieme esterno.
11115 \end_layout
11116
11117 \begin_layout Description
11118 $$Contents("filename.ext") Questa macro espanderà il contenuto del file col
11119  nome 
11120 \family typewriter
11121 filename.ext
11122 \family default
11123 .
11124 \end_layout
11125
11126 \begin_layout Description
11127 $$Sysdir Questa macro espanderà all'indirizzo assoluto della directory di
11128  sistema.
11129  E' tipicamente usato per puntare i vari script di aiuto che sono inseriti
11130  in LyX
11131 \end_layout
11132
11133 \begin_layout Standard
11134 In aggiunta a questi gli strumenti espanderanno le variabili d'ambiente
11135  generali con una sintassi del tipo 
11136 \family typewriter
11137 ${PATH}
11138 \family default
11139 .
11140 \end_layout
11141
11142 \begin_layout Section
11143 Discussione sulla sicurezza
11144 \end_layout
11145
11146 \begin_layout Standard
11147 L'insieme del materiale esterno si interfaccia con molti programmi esterni
11148  e lo fa automaticamente, per questo vanno considerate le implicazioni di
11149  sicurezza di questo.
11150  In particolare, siccome avete l'opzione di includere dei vostri nomi dei
11151  file e/o stringhe di parametri, e questi vengono aperti in un comando,
11152  sembrerebbe che sia possibile creare un documento maligno che può eseguire
11153  comandi arbitrari quando un utente vede o stampa un documento.
11154  Questo lo vogliamo definitivamente evitare.
11155 \end_layout
11156
11157 \begin_layout Standard
11158 Tuttavia, dato che i comandi dei programmi esterni sono specificati solo
11159  nel file di configurazione del template, non ci sono problemi di sicurezza
11160  se LyX è configurato bene solo con templates sicuri.
11161  E' così perche i programmi esterni sono richiamati con la chiamata di sitema
11162  
11163 \family typewriter
11164 execvp
11165 \family default
11166  piuttosto che con 
11167 \family typewriter
11168 system
11169 \family default
11170 , quindi non è possibile eseguire comandi arbitrari dal file o dalla sezione
11171  dei parametri attraverso la shell.
11172 \end_layout
11173
11174 \begin_layout Standard
11175 Tutto ciò implica che siete limitati nelle stringhe di comando che potete
11176  usare nei template dei materiali esterni, In particolare canali e redirection
11177  non sono subito disponibili.
11178  Ciò dovrebbe essere così se LyX dovesse rimanere sicuro.
11179  Se volete usare alcune funzioni della shell, dovrete scrivere uno script
11180  sicuro per farlo in maniera controllata, dopodochè richimare lo script
11181  dalla linea di comando.
11182  Nella directory 
11183 \family typewriter
11184 lib/scripts
11185 \family default
11186  dell'installazione di LyX, potrete trovare uno script sicuro preconfezionato
11187  
11188 \family typewriter
11189 general_command_wrapper.py
11190 \family default
11191  che supporta la redirection di input e output.
11192  Questo può essere un esempio di come scrivere script di template sicuri.
11193  Per un esempio più avanzato che usa fork e simili, date uno sguardo allo
11194  script di conversione 
11195 \family typewriter
11196 pic2ascii.py
11197 \family default
11198 .
11199  
11200 \end_layout
11201
11202 \begin_layout Standard
11203 E' possibile progettare un template che interagisce direttamente con la
11204  shell, ma dato che questo potrebbe permettere ad un utente con cattive
11205  intenzioni di eseguire comandi arbitrari scivendo intelligenti filename
11206  e/o parametri, raccomandiamo in generale di usare solo script sicuri che
11207  lavorano solo con le chiamate di sistema 
11208 \family typewriter
11209 execvp
11210 \family default
11211  in maniera controllata.
11212  Naturalmente se si lavora in un ambiente controllato potrebbe essere allettante
11213  ritornare ad usare gli script di shell ordinari.
11214  Se lo fate state attenti poichè 
11215 \emph on
11216 andrete a creare
11217 \emph default
11218  un buco di sicurezza facilmente sfruttabile nel vostro sistema.
11219  Naturalmente è ragionevole che questi templates non sicuri non verranno
11220  mai inclusi nella distribuzione LyX standard, sebbene incoraggiamo le persone
11221  a sottoporre nuovi templates nella tradizione open source.
11222  Ma LyX come rilasciato nei canali ufficiali di distribuzioni non avrà mai
11223  tamplates non sicuri.
11224 \end_layout
11225
11226 \begin_layout Standard
11227 L'insieme del materiale esterno fornisce molta potenza, perciò dovete stare
11228  attenti a non introdurre elementi di azzardo sulla sicurezza a questa potenza.
11229  Un lieve errore in una singola riga di un semplice script può creare grandi
11230  problemi di sicurezza.
11231  Così, se non capite completamente questo tema, vi consigliamo di consultare
11232  un professionista della sicurezza oppure il team di sviluppo di LyX se
11233  avete domande sulle implicazioni di sicurezza circa uno script.
11234  E, ovviamente, fate questo prima di usare lo script in un ambiente non
11235  sicuro.
11236 \end_layout
11237
11238 \begin_layout Section
11239 Il futuro dell'insieme esterno
11240 \end_layout
11241
11242 \begin_layout Standard
11243 La corrente implementazione dell'insieme esterno èun costrutto potente e
11244  stabile che fornisce un accesso diretto alle parti più interne di LyX,
11245  ma come ogni caratteristca di LyX, dovrebbe essere sempre considerata un
11246  work-in-progress.
11247  Quando e se qualcuno ha il tempo di continuare a lavorarci su, ecco alcune
11248  direzioni generali che possono essere seguite:
11249 \end_layout
11250
11251 \begin_layout Itemize
11252 Supportare l'anteprima in linea in vari formati, piuttosto che il bottone
11253  di testo a cui si è obbligati attualmente.
11254 \end_layout
11255
11256 \begin_layout Itemize
11257 Supportare l'editing in linea attraverso l'uso di OpenParts o altri protocolli
11258  rilevanti.
11259 \end_layout
11260
11261 \begin_layout Itemize
11262 Estendere l'informazioni dinamica per avere campi di parametri opzionali
11263  per i comandi di conversione in tutti i formati di export, ed avere campi
11264  di parametri opzionali per ciò che è prodotto all'interno di tutti i differenti
11265  formati esportati.
11266  Al momento siamo costretti ad usare una sola stringa di parametri che è
11267  multiplata tra queste numerosi applicazioni.
11268  Inoltre un cambiamento come questo ci permetterebbe di liberarci delle
11269  strane restrizioni del formato principale.
11270 \end_layout
11271
11272 \begin_layout Itemize
11273 Estendere l'area di lavoro per fornire delle opzioni di personalizzazione
11274  più intelligenti in aggiunta alla piuttosto semplicistica stringa di parametri.
11275  Con un linguaggio di script adatto, sarà possibile implementare versioni
11276  user friendly di molti insiemi di personalizzazione che supportano una
11277  grande quantità di formati, pacchetti LaTeX, editors, ecc.
11278 \end_layout
11279
11280 \end_body
11281 \end_document