10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IMPLEMENTATION: Package options 133\MT@shorthandoff\MT@curr@fileActive characters can only be switched off if babel isn’t loaded after <strong>microtype</strong>.4493 \@if<strong>package</strong>loaded{babel}{4494 \def\MT@shorthandoff#1#2{%4495 \MT@info@nl{Switching off #1 babel’s active characters (#2)}%4496 \shorthandoff{#2}}4497 }{4498 \def\MT@shorthandoff#1#2{%4499 \MT@error{You must load `babel’ before `\MT@MT’}4500 {Otherwise, `\MT@MT’ cannot switch off #1 babel’s\MessageBreak4501 active characters.}}4502 }We patch the language switching commands to enable language-dependent setup.4503 \MT@addto@setup{%4504 \ifMT@babel4505 \@if<strong>package</strong>loaded{babel}{%4506 \MT@info@nl{Redefining babel’s language switching commands}%4507 \let\MT@orig@select@language\select@language4508 \def\select@language#1{%4509 \MT@orig@select@language{#1}%4510 \MT@set@babel@context{#1}%4511 }%4512 \let\MT@orig@foreign@language\foreign@language4513 \def\foreign@language#1{%4514 \MT@orig@foreign@language{#1}%4515 \MT@set@babel@context{#1}%4516 }%4517 \ifMT@kerningDisable French babel’s active characters.4518 \MT@if@false4519 \MT@with@babel@and@T{french} \MT@if@true4520 \MT@with@babel@and@T{frenchb} \MT@if@true4521 \MT@with@babel@and@T{francais}\MT@if@true4522 \MT@with@babel@and@T{canadien}\MT@if@true4523 \MT@with@babel@and@T{acadian} \MT@if@true4524 \ifMT@if@\MT@shorthandoff{French}{:;!?}\fiDisable Turkish babel’s active characters.4525 \MT@if@false4526 \MT@with@babel@and@T{turkish} \MT@if@true4527 \ifMT@if@\MT@shorthandoff{Turkish}{:!=}\fi4528 \fiIn case babel was loaded before <strong>microtype</strong>:4529 \MT@set@babel@context\languagename4530 }{%4531 \MT@warning@nl{You did not load the babel <strong>package</strong>.\MessageBreak4532 <strong>The</strong> `babel’ option won’t have any effect}%4533 }%4534 \fi4535 }Now we close the \fi from \ifMT@draft.4536 \MT@addto@setup{\fiSet up the current font, most likely the normal font. This has to come after all ofthe setup (including anything from the preamble) has been dealt with.4537 \selectfont}This is the current file (hopefully with the correct extension).4538 \edef\MT@curr@file{\jobname.tex}4539

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

Saved successfully!

Ooh no, something went wrong!