b166er
02-07-2012, 07:29
hallo,
kann mir vielleicht einer sagen, wie ich den zeilenabstand von subsection und zeile 1 bei folgendem beispiel ändern kann bzw. ich will keinen besonderen abstand.
dann noch eine frage, wenn man ein foto einfügt bzw. den code aktiviert, wird zwar das foto korrekt eingefügt, jedoch kommt immer eine meldung "hbox error", weis jemand wie man das regeln kann ?
\documentclass[fontsize=11pt, a4paper, pagesize, headinclude, footinclude, headings=normal]{scrartcl}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage{scrpage2}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[german=quotes]{csquotes}
\usepackage{eso-pic}
\usepackage{calc}
\tolerance=200 % white space
\clubpenalty = 1000 % orphans
\widowpenalty = 1000 % widows
% ===========================
% VARIABLES
% ===========================
% must be defined, BEFORE koma-moderncvclassic is loaded!
% address; not needed variables should be commented out
\renewcommand*{\title}{Lebenslauf}
\newcommand*{\firstname}{Minna}
\newcommand*{\familyname}{Barnhelm}
\newcommand*{\acadtitle}{}
\newcommand*{\addressstreet}{Way of no return 77}
\newcommand*{\addresscity}{9999 Hinterdemmond}
\newcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\newcommand*{\mobile}{00123456789}
%\newcommand*{\phone}{}
%\newcommand*{\faxnr}{}
\newcommand*{\email}{minna@barnhelm.edu}
%\newcommand*{\extrainfo}{}
%\renewcommand*{\quote}{}
% ===========================
% LENGTHS
% ===========================
% must be defined, BEFORE koma-moderncvclassic is loaded!
% left column width (default value: 2,79cm)
% uncomment the \newlength-command, and uncomment and adjust one of the \set...-commands to change the default value
% \newlength\myhintscolumnwidth
% \settowidth\myhintscolumnwidth{Left column takes this text's width}
% \setlength\myhintscolumnwidth{.3\textwidth}
% \setlength\myhintscolumnwidth{5cm}
% ===========================
% KOMA-MODERNCVCLASSIC
% ===========================
\usepackage[myblue]{koma-moderncvclassic} % color theme as option; default = myblue; other predefined colors that may be used: red, green, blue, cyan, magenta, yellow, black, white, darkgray, gray, lightgray
% picture
% \photo[frame]{3.5cm}{04}
% 'frame' gives a frame around the picture (=default), 'noframe' does not;
% '3cm' is the width the picture must be resized to;
% 'picture.jpg' is the name of the picture file
% ===========================
% ADAPTIONS
% ===========================
\renewcommand*{\familydefault}{\sfdefault}% default font sans-serif
\renewcommand*{\addressfont}{\normalsize\sffamily\ mdseries\slshape}% sans-serif font for address, too
%\renewcommand{\firstnamefont}{\fontsize{24}{26}\s ffamily\mdseries\upshape} % name in smaller font
\newcommand*{\totalpagemark}{\usekomafont{pagenumb er}\thepage/\pageref{lastpage}}% for page and pagetotal
% ===========================
% HEAD- AND FOOTLINES
% ===========================
\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
%\ofoot{\totalpagemark}
%\ihead{}
%\ohead{}
% ===========================
% SEITENUMRANDUNG
% ===========================
\makeatletter
\newlength{\x}\newlength{\y}
\newlength{\width}\newlength{\height}
\setlength{\x}{0.3cm}%% horizontaler Abstand
\setlength{\y}{0.3cm}%% vertikaler Abstand
\setlength{\width}{\paperwidth-\x*2}
\setlength{\height}{\paperheight-\y*2}
\AddToShipoutPicture{%
\thicklines
\put(\strip@pt\x,\strip@pt\y){%
\framebox(\strip@pt\width,\strip@pt\height){}
}}
\makeatother
% ================================================== ================
% DOCUMENT
% ================================================== ================
\begin{document}
\maketitle
\section{Personal Information}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}
\section{Section}
\subsection{Subsection}
\cventry{Zeile 1}{Zeile 1/Zeile 1}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{University}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{Job Training}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\section{Languages}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}
\section{Computer Knowledges}
\cvcomputer{category}{programs}{category}{programs }
\cvcomputer{category}{programs}{category}{programs }
\label{lastpage}% needed for computing pagetotal
\end{document}
kann mir vielleicht einer sagen, wie ich den zeilenabstand von subsection und zeile 1 bei folgendem beispiel ändern kann bzw. ich will keinen besonderen abstand.
dann noch eine frage, wenn man ein foto einfügt bzw. den code aktiviert, wird zwar das foto korrekt eingefügt, jedoch kommt immer eine meldung "hbox error", weis jemand wie man das regeln kann ?
\documentclass[fontsize=11pt, a4paper, pagesize, headinclude, footinclude, headings=normal]{scrartcl}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage{scrpage2}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[german=quotes]{csquotes}
\usepackage{eso-pic}
\usepackage{calc}
\tolerance=200 % white space
\clubpenalty = 1000 % orphans
\widowpenalty = 1000 % widows
% ===========================
% VARIABLES
% ===========================
% must be defined, BEFORE koma-moderncvclassic is loaded!
% address; not needed variables should be commented out
\renewcommand*{\title}{Lebenslauf}
\newcommand*{\firstname}{Minna}
\newcommand*{\familyname}{Barnhelm}
\newcommand*{\acadtitle}{}
\newcommand*{\addressstreet}{Way of no return 77}
\newcommand*{\addresscity}{9999 Hinterdemmond}
\newcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\newcommand*{\mobile}{00123456789}
%\newcommand*{\phone}{}
%\newcommand*{\faxnr}{}
\newcommand*{\email}{minna@barnhelm.edu}
%\newcommand*{\extrainfo}{}
%\renewcommand*{\quote}{}
% ===========================
% LENGTHS
% ===========================
% must be defined, BEFORE koma-moderncvclassic is loaded!
% left column width (default value: 2,79cm)
% uncomment the \newlength-command, and uncomment and adjust one of the \set...-commands to change the default value
% \newlength\myhintscolumnwidth
% \settowidth\myhintscolumnwidth{Left column takes this text's width}
% \setlength\myhintscolumnwidth{.3\textwidth}
% \setlength\myhintscolumnwidth{5cm}
% ===========================
% KOMA-MODERNCVCLASSIC
% ===========================
\usepackage[myblue]{koma-moderncvclassic} % color theme as option; default = myblue; other predefined colors that may be used: red, green, blue, cyan, magenta, yellow, black, white, darkgray, gray, lightgray
% picture
% \photo[frame]{3.5cm}{04}
% 'frame' gives a frame around the picture (=default), 'noframe' does not;
% '3cm' is the width the picture must be resized to;
% 'picture.jpg' is the name of the picture file
% ===========================
% ADAPTIONS
% ===========================
\renewcommand*{\familydefault}{\sfdefault}% default font sans-serif
\renewcommand*{\addressfont}{\normalsize\sffamily\ mdseries\slshape}% sans-serif font for address, too
%\renewcommand{\firstnamefont}{\fontsize{24}{26}\s ffamily\mdseries\upshape} % name in smaller font
\newcommand*{\totalpagemark}{\usekomafont{pagenumb er}\thepage/\pageref{lastpage}}% for page and pagetotal
% ===========================
% HEAD- AND FOOTLINES
% ===========================
\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
%\ofoot{\totalpagemark}
%\ihead{}
%\ohead{}
% ===========================
% SEITENUMRANDUNG
% ===========================
\makeatletter
\newlength{\x}\newlength{\y}
\newlength{\width}\newlength{\height}
\setlength{\x}{0.3cm}%% horizontaler Abstand
\setlength{\y}{0.3cm}%% vertikaler Abstand
\setlength{\width}{\paperwidth-\x*2}
\setlength{\height}{\paperheight-\y*2}
\AddToShipoutPicture{%
\thicklines
\put(\strip@pt\x,\strip@pt\y){%
\framebox(\strip@pt\width,\strip@pt\height){}
}}
\makeatother
% ================================================== ================
% DOCUMENT
% ================================================== ================
\begin{document}
\maketitle
\section{Personal Information}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}
\section{Section}
\subsection{Subsection}
\cventry{Zeile 1}{Zeile 1/Zeile 1}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{University}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{Job Training}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\section{Languages}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}
\section{Computer Knowledges}
\cvcomputer{category}{programs}{category}{programs }
\cvcomputer{category}{programs}{category}{programs }
\label{lastpage}% needed for computing pagetotal
\end{document}