Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
3d49b6b4
Commit
3d49b6b4
authored
Jan 21, 2014
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in latex output style 2 of why3session
parent
939eaa5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/why3session/why3session_latex.ml
src/why3session/why3session_latex.ml
+8
-8
No files found.
src/why3session/why3session_latex.ml
View file @
3d49b6b4
...
...
@@ -155,10 +155,10 @@ let rec goal_latex_stat fmt prov depth depth_max subgoal g =
in
if
depth
>
0
then
if
subgoal
>
0
then
fprintf
fmt
"
\\
cline{%d-%d}
@."
(
depth
+
1
)
column
fprintf
fmt
"
\\
cline{%d-%d}@."
(
depth
+
1
)
column
else
()
else
fprintf
fmt
"
\\
hline
@."
;
fprintf
fmt
"
\\
hline@."
;
if
depth_max
>
1
then
begin
if
subgoal
>
0
then
...
...
@@ -212,7 +212,7 @@ let rec goal_latex_stat fmt prov depth depth_max subgoal g =
let
tr
=
g
.
S
.
goal_transformations
in
if
S
.
PHstr
.
length
tr
>
0
then
if
S
.
PHprover
.
length
proofs
>
0
then
fprintf
fmt
"
\\
cline{%d-%d}
@."
(
depth
+
2
)
column
;
fprintf
fmt
"
\\
cline{%d-%d}@."
(
depth
+
2
)
column
;
S
.
PHstr
.
iter
(
fun
_st
tr
->
let
goals
=
tr
.
S
.
transf_goals
in
let
_
=
List
.
fold_left
(
fun
subgoal
g
->
...
...
@@ -224,9 +224,9 @@ let rec goal_latex_stat fmt prov depth depth_max subgoal g =
let
style_2_row
fmt
?
(
transf
=
false
)
depth
prov
subgoal
expl
=
let
column
=
column
2
depth
prov
in
if
depth
>
0
||
transf
then
fprintf
fmt
"
\\
cline{%d-%d}
@."
2
column
fprintf
fmt
"
\\
cline{%d-%d}@."
2
column
else
fprintf
fmt
"
\\
hline
@."
;
fprintf
fmt
"
\\
hline@."
;
for
_i
=
1
to
depth
do
fprintf
fmt
"
\\
quad"
done
;
let
macro
=
if
transf
then
"transformation"
else
"explanation"
in
if
depth
=
0
||
transf
then
...
...
@@ -242,7 +242,7 @@ let rec goal_latex2_stat fmt prov depth depth_max subgoal g =
print_result_prov
proofs
prov
fmt
end
else
if
depth
=
0
then
if
(*depth = 0*)
true
then
begin
style_2_row
fmt
depth
prov
subgoal
(
protect
(
S
.
goal_expl
g
));
fprintf
fmt
"&
\\
multicolumn{%d}{|c|}{}
\\\\
@."
...
...
@@ -254,7 +254,7 @@ let rec goal_latex2_stat fmt prov depth depth_max subgoal g =
S
.
PHstr
.
iter
(
fun
_st
tr
->
style_2_row
fmt
~
transf
:
true
(
depth
+
1
)
prov
subgoal
(
protect
tr
.
S
.
transf_name
);
fprintf
fmt
"&
\\
multicolumn{%d}{|c|}{}
\\\\
@."
fprintf
fmt
"&
\\
multicolumn{%d}{|c|}{}
\\\\
@."
(
List
.
length
prov
);
let
goals
=
tr
.
S
.
transf_goals
in
let
_
=
List
.
fold_left
(
fun
subgoal
g
->
...
...
@@ -264,7 +264,7 @@ let rec goal_latex2_stat fmt prov depth depth_max subgoal g =
end
else
if
(
S
.
PHprover
.
length
proofs
)
==
0
&&
depth
<>
0
then
fprintf
fmt
"
\\\\
@."
fprintf
fmt
"
\\\\
@."
let
latex_tabular_goal
n
fmt
depth
provers
g
=
print_tabular_head
n
depth
provers
fmt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment