summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/artthreads/examples/article_tst.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/artthreads/examples/article_tst.tex')
-rw-r--r--macros/latex/contrib/artthreads/examples/article_tst.tex62
1 files changed, 23 insertions, 39 deletions
diff --git a/macros/latex/contrib/artthreads/examples/article_tst.tex b/macros/latex/contrib/artthreads/examples/article_tst.tex
index 6333cf24d6..1d63fb0d5b 100644
--- a/macros/latex/contrib/artthreads/examples/article_tst.tex
+++ b/macros/latex/contrib/artthreads/examples/article_tst.tex
@@ -1,77 +1,61 @@
\documentclass{article}
-\usepackage[dvipsone,!viewMagWin,!preview]{artthreads}
+\usepackage[!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}.
-
+The two article threads: \setLink[\A{\Thread{Lipsum}}]{Read Lipsum}
+and \setLink[\A{\Thread{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.
+\noindent\makebox[0pt][r]{\showArticlePaneRead{}{11bp}\hspace{\marginparsep}}%
+\bArticle{lift=\baselineskip,width=\linewidth,height=\textheight-2\baselineskip}%
+\textsl{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]
+\textsl{Well, here goes.} \lipsum[2]
-That went well, more? \lipsum[4]
+\textsl{That want well, more?} \lipsum[4]
-Ok, I have the hang of it now. \lipsum[6]
+\textsl{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]
+\noindent\cArticle{lift=9\baselineskip,width=\linewidth,height=\textheight-2\baselineskip}\indent
+\textsl{Continuing now with} \lipsum[8]
-I'm on a roll, \lipsum[10]
+\textsl{I'm on a roll!} \lipsum[10]
\end{multicols}
\newpage
-\noindent
+\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=1.5\baselineskip}%
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
+\begin{multicols}{2}\previewOn % 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.
+\textsl{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]
+\textsl{Well, here goes.} \lipsum[2]
-\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=4in-2\baselineskip}\indent
-That went well, more? \lipsum[4]
+\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=4in-1.5\baselineskip}\indent
+\textsl{That want well, more?} \lipsum[4]
-Ok, I have the hang of it now. \lipsum[6]
+\textsl{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]
+\textsl{Continuing now with,} \lipsum[8]
\noindent\cArticle{lift=\baselineskip,width=\linewidth,height=3in-\baselineskip}\indent
-I'm on a roll, \lipsum[10]
+\textsl{I'm on a roll!} \lipsum[10]
\end{multicols}