add example page with all styles and views.
This commit is contained in:
parent
755de2caa9
commit
91905281c7
|
@ -1,16 +1,50 @@
|
|||
\noindent\stitle{\pexample}\spar\vspace{0mm}\noindent
|
||||
\scolor{black}{black}\newline
|
||||
\scolor{white}{white}\newline
|
||||
\scolor{link}{link}\newline
|
||||
\scolor{main}{main}\newline
|
||||
\scolor{gray}{gray}\newline
|
||||
\scolor{lgray}{lgray}\newline
|
||||
\scolor{ref}{ref}\sparn
|
||||
\begin{scode}
|
||||
\scstring{string}
|
||||
\scliteral{literal}
|
||||
\scproperty{property}
|
||||
\sckeyword{keyword}
|
||||
\sccomment{comment}
|
||||
\end{scode}\sparn
|
||||
\sreset{reset}\newline
|
||||
\stext{text}\newline
|
||||
\sitallic{itallic}\newline
|
||||
\sbold{bold}\newline
|
||||
\ssemibold{semi-bold}\newline
|
||||
\sunderline{underline}\newline
|
||||
\slink{link}{https://example.com}\newline
|
||||
\sicon{ic_cake}\stext{icon}\newline
|
||||
\shref{hyperlink}\newline
|
||||
\sref{reference}\newline
|
||||
\sbullet\stext{bullet}\newline
|
||||
\stitle{title}\sparn
|
||||
\sblcompact\stext{compact}\newline\stext{text}\sparn
|
||||
\sbldefault\stext{default}\newline\stext{text}\sparn
|
||||
\sparn
|
||||
\vlist{%
|
||||
\en{sample list}%
|
||||
\ru{пример списка}%
|
||||
}{%
|
||||
\en{sample text}%
|
||||
\ru{пример текста}%
|
||||
\en{sample}%
|
||||
\ru{пример}%
|
||||
}{%
|
||||
\en{sample text}%
|
||||
\ru{пример текста}\newline%
|
||||
\vradio{3}%
|
||||
\en{sample}%
|
||||
\ru{пример}%
|
||||
}{%
|
||||
example.com%
|
||||
}{%
|
||||
a;b;c%
|
||||
}
|
||||
\en{a}%
|
||||
\ru{а};%
|
||||
\en{b}%
|
||||
\ru{б};%
|
||||
\en{c}%
|
||||
\ru{в}%
|
||||
}\sparn
|
||||
\vradio{3}
|
||||
|
|
|
@ -28,18 +28,17 @@
|
|||
% styles.
|
||||
\newcommand{\sreset} [1]{\fontsize{12}{12}\selectfont\rm\color{black}#1} % reset font style.
|
||||
\newcommand{\spar} [0]{\par} % default paragraph break.
|
||||
\newcommand{\sparn} [0]{\par\noindent} % default paragraph break without indent.
|
||||
\newcommand{\stext} [1]{\sreset{#1}} % default text.
|
||||
\newcommand{\sitallic} [1]{\textit{#1}} % itallic text.
|
||||
\newcommand{\sbold} [1]{\textbf{#1}} % bold text.
|
||||
\newcommand{\ssemibold} [1]{\fontseries{sb}{\selectfont{#1}}} % semi-bold text.
|
||||
\newcommand{\sunderline}[1]{\underline{#1}} % underline text.
|
||||
\newcommand{\slink} [2]{\href{#1}{\textcolor{link}{\sunderline{#2}}}} % link webpage.
|
||||
\newcommand{\sname} [1]{\fontsize{21}{21}{\selectfont{\ssemibold{#1}}}} % name style.
|
||||
\newcommand{\slink} [2]{\href{#2}{\textcolor{link}{\sunderline{#1}}}} % link webpage.
|
||||
\newcommand{\scolor} [2]{\textcolor{#1}{#2}} % text color alias.
|
||||
\newcommand{\sicon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % icons.
|
||||
\newcommand{\shref} [1]{\hyperlink{#1}{\textcolor{link}{\sunderline{#1}}}} % reference section.
|
||||
\newcommand{\sref} [1]{\textcolor{ref}{#1}} % reference text.
|
||||
\newcommand{\slist} [1]{\textcolor{lgray}{#1}} % list numbers.
|
||||
\newcommand{\sbullet} [0]{\sicon{ic_bullet}\hspace{4mm}} % list bullet symbol.
|
||||
\newcommand{\stitle} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
||||
{\selectfont{\textcolor{main}{\ssemibold{#1}}}}} % section title.
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
\setsepchar{;}%
|
||||
\ignoreemptyitems%
|
||||
\readlist\elements{#5}%
|
||||
\foreachitem\element\in\elements{\stext{\slist{\sbullet}\ \element}\newline}
|
||||
\foreachitem\element\in\elements{\stext{\sbullet\ \element}\newline}
|
||||
\def\plink{#4}\ifx\plink\empty{}\else{\slistlink{#4}\spar}\fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue