summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/artthreads/article_tst.tex
diff options
context:
space:
mode:
Diffstat (limited to 'texmf-dist/doc/latex/artthreads/article_tst.tex')
-rw-r--r--texmf-dist/doc/latex/artthreads/article_tst.tex78
1 files changed, 78 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/artthreads/article_tst.tex b/texmf-dist/doc/latex/artthreads/article_tst.tex
new file mode 100644
index 00000000..6333cf24
--- /dev/null
+++ b/texmf-dist/doc/latex/artthreads/article_tst.tex
@@ -0,0 +1,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}