Skip to content

Commit 8e8565d

Browse files
authored
Merge pull request #676 from ndw/iss-675
Make em and cite upright in mediaobject captions
2 parents bd6e609 + e370379 commit 8e8565d

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/main/scss/media-all.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ table {
646646
margin-right: 2em;
647647
font-style: italic;
648648

649+
em, cite {
650+
font-style: normal;
651+
}
652+
649653
p {
650654
margin-top: 0;
651655
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" class="no-js"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script><title>Unit test: figure.008</title><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link href="https://purl.org/dc/elements/1.1/" rel="schema.dc"/><meta content="2011-04-22T17:02:00-06:00" name="dc.modified"/><meta content="DocBook xslTNG" name="generator"/><link href="./css/docbook.css" rel="stylesheet" media="screen"/></head><body class="home"><nav class="top"></nav><main><article class="article component"><header><h1>Unit test: figure.008</h1></header><p>This is a test for figure captions.</p><div id="R_fig1" class="figure formalobject"><div class="mediaobject"><div class="media image"><span class="viewport-table" style="width:288px;"><span class="viewport-row"><span class="viewport-cell" style="text-align:center;"><span><span class="viewport"><picture class="imageobject"><img src="media/duck.png" style="width:288px;"/></picture></span></span></span></span></span></div><div class="caption"><p>This is a <em>duck</em> picture from <cite class="citetitle">Some Volume</cite>.</p></div></div><div class="caption"><p>This is a <em>duck</em> picture from <cite class="citetitle">Some Volume</cite>.</p></div><header><div class="title">Figure <span class="label">1</span><span class="sep"></span>The Duck</div></header></div></article></main><nav class="bottom"></nav></body></html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<article xmlns="http://docbook.org/ns/docbook" version="5.0">
3+
<title>Unit test: figure.008</title>
4+
<para>This is a test for figure captions.</para>
5+
6+
<figure>
7+
<title>The Duck</title>
8+
<mediaobject>
9+
<imageobject>
10+
<imagedata fileref="../media/duck.png" align="center" width="50%"/>
11+
</imageobject>
12+
<caption>
13+
<para>This is a <emphasis>duck</emphasis> picture from <citetitle>Some Volume</citetitle>.</para>
14+
</caption>
15+
</mediaobject>
16+
<caption>
17+
<para>This is a <emphasis>duck</emphasis> picture from <citetitle>Some Volume</citetitle>.</para>
18+
</caption>
19+
</figure>
20+
21+
</article>
22+

0 commit comments

Comments
 (0)