Skip to content

Commit eb168ff

Browse files
committed
Docs update.
1 parent aa94c24 commit eb168ff

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

tests/programming.cdb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,14 @@ def test11():
258258
print("Test 11 passed")
259259

260260
test11()
261+
262+
def test12():
263+
__cdbkernel__ = create_scope()
264+
sub:=3 q;
265+
ex:=A^{@(sub)};
266+
tst:= A^{3*q} - @(ex);
267+
assert(tst==0)
268+
print("Test 12 passed")
269+
270+
test12()
261271

web2/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ add_custom_command(
294294
ARGS the_cadabra_book.tex
295295
COMMAND pdflatex
296296
ARGS the_cadabra_book.tex
297+
COMMAND cp
298+
ARGS the_cadabra_book.pdf ${CMAKE_SOURCE_DIR}/web2/cadabra2/source
297299
WORKING_DIRECTORY ${BOOKOUTDIR}
298300
COMMENT "Creating the_cadabra_book.pdf")
299301
add_custom_target(book ALL echo -n DEPENDS ${BOOKOUTDIR}/the_cadabra_book.pdf)
302+
303+

web2/cadabra2/source/help.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@ <h2>Forum</h2>
1919
<h2>Reference guide</h2>
2020
<p>
2121
This reference guide is the place to go for a detailed specification
22-
of how Cadabra works. If you prefer to learn by example, you are
23-
better off with the <a href="tutorials.html">tutorials</a>. Also
24-
don't forget to have a look at Leo Brewin's
22+
of how Cadabra works. You can browse it online or download the lot
23+
as a single PDF file by clicking on the book cover. If you prefer to
24+
learn by example, you are better off with
25+
the <a href="tutorials.html">tutorials</a>. Also don't forget to
26+
have a look at Leo Brewin's
2527
excellent <a href="papers.html#brewin">introductory papers on
2628
Cadabra</a>.
2729

28-
This guide is a translation of the one for 1.x, and still work-in-progress.
30+
This guide is a translation of the one for 1.x, and still
31+
work-in-progress.
32+
<div class="splash_image book_cover">
33+
<a href="/the_cadabra_book.pdf"><img src="/static/images/the_cadabra_book.png" alt="[cadabra book cover]"/></a>
34+
</div>
2935
<ol class="table_of_contents">
3036
<li>The input format
3137
<ol>

web2/cadabra2/source/static/styles/cadabra-web.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ div.icon_background:hover svg path {
265265
fill: white;
266266
}
267267

268+
/* Book */
269+
270+
div.book_cover {
271+
width: 33%;
272+
border: 1px solid #777;
273+
}
268274

269275
/* Notebooks */
270276

0 commit comments

Comments
 (0)