IPython LaTeX math not rendered in HTML using nbconvert [closed] - latex

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
while trying to convert my ipynb to html I get no LaTeX math from the markdown cells rendered. The final HTML contains original LaTeX notation instead. The notebook renders well using the ipython web based editor, however the export to HTML not.
Do I do something wrong?

Hmm, it seems a link to mathjax was broken in template (and so in the generated html), this fixes it: https://github.com/ipython/ipython/pull/6395

I'm expanding over #lukas's answer in that his link points to a page with pertinent info, but too much info. This link here is more to the point.
For the impatient, change all occurrences of 'c328740.ssl.cf1.rackcdn.com' into 'cdn.mathjax.org', so:
ipython nbconvert --to html nb.ipynb nb.html
sed 's|c328740.ssl.cf1.rackcdn.com|cdn.mathjax.org|g' nb.html > fixed.html
will do.

Related

Converting bibliography between latex document types [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a paper on Overleaf, that I wrote with
\documentclass{siamart0516}
and I want to switch to
\documentclass{svjour3}
The transition works except for the bibliography (the paper compiles completely if I don't include it, or if I include a manual bibliography using \begin{thebibliography}{} and \bibitem). In the original file I used
\bibliographystyle{siamplain.bst}
%\bibliographystyle{unsrt}
\bibliography{bibliography.bib}
For reference, unsrt works just fine (since I think siamplain.bst is nonstandard).
In the new file I want to use one of
\bibliographystyle{spbasic}
%\bibliographystyle{spmpsci}
My output varies by exactly what I try, but I have not been able to get this document class to work with either of these options (or my original options). The errors are not consistent, sometimes it's just a long output log with no defined error. One error I do get frequently is
White space in argument : \citation.
I am happy to use any workarounds, including different bst files that give a similar output, not really particular on fixing this specific error.

pandoc full-featured online? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is pandoc hosted anywhere for online use with complete functionality? The online pandoc demo lacks PDF output and has a character limit.
Specifically, I'd to convert Markdown to PDF with embedded LaTeX, which offline pandoc does.
I've wrapped Pandoc in a web service. You can try it here https://github.com/mrded/pandoc-as-a-service
Usage:
curl -H "Content-Type: text/markdown" -X POST -d "# hello" http://localhost/html
Yes, on Authorea you can write Markdown, LaTeX (as well as rich text) and convert your content to PDF, Word, or LaTeX. The conversion is performed via an underlying Pandoc process.
If you are OK with the workflow pandoc<->latex->PDF, an alternative is sharelatex. It's open source and can be self-hosted.
Docverter is basically Pandoc as a service.
Yes, on SageMathCloud.
The downside is that you have to create an account to use it.
Once logged in, create a project or open the project in which you want to work.
Create your markdown file file.md. Fill it up with text. Open a terminal and write your pandoc incantation, for example
pandoc file.md -o file.pdf
Push Enter, then go back to fileview and you'll view your converted pdf there.

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

How can I convert an .rtf or .doc document to LaTeX? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program.
What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keeps my formatting).
I am using Mac OS 10.5.8.
Open Office can. Download it.
See the fmtconv question on the UK TeX FAQ, or, more specifically, the page on Converters from PC Textprocessors to LaTeX - Overview, which is specifically about this question and has many many examples. This general list of word-processor filters may help too.
UnRTF claims to be able to convert RTF to LaTeX as well as other formats (e.g. HTML). It claims to support HTML best, so perhaps RTF->HTML->LaTeX (e.g. with html2latex) might work better. I haven't actually tried any of this though.
Make your rtf/doc document into docx, and convert it using docx2tex.
You need the System.IO.Packaging .NET class to get this to work, which is no problem if you are using Windows, and is in principle supported by Mono if you are not. If anyone has success doing this with Mono, I'd like to hear of your experiences: this didn't work a year or so ago, but their implementation of that class has improved since then.
I say more about the utility in an answer at tex.stackexchange. Suffice it to say that I consider this by far the cleanest, most Latex-friendly option out there.

include a .tex file with spaces in the filename [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am including chapters in my latex file one by one by using the \include{} statement, up till now I've had no problem with that. But I've recently written a chapter which I've saved under a name including spaces...because you can.
Now the include{} statement apparently doesn't like spaces, and prints just the filename in my document in stead of the chapter.
It is probably a pretty easy fix (apart from removing the spaces in the filename, ;-) ), but I can't find it.
UPDATE
It doesn't bode well for this question according to this wiki. It says that you can't unless you use a recent distribution like teTeX 3 or MikTeX 2.4.
However one smidge of hope left, the page is dated 2005 (a lot can happen in 5 years) and I am using pdflatex included in ubuntu which I assume is a fairly recent distribution.
Try
\include{"file\space name"}
(I.e., use quotes and \space.) You may need to remove old .aux files and/or run Latex twice.
Well I'm closing this question by giving the (quite unsatisfying) answer, I've found (on this wiki).
At the moment the answer unfortunately is: you can't, unless you use a recent version which happens to handle this problem more gracefully. Examples: teTeX 3 and MikTeX 2.4.
It seems that unusual filenames are still a problem within latex, so your best bet is to abstain or, if you have to, find a version that has solved the problem.
It works. What you need to do is if your chapter file is File Of Mine.tex then in the main .tex file put
\include{"File\space Of\space Mine"}
but inside File Of Mine.tex you just need to have \chapter{File Of Mine}. Try this and see if it works for you. It does for me.

Resources