In my text I have some very long words (names of function) like, for instance, "put_3_apples_and_2_oranges_in_the_bag()".
These words don't respect the margin or, even, they go out off the page. Here an example is (you can try to generate pdf):
Code: Select all
\documentclass[oneside]{book}\usepackage[T1]{fontenc}\usepackage{selinput}\SelectInputMappings{agrave={à},igrave={ì},Euro={€}}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3}\usepackage{verbatim}\usepackage[italian,english]{babel}\usepackage{color}\usepackage{graphicx}\usepackage{algorithm}\usepackage[noend]{algorithmic}\usepackage{amsfonts}\usepackage{amsmath}\newcommand{\argmin}{\operatornamewithlimits{arg\ min}}\usepackage{float}\begin{document}Notice that XXXX could be solved by repeatedly calling place\_3\_apples($A$,$B$,$B_2$,$C$), as shown by the following pseudocode.Word word word. This version corresponds to what in experiments is called "xxxxxx x", so place\_$A_1$\_xxxxxxxx\_one\_by\_one\_xx() can be renamed place\_$A_1$\_xxxxxxxx\_one\_by\_one\_xx\_xx() (and similarly place\_1\_xxxxxxx\_xx() can be renamed place\_1\_xxxxxxx\_xx\_xx()).\end{document}
I'd like see either long words on new lines (in such a way that justification and margin are respected) or split into two lines...
Thanks!