Closed niazim3 closed 6 years ago
This needed to be closed so that work in #84 can be checked. Still do not completely understand use of .
in some cases of the equations in latex, but followed this online source.
I can confirm that the tex file also compiles for me. I was not aware that we were using \right
without a delimiter. It makes sense though when a conditional situation is introduced with a bracket on the left, but nothing on the right. Out of curiosity, you might want to look at the generated code for the tex for ssp from Drasil. I wonder if the generated code also uses right .
?
In LaTeX brackets (like (), [], {}) are put around parts of an equation using \left [
and \right ]
. The [
and ]
are the delimiters in this particular example. LaTeX will grow the size of the brackets so that they look nice. The commands don't make any sense without a delimiter. I didn't know until you pointed it out, but if you don't have a delimiter you can use .
to fill this syntax requirement, but not generate a symbol. \left
and \right
are also syntactically required to come in pairs. If you have a \left
, you need a \right
.
The generator code (see here) does not use right .
, but running the lualatex
build commands does not result in errors relating to this either (as seen in the following screenshot).
The code you pointed to is for equations surrounded by brackets. The case you were highlighting is for when there is only one bracket, like for conditional cases.
I'm not sure about your screenshot. It should error messages in the compilation for GlassBR, but I thought we were talking about SSP? Also, your screen shot shows error messages, but you said that the build command does not result in errors?
Apologies, I mixed them up.
Unfortunately, I am unable to successfully build SSP's SRS on my local machine. I asked @elwazana to run it on his machine and the error that is output is the same one as GlassBR's (the one about tableofcontents
).
You might have a problem because one of the required tex packages is not installed on your computer? You could try googling the error message to see what the problem might be. You could also post the message here, in case any of your colleagues has run into the same problem.
If the situation comes up where you have a LaTeX equation that has multiple cases, rather than use \right .
, I suggest using the cases statement. I noticed that it is used in the SWHS example at:
(Issue #27)
6 errors come up from the line ranges of 1702 to 2564 (https://github.com/smiths/caseStudies/blob/f1a7a499e34775b89265c3f804645ee5a56248c0/CaseStudies/ssp/Documentation%20Files/SRS_SSP.tex#L1705-L2564).