mszep / pandoc_resume

The Markdown Resume
http://mszep.github.io/pandoc_resume/
MIT License
1.64k stars 760 forks source link

Improper line breaks in subsection headers #15

Open BenQuigley opened 8 years ago

BenQuigley commented 8 years ago

Long words (e.g. "Communications") are improperly split into two lines when they are used as subsection headers. Example code:

**Communications**  
:   * Created and implemented blah blah blah...  
    * Blah blah blah blah....

Converts to PDF as: screenshot from 2016-07-08 08-39-10

"Communications" is on its own line, so there's no reason to split it onto a second line, but that's what the tool is doing. How can I help fix?

mszep commented 8 years ago

Hi, this is happening because the headers of description lists are constrained to a certain width. In line 55 of style_chmduchesne.tex file there is a width setting for the subheader (it's probably width, but it might also be distance, so try tweaking both. Unfortunately I don't think there's a way to let the subheader text actually run above the list items. Let me know if this helps.

airpaio commented 8 years ago

Another option you could try is to add

\exhyphenpenalty=10000 \hyphenpenalty=10000

to the style_chmduquesne.tex file. I added it right after line 21. This, along with some other layout/sizing tweaks, seemed to alleviate that problem.