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
|
\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{%
|
\vlist{%
|
||||||
\en{sample list}%
|
\en{sample list}%
|
||||||
\ru{пример списка}%
|
\ru{пример списка}%
|
||||||
}{%
|
}{%
|
||||||
\en{sample text}%
|
\en{sample}%
|
||||||
\ru{пример текста}%
|
\ru{пример}%
|
||||||
}{%
|
}{%
|
||||||
\en{sample text}%
|
\en{sample}%
|
||||||
\ru{пример текста}\newline%
|
\ru{пример}%
|
||||||
\vradio{3}%
|
|
||||||
}{%
|
}{%
|
||||||
example.com%
|
example.com%
|
||||||
}{%
|
}{%
|
||||||
a;b;c%
|
\en{a}%
|
||||||
}
|
\ru{а};%
|
||||||
|
\en{b}%
|
||||||
|
\ru{б};%
|
||||||
|
\en{c}%
|
||||||
|
\ru{в}%
|
||||||
|
}\sparn
|
||||||
|
\vradio{3}
|
||||||
|
|
|
@ -28,18 +28,17 @@
|
||||||
% styles.
|
% styles.
|
||||||
\newcommand{\sreset} [1]{\fontsize{12}{12}\selectfont\rm\color{black}#1} % reset font style.
|
\newcommand{\sreset} [1]{\fontsize{12}{12}\selectfont\rm\color{black}#1} % reset font style.
|
||||||
\newcommand{\spar} [0]{\par} % default paragraph break.
|
\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{\stext} [1]{\sreset{#1}} % default text.
|
||||||
\newcommand{\sitallic} [1]{\textit{#1}} % itallic text.
|
\newcommand{\sitallic} [1]{\textit{#1}} % itallic text.
|
||||||
\newcommand{\sbold} [1]{\textbf{#1}} % bold text.
|
\newcommand{\sbold} [1]{\textbf{#1}} % bold text.
|
||||||
\newcommand{\ssemibold} [1]{\fontseries{sb}{\selectfont{#1}}} % semi-bold text.
|
\newcommand{\ssemibold} [1]{\fontseries{sb}{\selectfont{#1}}} % semi-bold text.
|
||||||
\newcommand{\sunderline}[1]{\underline{#1}} % underline text.
|
\newcommand{\sunderline}[1]{\underline{#1}} % underline text.
|
||||||
\newcommand{\slink} [2]{\href{#1}{\textcolor{link}{\sunderline{#2}}}} % link webpage.
|
\newcommand{\slink} [2]{\href{#2}{\textcolor{link}{\sunderline{#1}}}} % link webpage.
|
||||||
\newcommand{\sname} [1]{\fontsize{21}{21}{\selectfont{\ssemibold{#1}}}} % name style.
|
|
||||||
\newcommand{\scolor} [2]{\textcolor{#1}{#2}} % text color alias.
|
\newcommand{\scolor} [2]{\textcolor{#1}{#2}} % text color alias.
|
||||||
\newcommand{\sicon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % icons.
|
\newcommand{\sicon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % icons.
|
||||||
\newcommand{\shref} [1]{\hyperlink{#1}{\textcolor{link}{\sunderline{#1}}}} % reference section.
|
\newcommand{\shref} [1]{\hyperlink{#1}{\textcolor{link}{\sunderline{#1}}}} % reference section.
|
||||||
\newcommand{\sref} [1]{\textcolor{ref}{#1}} % reference text.
|
\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{\sbullet} [0]{\sicon{ic_bullet}\hspace{4mm}} % list bullet symbol.
|
||||||
\newcommand{\stitle} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
\newcommand{\stitle} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
||||||
{\selectfont{\textcolor{main}{\ssemibold{#1}}}}} % section title.
|
{\selectfont{\textcolor{main}{\ssemibold{#1}}}}} % section title.
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
\setsepchar{;}%
|
\setsepchar{;}%
|
||||||
\ignoreemptyitems%
|
\ignoreemptyitems%
|
||||||
\readlist\elements{#5}%
|
\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
|
\def\plink{#4}\ifx\plink\empty{}\else{\slistlink{#4}\spar}\fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue