Überschriften in Arial und Text in Times New Roman?

Layout von Seiten, Rändern, Fusszeilen, usw, modifizieren


Sputnik83
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 71
Registriert: Fr 28. Dez 2012, 22:58

Überschriften in Arial und Text in Times New Roman?

Beitrag von Sputnik83 »

Ich habe für eine Hausarbeit recht strenge Formalien einzuhalten.
Im wesentlichen konnte ich die so umsetzen, nur an der Formatierung der Überschriften und des Textes scheitert es leider.

Ich muss die Überschriften erster Ebene in Arial 14 setzen, die zweiter ebene in Arial 13 und den Text in Times New Roman 12.
Grundsätzlich könnte ich mich auch mit den jeweils freien Alternativen anfreunden, aber mehr oder weniger sollte es den Ansprüchen schon gerecht werden.

Hoffe ihr könnt mir dahingehend helfen.

Lieben Dank Marius
\RequirePackage{hyphsubst}%
\HyphSubstIfExists{ngerman-x-latest}{%
\HyphSubstLet{ngerman}{ngerman-x-latest}
}{}

\documentclass[
a4paper,				% Papiergröße
twoside,				% Doppelseitig
12pt,					% Schriftgröße
listof=totoc, 			% Verzeichnisse im Inhaltsverzeichnis aufführen
bibliography=totoc, 	% Literaturverzeichnis im Inhaltsverzeichnis aufführen
index=totoc 			% Index im Inhaltsverzeichnis aufführen
]{scrreprt}
% ----------------------------------------------------------------------------

% Eingabecodierung automatisch ermitteln
\usepackage{selinput}
\SelectInputMappings{
 adieresis={ä},
 germandbls={ß},
 }
% ----------------------------------------------------------------------------

% Deutsche Sprache und Silbentrennung
\usepackage[ngerman]{babel}
% ----------------------------------------------------------------------------

\usepackage[T1]{fontenc}	% Schriftkodierung
\usepackage{lmodern}		% Schriftart
\usepackage{microtype}		% Verbesserte Darstellung

% Dummytext
\usepackage{blindtext}
% ----------------------------------------------------------------------------

% Zeilenabstände
\usepackage{setspace}
\doublespacing
% ----------------------------------------------------------------------------

% Literatur
\usepackage[style=apa, backend=biber]{biblatex} 
\DeclareLanguageMapping{ngerman}{ngerman-apa} 
\addbibresource{Bibliographie.bib}

\usepackage[babel,german=quotes,threshold=3]{csquotes}

% Seitenränder
\usepackage[
paper=a4paper, 
inner=3.5cm,
outer=2cm,
top=2cm,
bottom=2cm
]{geometry}
%-----------------------------------------------------------------------------

% Hier beginnt das eigentliche Dokument
\begin{document}
	% ----------------------------------------------------------------------------
	
	% Definition neuer Seitenzaehler (Roman) für Verzeichnisse, Anhang, etc
	\newcounter{romanPagenumber}
	% ----------------------------------------------------------------------------
	
	% roemische Seitenzahlen vor dem Hauptteil
	\cleardoublepage
	\pagenumbering{Roman}
	% ----------------------------------------------------------------------------
	
	% Verzeichnisse
	\tableofcontents 	% Inhaltsverzeichnis
	% ----------------------------------------------------------------------------
	
	% arabische Seitenzahlen im Hauptteil
	\cleardoublepage
	\setcounter{romanPagenumber}{\value{page}} % eigener Seitenzaehler erhaelt den Wert der aktuellen Seite
	\pagenumbering{arabic} % Hier beginnen wieder arabische Seitenzahlen
	% ----------------------------------------------------------------------------
	
	\blinddocument
	
	% Hier gehts weitermit den roemishen Seitenzahlen
	\cleardoublepage
	\pagenumbering{Roman}
	\setcounter{page}{\theromanPagenumber} % echten Seitenzaehler ändern
	% ----------------------------------------------------------------------------
	
	% Erzeugung der Literatur
	\printbibliography
	% ----------------------------------------------------------------------------
	
