Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
90b164d2
Commit
90b164d2
authored
12 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
reporting: allow for manual height adjustment of sections
parent
628f1fef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/reporting/@report/write.m
+1
-0
1 addition, 0 deletions
matlab/reporting/@report/write.m
matlab/reporting/@section/section.m
+3
-0
3 additions, 0 deletions
matlab/reporting/@section/section.m
matlab/reporting/@section/write.m
+10
-1
10 additions, 1 deletion
matlab/reporting/@section/write.m
with
14 additions
and
1 deletion
matlab/reporting/@report/write.m
+
1
−
0
View file @
90b164d2
...
...
@@ -60,6 +60,7 @@ fprintf(fid, '\\renewcommand{\\topfraction}{0.8}\n');
fprintf
(
fid
,
'\\renewcommand{\\bottomfraction}{0.8}\n'
);
fprintf
(
fid
,
'\\usepackage[Export,PGF]{adjustbox}\n'
);
fprintf
(
fid
,
'\\setlength{\\parindent}{0in}\n'
);
fprintf
(
fid
,
'\\newlength\\sectionheight\n'
);
fprintf
(
fid
,
'\\begin{document}\n'
);
fprintf
(
fid
,
'\\centering\n'
);
...
...
This diff is collapsed.
Click to expand it.
matlab/reporting/@section/section.m
+
3
−
0
View file @
90b164d2
...
...
@@ -23,6 +23,7 @@ function o = section(varargin)
o
=
struct
;
o
.
elements
=
elements
();
o
.
cols
=
1
;
o
.
height
=
''
;
if
nargin
==
1
assert
(
isa
(
varargin
{
1
},
'section'
),[
'With one arg to Section constructor, '
...
...
...
@@ -51,6 +52,8 @@ end
% Check options provided by user
assert
(
isint
(
o
.
cols
),
'@section.section: cols must be an integer'
);
assert
(
isempty
(
o
.
height
)
||
ischar
(
o
.
height
),
...
'@section.section: cols must be a string'
);
% Create section object
o
=
class
(
o
,
'section'
);
...
...
This diff is collapsed.
Click to expand it.
matlab/reporting/@section/write.m
+
10
−
1
View file @
90b164d2
...
...
@@ -31,7 +31,16 @@ function o = write(o, fid)
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'%% Section Object\n'
);
fprintf
(
fid
,
'\\maxsizebox{\\textwidth}{!}{%%\n'
);
if
~
isempty
(
o
.
height
)
fprintf
(
fid
,
'\\setlength\\sectionheight{%s}\n'
,
o
.
height
);
end
fprintf
(
fid
,
'\\maxsizebox{\\textwidth}{'
);
if
isempty
(
o
.
height
)
fprintf
(
fid
,
'!'
);
else
fprintf
(
fid
,
'\\sectionheight'
);
end
fprintf
(
fid
,
'}{%%\n'
);
fprintf
(
fid
,
'\\begin{tabular}[t]{'
);
for
i
=
1
:
o
.
cols
fprintf
(
fid
,
'c'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment