Skip to content

Commit

Permalink
LaTeX fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jun 7, 2015
1 parent 915857d commit dd2aa10
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
14 changes: 12 additions & 2 deletions usersguide-sphinx/Makefile
Expand Up @@ -187,20 +187,30 @@ pseudoxml: $(ALLDEP)
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

latex: $(ALLDEP) source/logo.pdf source/media/systemoverview.pdf
latex: $(ALLDEP) source/logo.pdf source/media/systemoverview.pdf source/media/omedit-connect-mode.pdf
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
ADDED_SVGS=$(wildcard source/ProfilingTest_*.svg)
addedPdfs: $(ADDED_SVGS:%.svg=%.pdf)
pdf: latex
$(MAKE) addedPdfs
sed -i "s/usepackage.utf8..inputenc./usepackage[utf8x]{inputenc}/" build/latex/OpenModelicaUsersGuide.tex
sed -i "/DeclareUnicodeCharacter/d" build/latex/OpenModelicaUsersGuide.tex
# sphinx seems to only handle .* extension for images?
sed -i "s,{\(media/[A-Za-z_0-9.-]*\)[.][*],{`pwd`/source/\1.pdf,g" build/latex/OpenModelicaUsersGuide.tex
sed -i "s,{ProfilingTest_prof[.]\([^.]*\)[.]thumb[.]svg,{`pwd`/source/ProfilingTest_prof-\1-thumb.pdf,g" build/latex/OpenModelicaUsersGuide.tex
(cd build/latex && latexmk -pdf OpenModelicaUsersGuide.tex)
source/logo.pdf: source/logo.svg
inkscape -f $< -A $@
source/media/systemoverview.pdf: source/media/systemoverview.svg
inkscape -f $< --export-pdf $@

source/media/omedit-connect-mode.pdf: source/media/omedit-connect-mode.svg
inkscape -f $< --export-pdf $@
%.pdf: %.svg
inkscape -f $< --export-pdf $@
FNAME=`echo $@ | sed "s/[.]/-/g" | sed "s/-pdf/.pdf/g"`; if test "$$FNAME" != "$@"; then cp -a "$@" "$$FNAME"; fi
source/openmodelica.bib: resolve-crossref.py $(OPENMODELICAHOME)/../doc/bibliography/openmodelica.bib
python resolve-crossref.py "$(OPENMODELICAHOME)/../doc/bibliography/openmodelica.bib" source/openmodelica.bib
41 changes: 19 additions & 22 deletions usersguide-sphinx/source/omedit.rst
Expand Up @@ -37,9 +37,15 @@ Microsoft Windows
OMEdit can be launched using the executable placed in
OpenModelicaInstallationDirectory/bin/OMEdit/OMEdit.exe. Alternately,
choose OpenModelica > OpenModelica Connection Editor from the start menu
in Windows. A splash screen similar to the one shown in Figure 2 -2 will
in Windows. A splash screen similar to the one shown in :numref:`omedit-splash` will
appear indicating that it is starting OMEdit.

.. figure :: media/omedit_splashscreen.png
:name: omedit-splash
OMEdit Splash Screen.
Linux
~~~~~

Expand All @@ -51,10 +57,6 @@ Mac OS X

?? fill in

|image1|

Figure 22: **OMEdit Splash Screen.**

MainWindow & Browsers
---------------------

Expand Down Expand Up @@ -86,9 +88,9 @@ see section 2.9.1.
Search Browser
~~~~~~~~~~~~~~

|image3|
.. figure :: media/omedit-search-browser.png
Figure 24: **Search Browser.**
Search Browser.
To view the Search Browser click Edit->Search Browser or press keyboard
shortcut Ctrl+Shift+F. The loaded Modelica classes can be searched by
Expand All @@ -108,9 +110,9 @@ protected classes are not shown by default. If you want to see the
protected classes then you must enable the Show Protected Classes
option, see section 2.9.1.

|image4|
.. figure :: media/omedit-libraries-browser.png
Figure 25: **Libraries Browser.**
Libraries Browser.
Documentation Browser
~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -120,9 +122,9 @@ navigation buttons for moving forward and backward. To see documentation
of any class, right click the Modelica class in Libraries Browser and
choose View Documentation.

|image5|
.. figure :: media/omedit-documentation-browser.png
Figure 26: **Documentation Browser.**
Documentation Browser.
Variables Browser
~~~~~~~~~~~~~~~~~
Expand All @@ -139,9 +141,9 @@ The browser allows manipulation of changeable parameters for
re-simulation. See section 2.7. It also displays the unit and
description of the variable.

|image6|
.. figure :: media/omedit-variables-browser.png
Figure 27: **Variables Browser.**
Variables Browser.
Messages Browser
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -274,11 +276,12 @@ Making Connections
~~~~~~~~~~~~~~~~~~

In order to connect one component model to another the user first needs
to enable the connect mode from the toolbar. See Figure 2 -12.
to enable the connect mode from the toolbar. See :numref:`omedit-connect-mode`.

|image11|
.. figure :: media/omedit-connect-mode.*
:name: omedit-connect-mode
Figure 212: **Connect/Unconnect Mode toolbar button. **
Connect/Unconnect Mode toolbar button.
Simulating a Model
------------------
Expand Down Expand Up @@ -983,17 +986,11 @@ the following browsers,
Algorithmic Debugger.
.. |image1| image:: media/image8.png
.. |image2| image:: media/image9.png
.. |image3| image:: media/image10.png
.. |image4| image:: media/image11.png
.. |image5| image:: media/image12.png
.. |image6| image:: media/image13.png
.. |image7| image:: media/image14.png
.. |image8| image:: media/image15.png
.. |image9| image:: media/image16.png
.. |image10| image:: media/image17.png
.. |image11| image:: media/image18.png
.. |image12| image:: media/image19.png
.. |image13| image:: media/image20.png
.. |image14| image:: media/image21.png
Expand Down

0 comments on commit dd2aa10

Please sign in to comment.