Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Pablo Winant
preprocessor
Commits
3dc61102
Verified
Commit
3dc61102
authored
1 year ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Build system: add Meson support for building LaTeX documentation
parent
1b0e5581
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/macroprocessor/macroprocessor.tex
+3
-1
3 additions, 1 deletion
doc/macroprocessor/macroprocessor.tex
doc/preprocessor/preprocessor.tex
+4
-2
4 additions, 2 deletions
doc/preprocessor/preprocessor.tex
meson.build
+33
-1
33 additions, 1 deletion
meson.build
with
40 additions
and
4 deletions
doc/macroprocessor/macroprocessor.tex
+
3
−
1
View file @
3dc61102
...
@@ -8,9 +8,11 @@
...
@@ -8,9 +8,11 @@
\usetheme
{
Boadilla
}
\usetheme
{
Boadilla
}
\graphicspath
{{
../logos/
}}
\title
{
The Dynare Macro Processor
}
\title
{
The Dynare Macro Processor
}
\author
{
Sébastien Villemot
}
\author
{
Sébastien Villemot
}
\pgfdeclareimage
[height=0.8cm]
{
logo
}{
../logos/
dlogo
}
\pgfdeclareimage
[height=0.8cm]
{
logo
}{
dlogo
}
\institute
[Dynare Team]
{
\pgfuseimage
{
logo
}}
\institute
[Dynare Team]
{
\pgfuseimage
{
logo
}}
\date
{
23 May 2023
}
\date
{
23 May 2023
}
...
...
This diff is collapsed.
Click to expand it.
doc/preprocessor/preprocessor.tex
+
4
−
2
View file @
3dc61102
...
@@ -10,13 +10,15 @@
...
@@ -10,13 +10,15 @@
\usepackage
[english]
{
babel
}
\usepackage
[english]
{
babel
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
[utf8]
{
inputenc
}
\titlegraphic
{
\includegraphics
{
../logos/dlogo.png
}}
\graphicspath
{{
../logos
}}
\titlegraphic
{
\includegraphics
{
dlogo.png
}}
\title
{
The Dynare Preprocessor
}
\title
{
The Dynare Preprocessor
}
\author
[S. Villemot, H.Bastani]
{
Sébastien Villemot
\and
Houtan Bastani
}
\author
[S. Villemot, H.Bastani]
{
Sébastien Villemot
\and
Houtan Bastani
}
\institute
[CEPREMAP]
{
\includegraphics
[scale=0.15]
{
../logos/
cepremap.jpg
}}
\institute
[CEPREMAP]
{
\includegraphics
[scale=0.15]
{
cepremap.jpg
}}
\date
{
1 February 2017
}
\date
{
1 February 2017
}
...
...
This diff is collapsed.
Click to expand it.
meson.build
+
33
−
1
View file @
3dc61102
# TODO for reaching feature parity with current autotools-based build system:
# TODO for reaching feature parity with current autotools-based build system:
# -
Build and install documentation (with a c
onfiguration option to disable
it explicitly)
# -
C
onfiguration option to disable
documentation
# - Add -Wold-style-cast flag except when building flex-generated files
# - Add -Wold-style-cast flag except when building flex-generated files
project
(
'dynare-preprocessor'
,
'cpp'
,
project
(
'dynare-preprocessor'
,
'cpp'
,
...
@@ -73,3 +73,35 @@ executable('dynare-preprocessor', main_src, flex_src, flexlexer_h, bison_src,
...
@@ -73,3 +73,35 @@ executable('dynare-preprocessor', main_src, flex_src, flexlexer_h, bison_src,
include_directories
:
incdir
,
dependencies
:
boost_dep
,
include_directories
:
incdir
,
dependencies
:
boost_dep
,
link_args
:
get_option
(
'prefer_static'
)
?
'-static'
:
''
,
link_args
:
get_option
(
'prefer_static'
)
?
'-static'
:
''
,
install
:
true
)
install
:
true
)
## LaTeX stuff
latexmk
=
find_program
(
'latexmk'
)
# We have to set TEXINPUTS because the current directory is not the source
# directory when latexmk is invoked (and using the -cd option in combination
# with -outdir/-auxdir does not work in all cases because @OUTDIR@ and
# @PRIVATE_DIR@ can be relative paths)
# Without the -g flag, latexmk remembers a previous build failure and will refuse
# to recompile even if the error has been fixed in the TeX source
# The \graphicspath{} command does not compute directories relative to TEXINPUTS,
# so add these manually
logos_dir
=
meson
.
current_source_dir
()
+
'/doc/logos'
custom_target
(
'macroprocessor.pdf'
,
output
:
'macroprocessor.pdf'
,
input
:
'doc/macroprocessor/macroprocessor.tex'
,
command
:
[
latexmk
,
'-pdf'
,
'-g'
,
'-auxdir=@PRIVATE_DIR@'
,
'@INPUT@'
],
env
:
{
'TEXINPUTS'
:
meson
.
current_source_dir
()
+
'/doc/macroprocessor:'
+
logos_dir
+
':'
},
install
:
true
,
install_dir
:
'share/doc/dynare'
)
custom_target
(
'preprocessor.pdf'
,
output
:
'preprocessor.pdf'
,
input
:
'doc/preprocessor/preprocessor.tex'
,
command
:
[
latexmk
,
'-pdf'
,
'-g'
,
'-auxdir=@PRIVATE_DIR@'
,
'@INPUT@'
],
env
:
{
'TEXINPUTS'
:
meson
.
current_source_dir
()
+
'/doc/preprocessor:'
+
logos_dir
+
':'
},
install
:
true
,
install_dir
:
'share/doc/dynare'
)
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