latex

Matplotlib 2 mathtext: Glyph errors in tick labels

女生的网名这么多〃 提交于 2020-01-02 02:31:37
问题 I've observed errors when rendering math in matplotlib 2.0.2, when using the default mathtext as opposed to the LaTeX math rendering engine. It seems that some glyphs (in my case the minus and the multiplication sign) is not recognized by mathtext. What makes it really weird is that the error only occurs when these particular glyphs appear in tick labels. When I deliberately type some mathy expression into e.g. the figure title, it works fine. Consider the below example and the resultant

How to place +/- plus minus operator in text annotation of plot (ggplot2)?

无人久伴 提交于 2020-01-02 01:15:17
问题 I have tried the following, but it doesn't work for me: a <- ggplot() a <- a + geom_point(aes(x=seq(0,1,0.1), y=seq(0,1,0.1))) a <- a + annotate("text", x=0.5, y=0.3, label="myplot") a <- a + annotate("text", x=0.5,y=0.2,label=expression(%+-%)) I have also tried the following as pointed out by How to annotate() ggplot with latex with no luck: a <- a + annotate("text", x=0.5, y=0.1, label="%+-%", parse=TRUE) And this doesn't work either: a <- a + annotate("text", x=0.5, y=0.1, label="\pm",

Lightweight Text Markup language that can be converted to HTML and LaTeX with a Java library? [closed]

邮差的信 提交于 2020-01-01 19:23:11
问题 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 6 years ago . A simple lightweight markup language like e.g. defined by Ceole 1.0 could be very useful for use in program and application documentation that is used as the basis for automatically created HTML and LaTeX. Is there any Java library out there that would be able to create HTML AND LaTeX from some markup dialect

Physics bra-ket symbols in IPython

倖福魔咒の 提交于 2020-01-01 17:23:11
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to

Physics bra-ket symbols in IPython

谁说胖子不能爱 提交于 2020-01-01 17:21:08
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to

Physics bra-ket symbols in IPython

那年仲夏 提交于 2020-01-01 17:21:08
问题 I am trying to have the ket symbol which is usually written in latex as \ket{\psi} . However, this doesn't work when written within the $$ ... $$ . This also doesn't work when written using IPython.display . 回答1: $ latex ** \documentclass{article}\usepackage{amsmath}\begin{document} ... chatter chatter ... * \show\ket > \ket=undefined. So your \ket macro is coming from some package or other which I don't know what it is. This doesn't explain why it doesn't work in $$ ... $$ -- you have to

Changing style of PDF-Latex output through IPython Notebook conversion

冷暖自知 提交于 2020-01-01 09:45:25
问题 Currently with the following command of my .ipynb file: $ ipython nbconvert --to latex --post PDF Untitled1.ipynb --SphinxTransformer.author="John Doe" [NbConvertApp] Using existing profile dir: u'/Users/me-macmini/.ipython/profile_default' [NbConvertApp] Converting notebook Untitled1.ipynb to latex [NbConvertApp] Support files will be in Untitled1_files/ [NbConvertApp] Loaded template article.tplx [NbConvertApp] Writing 12876 bytes to Untitled1.tex [NbConvertApp] Building PDF [NbConvertApp]

Change \parskip only inside enumerate & itemize environment

半世苍凉 提交于 2020-01-01 09:37:55
问题 Is there any way that I can change \parskip to a different value inside certain environments, namely enumerate and itemize . I want to have space between paragraphs ( \setlength{\parskip}{1em plus 1pt minus 1pt} ), but not inside itemize or enumerate. 回答1: Yes you can; but you will have to alter either the enumerate and itemize environments from your class file (by copying them and adding your \parskip ), or by redefining \@listi , which works for all lists: \makeatletter \def\@listi{% %

Creating documentation with maven

纵饮孤独 提交于 2020-01-01 09:32:31
问题 I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I have the time to reconsider now. I am interested in using maven and either LaTeX or DocBook for creating documentation, and I was wondering if anyone had any experiences to share, project/module structure, good plugins

Trouble mapping <C-j> in Vim with latex-suite

强颜欢笑 提交于 2020-01-01 09:05:43
问题 I wanted to map <C-j> to switch to the next window below the current one map <C-j> <C-w>j However, it goes into Insert mode instead of moving the window below. Why? Solution attempted: I have latex-suite installed. So I tried to query what <C-j> is mapped to :map <C-j> And I get the following output: v <NL> <Plug>IMAP_JumpForward n <NL> <Plug>IMAP_JumpForward o <NL> <C-W>j This means that I should change the mapping of <Plug>IMAP_JumpForward . I read around a bit and I found out it's related