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