Debian Codegraph @

inst/doc/Using_fonts.html

raw symbols SCIP
1 <!DOCTYPE html>
2
3 <html>
4
5 <head>
6
7 <meta charset="utf-8" />
8 <meta name="generator" content="pandoc" />
9 <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
10
11 <meta name="viewport" content="width=device-width, initial-scale=1" />
12
13
14
15 <title>Using Fonts</title>
16
17 <script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
18 // be compatible with the behavior of Pandoc < 2.8).
19 document.addEventListener('DOMContentLoaded', function(e) {
20 var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
21 var i, h, a;
22 for (i = 0; i < hs.length; i++) {
23 h = hs[i];
24 if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
25 a = h.attributes;
26 while (a.length > 0) h.removeAttribute(a[0].name);
27 }
28 });
29 </script>
30
31 <style type="text/css">
32 code{white-space: pre-wrap;}
33 span.smallcaps{font-variant: small-caps;}
34 span.underline{text-decoration: underline;}
35 div.column{display: inline-block; vertical-align: top; width: 50%;}
36 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
37 ul.task-list{list-style: none;}
38 </style>
39
40
41
42
43
44
45
46 <style type="text/css">body {
47 background-color: #fff;
48 margin: 1em auto;
49 max-width: 700px;
50 overflow: visible;
51 padding-left: 2em;
52 padding-right: 2em;
53 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
54 font-size: 14px;
55 line-height: 1.35;
56 }
57 #TOC {
58 clear: both;
59 margin: 0 0 10px 10px;
60 padding: 4px;
61 width: 400px;
62 border: 1px solid #CCCCCC;
63 border-radius: 5px;
64 background-color: #f6f6f6;
65 font-size: 13px;
66 line-height: 1.3;
67 }
68 #TOC .toctitle {
69 font-weight: bold;
70 font-size: 15px;
71 margin-left: 5px;
72 }
73 #TOC ul {
74 padding-left: 40px;
75 margin-left: -1.5em;
76 margin-top: 5px;
77 margin-bottom: 5px;
78 }
79 #TOC ul ul {
80 margin-left: -2em;
81 }
82 #TOC li {
83 line-height: 16px;
84 }
85 table {
86 margin: 1em auto;
87 border-width: 1px;
88 border-color: #DDDDDD;
89 border-style: outset;
90 border-collapse: collapse;
91 }
92 table th {
93 border-width: 2px;
94 padding: 5px;
95 border-style: inset;
96 }
97 table td {
98 border-width: 1px;
99 border-style: inset;
100 line-height: 18px;
101 padding: 5px 5px;
102 }
103 table, table th, table td {
104 border-left-style: none;
105 border-right-style: none;
106 }
107 table thead, table tr.even {
108 background-color: #f7f7f7;
109 }
110 p {
111 margin: 0.5em 0;
112 }
113 blockquote {
114 background-color: #f6f6f6;
115 padding: 0.25em 0.75em;
116 }
117 hr {
118 border-style: solid;
119 border: none;
120 border-top: 1px solid #777;
121 margin: 28px 0;
122 }
123 dl {
124 margin-left: 0;
125 }
126 dl dd {
127 margin-bottom: 13px;
128 margin-left: 13px;
129 }
130 dl dt {
131 font-weight: bold;
132 }
133 ul {
134 margin-top: 0;
135 }
136 ul li {
137 list-style: circle outside;
138 }
139 ul ul {
140 margin-bottom: 0;
141 }
142 pre, code {
143 background-color: #f7f7f7;
144 border-radius: 3px;
145 color: #333;
146 white-space: pre-wrap;
147 }
148 pre {
149 border-radius: 3px;
150 margin: 5px 0px 10px 0px;
151 padding: 10px;
152 }
153 pre:not([class]) {
154 background-color: #f7f7f7;
155 }
156 code {
157 font-family: Consolas, Monaco, 'Courier New', monospace;
158 font-size: 85%;
159 }
160 p > code, li > code {
161 padding: 2px 0px;
162 }
163 div.figure {
164 text-align: center;
165 }
166 img {
167 background-color: #FFFFFF;
168 padding: 2px;
169 border: 1px solid #DDDDDD;
170 border-radius: 3px;
171 border: 1px solid #CCCCCC;
172 margin: 0 5px;
173 }
174 h1 {
175 margin-top: 0;
176 font-size: 35px;
177 line-height: 40px;
178 }
179 h2 {
180 border-bottom: 4px solid #f7f7f7;
181 padding-top: 10px;
182 padding-bottom: 2px;
183 font-size: 145%;
184 }
185 h3 {
186 border-bottom: 2px solid #f7f7f7;
187 padding-top: 10px;
188 font-size: 120%;
189 }
190 h4 {
191 border-bottom: 1px solid #f7f7f7;
192 margin-left: 8px;
193 font-size: 105%;
194 }
195 h5, h6 {
196 border-bottom: 1px solid #ccc;
197 font-size: 105%;
198 }
199 a {
200 color: #0033dd;
201 text-decoration: none;
202 }
203 a:hover {
204 color: #6666ff; }
205 a:visited {
206 color: #800080; }
207 a:visited:hover {
208 color: #BB00BB; }
209 a[href^="http:"] {
210 text-decoration: underline; }
211 a[href^="https:"] {
212 text-decoration: underline; }
213
214 code > span.kw { color: #555; font-weight: bold; }
215 code > span.dt { color: #902000; }
216 code > span.dv { color: #40a070; }
217 code > span.bn { color: #d14; }
218 code > span.fl { color: #d14; }
219 code > span.ch { color: #d14; }
220 code > span.st { color: #d14; }
221 code > span.co { color: #888888; font-style: italic; }
222 code > span.ot { color: #007020; }
223 code > span.al { color: #ff0000; font-weight: bold; }
224 code > span.fu { color: #900; font-weight: bold; }
225 code > span.er { color: #a61717; background-color: #e3d2d2; }
226 </style>
227
228
229
230
231 </head>
232
233 <body>
234
235
236
237
238 <h1 class="title toc-ignore">Using Fonts</h1>
239
240
241
242 <p>One of the features of skim is the production of spark graphs for
243 numeric data. However these graphs may not render properly because of
244 lack of font support or for other reasons, such as an operating system
245 that does not support UTF-8. In your specific environment this may
246 depend on the fonts installed and the operating system and may occur for
247 only specific types of documents such as PDF documents. Skimr supports
248 kable() formatted tables, which is used in conjunction with fonts to
249 render the spark graphs.</p>
250 <p>To produce spark histograms a font that supports block elements must
251 be used. To support the spark line graphs a font with Braille support
252 must be used.</p>
253 <p>Well-known fonts that support block elements include <em>DejaVu
254 Sans</em> and <em>Arial</em>. Their availability depends on your
255 operating system.</p>
256 <p>The yaml at the beginning of a document using custom fonts will
257 generally be similar to that shown below.</p>
258 <pre><code>---
259 title: &quot;Untitled&quot;
260 mainfont: DejaVu Sans
261 output:
262 html_document: default
263 pdf_document:
264 latex_engine: xelatex
265 word_document: default
266 font-family: Times New Roman
267 ---</code></pre>
268 <p>A further discussion of this (with examples) is available in the
269 “Using fonts” template for skimr. If you are using RStudio you can open
270 that template by opening a new markdown file and selecting “From
271 template” and then choosing it. Alternatively this file is available
272 inside the skimr folder or repository at
273 inst/markdown/templates/fonts_in_skimr/skeleton/skeleton.Rmd.</p>
274 <p>If you are having difficulties making the spark graphs work, you can
275 opt to turn them off using the code below.</p>
276 <pre><code>no_sparks &lt;- skim_with(numeric = sfl(hist = NULL), ts = sfl(line_graph = NULL))
277 </code></pre>
278
279
280
281 <!-- code folding -->
282
283
284 <!-- dynamically load mathjax for compatibility with self-contained -->
285 <script>
286 (function () {
287 var script = document.createElement("script");
288 script.type = "text/javascript";
289 script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
290 document.getElementsByTagName("head")[0].appendChild(script);
291 })();
292 </script>
293
294 </body>
295 </html>