Skip to content

Instantly share code, notes, and snippets.

@adityam
Last active December 28, 2015 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityam/10ed45ae277ab6d5124c to your computer and use it in GitHub Desktop.
Save adityam/10ed45ae277ab6d5124c to your computer and use it in GitHub Desktop.
/*
author : Hans Hagen, PRAGMA-ADE, Hasselt NL
copyright : PRAGMA ADE / ConTeXt Development Team
license : see context related readme files
comment : companion to context.mkiv
*/
/* ignore : mixed */
/* metadata: display */
ignore {
display : none ;
}
xmetadata {
display : none ;
}
xmetavariable {
display : none ;
}
/* document : display */
document:before {
content : attr(title) ;
font-size : 44pt ;
font-weight : bold ;
margin-bottom : 1em ;
}
document {
font-family : "DejaVu Serif", "Lucida Bright", serif ;
font-size : 12pt ;
max-width : 50em ;
padding : 1em ;
/* text-align : justify ; */
/* hyphens : manual ; */
/* text-justify : inter-word ; */
}
document>metadata {
font-family : "Lucida Console", "DejaVu Sans Mono", monospace ;
margin-bottom : 2em ;
}
document>metadata>metavariable[name="title"]:before {
content : "title\00A0\00A0\00A0:\00A0" ;
}
document>metadata>metavariable[name="author"]:before {
content : "author\00A0\00A0:\00A0" ;
}
document>metadata>metavariable[name="version"]:before {
content : "version\00A0:\00A0" ;
}
document>metadata>metavariable[name="title"], document>metadata>metavariable[name="author"], document>metadata>metavariable[name="version"] {
display : block ;
}
/* paragraph : mixed */
/* p : mixed */
paragraph, p {
display : block ;
margin-top : 0.5em ;
margin-bottom : 0.5em ;
}
/* break : display */
break {
display : block ;
margin-bottom : 0.5em ;
}
/* construct : inline */
/* highlight : inline */
construct {
}
construct[detail="important"] {
font-weight : bold ;
}
highlight { /* todo: style and color */
}
/* section : display */
/* sectiontitle : mixed */
/* sectionnumber : mixed */
/* sectioncontent : display */
section {
display : block ;
}
sectioncontent {
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
}
section[detail="chapter"], section[detail="title"] {
margin-top : 3em ;
margin-bottom : 2em ;
}
section[detail="section"], section[detail="subject"] {
margin-top : 2.5em ;
margin-bottom : 2.5em ;
}
section[detail="subsection"], section[detail="subsubject"] {
margin-top : 2em ;
margin-bottom : 2em ;
}
section[detail="subsubsection"], section[detail="subsubsubject"] {
margin-top : 1em ;
margin-bottom : 0em ;
}
section[detail="summary"], section[detail="subsummary"] {
margin-top : 1em ;
margin-bottom : 1em ;
}
section[detail="chapter"]>sectionnumber {
display : inline-block ;
margin-right : 1em ;
font-size : 3em ;
font-weight : bold ;
}
section[detail="chapter"]>sectiontitle, section[detail="title"]>sectiontitle {
font-size : 3em ;
font-weight : bold ;
}
section[detail="section"]>sectiontitle, section[detail="subject"]>sectiontitle {
font-size : 2.5em ;
font-weight : bold ;
}
section[detail="subsection"]>sectiontitle, section[detail="subsubject"]>sectiontitle{
font-size : 2em ;
font-weight : bold ;
}
section[detail="subsubsection"]>sectiontitle, section[detail="subsubsubject"]>sectiontitle{
font-size : 1em ;
font-weight : bold ;
}
section[detail="section"]>sectionnumber {
display : inline-block ;
margin-right : 1em ;
font-size : 2.5em ;
font-weight : bold ;
}
section[detail="summary"]>sectiontitle {
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
font-weight : bold ;
border-bottom-style : solid ;
border-color : rgb(50%,50%,100%) ;
border-width : .15em;
}
section[detail="subsection"]>sectionnumber {
display : inline-block ;
margin-right : 1em ;
font-size : 2em ;
font-weight : bold ;
}
section[detail="subsection"]>sectionnumber {
display : inline-block ;
margin-right : 1em ;
font-size : 1em ;
font-weight : bold ;
}
section[detail="subsummary"]>sectiontitle {
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
font-weight : bold ;
border-color : rgb(50%,50%,100%) ;
border-bottom-style : dotted ;
border-width : .15em ;
}
/* itemgroup : display */
/* item : display */
/* itemtag : mixed */
/* itemcontent : mixed */
/* type : alphabetic ; */
/* suffix : '.' ; */
@counter-style lower-greek { /* css 3 */
type : non-repeating ;
glyphs : 'α' 'β' 'γ' 'δ' 'ε' 'ζ' 'η' 'θ' 'ι' 'κ' 'λ' 'μ' 'ν' 'ξ' 'ο' 'π' 'ρ' 'σ' 'τ' 'υ' 'φ' 'χ' 'ψ' 'ω' ;
}
@counter-style upper-greek { /* css 3 */
type : non-repeating ;
glyphs : 'Α' 'B' 'Γ' 'Δ' 'Ε' 'Ζ' 'Η' 'Θ' 'Ι' 'Κ' 'Λ' 'Μ' 'Ν' 'Ξ' 'Ο' 'Π' 'Ρ' 'Σ' 'Τ' 'Υ' 'Φ' 'Χ' 'Ψ' 'Ω' ;
}
itemgroup {
display : block ;
margin-bottom : 0.5em ;
margin-top : 0.5em ;
}
itemgroup[symbol="1"] { list-style-type : disc ; }
itemgroup[symbol="2"] { list-style-type : square ; }
itemgroup[symbol="3"] { list-style-type : square ; }
itemgroup[symbol="4"] { list-style-type : square ; }
itemgroup[symbol="5"] { list-style-type : circ ; }
itemgroup[symbol="a"] { list-style-type : lower-alpha ; }
itemgroup[symbol="A"] { list-style-type : alpha ; }
itemgroup[symbol="r"] { list-style-type : lower-roman ; }
itemgroup[symbol="R"] { list-style-type : upper-roman ; }
itemgroup[symbol="n"] { list-style-type : decimal ; }
itemgroup[symbol="g"] { list-style-type : lower-greek ; }
itemgroup[symbol="G"] { list-style-type : upper-greek ; }
item {
display : list-item ;
margin-left : 1em ;
margin-bottom : 0.5em ;
margin-top : 0.5em ;
}
itemtag {
display: none ;
}
itemcontent {
}
/* description : display */
/* descriptiontag : mixed */
/* descriptioncontent : mixed */
/* descriptionsymbol : inline */
description {
display : block ;
margin-bottom : 1em ;
margin-top : 1em ;
}
descriptiontag {
float : left ;
clear : left ;
margin-right : 1em ;
text-align : left ;
font-weight : bold ;
}
descriptioncontent {
}
descriptionsymbol {
}
/* verbatimblock : display */
/* verbatimlines : display */
/* verbatimline : mixed */
/* verbatim : inline */
verbatimblock {
background-color : rgb(50%,50%,100%) ;
display : block ;
padding : 1em ;
margin-bottom : 1em ;
margin-top : 1em ;
font-family : "Lucida Console", "DejaVu Sans Mono", monospace ;
}
verbatimlines+verbatimlines {
display : block ;
margin-top : 1em ;
}
verbatimline {
display : block ;
white-space : pre-wrap ;
}
verbatim {
white-space : pre-wrap ;
color : rgb(60%,60%,0%) ;
font-family : "Lucida Console", "DejaVu Sans Mono", monospace ;
}
/* lines : display */
/* line : mixed */
lines {
display : block ;
margin-bottom : 1em ;
margin-top : 1em ;
}
lines+lines {
display : block ;
margin-top : 1em ;
}
line {
display : block ;
white-space : pre-wrap ;
}
/* synonym : inline */
/* sorting : inline */
sorting, synonym {
display : inline ;
font-variant : small-caps ;
}
/* register : display */
/* registersection : display */
/* registertag : mixed */
/* registerentries : display */
/* registerentry : mixed */
/* registersee : mixed */
/* registerpages : mixed */
/* registerpage : inline */
/* registerpagerange : mixed */
register {
display: none ;
}
/* table : display */
/* tablerow : display */
/* tablecell : mixed */
table {
display : table ;
}
tablerow {
display : table-row ;
}
tablecell[align="middle"] {
display : table-cell ;
text-align : center ;
padding : .1em ;
}
tablecell[align="flushleft"] {
display : table-cell ;
text-align : left ;
padding : .1em ;
}
tablecell[align="flushright"] {
display : table-cell ;
text-align : right ;
padding : .1em ;
}
tablecell {
display : table-cell ;
text-align : left ;
padding : .1em ;
}
/* tabulate : display */
/* tabulaterow : display */
/* tabulatecell : mixed */
tabulate {
display : table ;
margin-top : 1em ;
margin-bottom : 1em ;
margin-left : 2.5em ;
}
tabulaterow {
display : table-row ;
}
tabulatecell[align="middle"] {
display : table-cell ;
text-align : center ;
padding-right : 1em ;
}
tabulatecell[align="flushleft"] {
display : table-cell ;
text-align : left ;
padding-right : 1em ;
}
tabulatecell[align="flushright"] {
display : table-cell ;
text-align : right ;
padding-right : 1em ;
}
tabulatecell {
display : table-cell ;
text-align : left ;
padding-right : 1em ;
}
/* combination : display */
/* combinationpair : display */
/* combinationcontent : mixed */
/* combinationcaption : mixed */
combination {
display : table ;
margin-top : 0em ;
margin-bottom : 0em ;
}
combinationpair {
display : table-cell ;
padding-right : 1em ;
}
combinationcontent {
display : table-row ;
text-align : center ;
}
combinationcaption {
display : table-row ;
padding-top : 1ex ;
text-align : center ;
}
/* list : display */
/* listitem : display */
/* listtag : mixed */
/* listcontent : mixed */
/* listdata : mixed */
/* listpage : mixed */
list {
display : block ;
}
listitem[detail="chapter"] {
display : block ;
margin-top : 1em ;
font-weight : bold ;
}
listitem[detail="section"] {
display : block ;
}
listitem[detail="subsection"] {
display : block ;
}
listtag {
display : inline-block ;
width : 5em ;
}
listcontent {
}
listdata {
}
listpage {
display : none ;
}
/* delimitedblock : display */
/* delimited : inline */
/* subsentence : inline */
/* :lang(en) */
delimited[detail="quotation"]:before, delimitedblock[detail="quotation"]:before {
content : "\201C" ;
}
delimited[detail="quotation"]:after, delimitedblock[detail="quotation"]:after {
content : "\201D" ;
}
delimited[detail="quote"]:before, delimitedblock[detail="quote"]:before {
content : "\2018" ;
}
delimited[detail="quote"]:after, delimitedblock[detail="quote"]:after {
content : "\2019" ;
}
delimited {
display : inline
}
delimitedblock {
display : block
}
subsentence:before, subsentence:after {
content : "\2014" ;
}
subsentence {
display : inline
}
/* label : mixed */
/* number : mixed */
/* float : display */
/* floatcaption : mixed */
/* floatlabel : inline */
/* floatnumber : inline */
/* floattext : mixed */
/* floatcontent : mixed */
float {
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
margin-left : 2.5em ;
}
floatcaption {
display : block ;
margin-top : 0.5em ;
color : rgb(60%,60%,0%) ;
}
floatlabel {
font-weight : bold ;
margin-right : 1em ;
}
floatnumber {
font-weight : bold ;
}
floattext {
}
floatcontent {
}
/* image : mixed */
/* mpgraphic : mixed */
/* image {
display : block ;
background : url(hacker.jpg) ;
background-size : 100% auto ;
width : 8.992cm ;
height : 5.994cm ;
} */
mpgraphic:before { /* does not work with empty element */
content : "[runtime metapost graphic]" ;
}
mpgraphic {
display : inline ;
}
/* formula : display */
/* subformula : display */
/* formulaset : display */
/* formulacaption : mixed */
/* formulalabel : mixed */
/* formulanumber : mixed */
/* formulacontent : display */
formula {
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
margin-left : 2.5em ;
}
subformula { /* todo */
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
margin-left : 2.5em ;
}
formulaset { /* todo */
display : block ;
margin-top : 1em ;
margin-bottom : 1em ;
margin-left : 2.5em ;
}
formulacaption { /* todo */
display : block ;
margin-top : 0.5em ;
color : rgb(60%,60%,0%) ;
}
formulalabel {
font-weight : bold ;
margin-right : 1em ;
}
formulanumber {
font-weight : bold ;
}
formulacontent {
display : block ;
}
/* link : inline */
/* margintextblock : inline */
/* margintext : inline */
/* math : inline */
/* mn : mixed */
/* mi : mixed */
/* mo : mixed */
/* ms : mixed */
/* mrow : display */
/* msubsup : display */
/* msub : display */
/* msup : display */
/* merror : mixed */
/* munderover : display */
/* munder : display */
/* mover : display */
/* mtext : mixed */
/* mfrac : display */
/* mroot : display */
/* msqrt : display */
/* mfenced : display */
/* maction : display */
/* mtable : display */
/* mtr : display */
/* mtd : display */
/* quantity : inline */
/* unit : inline */
/* number : inline */
quantity {
}
quantity>unit {
}
quantity>number {
}
/* sub : inline */
/* sup : inline */
/* subsup : inline */
sup {
font-size : xx-small ;
line-height : 0 ;
vertical-align : top ;
}
sub {
font-size : xx-small ;
line-height : 0 ;
vertical-align : bottom ;
}
subsup>sup {
vertical-align : top ;
}
subsup>sub {
vertical-align : bottom ;
}
/* xhtml */
a[href] {
text-decoration : none ;
color : inherit ;
}
a[href]:hover {
color : rgb(50%,0%,0%) ;
text-decoration : underline ;
}
/* images for file test.export */
image[id="image-1"] {
display : block ;
background-image : url(http://hamwaves.com/cl-ocfd2/images/acom1000_pi-tank_small.jpg) ;
background-size : 100% auto ;
background-repeat : no-repeat ;
width : 1.456cm ;
height : 1.262cm ;
}
/* styles for file test.export */
document {
font-size : 12pt !important ;
max-width : 426pt !important ;
text-align : justify !important ;
hyphens : inherited !important ;
}
\setupbackend[export=yes, xhtml=yes, css=yes]
\definebar
[highlight]
[
order=background,
rulethickness=2.5,
offset=1.25,
continue=yes,
color=yellow,
]
\definestartstop
[important]
[
style=bold,
]
\starttext
\startsubject
[title={Design Gaols}]
\startplacefigure
[title={PA output tank}, location={left,nonumber}]
\externalfigure[http://hamwaves.com/cl-ocfd2/images/acom1000_pi-tank_small.jpg]
\stopplacefigure
Like many fellow radio amateurs, I own a fairly standard shortwave radio station
consisting of a 100W HF transceiver driving a 1kW tube power amplifier. I never
chose to spend any money on a kW-rated antenna-tuner. Anyhow, I can tune out
VSWRs as high as 3÷1 with the adjustable pi-network of the output filter tank
inside my power amplifier.
Thus I set out to design \highlight{an HF antenna with a VSWR of 3÷1 or less
over the full bandwidth of as many amateur radio HF bands as possible, with a
preference for the low- and the non-WARC bands.} This design exercise resulted
in a new kind of antenna which I dubbed \important{Center-Loaded Off-Center-Fed
Dipole Antenna}, or \important{CL-OCFD} for short.
\stopsubject
\stoptext
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<!-- input filename : test -->
<!-- processing date : Tue Nov 12 23:34:52 2013 -->
<!-- context version : 2013.01.17 18:16 -->
<!-- exporter version : 0.30 -->
<?xml-stylesheet type="text/css" href="test-styles.css"?>
<?xml-stylesheet type="text/css" href="test-images.css"?>
<?xml-stylesheet type="text/css" href="export-example.css"?>
<document xmlns:m="http://www.w3.org/1998/Math/MathML" version="0.30" language="en" date="Tue Nov 12 23:34:52 2013" file="test" context="2013.01.17 18:16" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xhtml:a name="aut_1"><section location="aut:1" detail="subject">
<sectiontitle>Design Gaols</sectiontitle>
<sectioncontent>
<xhtml:a name="aut_2"><float location="aut:2" detail="figure">
<floatcontent><image id="image-1" height="1.262cm" name="http://hamwaves.com/cl-ocfd2/images/acom1000_pi-tank_small.jpg" width="1.456cm"/></floatcontent>
<floatcaption><floattext>PA output tank</floattext></floatcaption>
</float></xhtml:a>
Like many fellow radio amateurs, I own a fairly standard shortwave radio station consisting of a 100W HF transceiver driving a 1kW tube power amplifier. I never chose to spend any money on a kW-rated antenna-tuner. Anyhow, I can tune out VSWRs as high as 3÷1 with the adjustable pi-network of the output filter tank inside my power amplifier.
<break/>
Thus I set out to design an HF antenna with a VSWR of 3÷1 or less over the full bandwidth of as many amateur radio HF bands as possible, with a preference for the low- and the non-WARC bands. This design exercise resulted in a new kind of antenna which I dubbed <construct detail="important">Center-Loaded Off-Center-Fed Dipole Antenna</construct>, or <construct detail="important">CL-OCFD</construct> for short.
</sectioncontent>
</section></xhtml:a>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment