29.05.2014 Views

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

So, effectively we set a box, and end up with:<br />

< whatsits (special, literal and.or mark) ><br />

< whatsits (special, literal and.or mark) ><br />

in the main vertical lost and that will interfere badly with spacing and friends.<br />

In MkIV however, a color switch, like a font switch does not leave any traces, it just sets<br />

a state. Anyway, keep in mind that there are some rather fundamental conceptual differences<br />

between the two appoaches.<br />

Let's end with an example that demonstrates the problem. We ll two boxes:<br />

\setbox0\hbox{RED {\blue blue} RED}<br />

\setbox2\hbox{RED {\blue blue} {\attributedcopy0} RED}<br />

We will ush these in the following lines:<br />

{unset \color[red]{red \CopyMe} unset<br />

\color[red]{red \hbox{red \CopyMe}} unset}<br />

{unset \color[red]{red \CopyMe} unset<br />

{\red red \hbox{red \CopyMe}} unset}<br />

{unset \color[red]{red \CopyMe} unset<br />

{\red red \setbox0\hbox{red \CopyMe}\box0} unset}<br />

{unset \color[red]{red \CopyMe} unset<br />

{\hbox{\red red \CopyMe}} unset}<br />

{\blue blue \color[red]{red \CopyMe} blue<br />

\color[red]{red \hbox{red \CopyMe}} blue}<br />

First we dene \CopyMe as follows:<br />

\def\CopyMe{\attributedcopy2\ \copy4}<br />

This gives:<br />

unset red RED blue RED blue RED RED unset red red RED blue RED blue RED RED unset<br />

unset red RED blue RED blue RED RED unset red red RED blue RED blue RED RED unset<br />

unset red RED blue RED blue RED RED unset red red RED blue RED blue RED RED unset<br />

unset red RED blue RED blue RED RED unset red RED blue RED blue RED RED unset blue<br />

red RED blue RED blue RED RED blue red red RED blue RED blue RED RED blue<br />

Compare this with:<br />

\def\CopyMe{\copy2\ \copy4}<br />

This gives:<br />

114 Colors redone

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!