I'm trying to add sample content to my document, but it seems like whenever I use \texttt or \lstinline tags my content still goes out of the margin. Is there any suggestions ?

enter image description here

  • Check out the url package. Commented May 20, 2023 at 23:59
  • So the issue is I need to add inline code, not just the URls
    – John J
    Commented May 21, 2023 at 0:04
  • 1
    Please show the code that gives rise to the scrreenshot you posted.
    – Mico
    Commented May 21, 2023 at 0:20
  • 1
    Welcome to TeX.SE! W need to see the code (copy from your editor) of small, but complete document, which produce showed compilation result, which we can test as it is. In its preamble should be loaded only to your problem relevant packages.
    – Zarko
    Commented May 21, 2023 at 4:58
  • 2
    you should show code as text but as commented above the url package would help here (these are not url but the typesetting issues are the same) Commented May 21, 2023 at 5:47


You must log in to answer this question.

Browse other questions tagged .