Skip Menu |

This queue is for tickets about the Pod-LaTeX CPAN distribution.

Report information
The Basics
Id: 7570
Status: resolved
Priority: 0/
Queue: Pod-LaTeX

People
Owner: Nobody in particular
Requestors: r.de.vries [...] dutchspace.nl
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.54
Fixed in: (no value)



Subject: item with square brackets not handled right
Pod-LaTeX-0.54 and later This is perl, v5.8.1 built for i386-linux-thread-multi Linux hobbes.dutchspace.nl 2.4.20-18.timer #1 Fri Sep 12 12:44:08 CEST 2003 i686 i686 i386 GNU/Linux When you have an item with square brackets in the text, e.g. =item Hi there this is a square bracket [ here ] and [ here ] The latex code produced looks like this: \item[Hi there this is a square bracket [ here ]] \textbf{and [ here ]} This is somewhat processed by latex but not very well. The correct code to produce should look like this. \item[{Hi there this is a square bracket [ here ]}] \textbf{and [ here ]} Notice the extra curly braces. See also chapter C.1.1 of the LaTeX User's Guide and Reference Manual (2nd Edition) by Leslie Lamport on how to handle square brackets in this situation. This is where I got the solution from. Attached is a tested patch.
Only in Pod-LaTeX-0.57.rhdv/: blib diff -ru Pod-LaTeX-0.57/LaTeX.pm Pod-LaTeX-0.57.rhdv/LaTeX.pm --- Pod-LaTeX-0.57/LaTeX.pm 2004-03-08 03:22:43.000000000 +0100 +++ Pod-LaTeX-0.57.rhdv/LaTeX.pm 2004-09-07 11:42:28.000000000 +0200 @@ -1454,7 +1454,7 @@ my ($hunk1, $hunk2) = $self->_split_delimited( $paragraph, $maxlen ); # Print the first hunk - $self->_output("\n\\item[$hunk1] "); + $self->_output("\n\\item[{$hunk1}] "); # and the second hunk if it is defined if ($hunk2) { Only in Pod-LaTeX-0.57.rhdv/: Makefile Only in Pod-LaTeX-0.57.rhdv/: pm_to_blib Only in Pod-LaTeX-0.57.rhdv/: pod2latex
Thanks for the patch and sorry for the delay. v0.58 should be making its way to CPAN now.