Typographic transforms (---, quote pairs, ~) no longer touch verbatim text: @c/@code/@source_listing content and ^'...'^ spans show exactly the characters written. "^" before any punctuation character quotes it in every target (the apostrophe excepted: ^' opens a literal span), with the new :resolve option on @@@target declaring per-target renderings. The ^UUUU^ code-point form accepts 4-6 hex digits, the full Unicode range. The html output and transform spellings are polyglot (XML-valid), in preparation for an EPUB target. New suites: transform_test, character_test (engine), typography_test (SKS). (from dev 07ce5ea86a0a)
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
@@page.html body :title :
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>*title*</title>
|
|
<style>
|
|
body { font-family:Palatino,roman; margin:2em 5em; }
|
|
tt,pre { font-family:Courier,monospace; }
|
|
.big { font-size:125%; }
|
|
.wide { padding: 0 .25em 0 .25em; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<center><b>*title*</b></center>
|
|
|
|
*body*
|
|
|
|
</body>
|
|
</html>
|
|
@@
|
|
|
|
@@page.tex body :title :
|
|
\documentclass[a4paper,10pt]{article}
|
|
\usepackage{fontspec}
|
|
% https://tex.stackexchange.com/questions/50586/how-to-use-palatino-like-math-fonts-in-xelatex
|
|
\usepackage{fontspec}
|
|
\usepackage{mathpazo}
|
|
\setmainfont
|
|
[ BoldFont = texgyrepagella-bold.otf ,
|
|
ItalicFont = texgyrepagella-italic.otf ,
|
|
BoldItalicFont = texgyrepagella-bolditalic.otf ]
|
|
{texgyrepagella-regular.otf}
|
|
\setsansfont[Scale=MatchLowercase]{Open Sans}
|
|
\setmonofont{Inconsolatazi4-Regular.otf}[Scale=MatchLowercase]
|
|
\usepackage{calc}
|
|
\usepackage{fancyvrb}
|
|
\usepackage[strings,nohyphen]{underscore}
|
|
\usepackage{titletoc}
|
|
\setlength{\marginparwidth}{1in}
|
|
\setlength{\textwidth}{210mm-2in}
|
|
\setlength{\textheight}{297mm-1.5in}
|
|
\setlength{\parskip}{6pt}
|
|
\setlength{\parindent}{0pt}
|
|
\setlength{\hoffset}{-1in}
|
|
\setlength{\voffset}{-1in}
|
|
\begin{document}
|
|
\begin{center}
|
|
\textsf{\large *title*}
|
|
\end{center}
|
|
*body*
|
|
\end{document}
|
|
@@
|