\end{document}
% ----------------------------------------------------------------------------

nixversteh
Forum-Meister
Forum-Meister
Beiträge: 530
Registriert: Di 10. Aug 2010, 09:47
Wohnort: Wrestedt

...

Beitrag von nixversteh »

Hallo Sputnik83,
ja, ja, die Professoren oder Betreuer... Gott schenke Ihnen typographische Erleuchtungen. Spaß beiseite,
teste mal diesen Code, ohne Anspruch auf Korrektheit etc.
\RequirePackage{hyphsubst}%
\HyphSubstIfExists{ngerman-x-latest}{%
\HyphSubstLet{ngerman}{ngerman-x-latest}
}{}

\documentclass[
paper=a4,            		% Papiergröße
twoside=true,            	% Doppelseitig
fontsize=12pt,               	% Schriftgröße
listof=totoc,          		% Verzeichnisse im Inhaltsverzeichnis aufführen
bibliography=totoc,    		% Literaturverzeichnis im Inhaltsverzeichnis aufführen
index=totoc          		% Index im Inhaltsverzeichnis aufführen
]{scrreprt}
% ----------------------------------------------------------------------------
% Deutsche Sprache und Silbentrennung
\usepackage[ngerman]{babel}
%---------------------------------------------------------------------------
% FONTS Tex Gyre 
%---------------------------------------------------------------------------
\usepackage{fontspec}
\usepackage{metalogo} 
\usepackage{amsmath} %% Displayed equations
\usepackage{amssymb} %% and additional symbols
\usepackage[]{unicode-math}
\setmainfont[Mapping=tex-text,
Numbers={OldStyle,Proportional},
Ligatures={TeX, Common}]
{TeX Gyre Termes}
\setmonofont[Mapping=tex-text,Scale=0.8]{TeX Gyre Cursor}
\setsansfont[Mapping=tex-text,Numbers=OldStyle,Ligatures=Common]{TeX Gyre Heros}
\setmathfont[math-style=ISO,bold-style=ISO,vargreek-shape=TeX]{TeX Gyre Pagella Math}
%---------------------------------------------------------------------------
% Überschriften
%---------------------------------------------------------------------------
\usepackage{microtype}
\setkomafont{disposition}{\fontspec{TeX Gyre Termes}} % Benutzt eine Schrift für alle Gliederungsebenen
\setkomafont{chapter}{\fontspec{TeX Gyre Heros}\Large}
\setkomafont{section}{\fontspec{TeX Gyre Heros}\large}
\setkomafont{subsection}{\fontspec{TeX Gyre Heros}\normalsize}
\setkomafont{subsubsection}{\fontspec{TeX Gyre Heros}\normalsize}
\setkomafont{paragraph}{\fontspec{TeX Gyre Heros}\normalsize}
%---------------------------------------------------------------------------
% Dummytext
%---------------------------------------------------------------------------
\usepackage{blindtext}
%---------------------------------------------------------------------------
% Zeilenabstände
%---------------------------------------------------------------------------
\usepackage{setspace}
\doublespacing
% oder 
% \setstretch{1,25}
%---------------------------------------------------------------------------
% Literatur
%---------------------------------------------------------------------------
\usepackage[style=apa, backend=biber]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\addbibresource{Bibliographie.bib}
\usepackage[babel,german=quotes,threshold=3]{csquotes}
%---------------------------------------------------------------------------
% Seitenränder
%---------------------------------------------------------------------------
\usepackage[
paper=a4paper,
inner=3.5cm,
outer=2cm,
top=2cm,
bottom=2cm
]{geometry}

