PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : microtype funktioniert nicht bei fest vorgegebenen Bindestrichen



leo22
01-12-2009, 14:19
Wenn ich den automatischen Randausgleich mit microtype verwende, funktioniert dieser nicht bei Worten, die einen Bindestrich enthalten.

Zum Beispiel wird Weihnachts-Mann (orthographisch nicht ganz korrekt, aber es ist ja nur ein Beispiel) umgebrochen zu
Weihnachts-
Mann

Der Bindestrich schließt jedoch mit dem rechten Rand ab und ragt nicht etwas über diesen hinaus wie alle anderen automatisch erzeugten Trennstriche (kein Randausgleich).

Schreibe ich dagegen Weihnachts\-Mann (was allerdings bedeutet, dass der Bindestrich verschwindet, wenn kein Zeilenumbruch im Wort erforderlich ist), dann wird das auch zu
Weihnachts-
Mann

und der Bindestrich reiht sich in den rechten Rand der anderen Trennstriche ein.

Wie lässt sich das ganze ohne \- bewerkstelligen?

u_fischer
01-12-2009, 14:53
Kann ich nicht nachvollziehen.


\documentclass{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{microtype}
\textwidth 2,8cm
\begin{document}
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Weihnachts-Mann

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Weihnachts\-Mann
\end{document}

leo22
01-12-2009, 15:23
Es ist wirklich schwierig, hierfür ein geeignetes Minimalbeispiel, in dem man das auch richtig sieht, zu erfinden. Ich habe es mal versucht:


\documentclass{scrreprt}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{microtype}
\textwidth 10cm
\begin{document}

Dies hier ist ein Blindtext zum Testen von Textausgaben.
Wer diesen Text liest, ist selbst schuld. Der Text gibt ledig-lich
den Grauwert der Schrift an. Ist das wirklich so? Ist es gleichgültig \dots

\blindtext
\end{document}

Ein Ausschnitt des Ergebnisses ist im anhängenden Bild zu sehen.

Dort sieht man, dass oben der Punkt hinter "Textausgaben" viel weiter rechts ist als der Trennstrich von "ledig-". Im unteren Beispiel ist der Randausgleich korrekt, dort wurde die Trennstelle automatisch erzeugt.

u_fischer
01-12-2009, 15:45
Nun, wie ich schon sagte, ich kann es nicht nachvollziehen. Wie kompilierst du? Zeig mal die log-Datei.

leo22
01-12-2009, 16:16
Heißt das, bei dir sieht das Ergebnis anders aus?

Hier meine Logdatei:


This is pdfeTeX, Version 3.141592-1.20a-2.2 (MiKTeX 2.4) (preloaded format=latex 2009.5.19) 1 DEC 2009 16:13
entering extended mode
**C:/beispiel/LaTeX1.tex
(C:/beispiel/LaTeX1.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, ngerman, dutch, latin, dumylang, nohyphenation, load
ed.
(C:\texmf\tex\latex\koma-script\scrreprt.cls
Document Class: scrreprt 2004/01/07 v2.9p LaTeX2e KOMA document class
(C:\texmf\tex\latex\koma-script\scrlfile.sty
Package: scrlfile 2004/01/07 v2.9p LaTeX2e KOMA package

Package scrlfile, 2004/01/07 v2.9p LaTeX2e KOMA package
Copyright (C) Markus Kohm

) (C:\texmf\tex\latex\base\size11.clo
File: size11.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
) (C:\texmf\tex\latex\koma-script\typearea.sty
Package: typearea 2004/01/07 v2.9p LaTeX2e KOMA package

Package typearea, 2004/01/07 v2.9p LaTeX2e KOMA package
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-2002

\ta@bcor=\skip41
\ta@div=\count79
\ta@hblk=\skip42
\ta@vblk=\skip43
\ta@temp=\skip44
Package typearea Info: These are the values describing the layout:
(typearea) DIV = 10
(typearea) BCOR = 0.0pt
(typearea) \paperwidth = 597.50793pt
(typearea) \textwidth = 418.25555pt
(typearea) DIV-departure = -6/100
(typearea) \evensidemargin = 17.3562pt
(typearea) \oddsidemargin = 17.3562pt
(typearea) \paperheight = 845.04694pt
(typearea) \textheight = 595.80026pt
(typearea) \topmargin = -25.16531pt
(typearea) \headheight = 17.0pt
(typearea) \headsep = 20.40001pt
(typearea) \topskip = 11.0pt
(typearea) \footskip = 47.60002pt
(typearea) \baselineskip = 13.6pt
(typearea) on input line 625.
)
\c@part=\count80
\c@chapter=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\c@figure=\count87
\c@table=\count88
\abovecaptionskip=\skip45
\belowcaptionskip=\skip46
\c@pti@nb@sid@b@x=\box26
\bibindent=\dimen102
) (C:\texmf\tex\latex\base\fontenc.sty
Package: fontenc 2004/02/22 v1.99f Standard LaTeX package
(C:\texmf\tex\latex\base\t1enc.def
File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
)) (C:\texmf\tex\generic\babel\babel.sty
Package: babel 2004/02/19 v3.8a The Babel package

(C:\texmf\tex\generic\babel\ngermanb.ldf
Language: ngermanb 2004/02/20 v2.6m new German support from the babel system
(C:\texmf\tex\generic\babel\babel.def
File: babel.def 2004/02/19 v3.8a Babel common definitions
\babel@savecnt=\count89
\U@D=\dimen103
)
\l@naustrian = a dialect from \language\l@ngerman
Package babel Info: Making " an active character on input line 92.
))
(C:\texmf\tex\latex\blindtext\blindtext.sty
Package: blindtext 2003/12/14 V1.4 blindtext-Package

Minutes-Package
(C:\texmf\tex\latex\tools\xspace.sty
Package: xspace 1997/10/13 v1.06 Space after command names (DPC)
)
\c@blindtext=\count90
\c@Blindtext=\count91
\blind@countxx=\count92
\blindtext@numBlindtext=\count93
\blind@countyy=\count94
\c@blindlist=\count95
\c@blindlistlevel=\count96
\c@blindlist@level=\count97
\blind@listitem=\count98
\c@listcount=\count99
\c@blind@levelcount=\count100
) (C:\texmf\tex\latex\microtype\microtype.sty
Package: microtype 2004/10/27 v1.3 Micro-typography with pdfTeX (RS)

(C:\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
\MT@cnta=\count101
\MT@cntb=\count102
\MT@cntc=\count103
\MT@cntd=\count104
\MT@cnte=\count105
Package microtype Info: Trying to load local config file `microtype.cfg' ...
Package microtype Info: ... local config file loaded successfully.
(C:\texmf\tex\latex\microtype\microtype.cfg
File: microtype.cfg 2004/10/27 v1.3 microtype configuration file (RS)
)
Package microtype Info: Character protrusion enabled (level 2).
Package microtype Info: Automatic font expansion enabled (level 2),
(microtype) stretch: 20 / shrink: 20 / step: 2 .
Package microtype Info: Generating PDF output.
)
Package microtype Info: Using protrusion set `alltext' on input line 6.
Package microtype Info: Using expansion set `basictext' on input line 6.
(LaTeX1.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.

(C:\texmf\tex\latex\microtype\mt-cmr.cfg
File: mt-cmr.cfg 2004/10/27 v1.3 microtype config. file: Computer Modern (RS)
) [1

{psfonts.map}] (LaTeX1.aux) )
Here is how much of TeX's memory you used:
2217 strings out of 95457
33534 string characters out of 1188751
98311 words of memory out of 1100913
5287 multiletter control sequences out of 35000
5693 words of font info for 32 fonts, out of 500000 for 1000
54 hyphenation exceptions out of 607
26i,6n,27p,193b,1415s stack positions out of 1500i,500n,5000p,200000b,32768s
49 PDF objects out of 300000
0 named destinations out of 300000
1537 words of extra memory for PDF output out of 65536
{cm-super-t1.enc}<C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\p
ublic\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfr
m1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texm
f\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\publ
ic\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm10
95.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\f
onts\type1\public\cm-super\sfrm1095.pfb><C:\texmf\fonts\type1\public\cm-super\sfrm1095.pfb>
Output written on LaTeX1.pdf (1 page, 196044 bytes).

u_fischer
01-12-2009, 16:23
Na, dein System ist ja ziemlich alt. Ich habe

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2009.11.29)
(und auch mit 2.8. geht es)

und

Package: microtype 2009/03/27 v2.3d Micro-typography with pdfTeX (RS)

leo22
02-12-2009, 10:43
Ich habe es nochmals mit TeXLive2009 probiert,

This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (format=pdflatex 2009.12.2)
und
Package: microtype 2009/03/27 v2.3d Micro-typography with pdfTeX (RS)

dort funktioniert es einwandfrei. Keine Ahnung, woran es lag. Ich hatte vorher nur mal das microtype allein durch die neue Version ersetzt, das brachte nichts.