von Primealodon » Di 12. Mär 2019, 00:44
Wie kann ich den vorhandenen Unterstrich verkürzen? Ich hätte gerne, dass der Strich erst unter dem Wort Weltreise anfängt.
Vielen Dank!
% Das ist mein LaTeX-Dokument.
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{xifthen}
\usepackage[default]{raleway}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage{moresize}
\usepackage[a4paper]{geometry}
\geometry{top=1.75cm, bottom=-.6cm, left=1.2cm, right=1.2cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
%indentation is zero
\setlength{\parindent}{0mm}
%----------------------------------------------------------------------------------------
% TABLE /ARRAY DEFINITIONS
%----------------------------------------------------------------------------------------
%for layouting tables
\usepackage{multicol}
\usepackage{multirow}
%extended aligning of tabular cells
\usepackage{array}
\newcolumntype{x}[1]{%
>{\raggedleft\hspace{0pt}}p{#1}}%
%----------------------------------------------------------------------------------------
% GRAPHICS DEFINITIONS
%----------------------------------------------------------------------------------------
%for header image
\usepackage{graphicx}
%for floating figures
\usepackage{wrapfig}
\usepackage{float}
%\floatstyle{boxed}
%\restylefloat{figure}
%for drawing graphics
\usepackage{tikz}
\usetikzlibrary{shapes, backgrounds,mindmap, trees}
%============================================================================%
% DEFINITIONS
%============================================================================%
%----------------------------------------------------------------------------------------
% HEADER
%----------------------------------------------------------------------------------------
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\thepage}{}
\renewcommand{\thesection}{}
%----------------------------------------------------------------------------------------
% ARROW GRAPHICS in Tikz
%----------------------------------------------------------------------------------------
% a six pointed arrow poiting to the left
\newcommand{\tzlarrow}{(0,0) -- (0.2,0) -- (0.3,0.2) -- (0.2,0.4) -- (0,0.4) -- (0.1,0.2) -- cycle;}
% include the left arrow into a tikz picture
% param1: fill color
%
\newcommand{\larrow}[1]
{\begin{tikzpicture}[scale=0.58]
\filldraw[fill=#1!100,draw=#1!100!black] \tzlarrow
\end{tikzpicture}
}
% a six pointed arrow poiting to the right
\newcommand{\tzrarrow}{ (0,0.2) -- (0.1,0) -- (0.3,0) -- (0.2,0.2) -- (0.3,0.4) -- (0.1,0.4) -- cycle;}
% include the right arrow into a tikz picture
% param1: fill color
%
\newcommand{\rarrow}
{\begin{tikzpicture}[scale=0.7]
\filldraw[fill=sectcol!100,draw=sectcol!100!black] \tzrarrow
\end{tikzpicture}
}
%----------------------------------------------------------------------------------------
% custom sections
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% CV EVENT
%----------------------------------------------------------------------------------------
% creates a stretched box as cv entry headline followed by two paragraphs about
% the work you did
% param 1: event time i.e. 2014 or 2011-2014 etc.
% param 2: event name (what did you do?)
% param 3: institution (where did you work / study)
% param 4: what was your position
% param 5: some words about your contributions
%
\newcommand{\cvevent}[5]
{
\vspace{8pt}
\begin{tabular*}{1\textwidth}{p{1.9cm} p{10.8cm} x{4.9cm}}
\textcolor{bgcol}{#1}& \textbf{#2} & \vspace{2.5pt}\textcolor{sectcol}{#3}
\end{tabular*}
\vspace{-12pt}
\textcolor{softcol}{\hrule}
\vspace{6pt}
\begin{tabular*}{1\textwidth}{p{2.3cm} p{14.4cm}}
& \larrow{bgcol} #4\\[3pt]
& \larrow{bgcol} #5\\[6pt]
\end{tabular*}
}
%============================================================================%
% DOCUMENT CONTENT
%============================================================================%
\begin{document}
\pagestyle{fancy}
\cvevent{08/2014}{Weltreise}{Asien}{Kennenlernen einer komplett fremden Kultur}{Bereisen mehrerer Länder auf dem Rückweg von Neuseeland nach Deutschland}
\end{document}
Wie kann ich den vorhandenen Unterstrich verkürzen? Ich hätte gerne, dass der Strich erst unter dem Wort Weltreise anfängt.
Vielen Dank!
[code]% Das ist mein LaTeX-Dokument.
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{xifthen}
\usepackage[default]{raleway}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage{moresize}
\usepackage[a4paper]{geometry}
\geometry{top=1.75cm, bottom=-.6cm, left=1.2cm, right=1.2cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
%indentation is zero
\setlength{\parindent}{0mm}
%----------------------------------------------------------------------------------------
% TABLE /ARRAY DEFINITIONS
%----------------------------------------------------------------------------------------
%for layouting tables
\usepackage{multicol}
\usepackage{multirow}
%extended aligning of tabular cells
\usepackage{array}
\newcolumntype{x}[1]{%
>{\raggedleft\hspace{0pt}}p{#1}}%
%----------------------------------------------------------------------------------------
% GRAPHICS DEFINITIONS
%----------------------------------------------------------------------------------------
%for header image
\usepackage{graphicx}
%for floating figures
\usepackage{wrapfig}
\usepackage{float}
%\floatstyle{boxed}
%\restylefloat{figure}
%for drawing graphics
\usepackage{tikz}
\usetikzlibrary{shapes, backgrounds,mindmap, trees}
%============================================================================%
% DEFINITIONS
%============================================================================%
%----------------------------------------------------------------------------------------
% HEADER
%----------------------------------------------------------------------------------------
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\thepage}{}
\renewcommand{\thesection}{}
%----------------------------------------------------------------------------------------
% ARROW GRAPHICS in Tikz
%----------------------------------------------------------------------------------------
% a six pointed arrow poiting to the left
\newcommand{\tzlarrow}{(0,0) -- (0.2,0) -- (0.3,0.2) -- (0.2,0.4) -- (0,0.4) -- (0.1,0.2) -- cycle;}
% include the left arrow into a tikz picture
% param1: fill color
%
\newcommand{\larrow}[1]
{\begin{tikzpicture}[scale=0.58]
\filldraw[fill=#1!100,draw=#1!100!black] \tzlarrow
\end{tikzpicture}
}
% a six pointed arrow poiting to the right
\newcommand{\tzrarrow}{ (0,0.2) -- (0.1,0) -- (0.3,0) -- (0.2,0.2) -- (0.3,0.4) -- (0.1,0.4) -- cycle;}
% include the right arrow into a tikz picture
% param1: fill color
%
\newcommand{\rarrow}
{\begin{tikzpicture}[scale=0.7]
\filldraw[fill=sectcol!100,draw=sectcol!100!black] \tzrarrow
\end{tikzpicture}
}
%----------------------------------------------------------------------------------------
% custom sections
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% CV EVENT
%----------------------------------------------------------------------------------------
% creates a stretched box as cv entry headline followed by two paragraphs about
% the work you did
% param 1: event time i.e. 2014 or 2011-2014 etc.
% param 2: event name (what did you do?)
% param 3: institution (where did you work / study)
% param 4: what was your position
% param 5: some words about your contributions
%
\newcommand{\cvevent}[5]
{
\vspace{8pt}
\begin{tabular*}{1\textwidth}{p{1.9cm} p{10.8cm} x{4.9cm}}
\textcolor{bgcol}{#1}& \textbf{#2} & \vspace{2.5pt}\textcolor{sectcol}{#3}
\end{tabular*}
\vspace{-12pt}
\textcolor{softcol}{\hrule}
\vspace{6pt}
\begin{tabular*}{1\textwidth}{p{2.3cm} p{14.4cm}}
& \larrow{bgcol} #4\\[3pt]
& \larrow{bgcol} #5\\[6pt]
\end{tabular*}
}
%============================================================================%
% DOCUMENT CONTENT
%============================================================================%
\begin{document}
\pagestyle{fancy}
\cvevent{08/2014}{Weltreise}{Asien}{Kennenlernen einer komplett fremden Kultur}{Bereisen mehrerer Länder auf dem Rückweg von Neuseeland nach Deutschland}
\end{document}
[/code]