關於 Yannis 之前完成的 tex 設計的問題

關於 Yannis 之前完成的 tex 設計的問題

我從以下位置獲得了存儲庫轉儲github博士碩士(我必須承認雅尼斯所做的令人印象深刻的工作)我正在重讀我的自我出版作品草稿,並且我已經瀏覽了他的作品。試圖複製他在包裝中的一種風格,看看它是如何工作的。在他的文件 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章 第2章

答案1

一個有效的答案,但在發布工作範例之前,您必須從他的安裝 Yiannis Lazarides 包github程式碼編譯是必需的。關於如何安裝 phd 套件的說明可在他的 Github 上找到(一個漂亮的套件 - 有問題但仍然很棒)安裝:解壓縮文件,並在終端機(linux 和 OS X)或 cmd(windows)上

 pdflatex phd.dtx
 makeindex -s gind.ist -g phd

我使用了包裝上提供的 style06 模板。我修改過的模板也在上面。我不確定如何產生 MWE,因為它還需要安裝 phd 套件 \usepackage{phd} ,因此並不是每個人都有 Yiannis 的 phd 套件Github style06 不變最小。因此你將需要 phd 包github如果你有興趣。我製作的 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}

在各處的小幫助下自己學習和解決所有問題的感覺真是太棒了。我學到了很多東西,我很高興成為回答我自己問題的人。如果有人對我的回答有疑問,請隨時詢問或私訊我,如果有幫助,我會製作一個視頻

相關內容