
나는 다음에서 저장소 덤프를 얻었습니다.깃허브박사학위박사(Yiannis가 한 인상적인 작업은 인정해야 합니다.) 저는 자체 출판을 위해 작업 초안을 읽는 중이거나 다시 읽고 있으며 그의 작업을 살펴보았습니다. 그가 패키지에 있는 스타일 중 하나를 복제하여 그것이 어떻게 작동하는지 확인하려고 했습니다. 그의 파일에는 style06 tex에 다음과 같은 내용이 있었습니다.
그의 테스트 샘플을 읽고 다음을 추론했습니다. 여기에 내 코드가 있습니다. 여기에서 도움을 주시면 기쁘고 감사하겠습니다. 이는 연습용이므로 이해되면 나중에 디자인, 색상 및 글꼴을 변경할 것입니다. 그 위에
코드를 수정했고 이제 작동합니다. 코드를 개선하는 방법에 대한 여러분의 의견을 듣고 싶습니다. 이것이 내가 컴파일하는 데 사용하는 것입니다
\documentclass{book}
\usepackage[left=1.5in,right=1.5in]{geometry}
\usepackage{phd}
\sethyperref
\input{defaultstyle}
\begin{document}
\mainmatter
\input{./styles/style06}
\chapter{An Inevitable Introduction}
\cxset{style06}
\expandafter\epigraph{I believe.}{08/26/19986}
\lettrine{\textcolor{orange} {N}}{}ow, I understand some of the mystery hidden from me, and mastered the craft of eavesdropping on the senses. I know it will not help much, but it is better than believing that life is fruitless and that the luck is the master. All things in this world are balanced and in their places, even those calamities, evils, and the coincidences are ordered alphabetically and preplanned!
The world has its own secret, and things disclose about its holiness and it is full of insinuations and passwords that cached in all what we see; but we do not see and we do not understand too. Perhaps we were affected by our humanity then we could not able be as the world wants us to be, to see in every peccadillo a sign to the special kingdom.
Oh! How stupid we are when we claim acumen and knowledge! We do not know anything about ourselves, we do not know about life except what we want to delude ourselves that we know. We quarrel with the truth as if it is our eternal enemy and devil holds all the contradictions. How naïve we are when we always ask about life and its secret as if we just created to solve the puzzles! Only now I know that life is easy and complex just like pants' zipper.
According to the experts: "As much as Man grows up as much as he revealed the truth of things obviously, and as much as he learns something new as much as he gets closer from the fact. Every day Man matures and his ideas and vision of the world mature too. That is the philosophy of the Supreme entities, and the secret of our research and endless questions." I say: "As much as Man grows up as much as he further away from the truth, and as much as he learns something new as much as he gets less knowledge. And as much as he matures as much as he becomes more stupid and naive!"
}
\end{document}\includegraphics[]{test-style32.pdf}
이것은 스타일 06 수정 템플릿입니다.
\cxset{style06/.style={
name={Chapter},
numbering=arabic,
number font-size=\Huge,
number font-family=\calligra,
number font-weight=\calligra,
number color= black!90,
number before=\hspace*{-30pt},
number dot=,
number after=,
number position=rightname,
chapter font-family=\rmfamily,
chapter font-weight=\calligra,
chapter font-size=\LARGE\calligra,
chapter before={\vspace*{20pt}\par\hfill},
chapter after={\hfill\hfill\par},
chapter color={black!90},
title beforeskip={\vspace*{50pt}},
title afterskip={\vspace{3.5pt}\par},
title before={\hfill},
title after={\hfill\hfill},
title font-family=\rmfamily,
title font-color= black!90,
title font-weight=\normalfont,
title font-size=\LARGE,
title spaceout=soul,
}}
\cxset{style06}
\chapter{Crimson Moon}
\renewcommand{\DefaultLhang}{0.1}
\renewcommand{\LettrineFontHook}{\calligra}
\setlength{\DefaultFindent}{9.5pt}
\setlength{\DefaultNindent}{0pt}
\lettrine{\textcolor{orange}{O}}{}nce upon an incendiary sand, this wind was playing with a climate known by nomads as harsh, inhabited by dusty fever and familiar to the cold-blooded snakes and invertebrates. This wind was two-sands away or whistling from an immemorial mirage which landed on the wing of a mythical bird that beaten the legends then flew in a red sky forever. Its blood -which was the only sign of optimism, was sunken in an inch of water, its saliva -which had spilt for the first time when it saw me- It saw me again and did not spill. There is no way to bet, the wound is sinking in the cactus thorn, and in the scales of lizards that adept at deception. The mirage is a birthmark of the Western desert, and its only point of weakness.\medskip
\begin{figure}[ht]
\centering
\includegraphics[width=0.6\textwidth]{/Users/chemotkbilo/Desktop/DesktopWallpapers/backgrounds_home.jpg}
\caption{I am}
\end{figure}
A mirage
\begin{lstlisting}
The beautiful Mirage re-emerge (here i want to have a box like conversation between two people) ,
\end{lstlisting}
Over the full song, the singer kept following the musical scale, but he suddenly fell at the edge of the river when frogs' disturbing sounds escalated. Let us return to the desert where the wind is a single queen of people who love the heat, even those nomads who were afraid of the wind's wrath when it spit sand on their faces and when horses find their way to flee. Oh fair Queen! Some of your people still suffering from headaches and dryness, and there is no refuge from you except these cracks. I love you because you're the only one who can cheat me and I do not dare to speak! I love you because I love to sleep! I love you because you are who I scared and I love her approaching! I love you because we are ancient in the slavery convoy heading north where this wound is an abandoned direction and deniable niche. Nomads worship the wind in secret, and bury oblations under the sands of this desert.
결과
답변1
작동하는 답변이지만 이것이 작동하려면 작동 예제를 게시하기 전에 그의 사이트에서 Yiannis Lazarides 패키지를 설치해야 합니다.깃허브코드를 컴파일하는 데 필요합니다. Github에서 사용 가능한 phd 패키지를 설치하는 방법에 대한 지침(아름다운 패키지 - 버그가 있지만 여전히 훌륭함) 설치: 파일 압축 풀기 및 터미널(linux 및 OS X) 또는 cmd(windows)
pdflatex phd.dtx
makeindex -s gind.ist -g phd
저는 패키지에 있는 style06 템플릿을 사용했습니다. 내가 수정한 템플릿도 위에 있습니다. \usepackage{phd} 도 설치된 phd 패키지가 필요하기 때문에 MWE를 생성하는 방법을 잘 모르겠습니다. 따라서 모든 사람이 Yiannis의 phd 패키지를 가지고 있는 것은 아닙니다.Github style06 변경되지 않음 최소. 따라서 phd 패키지가 필요합니다.깃허브당신이 관심이 있다면. 제가 만든 mwe 코드는 아래와 같고, phd 패키지는 github에 있는데 패키지를 설치하면 코드가 작동합니다.
\documentclass{book}
\usepackage[left=1.5in,right=1.5in]{geometry}
\usepackage{phd}
\sethyperref
\input{defaultstyle}
\begin{document}
\mainmatter
\input{./styles/style06}
\chapter{title}
\cxset{style06}
\expandafter\epigraph{text.}{name}
\lettrine{\textcolor{orange}
\lipsum
\section{Test}
\lipsum
\subsection{Test}
\lipsum
\subsubsection{Test}
\lipsum
\end{document}
여기저기서 작은 도움을 받아 스스로 모든 것을 배우고 알아내는 것이 기분이 좋습니다. 나는 많은 것을 배웠고, 내 질문에 대답하는 사람이 되어 기쁘다. 내 답변에 대해 질문이 있는 사람이 있으면 주저하지 말고 저에게 메시지를 보내주세요. 도움이 된다면 동영상을 만들겠습니다.