Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- texttt{org.springframework.beans.factory.BeanFactory}
- texttt{org.spring-frame-work.beans.fac-tory.Bean-Fac-tory}
- documentclass[a5paper]{article}
- usepackage{showframe}% for demontration only!
- usepackage{url}
- begin{document}
- Line width violation by tt-terms like
- url{org.springframework.beans.factory.BeanFactory} and others.
- end{document}
- documentclass[a5paper]{article}
- usepackage{showframe}
- usepackage{url}
- makeatletter
- defurl@allbreakstyle{%
- defUrlBreaks{do.do@do\do/do!do_do|do;do>do]%
- do)do,do?do'do+do=do#%
- do Ado Bdo Cdo Ddo Edo Fdo Gdo Hdo Ido Jdo Kdo Ldo M%
- do Ndo Odo Pdo Qdo Rdo Sdo Tdo Udo Vdo Wdo Xdo Ydo Z%
- do ado bdo cdo ddo edo fdo gdo hdo ido jdo kdo ldo m%
- do ndo odo pdo qdo rdo sdo tdo udo vdo wdo xdo ydo z%
- do 0do 1do 2do 3do 4do 5do 6do 7do 8do 9%
- }%
- }
- defurl@restrictedbreakstyle{%
- defUrlBreaks{do.do@do\do/do!do_do|do;do>do]%
- do)do,do?do'do+do=do#}%
- }
- makeatother
- begin{document}
- % Problem using the default style
- Line width violation by tt-terms like this one:
- url{org.springframework.beans.factory.BeanFactory} and others.
- % Break inside letter sequences using new style
- urlstyle{allbreak}%
- Line width violation by tt-terms like this one:
- url{org.springframework.beans.factory.BeanFactory} and others.
- end{document}
- documentclass[a5paper]{article}
- usepackage{showframe}
- % Only one of the following two lines is needed:
- usepackage{url}
- usepackage{hyperref}
- providecommand*{nolinkurl}{url}
- begin{document}
- Line width violation by tt-terms like
- breaktext{org.springframework.beans.factory.BeanFactory} and others.
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement