Ändern der Hauptschrift

Schriftbild, Absätze und Auflistungen einstellen


Arno81

Ändern der Hauptschrift

Beitrag von Arno81 »

Liebe Community,

ich bin neu hier im Forum und Anfänger im Umgang mit LaTeX.
Folgendes habe ich mir mühsam zusammengesucht. :D

Meine Vorlage:
\documentclass
[12pt,oneside,a4paper]{scrbook}

\usepackage[utf8]{inputenc}	
\usepackage[ngerman]{babel}	
\usepackage[T1]{fontenc} 	
\usepackage{lmodern}		
\usepackage{setspace}
\onehalfspacing				
\usepackage{blindtext}


\begin{document}
\blinddocument
\end{document}
Ich möchte nun Garamond als Serifenschrift einstellen.
http://www.tug.dk/FontCatalogue/garamond/

Aber egal wie ich diese Befehle einbaue:

\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}
\normalfont

der Prozess endet immer mit einem Fehler??

Was mache ich falsch? Hilfe wäre super :))

Besserwisser

Beitrag von Besserwisser »

Zeige genau das Beispiel, das den Fehler erzeugt und sage uns welchen Fehler das gibt. Siehe dazu auch: Minimalbeispiel

Hast du die URW Garamond instaliert? (Nebenbemerkung: Wenn du sie als Systemfont hast, kannst du übrigens einfach xelatex oder lualatex nehmen, um den Font via. fontspec zu laden.)

Bist du sicher, dass du setspace brauchst? Schöner werden die Dokumente damit nämlich nicht. Besser lesbar auch nicht.

Du willst wirklich ein einseitig gedrucktes Buch?

Arno81

Beitrag von Arno81 »

Hallo Besserwisser,
\documentclass 
[12pt,oneside,a4paper]{scrbook} 

\usepackage[utf8]{inputenc}   
\usepackage[ngerman]{babel}   
\usepackage[T1]{fontenc}     
\usepackage[urw-garamond]{mathdesign}
\normalfont      
\usepackage{setspace} 
\onehalfspacing             
\usepackage{blindtext} 


\begin{document} 
\blinddocument 
\end{document} 
Ich habe versucht statt der Modern Schrift die Garamond als normale Serifenschrift einzubinden...ist aber wohl etwas komplizierter als vermutet. Mein Editor (TexStudio) sagt mir nur, dass der Prozess mit Fehler endete.

Fehler:
Font shape `T1/cmss/mb/n' undefined(Font) using `T1/cmss/m/n' instead
Some font shapes were not available, defaults substituted.

Habe das zip-Packet mal runtergeladen aber ich weiß nicht so recht wie ich das installiert bekomme?
http://www.ctan.org/tex-archive/fonts/mathdesign/

Die Buchvorlage habe ich hauptsächlich wegen der Aufteilung Frontmatter, Mainmatter und Backmatter rausgesucht. Der einseitige Buchdruck ist Vorlage von der Hochschule, genau wie der Zeilenabstand von 1,5.
Falls es da elegantere Lösungen als setspace + onehalfspacing gibt bin ich für jeden Tipp dankbar. :)

Besserwisser

Beitrag von Besserwisser »

Wenn ich Dein Beispiel ausprobiere, bekomme ich ein PDF für das pdffonts mir folgende Fonts auswirft:
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
YJWNRP+SFSS2488                      Type 1            Custom           yes yes no       4  0
TKZEUT+GaramondNo8-Reg               Type 1            Custom           yes yes no       5  0
DXEWYA+SFSS1728                      Type 1            Custom           yes yes no       6  0
MPFNKW+SFSS1440                      Type 1            Custom           yes yes no       7  0
WXARUK+GaramondNo8-Reg-Slant_287     Type 1            Custom           yes yes no      13  0
RJICSD+SFSS1200                      Type 1            Custom           yes yes no      14  0
YUIVMH+MathDesign-GM-Regular-Symbol-10 Type 1            Builtin          yes yes no      15  0
DHSCJT+GaramondNo8-Med               Type 1            Custom           yes yes no      19  0
Außer für die Überschriften wird also einwandfrei Garamond verwendet. Wenn das bei dir nicht so ist, hast du vermutlich den Font nicht installiert.

pdflatex sagt das dann aber ggf. auch im Log-File. Ganz am Ende lädt es normalerweise die Fonts und gibt dann etwas aus wie:
/usr/local/texlive/2014/texmf-dist/fonts/enc/dvips/ly1/texnansi.enc}{/usr/local/texlive/2014/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}</usr/local/texlive/2014/texmf-dist/fonts/type1/public/mathdesign/mdugm/md-gmr7y.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfss1200.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfss1440.pfb></usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfss1728.pfb></usr/loca
l/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfss2488.pfb></usr/local/texlive/texmf-local/fonts/type1/urw/garamond/ugmm8a.pfb></usr/local/texlive/texmf-local/fonts/type1/urw/garamond/ugmr8a.pfb></usr/local/texlive/texmf-local/fonts/type1/urw/garamond/ugmr8a.pfb
Wenn es da einen Font nicht findet, verschweigt es das nicht.

Die von dir angegebene Warnung sagt hingegen, dass die für die Überschriften verwendete Serifenlose keine medium-bold (mb) kennt. Das passiert, weil das Paket mdugm dummer Weise \bfdefault umdefiniert.

Die Fonts kann man bei TeX Live übrigens einfach per getnonfreefonts installieren. Ob das auch mit MiKTeX funktioniert, weiß ich nicht.

Arno81

Beitrag von Arno81 »

Sooo...ich nutze auch TexLive 2014 und habe die getnonfreefonts installiert. Der Prozess endete auch soweit fehlerfrei, wie in der Anleitung beschrieben.

http://www.golatex.de/vollautomatischen ... t5386.html

Habe dann meinen Text nochmal kompiliert aber leider endet der Prozess noch immer mit einem Fehler und wirft keine PDF aus :(

Fehler:
Font shape ´T1/cmss/mb/n´ undefined(Font) using `T1/cmss/m/n`
Some font shapes were not available, Defaults substituted

Ich habe schon sämtliche Packet entfernt, ein neues Dokument erstellt aber der Fehler kommt immer wieder...ich weiß nicht woran es liegt das mir TeXstudio sagt, dass die Schrift nicht definiert ist?

Besserwisser

Beitrag von Besserwisser »

Arno81 hat geschrieben:Fehler:
Font shape ´T1/cmss/mb/n´ undefined(Font) using `T1/cmss/m/n`
Some font shapes were not available, Defaults substituted
Das ist kein Fehler – schon gar keiner, der dafür sorgt, dass kein PDF erzeugt wird –, sondern eine Warnung und erklärt habe ich die auch bereits.

Das hat auch nichts mit Texstudio zu tun.

Arno81

Beitrag von Arno81 »

da habe ich mich wohl falsch ausgedrückt.

Ich weiß bisher nur, dass die Fonts installiert sind, ich mein Dokument aber nicht mehr kompilieren kann und mir keine PDF-Vorschau im Editor angezeigt wird.

Deine Erklärung war zwar ausführlich aber ich weiß trotzdem nicht was ich nun ändern muss dass es funktioniert.

Anscheinend ist die Änderung der Schrift zu kompliziert für mich. Da es keine direkte Vorgabe ist lasse ich einfach die Standardschrift.
Trotzdem danke.

Gruß
Arno

Genmutant
Forum-Guru
Forum-Guru
Beiträge: 488
Registriert: Di 8. Jul 2008, 11:00
Wohnort: Augsburg

Beitrag von Genmutant »

Was ist denn die Fehlermeldung? Es gibt in deiner Log Datei eine Fehlermeldung die sagt was nicht stimmt. Lad doch mal das Log von dem Minimalbeispiel das nicht funzt hoch.

Arno81

Beitrag von Arno81 »

Hier ein Auszug meiner Log-Datei...ich hoffe die kann helfen.
.
.
.
(c:/texlive/2014/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2014/09/25 3.9l The Babel package

(c:/texlive/2014/texmf-dist/tex/generic/babel-german/ngerman.ldf
Language: ngerman 2013/12/13 v2.7 German support for babel (new orthography)

(c:/texlive/2014/texmf-dist/tex/generic/babel-german/ngermanb.ldf
Language: ngermanb 2013/12/13 v2.7 German support for babel (new orthography)

(c:/texlive/2014/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2014/09/25 3.9l Babel common definitions
\babel@savecnt=\count89
\U@D=\dimen103
)
\l@naustrian = a dialect from \language\l@ngerman 
\l@nswissgerman = a dialect from \language\l@ngerman 
Package babel Info: Making " an active character on input line 88.
)))
(c:/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(c:/texlive/2014/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
))
(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mathdesign.sty
Package: mathdesign 2013/08/29 v2.31 Math Design Project

(c:/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdugm/mdugm.cfg)
(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdugm/mdugm.sty
Package: mdugm 2013/08/29 v2.31 urw garamondno8 + mdugm (Math Design Project)

(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdfont.def
File: mdfont.def 2013/08/29 v2.31 (Math Design Project)
)
(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdsffont.def
File: mdsffont.def 2013/08/29 v2.31 (Math Design Project)
)
(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdttfont.def
File: mdttfont.def 2013/08/29 v2.31 (Math Design Project)
)
\symmdcal=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mdcal' in version `bold'
(Font)                  OMS/mdugm/m/n --> OMS/mdugm/b/n on input line 97.
\symmdscr=\mathgroup5
LaTeX Font Info:    Overwriting symbol font `mdscr' in version `bold'
(Font)                  OMS/mdugm/m/n --> OMS/mdugm/b/n on input line 103.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/xmdeuf/m/n --> U/xmdeuf/b/n on input line 110.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/mdugm/m/n on input line 121.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/mdugm/m/it on input line 122.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> OMS/mdugm/m/n on input line 123.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> OMX/mdugm/m/n on input line 124.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/mdugm/b/n on input line 126.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/mdugm/b/it on input line 127.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> OMS/mdugm/b/n on input line 128.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> OMX/mdugm/b/n on input line 129.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'
(Font)                  OT1/mdugm/m/n --> T1/mdugm/m/n on input line 131.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> T1/mdugm/b/n on input line 132.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> T1/mdugm/m/it on input line 133.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> T1/cmss/m/n on input line 134.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> T1/cmtt/m/n on input line 135.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'
(Font)                  OT1/mdugm/b/n --> T1/mdugm/b/n on input line 137.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> T1/mdugm/b/n on input line 138.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> T1/mdugm/b/it on input line 139.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> T1/cmss/b/n on input line 140.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> T1/cmtt/b/n on input line 141.
\symlettersupright=\mathgroup6
LaTeX Font Info:    Overwriting symbol font `lettersupright' in version `bold'
(Font)                  OML/mdugm/m/n --> OML/mdugm/b/n on input line 144.
LaTeX Font Info:    Redeclaring math alphabet \mathrm on input line 145.
LaTeX Font Info:    Overwriting math alphabet `\mathcal' in version `normal'
(Font)                  OMS/mdugm/m/n --> OMS/mdugm/m/n on input line 167.

(c:/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

(c:/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks17
\XKV@tempa@toks=\toks18
)
\XKV@depth=\count90
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
LaTeX Font Info:    Try loading font information for T1+mdugm on input line 186
.

(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdugm/t1mdugm.fd
File: t1mdugm.fd 2013/08/29 Fontinst v1.933 font definitions for T1/mdugm.
)
LaTeX Font Info:    Redeclaring math accent \widetilde on input line 449.
LaTeX Font Info:    Redeclaring math accent \widehat on input line 450.
Now handling font encoding MDA ...
... no UTF-8 mapping file for font encoding MDA
\symmathdesignA=\mathgroup7
LaTeX Font Info:    Overwriting symbol font `mathdesignA' in version `bold'
(Font)                  MDA/mdugm/m/n --> MDA/mdugm/b/n on input line 491.
Now handling font encoding MDB ...
... no UTF-8 mapping file for font encoding MDB
\symmathdesignB=\mathgroup8
LaTeX Font Info:    Overwriting symbol font `mathdesignB' in version `bold'
(Font)                  MDB/mdugm/m/n --> MDB/mdugm/b/n on input line 498.
\@emptytoks=\toks19
LaTeX Font Info:    Redeclaring math accent \widetilde on input line 532.
LaTeX Font Info:    Redeclaring math accent \widehat on input line 533.
\rulethickness=\skip48
)
(c:/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(c:/texlive/2014/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
))) (./LaTeX.aux)
\openout1 = `LaTeX.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for MDA/cmr/m/n on input line 16.
LaTeX Font Info:    Try loading font information for MDA+cmr on input line 16.

(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdacmr.fd
File: mdacmr.fd 
)
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for MDB/cmr/m/n on input line 16.
LaTeX Font Info:    Try loading font information for MDB+cmr on input line 16.

(c:/texlive/2014/texmf-dist/tex/latex/mathdesign/mdbcmr.fd
File: mdbcmr.fd 
)
LaTeX Font Info:    ... okay on input line 16.

Kapitel 1.
LaTeX Font Info:    Font shape `T1/cmss/m/n' will be
(Font)              scaled to size 11.34009pt on input line 19.

LaTeX Font Warning: Font shape `T1/cmss/mb/n' undefined
(Font)              using `T1/cmss/m/n' instead on input line 19.

LaTeX Font Info:    Font shape `T1/cmss/mb/n' will be
(Font)              scaled to size 23.51178pt on input line 19.
LaTeX Font Info:    Font shape `T1/cmss/mb/n' will be
(Font)              scaled to size 11.34009pt on input line 22.
LaTeX Font Info:    Font shape `T1/cmss/mb/n' will be
(Font)              scaled to size 16.32971pt on input line 22.
[1



{c:/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./LaTeX.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 ) 
Here is how much of TeX's memory you used:
 3799 strings out of 493109
 54287 string characters out of 6138587
 156207 words of memory out of 5000000
 7238 multiletter control sequences out of 15000+600000
 12424 words of font info for 22 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 41i,6n,52p,2683b,170s stack positions out of 5000i,500n,10000p,200000b,80000s
{c:/texlive/2014/texmf-dist/fonts/enc/dvips/ly1/texnansi.enc}{c:/texlive/2014
/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}<c:/texlive/2014/texmf-dis
t/fonts/type1/public/cm-super/sfss1728.pfb><c:/texlive/2014/texmf-dist/fonts/ty
pe1/public/cm-super/sfss2488.pfb>
!pdfTeX error: pdflatex.exe (file ugmr8a.pfb): cannot open Type 1 font file for
 reading
 ==> Fatal error occurred, no output PDF file produced!

Besserwisser

Beitrag von Besserwisser »

Arno81 hat geschrieben:
!pdfTeX error: pdflatex.exe (file ugmr8a.pfb): cannot open Type 1 font file for
 reading
Der Font ist nicht korrekt installiert.

Normalerweise müsste die Datei unter /usr/local/texlive/texmf-local/fonts/type1/urw/garamond/ugmr8a.pfb stehen und von pdflatex dort dann auch gefunden werden.

Antworten