Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No consecutive numbering of single line equations #1

Closed
chrisschuerz opened this issue Apr 24, 2018 · 2 comments
Closed

No consecutive numbering of single line equations #1

chrisschuerz opened this issue Apr 24, 2018 · 2 comments

Comments

@chrisschuerz
Copy link

Single line equations written as:

$$
y = x^2
$$

are translated to:

\[
y = x^2
\]

in the .tex document.
For a correct enumeration in the final .pdf document however, the translation must be:

\begin{equation}
y = x^2
\end{equation}

A manual change in the .tex document and the knitting of the the corrected document fixes the problem. Nevertheless, an automized version is most likely preferable 😁

@nuest
Copy link
Owner

nuest commented Apr 25, 2018

AFAICS the use of $$ in Rmd files has the advantage of having previews in RStudio and handling different output formats (HTML, PDF).

There seem to be options to automatically number equations based on $$:

But they all require to install some system library, which I would not prefer to do. Instead I would document in the template that authors must use \begin{equation}. This is also in line with the other templates.

nuest added a commit that referenced this issue Apr 25, 2018
@chrisschuerz
Copy link
Author

Yes I agree that the with the advantages the $$ has in Rmarkdown. If the user wants to use the template solely for compiling the file to submit the use of \begin{equation} ... \end{equation} is "tolerable".
Thank you for providing the comment in the template file!

nuest added a commit that referenced this issue Jul 30, 2018
(squashed changes)

- update to template package version 5.0
- appendix may not be loaded via external file, use yaml property instead
- add hints for additional metadata
- add default language for babel
- add default language for babel
- fix tightlist in pandoc
- no HTML comments with LaTeX in it
- update docs
- clarify usage of quations, closes #1
- clarify docs for algorithm packages
- add examples for usage of \unit{}
nuest added a commit that referenced this issue Apr 15, 2019
* add copernicus template

(squashed changes)

- update to template package version 5.0
- appendix may not be loaded via external file, use yaml property instead
- add hints for additional metadata
- add default language for babel
- add default language for babel
- fix tightlist in pandoc
- no HTML comments with LaTeX in it
- update docs
- clarify usage of quations, closes #1
- clarify docs for algorithm packages
- add examples for usage of \unit{}

* update PR, see comment in rstudio#172

* remove standard packages from template folder

* updated name for Copernicus

to not confuse Copernicus Publicatoins with "Copernicus Publishers"
 (https://flakyj.blogspot.com/2018/03/copernicus-publishers.html)

* revert changes in .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants