Skip to content

Commit

Permalink
issue 209: no captions with only figure number in slides
Browse files Browse the repository at this point in the history
  • Loading branch information
aless80 committed Dec 9, 2021
1 parent e210265 commit d4b8c0d
Show file tree
Hide file tree
Showing 43 changed files with 32 additions and 99 deletions.
2 changes: 1 addition & 1 deletion admon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Testing admons

H. P. Langtangen

Date: Nov 29, 2021
Date: Dec 9, 2021

2021, H. P. Langtangen

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/._admon_bootstrap_alert000.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_apricot.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_bootstrap_alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_bootswatch_panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified admon_demo/admon_colors1.pdf
Binary file not shown.
Binary file modified admon_demo/admon_colors2.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion admon_demo/admon_gray.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified admon_demo/admon_graybox2.pdf
Binary file not shown.
Binary file modified admon_demo/admon_grayicon.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion admon_demo/admon_lyx.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified admon_demo/admon_mdfbox.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion admon_demo/admon_mwiki.mwiki
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#TITLE (actually governed by the filename): Testing admons

By '''H. P. Langtangen'''
==== Nov 29, 2021 ====
==== Dec 9, 2021 ====

2021, H. P. Langtangen

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_paragraph-footnotesize.html
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ <h2 id="___sec4">Going deeper environments </h2>
And then we add a figure too.

<p>
(??)<center><p><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../doc/src/manual/fig/wave1D.png" align="bottom" width=400></p></center>
(??)<center><p><img src="../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../doc/src/manual/fig/wave1D.png" align="bottom" width=400></p></center>
</div>


Expand Down
Binary file modified admon_demo/admon_paragraph-footnotesize.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion admon_demo/admon_paragraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_paragraph.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Testing admons

H. P. Langtangen

Date: Nov 29, 2021
Date: Dec 9, 2021

2021, H. P. Langtangen

Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_sphinx/_sources/admon.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Testing admons
%%%%%%%%%%%%%%

:Authors: H. P. Langtangen
:Date: Nov 29, 2021
:Date: Dec 9, 2021

.. !split
Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_sphinx/admon.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>Testing admons<a class="headerlink" href="#testing-admons" title="Permalink
</ol>
</dd>
<dt class="field-even">Date</dt>
<dd class="field-even"><p>Nov 29, 2021</p>
<dd class="field-even"><p>Dec 9, 2021</p>
</dd>
</dl>
<div class="section" id="introduction">
Expand Down
2 changes: 1 addition & 1 deletion admon_demo/admon_sphinx/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admon_demo/admon_yellow.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ <h1>Testing admons</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified admon_demo/admon_yellowicon.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion admon_sphinx/_sources/admon.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Testing admons
%%%%%%%%%%%%%%

:Authors: H. P. Langtangen
:Date: Nov 29, 2021
:Date: Dec 9, 2021

.. !split
Expand Down
2 changes: 1 addition & 1 deletion admon_sphinx/admon.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>Testing admons<a class="headerlink" href="#testing-admons" title="Permalink
</ol>
</dd>
<dt class="field-even">Date</dt>
<dd class="field-even"><p>Nov 29, 2021</p>
<dd class="field-even"><p>Dec 9, 2021</p>
</dd>
</dl>
<div class="section" id="introduction">
Expand Down
2 changes: 1 addition & 1 deletion admon_sphinx/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions demo_testdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h1>A Document for Testing DocOnce</h1>
</center>
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>
<h1 id="table_of_contents">Table of contents</h1>
Expand Down Expand Up @@ -787,12 +787,12 @@ <h3 id="subsubsection-heading-before-code">Subsubsection heading before code </h
<div class="input_area">

<script type="text/javascript">
function show_hide_codea35c(){
$("#codea35c").toggle();
function show_hide_codeeb1b(){
$("#codeeb1b").toggle();
}
</script>
<button type="button" onclick="show_hide_codea35c()">Show/Hide code</button>
<div id="codea35c" style="display:none">
<button type="button" onclick="show_hide_codeeb1b()">Show/Hide code</button>
<div id="codeeb1b" style="display:none">
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span style="color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px;">1</span>
<span style="color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px;">2</span></pre>
</div></td><td class="code"><div class="highlight" style="background: #eeeedd">
Expand Down
2 changes: 1 addition & 1 deletion html_template1.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<body bgcolor="white">

<title>This is a test of HTML templates</title>
<h4>Date: Nov 29, 2021</h4>
<h4>Date: Dec 9, 2021</h4>

<!-- main body -->

Expand Down
2 changes: 1 addition & 1 deletion locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h1>DocOnce med norsk</h1>
</center>
<br>
<center>
<h4>mandag, 29. nov., 2021</h4>
<h4>torsdag, 09. des., 2021</h4>
</center> <!-- date -->
<br>

Expand Down
2 changes: 1 addition & 1 deletion locale.tex
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@

% --- begin date ---
\begin{center}
mandag, 29. nov., 2021
torsdag, 09. des., 2021
\end{center}
% --- end date ---

Expand Down
2 changes: 1 addition & 1 deletion movie_demo/movies.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>This is a demo of movies in DocOnce</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified movie_demo/movies.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion movie_demo/movies_3choices.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>This is a demo of movies in DocOnce</h1>
<!-- institution(s) -->
<br>
<center>
<h4>Nov 29, 2021</h4>
<h4>Dec 9, 2021</h4>
</center> <!-- date -->
<br>

Expand Down
Binary file modified movie_demo/movies_media9.pdf
Binary file not shown.
Binary file modified movie_demo/movies_media9_extviewer.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion movies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is a demo of movies in DocOnce

HPL

Date: Nov 29, 2021
Date: Dec 9, 2021

Here is a movie in WebM format.

Expand Down
2 changes: 2 additions & 0 deletions pytests.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ def test_doconce_html_slides(change_test_dir, tdir):
html = f.read()
assert html.find('themes/style/swiss.css') > -1
assert html.find('<link rel="stylesheet" media="screen" href="">') > 10
assert '<p class="caption">Figure 2</p>' not in html #captions with only figure number are removed in slides

# reveal.js slides
os.system('cp testdoc.html temp.html')
out = subprocess.run('doconce slides_html temp.html reveal '
Expand Down
Loading

0 comments on commit d4b8c0d

Please sign in to comment.