
나는 사용하고있다pgfornament선 구분 기호를 그립니다.
완벽하게 작동하는데 이 경우에는 열 내부에 줄 구분 기호를 배치하고 싶은데 오류가 발생합니다...
이것은 내가 만든 MWE입니다.
\documentclass[xcolor={dvipsnames,table}, hyperref={unicode}]{beamer}
\usepackage{etex}
\reserveinserts{28}
\setbeameroption{hide notes}
\mode<presentation> {
\usetheme{Singapore}
\usecolortheme{orchid}
\usepackage[dvipsnames]{xcolor}%before tikz
\usepackage[absolute,overlay]{textpos} %for positioning
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{graphicx} %Allows including images
\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
\usepackage[export]{adjustbox}% http://ctan.org/pkg/adjustbox
\usetikzlibrary{positioning,shadows,calc,mindmap,trees,shapes,
decorations.pathreplacing}%calc is already called in the beamerthemeSIgN.sty file!
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}%http://tex.stackexchange.com/questions/81899/what-does-running-in-backwards-compatibility-mode-mean-and-what-should-i-fix-t
\usepackage{multicol}
\usepackage{multirow}
%line separator
\usepackage[object=vectorian]{pgfornament}
\newcommand{\sectionline}[3]{%
\nointerlineskip \vspace{.5\baselineskip}\hspace{\fill}{
\resizebox{0.5\linewidth}{#3}{
\pgfornament[color = #1]{#2}
}
}
\hspace{\fill}
\par\nointerlineskip \vspace{.5\baselineskip}
}
\usefonttheme{serif} % default family is serif
\usepackage{fontspec}
\usepackage{lmodern}% http://ctan.org/pkg/lm
\defaultfontfeatures{Mapping=tex-text}
}
\begin{document}
%\mode* % same as ignorenonframetext
\section{Unit 1}
\subsection{}
\begin{frame}
\frametitle{My title}
\begin{columns}[T] % align columns
\begin{column}{.4\textwidth}
\includegraphics[width=\linewidth]{example-image}
\end{column}%
\hfill%
\begin{column}{.6\textwidth}
\setlength{\leftmargini}{0pt}
\begin{itemize}
\itemsep0.5em
\item Some text here
\end{itemize}
\hspace{30pt} More text here...
%\sectionline{blue}{88}{0.75ex} %I WANT THIS HERE, BUT DOESN'T WORK!
\end{column}%
\end{columns}
\sectionline{blue}{88}{0.75ex} %IT ONLY WORKS HERE
\begin{itemize}
\itemsep0.5em
\item more and more and more text
\item and yes! more text
\end{itemize}
\note{}
\end{frame}
\end{document}
그러나 나는 이미지 아래가 아닌 이미지 옆에 줄 구분 기호를 원합니다 ...
열 안에 줄 구분 기호를 넣으면 오류가 발생합니다.
수평 모드에서는 `\prevlength'를 사용할 수 없습니다.
도움이 필요하세요?
답변1
오류 메시지는 가로 모드를 떠나기 ! You can't use '\prevdepth' in horizontal mode.
전에 빈 줄을 추가하거나 Ignasi의 설명에서 제안한 대로 정의에 대한 첫 번째 호출 전에 추가할 수 있다는 것입니다 .\sectionline
\par
\nointerlineskip
\sectionline
\documentclass[xcolor={dvipsnames,table}, hyperref={unicode}]{beamer}
\usepackage{etex}
\reserveinserts{28}
\setbeameroption{hide notes}
\mode<presentation> {
\usetheme{Singapore}
\usecolortheme{orchid}
\usepackage[dvipsnames]{xcolor}%before tikz
\usepackage[absolute,overlay]{textpos} %for positioning
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{graphicx} %Allows including images
\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
\usepackage[export]{adjustbox}% http://ctan.org/pkg/adjustbox
\usetikzlibrary{positioning,shadows,calc,mindmap,trees,shapes,
decorations.pathreplacing}%calc is already called in the beamerthemeSIgN.sty file!
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}%http://tex.stackexchange.com/questions/81899/what-does-running-in-backwards-compatibility-mode-mean-and-what-should-i-fix-t
\usepackage{multicol}
\usepackage{multirow}
%line separator
\usepackage[object=vectorian]{pgfornament}
\newcommand{\sectionline}[3]{%
\nointerlineskip \vspace{.5\baselineskip}\hspace{\fill}{
\resizebox{0.5\linewidth}{#3}{
\pgfornament[color = #1]{#2}
}
}
\hspace{\fill}
\par\nointerlineskip \vspace{.5\baselineskip}
}
\usefonttheme{serif} % default family is serif
\usepackage{fontspec}
\usepackage{lmodern}% http://ctan.org/pkg/lm
\defaultfontfeatures{Mapping=tex-text}
}
\begin{document}
%\mode* % same as ignorenonframetext
\section{Unit 1}
\subsection{}
\begin{frame}
\frametitle{My title}
\begin{columns}[T] % align columns
\begin{column}{.4\textwidth}
\includegraphics[width=\linewidth]{example-image}
\sectionline{orange}{88}{0.75ex}
\end{column}%
\hfill%
\begin{column}{.6\textwidth}
\setlength{\leftmargini}{0pt}
\begin{itemize}
\itemsep0.5em
\item Some text here
\end{itemize}
\hspace{30pt} More text here...
\sectionline{magenta}{88}{0.75ex} %I WANT THIS HERE, BUT DOESN'T WORK!
\end{column}%
\end{columns}
\sectionline{blue}{88}{0.75ex} %IT ONLY WORKS HERE
\begin{itemize}
\itemsep0.5em
\item more and more and more text
\item and yes! more text
\end{itemize}
\note{}
\end{frame}
\end{document}