Skip to content

Commit

Permalink
Build Stata 202 SMCL file.
Browse files Browse the repository at this point in the history
  • Loading branch information
boyercb committed Jan 22, 2016
1 parent b6483df commit 8ea5ddb
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions Stata 202/Stata 202.smcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{smcl}
{txt}{...}
{pstd}{c TLC}{hline 43}{c TRC}{break}
{bf}{...}
{c |}{view `""Stata 202.smcl""': Innovations for Poverty Action{space 12}}{c |}{break}
{c |}{view `""Stata 202.smcl""': The Abdul Latif Jameel Poverty Action Lab{space 1}}{c |}{break}
{c |}{view `""Stata 202.smcl""':{space 43}}{c |}{break}
{c |}{view `""Stata 202.smcl""': Staff Training{space 28}}{c |}{break}
{c |}{view `""Stata 202.smcl""': Stata 202{space 33}}{c |}{break}
{sf}{...}
{c BLC}{hline 43}{c BRC}{break}
{bf}{...}{it}{...}{ul on}{...}
(All pages have a header like the one above.
You can click it to return to the start page.)
{txt}{sf}{ul off}{...}

{pstd}{bf:Stata 202}{break}

{pstd}The fact that we're using SMCL means
that we can run commands from within the training files.
For example:

{phang}{bf:{stata `"display "Hello world!""'}}{p_end}

{pstd}Commands that are one line long are blue and clickable.
Blocks and commands that are more than one line long are bold black,
and can be executed by clicking the blue "Click here to execute" below them.
For example:

{phang}{cmd}foreach i of numlist 1/10 {{txt}{p_end}
{phang2}{cmd}display `i'{txt}{p_end}
{phang}{cmd}}{txt}{p_end}

{pstd}{stata `"run "Do/Introduction/Stata 202.do" 1"':Click here to execute.}

{pstd}Further, you will see links like {help contents:this one} that
take you to different spots in the training, to help files,
or to locations in a Stata manual.
These links work like those in an Internet browser,
so you can always press the Back button
to return to your exact previous location.
Further, if you right-click on a link,
you have the option to open it in a new tab or window.
Links to Stata manuals, such as {bf:{mansection U:[U] Stata User's Guide}},
function only in Stata 11 and higher.

{pstd}Throughout the training,
you'll see text boxes like the one below holding technical tips.
Although not essential,
these tips can help you reach the next level of Stata mastery.
If the text box is misaligned,
resize your viewer to a larger size and click the Reload button.
Alternatively, right click on the page, click Font,
then select a smaller font size.

{p2colset 5 84 0 0}{...}
{pstd}{c TLC}{hline 78}{c TRC}{p_end}
{p2col:{c |} {it:Technical Tip!}}{c |}{p_end}
{pstd}{c LT}{hline 78}{c RT}{p_end}
{p2col:{c |} Typing {helpb contents:help} by itself is the same as {helpb contents:help contents}.}{c |}{p_end}
{pstd}{c BLC}{hline 78}{c BRC}{p_end}
{p2colreset}{...}

{pstd}When a command is introduced for the first time,
it'll usually appear as text instead of a link.
It'll be preceded by a text box reminder
to type out the command fully in the Command window.
({it:Don't just copy and paste!})
For example:

{p2colset 5 84 0 0}{...}
{pstd}{c TLC}{hline 78}{c TRC}{p_end}
{p2col:{c |} {it:It's the first time!} {bf:Try it yourself.}}{c |}{p_end}
{pstd}{c BLC}{hline 78}{c BRC}{p_end}
{p2colreset}{...}
{pstd}{...}{cmd}
display "{c -(}hline}"
{txt}{sf}{ul off}{...}

{pstd}Next: {view `""SMCL/Modules/Mata.smcl""':Mata}{break}

0 comments on commit 8ea5ddb

Please sign in to comment.