Re: Il colore di default

#5695
Up
0
Down
::

Ok; io mi sono limitato a seguire pedissequamente il manuale (vedere pagina 116) e proprio msplit.pdf (vedere pagina 6).

Il fatto e’ che il manuale e’ datato e vi sono sia errori di stampa che parti incomplete 😥
Le “note” tipo msplit sono solitamente piu’ aggiornate e precise: per esempio

… therefore exactly knows where to end coloring. Commands like \red on the other hand,
hook themselves into the grouping mechanism. As a result, their behaviour may interfere
with other mechanism, like automatic strut placement. Take the following text (here we use
the same magenta variant as on the cover):…

e

The main message here is that, when you apply color, you need to be aware of the fact that
this introduces (normally) invisible content. Therefore, in case of doubt, use the \color or
\startcolor command.

E’ un problema con il quale convivo: il lato positivo e’ che mi costringe a
provare le macro per vedere se funzionano come scritto (e se le ho capite 😉 ).

Per quanto riguarda i colori, un problema risieda nel fatto che il pdf si basa sulla pagina, mentre il TeX sul flusso di testo:
cosi’ ad esempio se si vuole che il testo sia di colore rosso, e’ semplice scrivere in context
`\starttext \startcolor[red] … your long text here \stopcolor\stoptext`
ma se il pdf risultante ha piu’ di una pagina, la macro \star|\stopcolor deve garantire che le risorse relative al colore rosso siano inserite in ogni pagina:
e questo senza interferire con cio’ che gia’ esiste, come il testo per testatine superiori ed inferiori etc.
Se a questo si aggiunge la possibilita’ di innestare la macro, si capisce che la cosa non e’ banale per il programmatore.

luigi

Go to top