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

Export basic LaTeX manuscript #384

Merged
merged 1 commit into from
May 29, 2021
Merged

Export basic LaTeX manuscript #384

merged 1 commit into from
May 29, 2021

Conversation

dhimmel
Copy link
Member

@dhimmel dhimmel commented Nov 3, 2020

refs #249

@AppVeyorBot
Copy link

AppVeyor build 1.0.186 for commit 0394ec0 is now complete.

Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscing
content/02.delete-me.md:44:aliqua
content/02.delete-me.md:44:amet
content/02.delete-me.md:44:consectetur
content/02.delete-me.md:44:dolore
content/02.delete-me.md:44:eiusmod
content/02.delete-me.md:44:elit
content/02.delete-me.md:44:incididunt
content/02.delete-me.md:44:ipsum
content/02.delete-me.md:44:labore
content/02.delete-me.md:44:Lorem
content/02.delete-me.md:44:magna
content/02...
The rendered manuscript from this build is temporarily available for download at:

@manubot manubot deleted a comment from AppVeyorBot Nov 3, 2020
@dhimmel
Copy link
Member Author

dhimmel commented Nov 3, 2020

manuscript.tex snippets

Here are parts of the output manuscript.tex separated by ...:

\begin{figure}
\hypertarget{fig:wide-image}{%
\centering
\includegraphics{https://github.com/manubot/resources/raw/15493970f8882fce22bef829619d3fb37a613ba5/test/wide.png}
\caption{\textbf{An image too wide to fit within page at full size.}
Loaded from a specific (hashed) version of the image on GitHub.}\label{fig:wide-image}
}
\end{figure}
...
Citation by DOI {[}\protect\hyperlink{ref-IhliSZDo}{1}{]}.
...
A LaTeX equation:

\begin{equation}\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}\label{eq:regular-equation}\end{equation}
...
\leavevmode\hypertarget{ref-6acIRW4q}{}%
6. \textbf{Open collaborative writing with Manubot} \\
Daniel S. Himmelstein, Vincent Rubinetti, David R. Slochower, Dongbo Hu, Venkat S. Malladi, Casey S. Greene, Anthony Gitter\\
\emph{Manubot} (2020-05-25) \url{https://greenelab.github.io/meta-review/}

So looks like citations have been rendered, but figures are still references and not yet numbered.

Adding standalone: true to defaults/latex.yaml adds a preamble and \begin{document}.

habi added a commit to habi/zmk-tooth-cohort-method-manuscript that referenced this pull request Nov 5, 2020
According to manubot/rootstock#384

For kicks, we *also* set BUILD_DOCX, so we should also get a Word
file...
@habi
Copy link

habi commented Nov 5, 2020

So looks like citations have been rendered [...]

The main issue I always saw with submitting a final manuscript file as .tex is copying over the citations (from a Word or Markdown file) without introducing an error.
If the file does contain them that greatly minimizes any human errors!
I knew that I'd 'just' be able to pandoc the stuff together myself, but it's very convenient if the build pipeline does it automatically.

[...] but figures are still references and not yet numbered.

That should be easy to take care of with a little bit of 'search-and-replace'.
I think it's much less error-prone than manually copy-pasting 40+ citations :)

habi added a commit to habi/zmk-tooth-cohort-method-manuscript that referenced this pull request Nov 5, 2020
According to manubot/rootstock#384

For kicks, we *also* set BUILD_DOCX, so we should also get a Word
file...
@dhimmel dhimmel changed the base branch from master to main December 11, 2020 00:48
agitter added a commit to greenelab/covid19-review that referenced this pull request Apr 30, 2021
@dhimmel
Copy link
Member Author

dhimmel commented May 29, 2021

@agitter do you see value in merging this and keeping BUILD_LATEX off by default?

@agitter
Copy link
Member

agitter commented May 29, 2021

do you see value in merging this and keeping BUILD_LATEX off by default?

Yes, I think it's a small addition that won't clutter anything and can be a helpful starting point for LaTeX export.

I intend to comment on #249 based on our LaTeX experience in greenelab/covid19-review#943. I now have a better understanding of the gaps between this basic export and what LaTeX authors may want.

@dhimmel dhimmel merged commit 95bf5b2 into manubot:main May 29, 2021
@dhimmel dhimmel deleted the latex-basic branch May 29, 2021 21:30
trangdata added a commit to greenelab/iscb-diversity-manuscript that referenced this pull request Aug 5, 2021
* setup.bash: interactive script to guide setup

merges manubot/rootstock#417
closes manubot/rootstock#401

* Add "gh repo create" to SETUP.md

merges manubot/rootstock#419
closes manubot/rootstock#418

Co-authored-by: Daniel Himmelstein <[email protected]>
Co-authored-by: Anthony Gitter <[email protected]>

* BUILD_LATEX for basic LaTeX manuscript

merges manubot/rootstock#384
refs manubot/rootstock#249

* Pandoc 2.14: update HTML plugins, CSL style, citekey syntax

merges manubot/rootstock#427

Co-authored-by: Daniel Himmelstein <[email protected]>
Co-authored-by: Anthony Gitter <[email protected]>

Co-authored-by: nfry321 <[email protected]>
Co-authored-by: Tiago Lubiana <[email protected]>
Co-authored-by: Daniel Himmelstein <[email protected]>
Co-authored-by: Anthony Gitter <[email protected]>
Co-authored-by: Vincent Rubinetti <[email protected]>
ploegieku added a commit to ploegieku/2023-functional-homology-paper that referenced this pull request Aug 6, 2024
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

Successfully merging this pull request may close these issues.

4 participants