10.07.2015 Views

The microtype package

The microtype package

The microtype package

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.

IMPLEMENTATION: Font setup 97\MT@maybe@rem@from@list\<strong>microtype</strong>context\text<strong>microtype</strong>context\MT@reset@context\MT@reset@context@\MT@setup@contexts2777 \MT@exp@cs\MT@xadd2778 {MT@##1@\csname MT@##1@context\endcsname font@list}%2779 {\MT@font,}%2780 \def\@tempa{##1}%2781 \MT@exp@cs\MT@map@tlist@c{MT@##1@doc@contexts}\MT@maybe@rem@from@list2782 \fi2783 }%2784 }Recurse through all context font lists of the document and remove the font, unlessit’s the current context.2785 \def\MT@maybe@rem@from@list#1{%2786 \MT@ifstreq{\@tempa/#1}{\@tempa/\csname MT@\@tempa @context\endcsname}\relax{%2787 \expandafter\MT@exp@one@n\expandafter\MT@rem@from@clist\expandafter2788 \MT@font \csname MT@\@tempa @#1font@list\endcsname2789 }%2790 }<strong>The</strong> user may change the context, so that different setups are possible. This isespecially useful for multi-lingual documents.Inside the preamble, it shouldn’t actually do anything but remember it for later.2791 \def\<strong>microtype</strong>context#1{\MT@addto@setup{\<strong>microtype</strong>context{#1}}}2792 \MT@addto@setup{%2793 \DeclareRobustCommand\<strong>microtype</strong>context[1]{%2794 \MT@setup@contexts2795 \let\MT@reset@context\relaxWe need to ensure that math fonts are set up anew.2796 \let\glb@currsize\@empty2797 \setkeys{MTC}{#1}%2798 \selectfont2799 \MT@reset@context2800 }%2801 }This is just a wrapper around \<strong>microtype</strong>context.2802 \DeclareRobustCommand\text<strong>microtype</strong>context[2]{{\<strong>microtype</strong>context{#1}#2}}We have to reset the font at the end of the group, provided there actually was achange.2803 \def\MT@reset@context@{%2804 \MT@vinfo{

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

Saved successfully!

Ooh no, something went wrong!