这很好,除了我想更改分隔两列的垂直线的颜色。帮助吗?
我已经看到\ setlength {\ columnseprule} {0.5pt}仅在多列环境中有效的评论。似乎在这里有效,但是如何更改颜色?
\documentclass[12pt]{article}
\usepackage[letterpaper, % Choose paper size
left= 1.0in, % Set the margins
right= 1.0in, %
top= 1.5in, %
bottom=1.5in]{geometry} %
\usepackage{paracol,lipsum}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{listings}
\usepackage{etoolbox}
\usepackage{graphicx}
\usepackage[svgnames]{xcolor}
%---------------------------- Colors ----------------------------------------------------------------------------%
\definecolor{CustomOrange}{rgb}{1, 0.43529, 0.01176} % Define custom colors
\definecolor{CustomGrey}{rgb}{0.4745, 0.4745, 0.4745}
\renewcommand{\columnseprulecolor}{\color{red}}
%---------------------------- Header ----------------------------------------------------------------------------%
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{1pt} % Thickness of header rule
\renewcommand{\headrule}{\hbox to\headwidth{ %
\color{CustomOrange}\leaders\hrule height \headrulewidth\hfill}} %
%---------------------------- Set Columns -----------------------------------------------------------------------%
\setlength\headheight{52pt}
\lhead{\includegraphics[width=3cm]{./images/intendere}}
\columnsep=0.05\textwidth
\setcolumnwidth{.35\textwidth, .6\textwidth} % One entry for each column, see paracol{} below
\tolerance=1 % Code fixes the justification issue with columns flowing over
\emergencystretch=\maxdimen %
\hyphenpenalty=10000 %
\hbadness=10000 %
\setlength{\columnseprule}{0.5pt}
%---------------------------- Begin Document---------------------------------------------------------------------%
\begin{document}
\begin{paracol}{2}
\lipsum
\switchcolumn
\lipsum
\end{paracol}
\end{document}
答案 0 :(得分:0)
以下代码有效:
\setlength{\columnseprule}{1.5pt}
\colseprulecolor{red}