The Tree of Widsdom

智慧の樹

PanelZoom

^do( PanelZoom, notename, description )^

Type: Macro

Purpose: Wraps fresh text in a Panel with citation info and links from notename

The PanelZoom macro lets you embed an article panel with alternative body text. It is similar to using ^include(notename, bstPanel)^ except that it lets you override the default body of the panel (taken from the text of the included article-note) with an alternate upshot relevant to the context of your writing flow.

Note that the panel heading contains up to three links:

  1. The title itself is a link to the original article-note in Tinderbox,
  2. A $URL link in the upper-right (if set in the original), and
  3. A $ReferenceURL link (if set in the original).

This one of the most innovative features of BoxPress and marks the start of a new level of separation between static Research Notes and their variable presentation in export.

Unlike IncPanel, which fills the panel-body with the text of the note you are including, PanelArticle links to the include, includes its APA Undertitle, adds links to the header—but lets you fill its body with your current thought. It lets you posit a central thought wrapped in a clickable reference (like a Mishnah and Gemara).

The 1st arg is the name of the article-note you are referring to. The 2nd arg is the body of the panel.

Hover below to reveal BoxPress code

<div class="panel panel-default"> <div class="panel-heading"> ^if($URL("$1")|$ReferenceURL("$1"))^ <div class="linkcorner-panel"> ^if($ReferenceURL("$1"))^<a target="_blank" href="^value($ReferenceURL("$1"))^"><span class="glyphicon glyphicon-file"></span><span class="glyphicon glyphicon-link"></span></a>^endIf^ ^if($URL("$1"))^<a target="_blank" href="^value($URL("$1"))^"></a>^endIf^ </div> ^endIf^ <table><tr> <td class="panel-left"> <h5>^do(Glyph, "education")^</h5> </td> <td class="panel-right"> <p class="btn-main"><a href="^url($1)^">^value($Name("$1"))^</a></p> </td> </tr></table> </div> <div class="panel-body small"> <div class="well well-sm small well-undertitle"> <p> ^if($Authors("$1"))^ ^do(_getAuthorsArg, ^value("$1")^)^ ^endIf^ ^if($DueDate("$1"))^ (^value($DueDate("$1").format("y"))^) ^endIf^ ^if($myPubTitle("$1"))^ ^value($myPubTitle("$1"))^. ^endIf^ ^if($Journal("$1"))^ <cite>^value($Journal("$1"))^</cite>^if($Issue("$1"))^, ^value($Issue("$1"))^^endIf^^if($Pages("$1"))^, ^value($Pages("$1"))^^endIf^. ^endIf^ </p> </div> <p>^value("$2")^</p> </div> </div>

PanelZoom sample

This is the markup that is rendered below

^do(PanelZoom, "I am a sample person_note", "The text you are now reading was typed mid-macro in the note PanelZoom sample. Unlike IncPanel, whose panel-body is the text of the note named in the macro, PanelZoom creates an empty shell that is surrounded by just the essential info from the named note—its Glyph, title (a link to the named note) , URL, Reference URL, and Undertitle. The PanelZoom macro captures your current thought and wraps it in an informative and clickable reference.")^

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

(1547 – 1637)

The text you are now reading was typed mid-macro in the note PanelZoom sample. Unlike IncPanel, whose panel-body is the text of the note named in the macro, PanelZoom creates an empty shell that is surrounded by just the essential info from the named note—its Glyph, title (a link to the named note) , URL, Reference URL, and Undertitle. The PanelZoom macro captures your current thought and wraps it in an informative and clickable reference.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.