File: Citations.xhtml

package info (click to toggle)
libtext-multimarkdown-perl 1.000035-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,772 kB
  • ctags: 148
  • sloc: perl: 2,186; makefile: 8
file content (42 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<p>Handle MultiMarkdown-style citations.</p>

<p>This is a borrowed idea<span class="markdowncitation"> (<a href="#Doe:1996">1</a>, <span class="locator">p. 23</span>)</span>.</p>

<blockquote>
  <p>This is a cited blockquote without a page reference.<span class="markdowncitation"> (<a href="#Smith:2005">2</a>)</span>.</p>
</blockquote>

<p>And a plain paragraph.</p>

<p>And a code block that is not a citation:</p>

<pre><code>This is not a citation[p. 5][#Doe:1996].
</code></pre>

<p>And a work by Johnson that is not cited, but should be included in bibliography:
<span class="notcited" id="Johnson:1996"/></p>

<p>And multiple citations.<span class="markdowncitation"> (<a href="#Doe:1996">1</a>, <span class="locator">p. 3</span>)</span><span class="markdowncitation"> (<a href="#Smith:2005">2</a>, <span class="locator">p. 10</span>)</span></p>

<p>How about a citation within a footnote? <a href="#fn:footcite" id="fnref:footcite" class="footnote">1</a></p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:footcite"><p>As described previously. <span class="markdowncitation"> (<a href="#Smith:2005">2</a>, <span class="locator">p. 12</span>)</span><a href="#fnref:footcite" class="reversefootnote">&#160;&#8617;</a></p></li>

</ol>
</div>

<div class="bibliography">
<hr />
<p>Bibliography</p>

<div id="Doe:1996"><p>[1] <span class="item">John Doe. <em>Some Book</em>. Blog Books, 1996.</span></p></div>

<div id="Smith:2005"><p>[2] <span class="item">James Smith. Some interesting paper. <em>Some Journal</em>, 1(2): 101-123, 2005.</span></p></div>

<div id="Johnson:1996"><p>[3] <span class="item">Bill Johnson. <em>Some Book</em>. Blog Books, 1996.</span></p></div>

</div>