Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. documentclass[a4paper]{article}
  2. usepackage[T1]{fontenc}
  3. usepackage[protrusion]{microtype} % protrusion option is actually redundant,
  4. % but I want to be safe!
  5.  
  6. begin{document}
  7.  
  8. First of all, ( verb|parfillskip| = mbox{theparfillskip} ).
  9.  
  10. Secondarily, the main font is ``fontnamethefont'': in this font the
  11. verb|rpcode| of the character~``.'' is therpcodefont`. space and the
  12. verb|lpcode| of the character~``('' is thelpcodefont`( . % paren match )
  13.  
  14. Now we typeset a paragraph which, while containing the usual verb|parfillskip|
  15. glue, whose value is specified above, ends flush with the right margin because
  16. it contains a verb|hfill| command:hfill
  17. (here!).special{comment:Do you see the kern?}
  18.  
  19. (Another example for protrusion into the left margin,hfill using
  20. parentheses.)linebreak (We force a left parenthesis at the beginning of a
  21. line.)
  22.  
  23. begingroup
  24.  
  25. % Show that protrusion _is_ applied "through" the parfillskip glue:
  26. showboxbreadth = 1000
  27. showboxdepth = 5
  28. showlists
  29.  
  30. % But if we ask for the rightmarginkern of the last line...
  31. setbox0 = vbox{indent
  32. Now we typeset a paragraph which, while containing the usual verb|parfillskip|
  33. glue, whose value is specified above, ends flush with the right margin because
  34. it contains a verb|hfill| command:hfill (here!).par
  35. globalsetbox1 = lastbox
  36. }
  37. % (...here it is...)
  38. showbox1
  39.  
  40. endgroup
  41.  
  42. % ...we don't see any protrusion:
  43. Now, ( verb|rightmarginkern1| = mbox{rightmarginkern1} ).
  44.  
  45. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement