PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ModernCV und Subsection



ZoliTeglas
06-03-2013, 13:53
Hallo zusammen,
ich würde gerne folgendes machen und suche nun seit Tagenb Vielleicht kann mir Jemand helfenB

Ich habe einen Lebenslauf mit ModernCV erstellt, der auch geht, bis auf 2 DingeB

1: Wenn ich eine neue Subsection aufmache, erscheint die immer im TOC. Dies will ich aber nicht und ich komme einfach nicht weiter. Wieso geht das nicht? Code wäre hier mal. Ich komme einfach nicht weiter...







\documentclass[11pt,a4paper]{moderncv}

\usepackage[german]{babel}
\usepackage{moderncv-additions}

% moderncv themes

\moderncvtheme[red]{casual}

% character encoding
\usepackage[utf8]{inputenc} % replace by the encoding you are using
\usepackage[bookmarksdepth=2]{hyperref}

% adjust the page margins
\usepackage[scale=0.75]{geometry}
\setlength{\hintscolumnwidth}{4cm} % if you want to change the width of the column with the dates


\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths


\usepackage{floatflt}

% personal data
\firstname{Peter}
\familyname{Mueller}



\address{Otto-Geiger-Straße 6}{00011 Tada} % optional, remove the line if not wanted
\mobile{+49 (0) 170 XXXX} % optional, remove the line if not wanted
\phone{+49 (0) 888 544 XXX} % optional, remove the line if not wanted
%\fax{fax (optional)} % optional, remove the line if not wanted
\email{peter.XXXX@me.com} % optional, remove the line if not wanted
%\extrainfo{additional information (optional)} % optional, remove the line if not wanted

\quote{``Das ist ein toller Frusterspruch\\ von Friede Frusterfrau.'' -- \begin{scriptsize}
Friede Frusterfrau
\end{scriptsize}} % optional, remove the line if not wanted

%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page

%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
%\show\section
\begin{document}


% color redefinitions must be after \begin{document}!

%Balken oben
\definecolor{firstnamecolor}{rgb}{0.22, 0.45, 0.70} % Blau
\definecolor{firstnamecolor}{rgb}{0.95,0.20,0.20} % Rot

%Namen und ihre Farben. Vor und Nachname können getrennte Farben haben!
\definecolor{namecolor}{rgb}{0.95,0.20,0.20} % Rot
\definecolor{familynamecolor}{rgb}{0.95,0.20,0.20}




\definecolor{quotecolor}{rgb}{0.95,0.55,0.15}

% Farbe der eigenen Adresse
\definecolor{addresscolor}{rgb}{0.45, 0.45, 0.45} % Dark Grey

% Farbe der Striche bei den einzelnen Punkten
%\definecolor{sectionrectanglecolor}{rgb}{0.22, 0.45, 0.70} % Hellblau
\definecolor{sectionrectanglecolor}{rgb}{0.95,0.20 ,0.20} % Rot


%Farbe der Ueberschriften. Koennen zweifarbig gestaltet werden
\definecolor{sectiontitlecolor}{rgb}{0.45, 0.45, 0.45} % Dunkelgrau
\definecolor{sectiontitlecolor2}{rgb}{0.45, 0.45, 0.45} % Dunkelgrau


%\definecolor{subsectioncolor}{RGB}{125,85,85}
\definecolor{subsectioncolor}{rgb}{0.95, 0.55, 0.15}

%\definecolor{footersymbolcolor}{RGB}{125,85,85}
\definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.1 5}


% Farbe der Angaben Name, Anschrift, Daten usw....!
\definecolor{color0}{rgb}{0.45,0.45,0.45} % Dunkelgrau


\makeatletter



\pagestyle{empty}
\chapter*{\color{sectiontitlecolor}Bewerbungs}{\co lor{sectiontitlecolor2}unterlagen}

\vspace*{50mm}
\begin{minipage}{\textwidth}
\vspace*{3mm}
\namestyle{\color{namecolor}\@firstname}~~\namesty le{\color{familynamecolor}\@familyname} \newline
%\hspace*{5mm}{{\color{firstnamecolor}\includegrap hics[width=200pt]{Bewerbung}}}\\[3mm]
\color{addresscolor}{\@addressstreet, \@addresscity ~~~ \\
%\mobilesymbol~\@mobile ~~~ \Telefon~\@phone~~~\emailsymbol~\@email}
\mobilesymbol~\@mobile ~~~ \emailsymbol~\@email}
\end{minipage}
\begin{minipage}{70pt}

\end{minipage}

\vfill

\begin{minipage}{1.0\textwidth}
\section{Inhalt}

\tableofcontents
\end{minipage}

\newpage
\pagestyle{fancy}
\chapter{\color{sectiontitlecolor}Curriculum}{~\co lor{sectiontitlecolor2}Vit\ae}

% Zitat
%{\color{quotecolor}\makequote}

