von latextxt » Fr 11. Mär 2016, 15:05
Das habe ich gestern auch gelesen, aber ich kann es nicht fixen.
Bei mir wird der Befehl nicht angezeigt und wenn ich \citeTitle nehme, dann kommt.
"Undefined control sequence. \citeTitle"
Mein code sieht gerade so aus, ich glaube, die Literatur ist aus einem Template und ich blicke gerade nicht durch ...

Wo ich die Literatur überall definiert habe.
%% LyX 2.0.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,english,
ngerman,intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn]{scrbook}
\usepackage{lmodern}
%%%%%%%%%%%%%%% change default style %%%%%%%%%%%%%%%
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
%%%%%%%%%%%%%%% insert more custom command %%%%%%%%%%%%%%%
\newcommand{\zmyName}{Name}
\newcommand{\zslash}{$\backslash$}
\newcommand{\zl}{\glq}
\newcommand{\zll}{\glqq}
\newcommand{\zr}{\grq{ }}
\newcommand{\zrr}{\grqq{ }}
\newcommand{\fett}[1]{{\bf #1}}
\newcommand{\znopageNumbering}{\pagenumbering{gobble}}
% use this to clear double page
\newcommand{\zchapter}[1]{{\let\cleardoublepage\relax\chapter{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% so that the footnote seriously on the footline
\usepackage[bottom]{footmisc}
\usepackage[T1]{fontenc}
% change font to new times roman
%\usepackage{mathptmx}
%\renewcommand{\familydefault}{\rmdefault}
% Change font to arial
%\usepackage[scaled]{uarial}
\usepackage[latin9]{inputenc}
\usepackage{fancyhdr}
\usepackage{color}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
%main laguage is english
\usepackage[english,ngerman]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{nomencl}
%%%%%%%%%%%%%%%%% DEFINE CONTENT STYLE
% define how depth your sub_section should be
\setcounter{secnumdepth}{6}
% define how depth your contents should be show
\setcounter{tocdepth}{3}
\usepackage{greekctr}
% how should your numbering look like
\newcommand{\tocthechapter}{\Roman{chapter}}
\newcommand{\tocthesection}{\arabic{section}}
\newcommand{\tocthesubsection}{\alph{subsection}}
\newcommand{\tocthesubsubsection}{\alph{subsubsection}}
\newcommand{\toctheparagraph}{\greek{paragraph}}
% how should your content list look like Alph Roman arabic greek
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\thechapter{.}\arabic{section}}
\renewcommand{\thesubsection}{\thesection{.}\alph{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection\alph{subsubsection}}
\renewcommand{\theparagraph}{\thesubsubsection\greek{paragraph}}
%%%%%%%%%%%%%%%%% END OF CONTENT STYLE
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={Finding complementary products in RDF-Graphs},
pdfauthor={\zmyName},
pdfsubject={Arbeit zur Erlangung des Masters der Technischen Fakultät der Albert-Ludwigs-Universität Freiburg im Breisgau},
pdfkeywords={Masterarbeit},
pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% Linkfläche für Querverweise vergrößern und automatisch benennen
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasngerman{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}
\renewcommand{\figureautorefname}{Abb.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{chap.\negthinspace}
\renewcommand{\subsectionautorefname}{chap.\negthinspace}
\renewcommand{\subsubsectionautorefname}{chap.\negthinspace}
\renewcommand{\figureautorefname}{fig.\negthinspace}
\renewcommand{\tableautorefname}{tab.\negthinspace}
}
}
% für den Fall, dass jemand die Bezeichnung "Gleichung" haben will
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
% Setzt den Link für Sprünge zu Gleitabbildungen
% auf den Anfang des Gelitobjekts und nicht aufs Ende
\usepackage[figure]{hypcap}
% F8 to create new Bibliography
% F5 to create new document
% Die Seiten des Inhaltsverzeichnisses werden römisch numeriert,
% ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
%\mainmatter
}
% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}
% erlaubt LaTeX-Berechnungen
\usepackage{calc}
% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
% Vergrößert den Teil der Seite, in dem Gleitobjekte
% unten angeordnet werden dürfen
\renewcommand{\bottomfraction}{0.5}
% Vermeidet, dass Gleitobjekte vor ihrem Abschnitt gedruckt werden
\let\mySection\section\renewcommand{\section}{\suppressfloats[tt]\mySection}
% deutscher Name für die Nomenklatur
\renewcommand{\nomname}{Nomenklatur}
\makeatother
\begin{document}
\include{Deckblatt}
\cleardoublepage{}
\pagestyle{empty}
\input{Erklärung}
\input{abstract}
\cleardoublepage{}
\lhead{\rightmark}
\rhead[\leftmark]{}
\lfoot[\thepage]{}
\cfoot{}
\selectlanguage{english}
\pagenumbering{Roman}
\rfoot[]{\thepage}
% contents index
\tableofcontents{}
\mainmatter
\cleardoublepage{}
\pagestyle{plain}
\cleardoublepage{}
\pagestyle{fancy}
%%%%%%%%%%%%%%% define where thepage should be show
\fancyhf{}
\fancyhead[L]{\leftmark}
\fancyhead[R]{\rightmark}
\fancyfoot[R]{\thepage}
%%%%%%%%%%%%%%% end of define thepage position
\lhead[\chaptername~\thechapter]{\rightmark}
% \include is faster because, they compile the file seperate and merge back
% \input is equals to insert the command in this position
\input{Sample}
\cleardoublepage{}
%\lhead[]{Danksagung}
%\rhead[Danksagung]{}
%\include{Danksagung}
\appendix
\cleardoublepage{}
\lhead[]{\rightmark}
\rhead[\leftmark]{}
% insert ref path and file
% abbrv refrences style with numeric
% alphadin references style with short token and more in subfolder "biblio"
\selectlanguage{english}
\bibliographystyle{biblio/abbrv}
\bibliography{biblio/Plasma}
\cleardoublepage{}
\lhead[]{Nomenklatur}
\rhead[Nomenklatur]{}
% print references
\printnomenclature[2.5cm]{}
\end{document}
Ich habe außerdem mit ein kleinem Beispiel ausprobiert
\documentclass{article}
\begin{filecontents*}{foo.bib}
@Book{Knuth:ct-a,
author = "Donald E. Knuth",
title = "The {\TeX}book",
publisher = "Addison-Wesley",
year = "1986",
volume = "A",
series = "Computers and Typesetting",
pages = "ix + 483",
}
}
\end{filecontents*}
\usepackage{biblatex}
\bibliography{foo}
\begin{document}
\citetitle{Knuth:ct-a} \newline
\printbibliography
\end{document}
Es zeigt mir trotzdem kein Titel an, sondern nur "Knuth:ct-a".
Das habe ich gestern auch gelesen, aber ich kann es nicht fixen.
Bei mir wird der Befehl nicht angezeigt und wenn ich \citeTitle nehme, dann kommt.
"Undefined control sequence. \citeTitle"
Mein code sieht gerade so aus, ich glaube, die Literatur ist aus einem Template und ich blicke gerade nicht durch ... :(
Wo ich die Literatur überall definiert habe.
[code]
%% LyX 2.0.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,english,
ngerman,intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn]{scrbook}
\usepackage{lmodern}
%%%%%%%%%%%%%%% change default style %%%%%%%%%%%%%%%
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
%%%%%%%%%%%%%%% insert more custom command %%%%%%%%%%%%%%%
\newcommand{\zmyName}{Name}
\newcommand{\zslash}{$\backslash$}
\newcommand{\zl}{\glq}
\newcommand{\zll}{\glqq}
\newcommand{\zr}{\grq{ }}
\newcommand{\zrr}{\grqq{ }}
\newcommand{\fett}[1]{{\bf #1}}
\newcommand{\znopageNumbering}{\pagenumbering{gobble}}
% use this to clear double page
\newcommand{\zchapter}[1]{{\let\cleardoublepage\relax\chapter{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% so that the footnote seriously on the footline
\usepackage[bottom]{footmisc}
\usepackage[T1]{fontenc}
% change font to new times roman
%\usepackage{mathptmx}
%\renewcommand{\familydefault}{\rmdefault}
% Change font to arial
%\usepackage[scaled]{uarial}
\usepackage[latin9]{inputenc}
\usepackage{fancyhdr}
\usepackage{color}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
%main laguage is english
\usepackage[english,ngerman]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{nomencl}
%%%%%%%%%%%%%%%%% DEFINE CONTENT STYLE
% define how depth your sub_section should be
\setcounter{secnumdepth}{6}
% define how depth your contents should be show
\setcounter{tocdepth}{3}
\usepackage{greekctr}
% how should your numbering look like
\newcommand{\tocthechapter}{\Roman{chapter}}
\newcommand{\tocthesection}{\arabic{section}}
\newcommand{\tocthesubsection}{\alph{subsection}}
\newcommand{\tocthesubsubsection}{\alph{subsubsection}}
\newcommand{\toctheparagraph}{\greek{paragraph}}
% how should your content list look like Alph Roman arabic greek
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\thechapter{.}\arabic{section}}
\renewcommand{\thesubsection}{\thesection{.}\alph{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection\alph{subsubsection}}
\renewcommand{\theparagraph}{\thesubsubsection\greek{paragraph}}
%%%%%%%%%%%%%%%%% END OF CONTENT STYLE
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={Finding complementary products in RDF-Graphs},
pdfauthor={\zmyName},
pdfsubject={Arbeit zur Erlangung des Masters der Technischen Fakultät der Albert-Ludwigs-Universität Freiburg im Breisgau},
pdfkeywords={Masterarbeit},
pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% Linkfläche für Querverweise vergrößern und automatisch benennen
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasngerman{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}
\renewcommand{\figureautorefname}{Abb.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{chap.\negthinspace}
\renewcommand{\subsectionautorefname}{chap.\negthinspace}
\renewcommand{\subsubsectionautorefname}{chap.\negthinspace}
\renewcommand{\figureautorefname}{fig.\negthinspace}
\renewcommand{\tableautorefname}{tab.\negthinspace}
}
}
% für den Fall, dass jemand die Bezeichnung "Gleichung" haben will
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
% Setzt den Link für Sprünge zu Gleitabbildungen
% auf den Anfang des Gelitobjekts und nicht aufs Ende
\usepackage[figure]{hypcap}
% F8 to create new Bibliography
% F5 to create new document
% Die Seiten des Inhaltsverzeichnisses werden römisch numeriert,
% ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
%\mainmatter
}
% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}
% erlaubt LaTeX-Berechnungen
\usepackage{calc}
% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
% Vergrößert den Teil der Seite, in dem Gleitobjekte
% unten angeordnet werden dürfen
\renewcommand{\bottomfraction}{0.5}
% Vermeidet, dass Gleitobjekte vor ihrem Abschnitt gedruckt werden
\let\mySection\section\renewcommand{\section}{\suppressfloats[tt]\mySection}
% deutscher Name für die Nomenklatur
\renewcommand{\nomname}{Nomenklatur}
\makeatother
\begin{document}
\include{Deckblatt}
\cleardoublepage{}
\pagestyle{empty}
\input{Erklärung}
\input{abstract}
\cleardoublepage{}
\lhead{\rightmark}
\rhead[\leftmark]{}
\lfoot[\thepage]{}
\cfoot{}
\selectlanguage{english}
\pagenumbering{Roman}
\rfoot[]{\thepage}
% contents index
\tableofcontents{}
\mainmatter
\cleardoublepage{}
\pagestyle{plain}
\cleardoublepage{}
\pagestyle{fancy}
%%%%%%%%%%%%%%% define where thepage should be show
\fancyhf{}
\fancyhead[L]{\leftmark}
\fancyhead[R]{\rightmark}
\fancyfoot[R]{\thepage}
%%%%%%%%%%%%%%% end of define thepage position
\lhead[\chaptername~\thechapter]{\rightmark}
% \include is faster because, they compile the file seperate and merge back
% \input is equals to insert the command in this position
\input{Sample}
\cleardoublepage{}
%\lhead[]{Danksagung}
%\rhead[Danksagung]{}
%\include{Danksagung}
\appendix
\cleardoublepage{}
\lhead[]{\rightmark}
\rhead[\leftmark]{}
% insert ref path and file
% abbrv refrences style with numeric
% alphadin references style with short token and more in subfolder "biblio"
\selectlanguage{english}
\bibliographystyle{biblio/abbrv}
\bibliography{biblio/Plasma}
\cleardoublepage{}
\lhead[]{Nomenklatur}
\rhead[Nomenklatur]{}
% print references
\printnomenclature[2.5cm]{}
\end{document}
[/code]
Ich habe außerdem mit ein kleinem Beispiel ausprobiert
[code]\documentclass{article}
\begin{filecontents*}{foo.bib}
@Book{Knuth:ct-a,
author = "Donald E. Knuth",
title = "The {\TeX}book",
publisher = "Addison-Wesley",
year = "1986",
volume = "A",
series = "Computers and Typesetting",
pages = "ix + 483",
}
}
\end{filecontents*}
\usepackage{biblatex}
\bibliography{foo}
\begin{document}
\citetitle{Knuth:ct-a} \newline
\printbibliography
\end{document}
[/code]
Es zeigt mir trotzdem kein Titel an, sondern nur "Knuth:ct-a".