Re: Pattern-hyphenation/breaking

Hans Hagen <pragma-42P/[email protected]>
Newsgroups gmane.comp.tex.dutch
Message-ID <[email protected]>
On 29-10-2012 12:41, Pander wrote:
> On 2012-10-29 12:34, Bas Dekker (TeXniek) wrote:
>>
>>
>> Dag allemaal,
>>
>>
>> Ik ben een stuk code aan het ontwikkelen, in Perl. Perl heeft een mooi
>> intern formaat om inline documentatie mee te schrijven (Plain Old
>> Documentation, POD). Daar kunnen manual pages mee gemaakt worden.
>>
>> Er bestaat ook een module in Perl om uit de Perl-code de POD-code te
>> halen, en daar een mooie TeX-dump van te maken: Pod::LaTeX
>> (http://pwet.fr/man/linux/fonctions_bibliotheques/perl/pod_latex).
>>
>> De documentatie die ik schrijf is technisch, dus ik moet ook litterals
>> in de lopende documentatie-tekst weergeven. Een daarvan is een
>> hash-reference in Perl. Dat wordt zo geschreven:
>> $data->{$sheet}->{$record}->{'=orddata='}.
>>
>> Als ik zoiets door Pod::LaTeX, dan krijg ik deze code in mijn
>> TeX-file:  \texttt{\$data-$>$\{\$sheet\}-$>$\{\$record\}-$>$\{'=orddata='\}}.
>>
>> An sich is dat acceptabel. Vervelender is dat LaTeX dit patroon niet
>> afbreekt, dus ik krijg een heleboel "Overfull hbox"-meldingen.
>>
>> Ik heb eea geprobeerd, maar het is mij niet gelukt om TeX te vertellen
>> dat hij na "-$>$" mag afbreken.

omdat je eea genereert kun je een \allowbreak (of \penalty0) tussenvoegen


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
TeX-NL mailing list
[email protected]
http://www.ntg.nl/cgi-bin/mailman/listinfo/tex-nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.