\section{Persönliche Daten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%
\cvline{Name}{\@firstname~\@familyname}
\cvline{Anschrift}{\@addressstreet, \@addresscity}
%\cvline{Telefon}{\@phone}
\cvline{Mobil}{\@mobile}
\cvline{E-Mail}{\@email}
\cvline{Geburtsdaten}{08. Januar 1955 in Ellwangen/Jagst}
\cvline{Staatsbürgerschaft}{Deutsch}
\cvline{Familienstand}{verheiratet, 2 Kinder}
%\cvline{Wehrdienst}{abgeleistet}
%\cvline{Führerschein}{A,B,C1}
\makeatother





\section{EDV-Kenntnisse}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%
\subsection*{Betriebssysteme}
\cvitemwithcomment{OSX, Linux, Windows}{\textbf{Sehr gut}}{St\"{a}ndig im Einsatz}{}
\subsection{Programmiersprachen}{}
\cvitemwithcomment{R, Java, Pearl}{\textbf{Sehr gut}}{St\"{a}ndig im Einsatz}{}
\cvitemwithcomment{C$++$, Scheme, Turbo Pascal, Assembler}{\textbf{Gut}}{> 10 Jahre Erfahrung}{}
\cvitemwithcomment{HTML, PHP, SQL}{\textbf{Gut}}{> 5 Jahre Erfahrung}{}
\cvitemwithcomment{Matlab}{\textbf{Grundkenntnisse }}{> 2 Jahre Erfahrung}{}
\subsection{Anwendungen}
\cvitemwithcomment{Photoshop, MS Office, iWork}{\textbf{Sehr gut}}{St\"{a}ndig im Einsatz}{}



\section{Interessen und Hobbys}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%
\cvitem{Fotografie}{Ambitionierte Fotografie seit 1996}
%\cvitem{Literatur}{Verfassen von (Produkt-) Texten f\"{u}r Musikmagazine, Plattenfirmen, sowie EMP Merchandising}
\cvitem{Webdesign}{Erstellung diverser Webauftritte}
\cvitem{Webprogrammierung}{Erstellung von Datenbanken und CMS}
\cvitem{anderweitige Interessen}{Familie, Volleyball}




\end{document}








2. Das zweite ist, wenn das pdf generiert wurde und ich quasi eine Inhaltsangabe möchte, die "interaktiv" ist. Wie mache ich dies? Es geht darum, wenn ich mit Adobe Acrobat das PDF aufmache, dann kann ich doch eine Inhaltsangabe einblenden lassen, mittels der der Betrachter auf die Seite kommt. Das funktioniert einfach nicht!

Meine modern-attion.sty sieht so aus




% (c) 2010 Martin Weiglhofer <weiglhofer@ist.tugraz.at> and
% Thomas Quaritsch <t.quaritsch@student.tugraz.at>

\AtEndPreamble{

\renewcommand*{\contentsline}[4]{%
#2 \dotfill #3\\
}

\newcommand{\makequote}{
\ifthenelse{\isundefined{\@quote}}%
{}%
{\centering{%
\begin{minipage}{\quotewidth}\vspace*{2em}\centeri ng\quotestyle{\@quote}\end{minipage}%
}\\[2.5em]%
}%
}

\newcommand{\chapter}{\@ifstar
\chapterStar
\chapterNoStar }

\newcommand*{\chapterNoStar}[2]{%
{%
\addcontentsline{toc}{chapter}{#1#2}%
\chapter*{#1}{#2}%
}%
}

\newcommand*{\chapterStar}[2]{%
{%
\hfill%
{\raggedleft{\namestyle{#1}\namestyle{#2}}\\[-.35em]}%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[0.25em]}%
}%
}

\renewcommand*{\@starttoc}[1]{%
\begingroup
\makeatletter
\parskip\z@
\@input{\jobname.#1}%
\if@filesw
\expandafter\newwrite\csname tf@#1\endcsname
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
\fi
\@nobreakfalse
\endgroup
}
\def\tableofcontents{\@starttoc{toc}}

% usage: \section{<title>}
\renewcommand*{\section}[1]{%
\vspace*{3ex plus 1ex minus 1ex}%
\parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\color{se ctionrectanglecolor}\rule{\hintscolumnwidth}{1ex}} }%
\phantomsection{}% reset the anchor for hyperrefs
% \addcontentsline{toc}{part}{#1}%
\hspace{\separatorcolumnwidth}%
\parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}%
\vspace*{3ex plus 1ex minus 1ex}%
}
% \cvline[1ex]{\color{sectionrectanglecolor}\rule[0]{\hintscolumnwidth}{1ex}}{\sectionstyle{#1}}}% gives bad alignment of rectangle; too bad m{width} columns seem not to work as a valid column definition for tabular environments
% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header)

\renewenvironment{thebibliography}[1]%
{%
\subsection{\refname}%
% \vspace*{-0.65em}%
\small%
\begin{list}{\bibliographyitemlabel}%
{%
\setlength{\topsep}{0pt}%
\setlength{\labelwidth}{\hintscolumnwidth}%
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth%
\advance\leftmargin\labelsep%
\@openbib@code%
\usecounter{enumiv}%
\let\p@enumiv\@empty%
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
% \sfcode`\.\@m%
% \sfcode `\=1000\relax%
}%
{%
\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\end{list}%
}

}





Ich bitte Euch inständig um Hilfe!
Danke
Zoli