tex

matplotlib does not display latex fonts correctly

ぐ巨炮叔叔 提交于 2019-12-11 13:04:36
问题 I'm having a problem with using latex fonts in matplotlib, in so far that they do not show up in interactive windows. Any help would be much appreciated :) I believe the issue did not exist on my system before, maybe a software update messed something up last month.. The default Latex font works without problems. Utopia / Fourier is broken, for example the following example (I replaced my home directory by a tilde in the output, everything else is just as I got it): import matplotlib.pyplot

MathJax left align on render

爷,独闯天下 提交于 2019-12-11 12:52:41
问题 How do I left-align all MathJax equation "on-render" . When you set displayAlign: "left" , the equations would first be centered, then after 0.5s, they move to the left. So basically, it flashes to the left, which is visually unpleasant. Is there a way to make it appear on the left on render? This is the code I have now. <script type="text/x-mathjax-config"> MathJax.Hub.Config({ config: ["MMLorHTML.js"], jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML",

Latex not render when string call from javascript?

好久不见. 提交于 2019-12-11 04:16:20
问题 In my below code: function test() { document.getElementById('demo').innerHTML="$$\left[ x=0 \right] $$";//same code from demo1.but not rendered } test(); <script type="text/javascript" src="http://latex.codecogs.com/latexit.js"></script> <p lang="latex"id="demo"></p> <p lang="latex"id="demo1">$$\left[ x=0 \right] $$</p> Same code applied from javascript. Its not rendering.kindly tell Whats wrong with my code & correct my code or give any alter suggestion for that . Thanks in advance 回答1:

LyX — Title, Abstract, Keywords Missing When Using Elsevier Class in View

江枫思渺然 提交于 2019-12-11 03:34:33
问题 I'm pretty new to using LyX, but have looked around this forum, as well as others and haven't found anyone else who has encountered this problem. The issue is that, when I click on the 'eyes' to preview my document in .pdf form, there are the two numbered sections with the corresponding body text, but my title, abstract, and keywords, as well as the 'new page' formatting, are all missing; the two sections are at the top of the page as though they had never been included. Some pertinent

Create an ePub file from markdown with math

倾然丶 夕夏残阳落幕 提交于 2019-12-10 17:11:02
问题 I've spent a considerable about of time trying to figure out how I can take a markdown file, which contains TeX math and convert it into an ePub file where the math is rendered properly. For example: This is a markdown file. Here is a [link](www.example.com). Here is some inline math: $\sigma_{i=1}^n \frac{\mu}{100}$ Here is an equation: $$ y = mx + b $$ How can I convert a markdown file with the above text into an ePub file? I've experimented with different methods of conversion using Pandoc

Package inputenc Error: Unicode char \u8:β not set up for use with LaTeX

末鹿安然 提交于 2019-12-10 15:45:08
问题 One of my references in Bibdesk contains some latin/Greek character e.g. 'β'. I am getting the error while using the reference in TEXMAKER: "! Package inputenc Error: Unicode char \u8:β not set up for use with LaTeX." How can I set it up to work? 回答1: Another solution is to use XeTeX, which is more suitable than most other TeX engines for unicode : replace the lines \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} with \usepackage{fontspec} 回答2: Though with inputenc TeX can read all the

Knitr preamble error results in “pandoc document conversion failed with error 43”

冷暖自知 提交于 2019-12-10 02:56:23
问题 Rstudio Version 0.99.441; Windows 7 enterprise; knitr 1.10.5; MiKTex 0.4.5 r.1280 (2.9 64-bit) I have a an error on my office computer when trying to knit PDF's in Rstudio, there are no problems knitting to HTML or word. The problem may be related to updates because knitting used to work fine and my home computer can knit to pdf without issue, however I took my computer home to update and the problem is still there. My error message was as follows "pandoc.exe: Error producing PDF from TeX

Use Agda's input method in other emacs mode?

纵饮孤独 提交于 2019-12-09 15:27:29
问题 How do I use Agda's input method to enter unicode characters in non-Agda mode? I don't see its name showing up when I try set-input-method . The reason I want to use Agda's input method instead of TeX is because there are characters I want that can't enter in TeX . Or, maybe an alternate question would be "How do I add more shortcuts to enter unicode characters in the existing TeX input method?" Thank you very much 回答1: Add the following commands in your .emacs file: ;; Using the input method

Redefining commands in a new environment

徘徊边缘 提交于 2019-12-09 15:03:04
问题 Two questions: Does LaTeX allow one to (re)define commands within a \newenvironment ? I've tried using \renewcommand , \newcommand and \def in the before declaration but to no avail. How would one redefine \item when creating a new list environment? I've created a new type of list environment from scratch using \newenvironment while using another token instead of \item for each but I'd really like to keep things consistent by using \list and redefining \item . 回答1: Sure; it's hard to know

RStudio can't find LaTeX after Mavericks update

空扰寡人 提交于 2019-12-08 12:05:47
问题 I have been using Sweave for quite sometime on my system using RStudio. However, I recently upgraded my Mac OS from Lion to Mavericks. This caused several issues: First, RStudio was not able to locate the R library, and it just wont start. I reinstalled RStudio, but still got the same issue. So I reinstalled both R and RStudio, and then RStudio started to work. And now, RStudio is still not able to locate TeX installation, and gives me the following warning: "No TeX installation detected.