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