Text Formatting ⇒ text in margin
text in margin
Hello all,
Trying to format a paper in report mode and I manually set the margins using the geometry package. I didn't like how latex was hyphenating so many words so I used the hyphenat package with the "none" option so that there was no automatic hyphenation. But now, some words are overlapping the predefined margins (on the right side of the pages). Does anyone know how to maintain uniform margins without hyphenating at line breaks? Thanks.
Trying to format a paper in report mode and I manually set the margins using the geometry package. I didn't like how latex was hyphenating so many words so I used the hyphenat package with the "none" option so that there was no automatic hyphenation. But now, some words are overlapping the predefined margins (on the right side of the pages). Does anyone know how to maintain uniform margins without hyphenating at line breaks? Thanks.
text in margin
Yes, but that's not such a good idea. Try with command:
But expect large space between words. You may put it before \begin{document} to apply to whole text or in front of some paragraphs to apply from that place on ("disabling" is done with command: \fussy)
Code: Select all
\sloppy
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text in margin
Please explain that by means of an example (MWE).howard wrote:[…] I didn't like how latex was hyphenating so many words so I used the hyphenat package with the "none" option so that there was no automatic hyphenation. […]
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
text in margin
If you're typesetting a narrow text column, you might see if microtype helps at all.
text in margin
The body of the output text looked something like:
text text text text text text text text text text text te-
xt text text text text text text text text text text text
text text text text text text text text text text text te-
xt text text text text text text text text text text text
text text text text text text text text text text text te-
xt text text text ...
It just seemed that latex was hyphenating at nearly every line break. I did find a solution (not sure of how robust it is) using the commands. Of course any better advice would be greatly appreciated. Thanks.
text text text text text text text text text text text te-
xt text text text text text text text text text text text
text text text text text text text text text text text te-
xt text text text text text text text text text text text
text text text text text text text text text text text te-
xt text text text ...
It just seemed that latex was hyphenating at nearly every line break. I did find a solution (not sure of how robust it is) using the
Code: Select all
\hyphenpenalty=5000 \tolerance=1000
Re: text in margin
It was hyphenating in the middle of a syllable?
Like te-
xt?
Or just, a lot of the time?
Like te-
xt?
Or just, a lot of the time?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text in margin
Provide a small, complete and compilable minimal working example (MWE). This example has to reproduce the undesired behaviour clearly. In your case a MWE would at least consist of your preamble and the critical part of your text.howard wrote:[…] Of course any better advice would be greatly appreciated. […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
text in margin
Sorry localghost, I wasn't sure what MWE stood for. Anyway, below is a sample portion of my document that is giving me hyphens where I do not want them. When I use the hyphenat package with the none option (commented out), it stops the hypenation but causes the words to continue into the right hand margin. The text is actually a chapter introduction, so I put the \noindent command in to simulate a beginning paragraph of a chapter. [Edit- Look at next post - this one did not print the code properly and for some reason and is refusing to be fixed]
As I mentioned in a previous reply, I did have success using the commands, but a more robust solution would be desired.
Code: Select all
\documentclass[12pt,letterpaper]{report}
\usepackage[T1]{fontenc}
%\usepackage[none]{hyphenat}
\usepackage{ae,aecompl,amsmath,amsfonts}
\usepackage{pslatex}
\usepackage[left=1.5in,top=0.8in,right=1in,bottom=1in,nohead,nofoot]{geometry}
\begin{document}
\noindent Presented in this chapter are some fundamental theoretical considerations relevant to crystal structures and x-ray diffraction studies. These include crystal systems, symmetry operations, Miller indices, the Bragg and Laue conditions, and basics of x-ray scattering theory.
\end{document}
Code: Select all
\hypenpenalty=5000
\tolerance=1000
Last edited by howard on Fri Nov 06, 2009 12:15 am, edited 2 times in total.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text in margin
You are using some obsolete packages. In particular
If you want to use another font, try the Latin Modern font package.
If you want to use another font, try the Latin Modern font package.
Code: Select all
\documentclass[12pt,letterpaper]{report}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts}
\usepackage[left=1.5in,top=0.8in,right=1in,bottom=1in,nohead,nofoot]{geometry}
\usepackage{lmodern}
\begin{document}
\noindent Presented in this chapter are some fundamental theoretical considerations relevant to crystal structures and x-ray diffraction studies. These include crystal systems, symmetry operations, Miller indices, the Bragg and Laue conditions, and basics of x-ray scattering theory.
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10