Skip to content

Commit

Permalink
updated typographic info in text and .css file
Browse files Browse the repository at this point in the history
  • Loading branch information
ousia committed Aug 8, 2016
1 parent 7a8d2fd commit ba633d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
33 changes: 18 additions & 15 deletions doc/from-pandoc-to-context.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
@font-face {font-family: tempestiva; font-weight: normal; font-style: normal; src:url("Tempestiva-Regular.otf");}
@font-face {font-family: tempestiva; font-weight: normal; font-style: italic; src:url("Tempestiva-Italic.otf");}
@font-face {font-family: tempestivasc; font-weight: normal; font-style: normal; src:url("TempestivaSC-Regular.otf");}

body {
margin: 2%;
margin: 5%;
text-align: justify;
font-family: FreeSerif, serif;
font-family: tempestiva, Tempestiva;
widows: 2;
orphans: 2;
}

ol {
font-family: serif;
font-family: tempestiva, Tempestiva;
}

ul {
font-family: serif;
font-family: tempestiva, Tempestiva;
list-style-type: disc;
}

ul ul {
list-style-type: circle;
font-family: serif;
font-family: tempestiva, Tempestiva;
}

pre {
Expand Down Expand Up @@ -115,7 +119,7 @@ h2.author {
text-align: center;
font-weight: normal;
font-style: normal;
font-family: serifsc, serif;
font-family: tempestivasc, "Tempestiva SC";
page-break-before: avoid;
}

Expand Down Expand Up @@ -153,7 +157,7 @@ p {
}

.footnotes li {
margin: 0% 0% 2% 0%;
margin: 0% 0% 5% 0%;
}

li p, blockquote > p {
Expand Down Expand Up @@ -193,7 +197,7 @@ strong {
.dedication, #dedication {
padding-top: 15%;
margin-right: 5%;
margin-left: 50%;
margin-left: 25%;
}

.dedication p, #dedication p {
Expand Down Expand Up @@ -286,22 +290,21 @@ p.rights, .hidden>h1 {

.rights, .footnotes > ol > li {
page-break-before: always;
padding-top: 2%;
padding-top: 5%;
}

.smcp, .author {
font-family: tempestivasc, "Tempestiva SC";
}

h1, h2, h3, h4, h5, h6, code, .uri a, a.uri, a.email, .signature-date > p {
-epub-hyphens: none;
-webkit-hyphens: none;
}

.smcp{
font-variant: small-caps;
font-family: serifsc, serif;
}

.part > h1 {
margin-top: 50%;
font-family: serif;
font-family: tempestiva, Tempestiva;
font-style: normal;
}

Expand Down
9 changes: 3 additions & 6 deletions doc/from-pandoc-to-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This tiny contribution is a small sign of my deep gratitude for their huge achie

“If I have seen further it is by standing on the shoulders of giants.”

(Isaac Newton, _Letter to R. Hooke_)
(<span class="author">Newton</span>, _Letter to R. Hooke_)

# Foreword {.frontmatter}

Expand Down Expand Up @@ -252,9 +252,6 @@ A sample for a colophon would be:^[Nothing prevents from having both `{.hidden #
# Colophon {#colophon}
This book was generated with `pandoc` (<http://pandoc.org/>) and typeset with <span class="tex-logo">ConTeXt</span> (<http://contextgarden.net/>).

_<span class="tex-logo">TeX</span> Gyre Pagella_, _GFS Didot_ and _Cousine_ were the selected typefaces.

```
With the `--section-divs` argument, the whole section—part, chapter, section, or any heading—will be wrapped in a block division element. So you could format anything in that section.
Expand Down Expand Up @@ -1559,7 +1556,7 @@ This document describes a method to typeset XHTML sources from `pandoc` with <sp

In my personal opinion, going from `pandoc` to <span class="tex-logo">ConTeXt</span> is the easiest and most powerful way to generate high–quality PDF documents from light–weight markup sources. If the description contained here has caught your eye, you can try and judge by yourself.

Environments are used to typeset critical editions from TEI XML sources.^[See Thomas A. Schmitz, <span lang="de">_Kritische Editionen mit TEI XML und <span class="tex-logo">ConTeXt</span>_</span>, in <http://www.dante.de/events/Archiv/dante2011/programm/vortraege/folien-ts.pdf>.] Since critical editions are rather complex text structures, I think that this shows that <span class="tex-logo">ConTeXt</span> may be powerful enough to typeset most—if not all—documents generated from _Markdown_ sources.
Environments are used to typeset critical editions from TEI XML sources.^[See <span class="author">Th. A. Schmitz</span>, <span lang="de">_Kritische Editionen mit TEI XML und <span class="tex-logo">ConTeXt</span>_</span>, in <http://www.dante.de/events/Archiv/dante2011/programm/vortraege/folien-ts.pdf>.] Since critical editions are rather complex text structures, I think that this shows that <span class="tex-logo">ConTeXt</span> may be powerful enough to typeset most—if not all—documents generated from _Markdown_ sources.

This document is a brief introduction to environments in <span class="tex-logo">ConTeXt</span>. I want to describe a more general method of electronic editing with free–software tools. Since `pandoc` is already well documented, <span class="tex-logo">ConTeXt</span> environments are the other key for this method. With a real example, I want to describe the whole picture of digital edition with professional standards.

Expand Down Expand Up @@ -1613,7 +1610,7 @@ CSS code for that page may be:

This book was generated with `pandoc` (<http://pandoc.org/>) and typeset with <span class="tex-logo">ConTeXt</span> (<http://contextgarden.net/>).

_<span class="tex-logo">TeX</span> Gyre Pagella_, _GFS Didot_ and _Cousine_ were the selected typefaces.
_<span class="tex-logo">TeX</span> Gyre Pagella_, _GFS Didot_ and _Cousine_ were the selected typefaces for the PDF document. [_Tempestiva_](http://www.typographica.tk/#tempestiva) was the deployed font family in the ePub document.


[^minimal-hyphenations]: A minimal sample shows the issue:
Expand Down

0 comments on commit ba633d9

Please sign in to comment.