\renewcommand*{\glqq}{\textquotedblleft} % Warn. entfernen: Font shape `OT1/TeXGyreTermes(0)/m/n' undefined
\renewcommand*{\grqq}{\quotedblbase} % Warn. entfernen: Font shape `OT1/TeXGyreTermes(0)/m/n' undefined
%---------------------------------------------------------------------------
% Hier beginnt das eigentliche Dokument
\begin{document}
%---------------------------------------------------------------------------
% Definition neuer Seitenzaehler (Roman) für Verzeichnisse, Anhang, etc
%---------------------------------------------------------------------------
\newcounter{romanPagenumber}
%---------------------------------------------------------------------------
% roemische Seitenzahlen vor dem Hauptteil
%---------------------------------------------------------------------------
\cleardoublepage
\pagenumbering{Roman}
%---------------------------------------------------------------------------
% Verzeichnisse
%---------------------------------------------------------------------------
\tableofcontents    % Inhaltsverzeichnis
%--------------------------------------------------------------------------- 
% arabische Seitenzahlen im Hauptteil
%---------------------------------------------------------------------------
\cleardoublepage
\setcounter{romanPagenumber}{\value{page}} % eigener Seitenzaehler erhaelt den Wert der aktuellen Seite
\pagenumbering{arabic} % Hier beginnen wieder arabische Seitenzahlen
%---------------------------------------------------------------------------
\blinddocument
% Hier gehts weitermit den roemishen Seitenzahlen
%---------------------------------------------------------------------------
\cleardoublepage
\pagenumbering{Roman}
%---------------------------------------------------------------------------
% Erzeugung der Literatur
%---------------------------------------------------------------------------
\printbibliography
%---------------------------------------------------------------------------
   
\end{document}
Gruß
Martin

PS.: Die Verwendung einer anderen Schrift hat mir eine halbe Note Abzug eingebracht, trotz vorheriger "angeblicher" Erlaubnis, eine ähnliche Schriftkombination wählen zu dürfen. Ich verabscheue Arial
Absence of evidence is not evidence of absence

Sputnik83
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 71
Registriert: Fr 28. Dez 2012, 22:58

Beitrag von Sputnik83 »

Das spuckt mir einen Fehler aus:
Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX. You must change your typesetting engine to, e.g., "xelatex" or "lualatex"instead of plain "latex" or "pdflatex". For immediate help type H <return>.
Hab mal testweise den Standardkompiler unter TexStudio auf XeLaTex geändert, dabei bekomme ich diese Fehlermeldungen:
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Termes" cannot be found. For immediate help type H <return>. {TeX Gyre Termes}
Font EU1/TeXGyreTermes(0)/m/n/12="TeX Gyre Termes:mapping=tex-text;mapping=ted font not found. {TeX Gyre Termes}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Cursor" cannot be found. For immediate help type H <return>. ...pping=tex-text,Scale=0.8]{TeX Gyre Cursor}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Heros" cannot be found. For immediate help type H <return>. ...OldStyle,Ligatures=Common]{TeX Gyre Heros}
fontspec error: "font-not-found" The font "TeX Gyre Pagella Math" cannot be found. For immediate help type H <return>. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
fontspec error: "font-not-found" The font "TeX Gyre Pagella Math" cannot be found. For immediate help type H <return>. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
fontspec error: "font-not-found" The font "TeX Gyre Pagella Math" cannot be found. For immediate help type H <return>. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
fontspec error: "font-not-found" The font "TeX Gyre Pagella Math" cannot be found. For immediate help type H <return>. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTcountfeatures with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Missing = inserted for \ifnum. ...vargreek-shape=TeX]{TeX Gyre Pagella Math}
Mit LuaLaTex kompiliert es soweit. Ist das so alles richtig?

Außerdem: Mal davon abgesehen, dass ich die hälfte des Codes nicht verstehe, scheint die Größe der Überschriften "nur" über \Large bzw. \large definiert zu werden. Ist das äquivalent zu pt14 und pt13?

Nur zum Verständnis: Wieso hast du die syntax des Präambels geändert? Spielt das irgend eine Rolle?

Und soweit: Schon mal herzlichen Dank für deine Hilfe.

Sputnik83
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 71
Registriert: Fr 28. Dez 2012, 22:58

Beitrag von Sputnik83 »

