summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/artthreads/article_tst.tex
blob: 6333cf24d6ac4802878d3a2c4f57bdad2d51f9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
\documentclass{article}
\usepackage[dvipsone,!viewMagWin,!preview]{artthreads}
\usepackage{multicol,lipsum}
\hypersetup{colorlinks}

% A selection of pushbutton actions for articles
\def\toggleArticlePane{\pushButton[
    \CA{Article}\A{\Named{ShowHideArticles}}]{TAPBtn}{}{11bp}}
\def\toggleArticlePaneRead{\pushButton[
    \CA{Article}\A{\Named{ShowHideArticles}
    \Next{/S/Thread/D(\threadTitle)}}]{TAPRBtn}{}{11bp}}
\def\showArticlePane{\pushButton[
    \CA{Article}\A{\Named{ArticleThreads}}]{SAPBtn}{}{11bp}}
\def\showArticlePaneRead{\pushButton[
    \CA{Article}\A{\Named{ArticleThreads}
    \Next{/S/Thread /D(\threadTitle)}}]{SAPRBtn}{}{11bp}}
% Links may be used as well, here is only one such, this link below is hard-wired
% modify as needed.
%\setLink[\A{/S/Thread/D(Lipsum)}]{Read Article}

\setAddToBorder{addtow=10bp,addtoh=10bp}

\begin{document}

\noindent
The two article threads: \setLink[\A{/S/Thread/D(Lipsum)}]{Read Lipsum}
and \setLink[\A{/S/Thread/D(more Lipsum)}]{Read more Lipsum}.


\setThreadInfo{title=Lipsum,author=D. P. Story,subject=Article thread test,keywords={AeB, PDF, LaTeX}}%

\raggedcolumns
\begin{multicols}{2}
\noindent\makebox[0pt][r]{\showArticlePaneRead\kern11bp}%
\bArticle{lift=\baselineskip,width=\linewidth,height=\textheight}%
This is a series of paragraphs to fill the multi-columns of this document. It is imperative
that we have a lot of text to fill these columns, but I fear that I don't know what to write.

Well, here goes. \lipsum[2]

That went well, more? \lipsum[4]

Ok, I have the hang of it now. \lipsum[6]

\noindent\cArticle{lift=9\baselineskip,width=\linewidth,height=\textheight}\indent
Continuing now with \lipsum[8]

I'm on a roll, \lipsum[10]

\end{multicols}

\newpage

\noindent
Same `article' but broken down into smaller pieces as an exercise.

\setThreadInfo{title=more Lipsum,author=D. P. Story,subject=Article thread test,keywords={AeB, PDF, LaTeX}}%
\begin{multicols}{2}\previewtrue % locally turn on preview
\noindent\bArticle{lift=\baselineskip,width=\linewidth,height=3in+3\baselineskip}%
This is a series of paragraphs to fill the multi-columns of this document. It is imperative
that we have a lot of text to fill these columns, but I fear that I don't know what to write.

Well, here goes. \lipsum[2]

\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=4in-2\baselineskip}\indent
That went well, more? \lipsum[4]

Ok, I have the hang of it now. \lipsum[6]

\noindent\cArticle{lift=9\baselineskip,width=\linewidth,height=4in+2\baselineskip}\indent
Continuing now with \lipsum[8]

\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=3in-\baselineskip}\indent
I'm on a roll, \lipsum[10]

\end{multicols}

\end{document}