텍스트의 다양한 색상 명암을 조정하는 방법

텍스트의 다양한 색상 명암을 조정하는 방법

질문 1

내 문서에서 다양한 색상의 농도를 조정하려면 어떻게 해야 합니까?

질문: 2

지정된 너비와 길이의 머리 규칙과 바닥 규칙을 추가하고 싶습니다. 심지어 왼쪽, 가운데, 오른쪽 머리글에 일부 텍스트를 쓰고 바닥글에도 같은 내용을 쓰고 싶습니다. geometry문서 정의(여백)를 잘못한 경우 안내해 주세요.

MWE:

\documentclass[12pt, a4paper]{article}
\usepackage[top=0.6 in,bottom=0.6 in,left=0.6 in,right=0.6 in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[shortlabels]{enumitem}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc,shapes}
\usepackage{parskip}
%line spacing
\renewcommand{\baselinestretch}{0.95} 
%reduce top margin
\addtolength{\headsep}{-0.45cm}
\begin{document}
    \large
\begin{center}
    \textcolor{Magenta}{\textbf{Exercises}} 
\end{center} 
\textcolor{Magenta}{\textbf{Example}}

\textcolor{Blue}{\textbf{Body of question Body of question Body of question Body of question}}

\textcolor{Magenta}{\textbf{Solution}}

\textcolor{Green}{\textbf{Body of solution Body of solution Body of solution Body of solution}}
\end{document} 










                                       

답변1

(xcolor여기) 그리고 fancyhdr(여기)은 추가로 사용자 정의하는 데 도움이 되지만 시작하는 데에는 도움이 됩니다.

\documentclass{article}
\usepackage{xcolor}
\usepackage{fancyhdr}
\lhead{LeftHeader}
\chead{CentreHeader}
\rhead{RightHeader}
\lfoot{LeftFooter}
\cfoot{CentreFooter}
\rfoot{RightFooter}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\begin{document}
\section*{Question 1}

\subsection*{Shades}

\textcolor{magenta}{magenta} \\
\textcolor{magenta!90!black}{magenta!90!black} \\
\textcolor{magenta!80!black}{magenta!80!black} \\
\textcolor{magenta!70!black}{magenta!70!black} \\
\textcolor{magenta!60!black}{magenta!60!black} \\
\textcolor{magenta!50!black}{magenta!50!black} \\
\textcolor{magenta!40!black}{magenta!40!black} \\
\textcolor{magenta!30!black}{magenta!30!black} \\
\textcolor{magenta!20!black}{magenta!20!black} \\
\textcolor{magenta!10!black}{magenta!10!black} \\
\textcolor{black}{black}

\subsection*{Tints}

\textcolor{magenta}{magenta} \\
\textcolor{magenta!90!white}{magenta!90!white} \\
\textcolor{magenta!80!white}{magenta!80!white} \\
\textcolor{magenta!70!white}{magenta!70!white} \\
\textcolor{magenta!60!white}{magenta!60!white} \\
\textcolor{magenta!50!white}{magenta!50!white} \\
\textcolor{magenta!40!white}{magenta!40!white} \\
\textcolor{magenta!30!white}{magenta!30!white} \\
\textcolor{magenta!20!white}{magenta!20!white} \\
\textcolor{magenta!10!white}{magenta!10!white} \\
\textcolor{white}{white}

\section*{Question 2}

Add this to your preamble:

\begin{verbatim}
\usepackage{fancyhdr}
\lhead{LeftHeader}
\chead{CentreHeader}
\rhead{RightHeader}
\lfoot{LeftFooter}
\cfoot{CentreFooter}
\rfoot{RightFooter}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\end{verbatim}

\end{document} 

산출

관련 정보