Skip to content

Commit

Permalink
deploy: a4d53d8
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 4, 2024
0 parents commit 9659ed5
Show file tree
Hide file tree
Showing 81 changed files with 13,176 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
3 changes: 3 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 1,3 @@
<!doctype html>
<title>404 Not Found</title>
<h1>404 Not Found</h1>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 1 @@
polytype.dev
Binary file added dropcaps-groff.avif
Binary file not shown.
32 changes: 32 additions & 0 deletions dropcaps-groff.mom
Original file line number Diff line number Diff line change
@@ -0,0 1,32 @@
.PRINTSTYLE TYPESET
.PAGEWIDTH 297.675p
.PAGELENGTH 419.58p
.L_MARGIN 40p
.R_MARGIN 40p
.T_MARGIN 40p
.DROPCAP T 2
his paragraph has a pretty plain initial or drop cap.
It uses the default document font.
You didn't really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.

.DROPCAP \*[FWD -.58m]``N 2
.SMALLCAPS
ever say never\c
.SMALLCAPS OFF
,'' the saying goes.
Someday your dropcap may include leading punctuation
.FT I
and
.FT R
a hanging indent.
No worries.
All you have to do is guess and fudge.

.DROPCAP_GUTTER 1m
.DROPCAP A 3
\*[FWD -1m]nother paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
This helps highlight the fact that the initial letter belongs to the first word.
The first line of text will be flush against the drop cap.
Each additional line spanned with be indented with an extra space.
Binary file added dropcaps-groff.pdf
Binary file not shown.
Binary file added dropcaps-sile.avif
Binary file not shown.
Binary file added dropcaps-sile.pdf
Binary file not shown.
24 changes: 24 additions & 0 deletions dropcaps-sile.sil
Original file line number Diff line number Diff line change
@@ -0,0 1,24 @@
\begin[papersize=a6]{document}
\nofolios
\use[module=packages.dropcaps]
\set[parameter=document.parskip,value=2bs]
\set[parameter=document.lskip,value=5en]
\set[parameter=document.rskip,value=5en]

\dropcap[lines=2]{T}his paragraph has a pretty plain initial or drop cap.
It uses the default document font.
You didn’t really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.

\dropcap[lines=2,join=true]{\kern[width=-0.9en]“N}\font[features= smcp]{ever say never,}” the saying goes.
Someday your dropcap may include leading punctuation \em{and} a hanging indent.
No worries.
All you have to do is guess and fudge.

\dropcap[lines=3,join=true,standoff=1em]{A}nother paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
This helps highlight the fact that the initial letter belongs to the first word.
The first line of text will be flush against the drop cap.
Each additional line spanned with be indented with an extra space.

\end{document}
Binary file added dropcaps-typst.avif
Binary file not shown.
Binary file added dropcaps-typst.pdf
Binary file not shown.
42 changes: 42 additions & 0 deletions dropcaps-typst.typ
Original file line number Diff line number Diff line change
@@ -0,0 1,42 @@
#set page(
paper: "a6",
)
#set par(
justify: true,
)

#import "@preview/droplet:0.1.0": dropcap

#dropcap(
justify: true,
hanging-indent: 0pt,
)[
This paragraph has a pretty plain initial or drop cap.
It uses the default document font.
You didn't really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.
]

// Letter workaround per https://github.com/EpicEricEE/typst-plugins/issues/2
#dropcap(
justify: true,
hanging-indent: 0pt,
transform: letter => [#place(dx: -0.4em, sym.quote.l)#letter]
)[
N#smallcaps[ever say never]," the saying goes.
Someday your dropcap may include leading punctuation _and_ a hanging indent.
No worries.
All you have to do is guess and fudge.
]

#dropcap(
height: 3,
justify: true,
hanging-indent: 1em,
)[
Another paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
This helps highlight the fact that the initial letter belongs to the first word.
The first line of text will be flush against the drop cap.
Each additional line spanned with be indented with an extra space.
]
Binary file added dropcaps-xelatex.avif
Binary file not shown.
Binary file added dropcaps-xelatex.pdf
Binary file not shown.
25 changes: 25 additions & 0 deletions dropcaps-xelatex.tex
Original file line number Diff line number Diff line change
@@ -0,0 1,25 @@
\documentclass{article}
\usepackage[paperheight=148.5mm,paperwidth=105mm]{geometry}
\setlength{\parskip}{2\baselineskip}
\pagenumbering{gobble}
\usepackage{type1cm}
\usepackage{lettrine}
\begin{document}

\lettrine[nindent=0sp]{T}{}his paragraph has a pretty plain initial or drop cap.
It uses the default document font.
You didn't really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.

\lettrine[lhang=.4,nindent=0sp]{``N}{ever say never,}'' the saying goes.
Someday your dropcap may include leading punctuation {and} a hanging indent.
No worries.
All you have to do is guess and fudge.

\lettrine[lines=3,nindent=1em]{A}{}nother paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
This helps highlight the fact that the initial letter belongs to the first word.
The first line of text will be flush against the drop cap.
Each additional line spanned with be indented with an extra space.

\end{document}
Loading

0 comments on commit 9659ed5

Please sign in to comment.