texlive[72357] Master/texmf-dist: pgfornament-han (23sep24)
commits+karl at tug.org
commits+karl at tug.org
Mon Sep 23 23:19:22 CEST 2024
Revision: 72357
https://tug.org/svn/texlive?view=revision&revision=72357
Author: karl
Date: 2024-09-23 23:19:22 +0200 (Mon, 23 Sep 2024)
Log Message:
-----------
pgfornament-han (23sep24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/pgfornament-han/README.md
trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.pdf
trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.tex
trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-sample.tex
trunk/Master/texmf-dist/tex/latex/pgfornament-han/beamerthemeTianQing.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg
trunk/Master/texmf-dist/doc/latex/pgfornament-han/sample-refs.bib
trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf
trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.tex
Modified: trunk/Master/texmf-dist/doc/latex/pgfornament-han/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/README.md 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/README.md 2024-09-23 21:19:22 UTC (rev 72357)
@@ -1,12 +1,12 @@
-# pgfornament-han 2023/10/29
-A pgfornament library for Chinese traditional motifs and patterns.
+# pgfornament-han 2024/09/19
+A pgfornament library for Chinese traditional motifs and patterns. We also provide three beamer themes namely XiaoShan, HeavenlyClouds and TianQing based on these motifs. TianQing can also be used as a `beamerposter` theme, with some modifications.
-以 pgfornament 宏包的机制,实现绘制汉风图纹。在此基础上设计了三款beamer主题:「萧山」(XiaoShan)、「神马浮云」(Heavenly Clouds)、「天青」(TianQing)。
+以 pgfornament 宏包的机制,实现绘制汉风图纹。在此基础上设计了三款beamer主题:「萧山」(XiaoShan)、「神马浮云」(HeavenlyClouds)、「天青」(TianQing)。「天青」亦可略加修改应用在海报设计上。
-# Maintainers 宏包维护
+## Maintainers 宏包维护
LianTze Lim 林莲枝 (liantze at gmail.com)
-# Contributors 开发人员
+## Contributors 开发人员
Chennan Zhang (23637935 at qq.com) drew the motifs using a CAD application,
re-drew them in `TikZ`, and granted permission for these to be turned into
a library suitable for use with the `pgfornament` package by LianTze Lim.
@@ -13,5 +13,5 @@
所有图纹均由张晨南以 CAD 设计、以TikZ绘制,再由林莲枝转为适用 pgfornament 机制的宏包代码。
-# License
+## License
[LaTeX Project Public License (LPPL 1.3c)](https://www.latex-project.org/lppl/lppl-1-3c/)
Added: trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg 2024-09-23 21:19:22 UTC (rev 72357)
Property changes on: trunk/Master/texmf-dist/doc/latex/pgfornament-han/SiO2.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.tex 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/pgfornament-han-doc.tex 2024-09-23 21:19:22 UTC (rev 72357)
@@ -5,6 +5,7 @@
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
+\usepackage{multicol}
\usepackage{ragged2e}
\usepackage[svgnames]{xcolor}
\usepackage{pgfornament-han}
@@ -103,7 +104,7 @@
\title{汉风图纹 \texttt{pgfornament-han}}
\author{林莲枝、张晨南}
-\date{2023/10/29\\\url{https://github.com/liantze/pgfornament-han}}
+\date{2024/09/19\\\url{https://github.com/liantze/pgfornament-han}}
\begin{document}
@@ -111,7 +112,7 @@
\begin{abstract}
利用 \texttt{pgfornament} 宏包可以在 \LaTeX{} 文件里便捷地画出十分典雅漂亮的、欧式风格的花纹。(详情请自行访问 \url{http://ctan.org/pkg/pgfornament})
- \texttt{pgfornament-han} 宏包的用意,正是为了尝试用 \texttt{pgfornament} 的已有机制,提供一些汉风的传统图纹。所有图纹均由\emph{张晨南}以 CAD 程式定稿、TikZ 绘制,再由\emph{林莲枝}转为适合 \texttt{pgfornament} 机制使用的宏包代码。
+ \texttt{pgfornament-han} 宏包的用意,正是为了尝试用 \texttt{pgfornament} 的已有机制,提供一些汉风的传统图纹。所有图纹均由\emph{张晨南}以 CAD 程式定稿、TikZ 绘制,再由\emph{林莲枝}转为适合 \texttt{pgfornament} 机制使用的宏包代码。我们也基于这些图纹尝试设计了一些beamer幻灯片及海报主题,详见\hyperref[appendix-start]{附录}。
\end{abstract}
\part{基本用法}
@@ -515,7 +516,7 @@
\appendix
\setlength{\parindent}{2\ccwd}\justifying
\ctexset{section/name={附录}}
-\phantomsection\addcontentsline{toc}{part}{附录}
+\phantomsection\label{appendix-start}\addcontentsline{toc}{part}{附录}
\section{传统中国颜色 \texttt{cncolours.sty}}
@@ -2063,10 +2064,10 @@
\end{minted}
\end{itemize}
-\clearpage
+
\section{天青 Beamer 主题 Tian Qing Beamer Theme \texttt{beamerthemeTianqing.sty}}
-几年前看到一个很喜欢的舞台演出,根据个人印象做的一个Beamer主题。本来想取名「青花瓷」的。不过始终没能力重现出来那种感觉啦,眼高手低,惭愧。
+几年前看到一个\href{https://www.bilibili.com/video/BV1my4y1B7Vx/?p=156}{很喜欢的舞台演出},根据个人印象做的一个Beamer主题。本来想取名「青花瓷」的。不过始终没能力重现出来那种感觉啦,眼高手低,惭愧。
(话说拿这个模板去做科研学术性报告,真的不会被导师丢出来吗。)
@@ -2102,7 +2103,8 @@
\mintinline{latex}|\setCJKfamilyfont{zhkai}{Xingkai SC}|
-一些可以自己更改的颜色:
+\begin{multicols}{2}
+\noindent 一些可以自己更改的颜色:
\begin{minted}{latex}
\setbeamercolor{structure}{fg=墨色}
\setbeamercolor{section page}{fg=紫檀}
@@ -2112,5 +2114,43 @@
\setbeamercolor{example text}{fg=鸦青}
\setbeamercolor{block title}{fg=绀青}
\end{minted}
+\columnbreak
+\noindent 其它一些可以自己更改的设置:
+\begin{minted}{latex}
+\setlength{\TQTopDecoWidth}{0.7\paperwidth}
+\setlength{\TQBottomDecoWidth}{0.2\paperwidth}
+\renewcommand{\TQTopDecoOpacity}{0.3}
+\renewcommand{\TQBottomDecoOpacity}{0.45}
+\end{minted}
+\end{multicols}
+这些设置(以及beamer本身自带的设置参数)经过一些适当更改,也可以配合\texttt{beamerposter}宏包制作学术海报。请参考 \texttt{qianqing-poster.tex} 示范文档。
+
+\begin{tcblisting}{listing side comment,title={海报范例},image comment={width=\hsize}{tianqing-poster.pdf}}
+ \documentclass[t,linewidth=1.4]{ctexbeamer}
+ \usepackage[size=a4,orientation=portrait,
+ scale=1.4]{beamerposter}
+ \usetheme{TianQing}
+
+ \setbeamerfont{block title}{size=\Large}
+ \setlength{\TQBottomDecoWidth}{0.2\paperwidth}
+ % ...以及其它适当改动,
+ % 详见tianqing-poster.tex
+
+ \title{当天青beamer主题拿来做海报}
+ \author{作者甲、作者乙、作者丙}
+ \begin{document}
+ \begin{frame}
+ \frametitle{\insertshorttitle}
+ \framesubtitle{\insertshortauthor}
+ \begin{block}{天青色等烟雨}
+ \begin{itemize}
+ \item 炊烟袅袅升起, 隔江千万里。
+ \item ...
+ \end{itemize}
+ \end{block}
+ \end{frame}
+ \end{document}
+ \end{tcblisting}
+
\end{document}
Added: trunk/Master/texmf-dist/doc/latex/pgfornament-han/sample-refs.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/sample-refs.bib (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/sample-refs.bib 2024-09-23 21:19:22 UTC (rev 72357)
@@ -0,0 +1,10 @@
+ at article{ShaoShen2022,
+ author={邵松雪 and 沈海云},
+ title={青花瓷选美记},
+ journal={大学化学},
+ year={2022},
+ volume={37},
+ number={9},
+ pages={2110061},
+ doi={10.3866/PKU.DXHX202110061}
+}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/pgfornament-han/sample-refs.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf 2024-09-23 21:19:22 UTC (rev 72357)
Property changes on: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.tex 2024-09-23 21:19:22 UTC (rev 72357)
@@ -0,0 +1,134 @@
+% !TEX program=xelatex
+\documentclass[t,linewidth=1.4]{ctexbeamer}
+
+\usepackage[size=a4,orientation=portrait,scale=1.4]{beamerposter}
+
+\usetheme{TianQing}
+% 可以把zhkai,zhfs更改成自己喜欢的美术字体、书法字体等
+% \setCJKfamilyfont{zhkai}{STXingkai} % Win有
+% \setCJKfamilyfont{zhkai}{Xingkai SC} % Mac有
+% \setCJKfamilyfont{zhkai}{鸿雷板书简体-正式版.otf}[Path=fonts/] % 自行下载
+% \setCJKfamilyfont{zhfs}{ZhuqueFangsong-Regular.ttf}[Path=fonts/] % 自行下载
+
+\usepackage[style=gb7714-2015]{biblatex}
+\addbibresource{sample-refs.bib}
+\usepackage{chemformula}
+\usepackage{qrcode}
+\usepackage{graphicx}
+
+% 幻灯片->海报需要的一些改动
+\setbeamerfont{frametitle}{size=\Huge}
+\setbeamerfont{framesubtitle}{size=\large}
+\setbeamerfont{block title}{size=\Large}
+% 。左上角、右下角的装饰可以酌情调整大小……不然右下真的有点太大
+% (或者要故意保留原大小来充版面也不是不可以哈哈哈
+% \setlength{\TQTopDecoWidth}{0.5\paperwidth}
+\setlength{\TQBottomDecoWidth}{0.2\paperwidth}
+% \renewcommand{\TQTopDecoOpacity}{0.3}
+% \renewcommand{\TQBottomDecoOpacity}{0.45}
+
+\title{当天青beamer主题拿来做海报}
+\author{作者甲、作者乙、作者丙}
+
+\begin{document}
+
+\begin{frame}
+
+% ……懒得折腾了,\frametitle挺好看的,就这样吧【躺平ing
+\frametitle{\insertshorttitle}
+\framesubtitle{\insertshortauthor}
+
+\begin{block}{天青色等烟雨}
+ \begin{itemize}
+ \item 炊烟袅袅升起, 隔江千万里。
+ \begin{itemize}
+ \item 在瓶底书刻隶仿前朝的飘逸
+ \begin{itemize}
+ \item 就当我为遇见你伏笔
+ \end{itemize}
+ \end{itemize}
+ \end{itemize}
+
+ \begin{enumerate}
+ \item 本来这个beamer主题样式,想取名“青花瓷”的。不过始终没能力重现出来那种感觉啦,就算了。
+ \item 话说拿这个模板去做科研学术性报告,真的不会被导师丢出来吗。
+ \end{enumerate}
+\end{block}
+
+\begin{columns}[T]
+ \column{.47\textwidth}
+
+ \begin{exampleblock}{算了我也不知道在写什么,do you?}
+ Now solve $x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}$. 对各位同学来说应该挑战不大。
+ \end{exampleblock}
+
+ \begin{alertblock}{算了我也不知道在写什么,do you?}
+ \[ x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a} \]
+ \end{alertblock}
+
+ \begin{block}{算了我也不知道在写什么,do you?}
+ \[ x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a} \]
+ \end{block}
+
+ \begin{proof}
+ 显而易见,$1+1=2$.
+ \end{proof}
+
+ \begin{theorem}
+ 有一件很美好的事情将要发生,它终会发生。
+ \end{theorem}
+
+ \column{.47\textwidth}
+
+ \begin{block}{青花瓷}
+ \begin{itemize}
+ \item 炊烟袅袅升起, 隔江千万里。
+ \begin{itemize}
+ \item 在瓶底书刻隶仿前朝的飘逸
+ \begin{itemize}
+ \item 就当我为遇见你伏笔
+ \end{itemize}
+ \end{itemize}
+ \end{itemize}
+
+ \begin{enumerate}
+ \item 本来这个beamer主题样式,想取名“青花瓷”的。不过始终没能力重现出来那种感觉啦,就算了。
+ \item 话说拿这个模板去做科研学术性报告,真的不会被导师丢出来吗。
+ \item \begin{minipage}[t]{.8\hsize}(其实我当初设计这个beamer主题的印象不完全源自原曲,更多是来自这个片段)\end{minipage}\quad
+ \raisebox{-.5em}{\structure{\qrcode[height=2\ccwd]{https://www.bilibili.com/video/BV1my4y1B7Vx/?p=156}}}
+ \end{enumerate}
+ \end{block}
+
+ 有时不用blocks也挺好的。
+ \begin{enumerate}
+ \item 雨纷纷 旧故里草木深
+ \item 我听闻 你始终一个人
+ \begin{enumerate}
+ \item 斑驳的城门 盘踞着老树根
+ \begin{enumerate}
+ \item 石板上回荡的是 再等
+ \item 石板上回荡的是 再等
+ \end{enumerate}
+ \end{enumerate}
+ \end{enumerate}
+\end{columns}
+
+\begin{block}{\ch{SiO2}与\ch{Al2O3}受热变化过程 \cite{ShaoShen2022}}
+ \Large\centering
+\ch{!(高岭石)( Al2O3*2 SiO2*2 H2O ) ->[脱水] !(偏高岭石)( Al2O3 * 2 SiO2 ) ->[加热] !(硅铝尖晶石)( 2 Al2O3 * 3 SiO2 ) ->[加热] !(莫来石)( 3 Al2O3 * 2 SiO2 )}
+\end{block}
+
+\begin{block}{二氧化硅结构及存在形态\cite{ShaoShen2022}}
+\centering
+\includegraphics[width=.8\textwidth]{SiO2}\par
+(1) 二氧化硅(SiO2)结构;(2) 结晶二氧化硅;(3) 无定形二氧化硅
+\end{block}
+
+\vfill
+
+\begin{block}[width=.9\textwidth]{\refname}
+\printbibliography[heading=none]
+\end{block}
+
+\end{frame}
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-poster.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-sample.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-sample.tex 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/doc/latex/pgfornament-han/tianqing-sample.tex 2024-09-23 21:19:22 UTC (rev 72357)
@@ -12,9 +12,13 @@
% \setbeamercolor{section page deco}{fg=紫檀}
% \setbeamercolor{top deco}{fg=老银}
% \setbeamercolor{normal text}{bg=铅白}
-% \setbeamercolor{alerted text}{fg=玄色}
-% \setbeamercolor{example text}{fg=鸦青}
-% \setbeamercolor{block title}{fg=绀青}
+% \setbeamercolor{alerted text}{fg=栗色}
+% \setbeamercolor{example text}{fg=苍青}
+% \setbeamercolor{block title}{fg=靛青}
+% \setlength{\TQTopDecoWidth}{0.7\paperwidth}
+% \setlength{\TQBottomDecoWidth}{0.2\paperwidth}
+% \renewcommand{\TQTopDecoOpacity}{0.3}
+% \renewcommand{\TQBottomDecoOpacity}{0.45}
\begin{document}
Modified: trunk/Master/texmf-dist/tex/latex/pgfornament-han/beamerthemeTianQing.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgfornament-han/beamerthemeTianQing.sty 2024-09-23 21:19:02 UTC (rev 72356)
+++ trunk/Master/texmf-dist/tex/latex/pgfornament-han/beamerthemeTianQing.sty 2024-09-23 21:19:22 UTC (rev 72357)
@@ -1,4 +1,4 @@
-% beamerthemeXiaoshan.sty v1.01 2023/10/29
+% beamerthemeXiaoshan.sty v1.02 2024/09/19
% by LianTze Lim (liantze at gmail.com)
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeTianQing}
@@ -35,6 +35,7 @@
\setbeamerfont{section name}{family=\kaishu,size=\Large}
\setbeamerfont{section title}{family=\kaishu,size=\huge}
\setbeamerfont{section in toc}{family=\kaishu,size=\large}
+\setbeamerfont{block title}{family=\kaishu\romankai,series=\bfseries}
\setbeamercolor{alerted text}{fg=樱桃色}
\setbeamercolor{example text}{fg=绿沉}
@@ -41,6 +42,13 @@
\setbeamercolor{block title}{fg=宝蓝}
\setbeamercolor{mini frame}{bg=天青色}
+\newlength{\TQTopDecoWidth}
+\newlength{\TQBottomDecoWidth}
+\setlength{\TQTopDecoWidth}{.5\paperheight}
+\setlength{\TQBottomDecoWidth}{.2\paperheight}
+\newcommand{\TQTopDecoOpacity}{.2}
+\newcommand{\TQBottomDecoOpacity}{.9}
+
\AddToHook{begindocument/before}{%
\newsavebox{\bulletboxone}
\savebox{\bulletboxone}{\usebeamercolor[fg]{structure}\tikz\node[line width=0pt,inner sep=0pt,outer sep=0pt]{\pgfornamenthan[height=1ex]{43}};}
@@ -55,12 +63,12 @@
\savebox{\topcornermotif}{%
\usebeamercolor{deco outline}%
\usebeamercolor{top deco}%
- \tikzset{pgfornamentstyle/.style={rotate=30,color=top deco.fg,draw=deco outline.fg,opacity=.2,inner sep=0pt,ultra thick}}\pgfornamenthan[width=.5\paperheight]{64}}
+ \tikzset{pgfornamentstyle/.style={rotate=30,color=top deco.fg,draw=deco outline.fg,opacity=\TQTopDecoOpacity,inner sep=0pt,ultra thick}}\pgfornamenthan[width=\TQTopDecoWidth]{64}}
\newsavebox{\bottomcornermotif}
\savebox{\bottomcornermotif}{%
\usebeamercolor{structure}%
- \tikzset{pgfornamentstyle/.style={color=structure.fg,opacity=.9,inner sep=0pt,very thick}}\pgfornamenthan[width=.2\paperheight,symmetry=v]{74}}%
+ \tikzset{pgfornamentstyle/.style={color=structure.fg,opacity=\TQBottomDecoOpacity,inner sep=0pt,very thick}}\pgfornamenthan[width=\TQBottomDecoWidth,symmetry=v]{74}}%
}
\setbeamertemplate{itemize item}{\raisebox{.08\ccwd}{\usebox{\bulletboxone}}}
@@ -108,7 +116,7 @@
coltitle = alerted text.fg!70!black,
colback = alerted text.bg,
halign title = flush center,
- fonttitle=\kaishu\romankai\bfseries,
+ fonttitle=\usebeamerfont{block title alerted},
title = #2,
#1
}
@@ -128,7 +136,7 @@
coltitle = example text.fg!70!black,
colback = example text.bg,
halign title = flush center,
- fonttitle=\kaishu\romankai\bfseries,
+ fonttitle=\usebeamerfont{block title example},
title = #2,
#1
}
@@ -150,7 +158,7 @@
coltitle = block title.fg!70!black,
colback = block title.bg,
halign title = flush center,
- fonttitle=\kaishu\romankai\bfseries,
+ fonttitle=\usebeamerfont{block title},
title = #2,
#1
}
More information about the tex-live-commits
mailing list.