rpgtex / DND-5e-LaTeX-Template

LaTeX package to typeset material for the fifth edition of the "world's greatest roleplaying game".
MIT License
1.43k stars 307 forks source link

DndReadAloud not Aligning Correctly #279

Closed ravenclaw900 closed 4 years ago

ravenclaw900 commented 4 years ago

I have a DndReadAloud that seems to be indented. It is semi-near (2 paragraphs away) from a DndDropCapLine, and that seems to be causing the problem, as if I remove it, the problem resolves. Here's my code:

\documentclass{dndbook}
\begin{document}
\chapter{Introduction}
\DndDropCapLine{T}{he Dungeons and Dragons roleplaying} game is about storytelling in worlds of swords and sorcery. It shares elements with childhood games of make-believe. Like those games, D\&D is driven by imagination. It’s about picturing the towering castle beneath the stormy night sky and imagining how a fantasy adventurer might react to the challenges that scene presents.
\begin{DndReadAloud}
\textbf{Dungeon Master (DM):} After passing through the craggy peaks, the road takes a sudden turn to the east
and Castle Ravenloft towers before you. Crumbling towers of stone keep a silent watch over the approach. They look like abandoned guardhouses. Beyond these, a wide chasm gapes, disappearing into the deep fog below. A lowered drawbridge spans the chasm, leading to an arched entrance to the castle courtyard. The chains of the drawbridge creak in the wind, their rust-eaten iron straining with the weight. From atop the high strong walls, stone gargoyles stare at you from hollow sockets and grin hideously. A rotting wooden portcullis, green with growth, hangs in the entry tunnel. Beyond this, the main doors of Castle Ravenloft stand open, a rich warm light spilling into the courtyard.\\
\textbf{Phillip (playing Gareth):} I want to look at the gargoyles. I have a feeling they’re not just statues.\\
\textbf{Amy (playing Riva):} The drawbridge looks precarious? I want to see how sturdy it is. Do I think we can cross it, or is it going to collapse under our weight?
\end{DndReadAloud}
Unlike a game of make-believe, D\&D gives structure to the stories, a way of determining the consequences of the adventurers’ action. Players roll dice to resolve whether their attacks hit or miss or whether their adventurers can scale a cliff, roll away from the strike of a magical lightning bolt, or pull off some other dangerous task. Anything is possible, but the dice make some outcomes more probable than others.
\begin{DndReadAloud}
\textbf{Dungeon Master (DM):} OK, one at a time. Phillip, you’re looking at the gargoyles?\\
\textbf{Phillip:} Yeah. Is there any hint they might be creatures and not decorations?\\
\textbf{DM:} Make an Intelligence check.\\
\textbf{Phillip:} Does my Investigation skill apply?\\
\textbf{DM:} Sure!\\
\textbf{Phillip (rolling a d20):} Ugh. Seven.\\
\textbf{DM:} They look like decorations to you. And Amy, Riva is checking out the drawbridge?
\end{DndReadAloud}
In the Dungeons and Dragons game, each player creates an adventurer (also called a character) \index{characters!adventurers/PCs} and teams up with other adventurers (played by friends). Working together, the group might explore a dark dungeon, a ruined city, a haunted castle, a lost temple deep in a jungle, or a lava-filled cavern beneath a mysterious mountain. The adventurers can solve puzzles, talk with other characters, battle fantastic monsters, and discover fabulous magic items and other treasure.\par
\end{document}

test

As you can see, this also messes up the alignment of the other paragraphs quite a bit. I am getting overfill hbox warnings at where the DndReadAloud boxes are, but I don't know how to fix it. Any ideas?

pancaek commented 4 years ago

An additional newline after the DropCapLine seems to fix it for me

ravenclaw900 commented 4 years ago

Yes, some space after the 4 lines next to the DndDropCapLine does seem to fix it. I just don't know why it happens in the first place. @BrianCriswell, is this a bug or just something I did wrong?

BrianCriswell commented 4 years ago

In general, you should have blank lines after paragraphs. You also do not need the final \par. An \indent will get the desired indent at the beginning of the read aloud sections.

\documentclass[letterpaper,twocolumn,openany,nodeprecatedcode]{dndbook}

\chapter{Introduction}
\DndDropCapLine{T}{he Dungeons and Dragons roleplaying} game is about storytelling in worlds of swords and sorcery. It shares elements with childhood games of make-believe. Like those games, D\&D is driven by imagination. It’s about picturing the towering castle beneath the stormy night sky and imagining how a fantasy adventurer might react to the challenges that scene presents.

\begin{DndReadAloud}
  \indent\textbf{Dungeon Master (DM):} After passing through the craggy peaks, the road takes a sudden turn to the east and Castle Ravenloft towers before you. Crumbling towers of stone keep a silent watch over the approach. They look like abandoned guardhouses. Beyond these, a wide chasm gapes, disappearing into the deep fog below. A lowered drawbridge spans the chasm, leading to an arched entrance to the castle courtyard. The chains of the drawbridge creak in the wind, their rust-eaten iron straining with the weight. From atop the high strong walls, stone gargoyles stare at you from hollow sockets and grin hideously. A rotting wooden portcullis, green with growth, hangs in the entry tunnel. Beyond this, the main doors of Castle Ravenloft stand open, a rich warm light spilling into the courtyard.

  \textbf{Phillip (playing Gareth):} I want to look at the gargoyles. I have a feeling they’re not just statues.

  \textbf{Amy (playing Riva):} The drawbridge looks precarious? I want to see how sturdy it is. Do I think we can cross it, or is it going to collapse under our weight?
\end{DndReadAloud}

Unlike a game of make-believe, D\&D gives structure to the stories, a way of determining the consequences of the adventurers’ action. Players roll dice to resolve whether their attacks hit or miss or whether their adventurers can scale a cliff, roll away from the strike of a magical lightning bolt, or pull off some other dangerous task. Anything is possible, but the dice make some outcomes more probable than others.

\begin{DndReadAloud}
  \indent\textbf{Dungeon Master (DM):} OK, one at a time. Phillip, you’re looking at the gargoyles?

  \textbf{Phillip:} Yeah. Is there any hint they might be creatures and not decorations?

  \textbf{DM:} Make an Intelligence check.

  \textbf{Phillip:} Does my Investigation skill apply?

  \textbf{DM:} Sure!

  \textbf{Phillip (rolling a d20):} Ugh. Seven.

  \textbf{DM:} They look like decorations to you. And Amy, Riva is checking out the drawbridge?
\end{DndReadAloud}

In the Dungeons and Dragons game, each player creates an adventurer (also called a character) \index{characters!adventurers/PCs} and teams up with other adventurers (played by friends). Working together, the group might explore a dark dungeon, a ruined city, a haunted castle, a lost temple deep in a jungle, or a lava-filled cavern beneath a mysterious mountain. The adventurers can solve puzzles, talk with other characters, battle fantastic monsters, and discover fabulous magic items and other treasure.
\end{document}
ravenclaw900 commented 4 years ago

Okay, thanks!