Hab gerade versucht den Code auf meine Hausarbeit anzuwenden... Obwohl das Minimalbeispiel sehr nah am eigentlichen Code ist, läuft es dort so nicht...
Package inputenc Error: inputenc is not designed for xetex or luatex. }
aber ich benutz doch gar kein inputence...

\edith:

OK, hab übersehen, dass ich den Teil mit der Eingabecodierung weg machen musste...
Gibt aber immer noch Warnungen... Anscheinend werden die Überschriften in Times New Roman gesetzt...
Font shape `EU2/phv/m/n' undefined(Font) using `EU2/lmr/m/n' instead
seems you are using a very small headheight.
Overfull \hbox (30.07909pt too wide) detected
Overfull \hbox (30.07909pt too wide) detected
Overfull \hbox (30.07909pt too wide) detected
Overfull \hbox (36.07909pt too wide) detected
Overfull \hbox (36.07909pt too wide) detected
Overfull \hbox (36.0671pt too wide) detected
Font shape `EU2/phv/m/it' undefined(Font) using `EU2/phv/m/n' instead
Font shape `EU2/phv/bx/n' undefined(Font) using `EU2/phv/m/n' instead
Some font shapes were not available, defaults substituted.

Sputnik83
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 71
Registriert: Fr 28. Dez 2012, 22:58

Beitrag von Sputnik83 »

Ich habs raus gefunden... Hatte noch einen alten Codeschnippsel dazwischem von einem anderen Versuch. Soweit scheint es zu laufen.

Bleibt nur noch meine Frage zu \large und \large im Verhältnis zu pt14 und pt13, falls mir das noch jemand beantworten könnte.

herzlichen Dank soweit

Gast

Beitrag von Gast »

In jeder guten LaTeX-Einführung und wahlweise im [d]fntguide[/d] ist dokumentiert, wie man Schriftgrößen einstellt. Wobei die 14 Punkt in Martins Beispiel bereits in Form von \large (ist bei einer Grundschriftgröße von 12pt dann 14.4pt) umgesetzt hat.

BTW: Wenn man den Mainfont und den Sansfont bereits passend gesetzt hat, ist es wenig sinnvoll für die Überschriften erneut mit \fontspec zu arbeiten. Sinnvoller wäre dann, direkt die bereits definierten Schriften zu verwenden (beispielsweise mit \sffamily).

nixversteh
Forum-Meister
Forum-Meister
Beiträge: 530
Registriert: Di 10. Aug 2010, 09:47
Wohnort: Wrestedt

...

Beitrag von nixversteh »

Hallo Gast,
BTW: Wenn man den Mainfont und den Sansfont bereits passend gesetzt hat, ist es wenig sinnvoll für die Überschriften erneut mit \fontspec zu arbeiten. Sinnvoller wäre dann, direkt die bereits definierten Schriften zu verwenden (beispielsweise mit \sffamily). 
wie macht man das korrekt?

Vielen Dank
Gruß
Martin
Absence of evidence is not evidence of absence

Bartman
Forum-Meister
Forum-Meister
Beiträge: 2456
Registriert: Do 16. Jul 2009, 21:41
Wohnort: Hessische Provinz

Beitrag von Bartman »

@nixversteh

Ich dachte beim Lesen Deines Beispiels eher an so etwas:
\setkomafont{disposition}{\sffamily} % Benutzt eine Schrift für alle Gliederungsebenen
\addtokomafont{chapter}{\Large}
\addtokomafont{section}{\large}
%\setkomafont{subsection}{\fontspec{TeX Gyre Heros}\normalsize}
%\setkomafont{subsubsection}{\fontspec{TeX Gyre Heros}\normalsize}
%\setkomafont{paragraph}{\fontspec{TeX Gyre Heros}\normalsize}

nixversteh
Forum-Meister
Forum-Meister
Beiträge: 530
Registriert: Di 10. Aug 2010, 09:47
Wohnort: Wrestedt

...

Beitrag von nixversteh »

Hallo Bartman,

danke dir für deine Antwort, schaue es mir später an.
Gruß
Martin
Absence of evidence is not evidence of absence

Antworten