문서의 여러 옵션에 대한 토론

문서의 여러 옵션에 대한 토론

여러 옵션 중에서 자유롭게 선택할 수 있다는 장점과 단점이 있으며 때로는 생성된 문서의 인쇄 버전에 대해서만 사용할 수도 있습니다. 이미 검색해 본 것처럼 반대되는 권장 사항이 많이 있으며 다른 옵션보다 하나를 선호하는 이유와 내용을 듣고 싶습니다. 이러한 옵션에 대해 초보자와 논의할 수 있을 만큼 인내심을 가지시기를 바랍니다.

편집 1: 이미 가치 있고 유용한 힌트를 제공해 주셔서 대단히 감사합니다! 코드를 업데이트하고 해결된 문제를 삭제하거나 댓글에 따라 변경했습니다. 최대한 빨리 나머지 의견을 구현하도록 하겠습니다.

편집 2: 나머지 질문은 귀하의 개인적인 결정에 달려 있다고 생각하며 해결된 문제에 대해 최종 MWE를 편집했습니다. 제안된 대로 제공된 솔루션이 내 설정에서 컴파일되지 않는 문제에 관한 새로운 질문을 열었습니다.

MWE에서 사용되는 옵션은 다음과 같습니다.

\documentclass[12pt,a4paper,listof=flat,oneside]{scrartcl}
\KOMAoptions{captions=tableheading}
\usepackage{nicefrac}
\usepackage{scrlayer-scrpage}
\ihead{\headmark}
\chead*{}
\ofoot*{\pagemark}
\cfoot*{}
\pagestyle{scrheadings}
\automark[section]{section}
\setkomafont{pagehead}{\normalfont}
\KOMAoptions{
    captions=tableheading,
    headsepline=true,
    markcase=upper}\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} 
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage{xspace}
\newcommand{\eg}{\mbox{e.\,g.}\xspace}
\newcommand{\Eg}{\mbox{E.\,g.}\xspace}
\usepackage[english]{babel} 
\usepackage[left=3.00cm, right=3.00cm, top=2.00cm, bottom=2.5cm, includeheadfoot]{geometry} 
\usepackage[onehalfspacing]{setspace} 
\usepackage{lmodern}
%\usepackage{helvet}
%\renewcommand{\familydefault}{\sfdefault} 
%\fontfamily{phv}\selectfont
\usepackage{color}
\usepackage[
  pdftoolbar = false,
pdfmenubar = false, pdftitle = mwe, pdfauthor = {author}, colorlinks, allcolors = {blue}, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true ]{hyperref} \usepackage{subcaption}

\begin{document} \thispagestyle{leer} \section{Chapter one} \label{sec:ChapterOne} This text shows the current options that I have used for the printed version of my document. What and why would you change something? \begin{itemize} \item Referencing in blue. \Eg: Chapter one on page \ref{sec:ChapterOne} \item In-text math mode I use tfrac or nicefrac like this $\tfrac{1}{2}$ or this $\nicefrac{1}{2}$ and dfrac in the stand-alone equations. Or is sfrac of the xfrac package the way to go? $\sfrac{1}{2}$. What is the difference? \item Different fonts for print-out and digital copy? \Eg helvet for pdf for no serifs? \end{itemize} \newpage Thats what the pagestyle I have choosed looks like, but there is a warning about fancyhdr, how to produce the same output with KOMA?

\begin{figure}[!htbp] \null\hfill \begin{minipage}[b]{0.4\linewidth} \centering \includegraphics[width=\textwidth]{example-image-a} \subcaption{Example A}\label{fig:a} \end{minipage} \hfill \begin{minipage}[b]{0.4\linewidth} \centering \includegraphics[width=\textwidth]{example-image-b} \subcaption{Example B}\label{fig:b} \end{minipage} \hfill\null \caption{Two figures with subcaption and minipage} \end{figure} \end{document}

답변1

다음을 사용하여 머리선과 밑선을 설정하려면 scrlayer-scrpage:

\usepackage{scrlayer-scrpage}
\ihead{\headmark}
\chead*{}
\ofoot*{\pagemark}
\cfoot*{}
\pagestyle{scrheadings}
\automark[section]{section}
\setkomafont{pagehead}{\normalfont}
\KOMAoptions{captions=tableheading,
    headsepline=true,
    markcase=upper}

.\thispagestyle{plain.scrheadings}\thispagestyle{leer}

전체 코드에 포함됨(MWE의 최신 버전이 아닐 수 있음):

\documentclass[12pt,a4paper,listof=flat,oneside]{scrartcl}
\KOMAoptions{captions=tableheading}
\usepackage{nicefrac}
\usepackage{scrlayer-scrpage}
\ihead{\headmark}
\chead*{}
\ofoot*{\pagemark}
\cfoot*{}
\pagestyle{scrheadings}
\automark[section]{section}
\setkomafont{pagehead}{\normalfont}
\KOMAoptions{
    captions=tableheading,
    headsepline=true,
    markcase=upper}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} 
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage{xspace}
\newcommand{\eg}{\mbox{e.\,g.}\xspace}
\newcommand{\Eg}{\mbox{E.\,g.}\xspace}
\usepackage[english]{babel} 
\usepackage[left=3.00cm, right=3.00cm, top=2.00cm, bottom=2.5cm, includeheadfoot]{geometry} 
\usepackage[onehalfspacing]{setspace} 
\usepackage{lmodern}
%\usepackage{helvet}
%\renewcommand{\familydefault}{\sfdefault} 
%\fontfamily{phv}\selectfont
%\usepackage{thumbpdf}
\usepackage{color}
\usepackage[%
  pdftoolbar = false,
  pdfmenubar = false, 
  pdftitle   = mwe,
  pdfauthor  = {author},
  colorlinks,
  allcolors =  {blue},
  bookmarks         = true,
  bookmarksopen     = true, 
  bookmarksnumbered = true
]{hyperref}
\usepackage{subcaption}



\begin{document}
\thispagestyle{plain.scrheadings}
\section{Chapter one} \label{sec:ChapterOne}
This text shows the current options that I have used for the printed version of my document. What and why you would change something? 
\begin{itemize}
\item Referencing in blue. \Eg: Chapter one on page \ref{sec:ChapterOne}
\item In-text math mode I use tfrac or nicefrac like this $\tfrac{1}{2}$ or this $\nicefrac{1}{2}$ and dfrac in the stand-alone equations. Or is sfrac of the xfrac package the way to go? $\sfrac{1}{2}$. What is the difference?
\item Different fonts for print-out and digital copy? \Eg helvet for pdf for no serifs?
\end{itemize}
\newpage
Thats what the pagestyle I have choosed looks like, but there is a warning about fancyhdr, how to produce the same output with KOMA? There is also a warning about no thumbnail data, how to handle this one?


\begin{figure}[!htbp]
    \null\hfill
    \begin{minipage}[b]{0.4\linewidth}
    \centering \includegraphics[width=\textwidth]{example-image-a}
    \subcaption{Example A}\label{fig:a}
    \end{minipage}
    \hfill
    \begin{minipage}[b]{0.4\linewidth}
    \centering \includegraphics[width=\textwidth]{example-image-b}
    \subcaption{Example B}\label{fig:b}
    \end{minipage}   
    \hfill\null   
\caption{Two figures with subcaption and minipage}
\end{figure}    
\end{document}

관련 정보