Skip to content

Commit 88fcdc8

Browse files
committed
Fix names of a few more images
1 parent b602cc0 commit 88fcdc8

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

usersguide-sphinx/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = build
99

10-
ALLDEP = source/openmodelica.bib source/interface.inc $(OMEDIT_ICONS)
10+
ALLDEP = source/openmodelica.bib source/interface.inc $(OMEDIT_ICONS) $(OMOPTIM_ICONS)
1111

1212
# User-friendly check for sphinx-build
1313
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
@@ -230,8 +230,9 @@ OMEDIT_ICONS_SVG=$(OMEDIT_ICONS_BASE:%=source/media/omedit-icons/%)
230230
OMEDIT_ICONS_PNG=$(OMEDIT_ICONS_SVG:%.svg=%.png)
231231
OMEDIT_ICONS=$(OMEDIT_ICONS_SVG) $(OMEDIT_ICONS_PNG)
232232

233-
omedit-icons:
234-
echo $(OMEDIT_ICONS)
233+
OMOPTIM_ICONS_BASE=Add.png
234+
OMOPTIM_ICONS=$(OMOPTIM_ICONS_BASE:%=source/media/omoptim-icons/%)
235+
235236
all-dep: $(ALLDEP)
236237

237238
source/media/omedit-icons/%.svg: $(OPENMODELICAHOME)/../OMEdit/OMEdit/OMEditGUI/Resources/icons/%.svg
@@ -240,3 +241,7 @@ source/media/omedit-icons/%.svg: $(OPENMODELICAHOME)/../OMEdit/OMEdit/OMEditGUI/
240241

241242
source/media/omedit-icons/%.png: source/media/omedit-icons/%.svg
242243
inkscape "$<" --export-png="$@"
244+
245+
source/media/omoptim-icons/%.png: $(OPENMODELICAHOME)/../OMOptim/OMOptim/GUI/Resources/icons/%.png
246+
@mkdir -p source/media/omoptim-icons
247+
cp -a "$<" "$@"

usersguide-sphinx/source/emscripten.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ For more information, see https://github.com/tshort/openmodelica-javascript
88

99
Below used on the MSL MultiBody RobotR3.fullRobot example model.
1010

11-
|image48|
11+
.. image:: media/emscripten-model.png
1212

13-
|image49|
14-
15-
.. |image48| image:: media/image91.png
16-
.. |image49| image:: media/image92.png
13+
.. image:: media/emscripten-result.png

usersguide-sphinx/source/introduction.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ Japenese, Chinese, and other kinds of UniCode characters can be used
495495
within quoted (single quote) identifiers, see for example the variable
496496
name to the right in the plot below:
497497

498-
|image0|
498+
.. image :: media/bb-japanese.png
499499
500500
Scripting with For-Loops, While-Loops, and If-Statements
501501
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1018,4 +1018,3 @@ C:\\dev> C:\\OpenModelica1.9.2 \\bin\\omc +showErrorMessages
10181018
.. |omlogo| image:: logo.*
10191019
:alt: OpenModelica logotype
10201020
:height: 14pt
1021-
.. |image0| image:: media/image7.png

usersguide-sphinx/source/optimization.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ E.g. Python.exe ..\\share\\casadi\\scripts defaultStart.py
262262
BatchReactor.xml
263263

264264
The control and state trajectories of the optimization results are shown
265-
in Figure 6 -47.
265+
below:
266266

267-
|image31|
267+
.. |casadi-input| image:: media/casadi-input.png
268+
:width: 40%
269+
.. |casadi-state| image:: media/casadi-state.png
270+
:width: 40%
268271

269-
|image32|
270-
271-
Figure 647: **Optimization results for Batch Reactor model – state and
272-
control variables.**
272+
|casadi-input| |casadi-state|
273273

274274
.. _parameter-sweep-optimization-using-omoptim:
275275

@@ -554,9 +554,7 @@ Window Regions in OMOptim GUI
554554
555555
Window regions in OMOptim GUI.
556556
557-
.. |image31| image:: media/image57.png
558-
.. |image32| image:: media/image58.png
559-
.. |omoptim-blue-cross| image:: media/omoptim-blue-cross.png
557+
.. |omoptim-blue-cross| image:: media/omoptim-icons/Add.png
560558
:height: 12pt
561559

562560
.. omc-reset ::

0 commit comments

Comments
 (0)