Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. texttt{org.springframework.beans.factory.BeanFactory}
  2.  
  3. texttt{org.spring-frame-work.beans.fac-tory.Bean-Fac-tory}
  4.  
  5. documentclass[a5paper]{article}
  6. usepackage{showframe}% for demontration only!
  7. usepackage{url}
  8.  
  9. begin{document}
  10. Line width violation by tt-terms like
  11. url{org.springframework.beans.factory.BeanFactory} and others.
  12. end{document}
  13.  
  14. documentclass[a5paper]{article}
  15. usepackage{showframe}
  16. usepackage{url}
  17.  
  18. makeatletter
  19. defurl@allbreakstyle{%
  20. defUrlBreaks{do.do@do\do/do!do_do|do;do>do]%
  21. do)do,do?do'do+do=do#%
  22. do Ado Bdo Cdo Ddo Edo Fdo Gdo Hdo Ido Jdo Kdo Ldo M%
  23. do Ndo Odo Pdo Qdo Rdo Sdo Tdo Udo Vdo Wdo Xdo Ydo Z%
  24. do ado bdo cdo ddo edo fdo gdo hdo ido jdo kdo ldo m%
  25. do ndo odo pdo qdo rdo sdo tdo udo vdo wdo xdo ydo z%
  26. do 0do 1do 2do 3do 4do 5do 6do 7do 8do 9%
  27. }%
  28. }
  29. defurl@restrictedbreakstyle{%
  30. defUrlBreaks{do.do@do\do/do!do_do|do;do>do]%
  31. do)do,do?do'do+do=do#}%
  32. }
  33. makeatother
  34.  
  35. begin{document}
  36. % Problem using the default style
  37. Line width violation by tt-terms like this one:
  38. url{org.springframework.beans.factory.BeanFactory} and others.
  39.  
  40. % Break inside letter sequences using new style
  41. urlstyle{allbreak}%
  42. Line width violation by tt-terms like this one:
  43. url{org.springframework.beans.factory.BeanFactory} and others.
  44.  
  45. end{document}
  46.  
  47. documentclass[a5paper]{article}
  48. usepackage{showframe}
  49. % Only one of the following two lines is needed:
  50. usepackage{url}
  51. usepackage{hyperref}
  52.  
  53. providecommand*{nolinkurl}{url}
  54.  
  55. begin{document}
  56. Line width violation by tt-terms like
  57. breaktext{org.springframework.beans.factory.BeanFactory} and others.
  58.  
  59. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement