Questions tagged [tex]

0

votes
0

answer
5

Views

Is there a way to make octave interpret strings in static text of uicontrol using TeX (Greek letters, subscripts, superscripts etc.)?

I am writing a GUI in GNU octave (5.1.0). It is supposed to read some input values, make some calculations, plot some graphs and write the results. Everything works well besides the unwanted fact that uicontrol displays the given string uninterpreted (Greek letters, subscripts, superscripts etc.). I...
Tomáš Hofer
1

votes
0

answer
110

Views

dpkg/miktex error in ubuntu 14.04

I am getting these warnings which I am unable to solve. I tried using these : sudo dpkg --configure -a for i in $(dpkg -l|awk '/^ii/ {print $2}'); do sudo apt-get --reinstall -y install $i; done for i in $(dpkg -l|awk '/^ii/ {print $2}'); do apt-get --reinstall -y install $i; for i in $(dpkg...
Neel Shukla
1

votes
1

answer
41

Views

Django: output textfile to be proceeded

i have a small django application that i use to manage my patients data ( i am a doctor with an intermediate level in python/django) I used LaTeX to output my reports via a view function like that def consultation_pdf(request, pk2, pk1): entry = Consultation.objects.get(pk=pk2) source = Patient.obje...
Kaddour Kardio
1

votes
0

answer
133

Views

matplotlib.mathtext functions return Unknown symbol: \begin{} even with usetex=True and \usepackage{amsmath} properly configured

UPDATE: This is not a duplicate of Align TeX equations in matplotlib. The sample code shown in this question does not produce the output I would have expected or wanted given the specified input LaTeX string. When I ran the code shown in this question, there were no errors, but the output was simpl...
SO1804
1

votes
0

answer
287

Views

Multiple Footnotes for Multiple Figures in LaTeX

I have two images next to each other. The source of these images should be in the footnotes. So far I got this: \begin{figure}[h!] \centering \includegraphics[width=6.5cm]{images/Oculus_Rift.jpg} \includegraphics[width=6.5cm]{images/Oculus_Rift_Controller.jpg} \caption[Oculus Rift]{Oculus Rift\f...
1

votes
0

answer
42

Views

Tables or plots with weighted fonts

This might be a bit generic question. I am looking to create a table with fonts weighted (not necessarily linearly weighted) by magnitude. For example, I created this table in powerpoint, but the fonts are weighted manually. The ultimate objective is that the table/plot goes to a journal article. I...
Sathish Sanjeevi
1

votes
1

answer
30

Views

Convert TeX to a plain string for use on http://api.mathjs.org/v4

I'm very very new to TeX, in fact I discovered it within the past hour. I was wondering if I could convert something like this: $$ (3\times10^{-9})\times(7\times10^{3}) $$ Into something like this: (8*10^−9)*(7*10^3) I've been looking at some things about MathJax, but I'm not sure it's right for...
aabbccsmith
1

votes
0

answer
34

Views

Matplotlib memory leak when rendering MathText to get its bounding box

Calling get_window_extent() for MathText-contatining Text objects in a loop increases used memory, despite Text objects being removed. Minimal working example: import matplotlib.pyplot as plt import random fig = plt.figure() renderer = fig.canvas.get_renderer() sample_text = ' '.join('${}$'.format(r...
Vlad Oles
1

votes
1

answer
21

Views

Word Wrap in Vim (preserving indentation) in Latex document

I was just looking at this post which describes how to wrap entire words in vim. I am looking for a way to key the indentation, or in my case, the lack of it. I usually select a couple lines with V and press gq to reformat it and re-wrap the lines. Let say, I have the following document *Inside of w...
Eduardo Reis
1

votes
1

answer
1.9k

Views

LaTeX: disable or turn off hyperlinking for table of contents?

I want a table of contents, but I don't want each line to be a clickable hyperlink. How do I do this? Details: I am using the \anothertoc command from the shorttoc package to 'import' the TOC from another document. Works fine, except that all the links for the imported TOC are broken (obviously).....
Kevin
1

votes
1

answer
505

Views

How to create diagrams for papers [closed]

I want to create some diagrams for some papers. Diagrams will contain some text, e.g. some console output. I need images for using also in html files. There is TikZ so can create images like this: http://www.texample.net/tikz/examples/boxes-with-text-and-math/ http://www.texample.net/tikz/example...
Szymon Lipiński
1

votes
1

answer
857

Views

How to insert a full-page letter-size image?

I have been trying to insert a letter-size image, but either this is cut because of the margins definition of the document style (book), or its size is limited to the specified margins. Below is the code with which I have managed to obtain the size of the image: ... \newenvironment{pagportada}{ \beg...
Eric ROSAS
1

votes
1

answer
383

Views

TeX: Nesting hboxes in a vbox doesn't display as expected

With the following plain TeX: \hbox to \hsize { \vbox to 2 true in { aaa aaaaa aaaaa aaa aaaaa aaaa aaa aaaa aaa. aaa aaaaa aaaaa aaa aaaaa aaaa aaa aaaa aaa aaa aaaaa aaaaa aaa aaaaa aaaa aaa aaaa aaa. aaa aaaaa aaaaa aaa aaaaa aaaa aaa aaaa aaa. } \vbox to 2 true in { bbb bbbbb bbbbb bbb bbbb...
s__
1

votes
2

answer
361

Views

running tex from php script

I've installed mactex on my macbook and configured apache + php + mysql. So when I'm running texi2pdf from bash it works fine. But when I'm trying to run it from php script the next error occurs Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not found. The function is called...
witzawitz
1

votes
1

answer
358

Views

iOS search and replace PDF string

Is it possible to search and replace a known string from a PDF with Objective-C/Quartz 2D? I've some nice formatted PDF with tabular data, created with Latex (and generated with pdflatex). Every pdf will have a placeholder string, something like XXXXXX that I would like to change programmatically. T...
microspino
1

votes
1

answer
893

Views

How do I change font size in Sphinx latexpdf with anysize or cm-super?

This isn't a duplicate of this question: I'm trying to set a bigger font size for all elements. I managed to make font size 12 instead of 10, but it's still too small to be readable. Werner suggests in the comments to use cm-super font or anysize extension. I can's see such packages in Ubuntu. How c...
culebrón
1

votes
1

answer
87

Views

NetBeans documentation TeX

I wondered if there was a way to integrate TeX with NetBeans? I've tried google it and couldn't find a clear answer, but found an Eclipse project doing it but need it for NetBeans.
HJess
1

votes
1

answer
230

Views

Printing - easier by creating a .tex file or directly from code?

I have never written any printing methods myself, and after reading and trying a few examples in C# I'm really discouraged. Either I'm using completely outdated methods, not the right libraries or printing (at least in C#) is a real pain. Firstly, the code to print even a simple document is complete...
Effarem
1

votes
1

answer
554

Views

Disable what ever causes Vim LaTexSuite from automatically entering braces

I'm working on a paper using LaTex, and my preferred text editor is Vim. When using the LaTeX plugin from https://github.com/gerw/vim-latex-suite gives me just about everything I need when working with LaTeX. Sadly there is one thing about the Suite that is driving me nuts. I have a habit when type...
LeeGauthier
1

votes
1

answer
65

Views

Encounter problems while compiling kerTeX on Mac OSX

I was trying to compile kerTeX on Mac OSX 10.9 and encountered some problem. I downloaded this get_mk_install.sh from the project homepage and fed it to sh, it worked very well at first for a moment but terminated suddenly, the error message does not make any sense to me: #========== BUILDING sys/sh...
SinceBelieve
1

votes
1

answer
202

Views

(-6x^2-x-7)(2x^3+3x^2-2x-5) as input in SymPy

Is there any function in SymPy can take thisexpression as an input (-6x^2-x-7)(2x^3+3x^2-2x-5) to find the derivative?
iMath
1

votes
1

answer
906

Views

error converting iPython Notebook to PDF

I have searched many related posts and not finding a solution. I am trying to convert an Ipython Notebook .ipynb file to PDF, using the command: $ ipython nbconvert --to latex --post PDF BTNFWeatherStationplotter.ipynb I am running Ubuntu 14.04, iPython 2.2.0, TeX 3.1415926 (TeX Live 2013/Debian), p...
PJW
1

votes
2

answer
505

Views

Preview LaTeX output with Java

Right now I'm working on displaying LaTeX generated document with Java. Strictly speaking, LaTeX source can be used to directly generate two formats: DVI using latex, the first one to be supported; PDF using pdflatex, more recent. However rendering dvi or pdf is not available as far as I know. Is t...
hsz
1

votes
1

answer
62

Views

@-names in plain TeX

Texinfo adds macros starting with '@'. I'm curious how to do that in plain TeX because I'm trying to create a simple TeX framework for my friends' needs and it would be more readable for them.
Kamil Łapiński
1

votes
1

answer
501

Views

Combining information of tex and eps file generated via gnuplot to a single figure file?

I use gnuplot with epslatex option to generate figure files for plotting purposes (like here). Via this method you get 2 files corresponding to same figure, one tex file and one eps file. The figure information is in eps file and font information is in tex file. So my question is this : Can I combi...
dexterdev
1

votes
1

answer
568

Views

Importing .tex table to lyx using tex2lyx

I'm writing a document in lyx and I have tables that are .tex files. I usually import them via the menu, but I would like to import them directly using a snippet of tex code in the lyx file using directly tex2lyx in the document. How do I do it? Thanks in advance.
John Doex
1

votes
1

answer
174

Views

Matplotlib, usetex: Colorbar's font does not match plot's font

I have a matplotlib plot with a colorbar and can't seem to figure out how to match the fonts of the plot and the colorbar. I try to use usetex for text handling, but it seems like only the ticks of the plot are affected, not the ticks of the colorbar. Also, I have searched for solution quite a bit,...
Tonkel
1

votes
1

answer
47

Views

Latex not render when string call from javascript?

In my below code: function test() { document.getElementById('demo').innerHTML='$$\left[ x=0 \right] $$';//same code from demo1.but not rendered } test(); $$\left[ x=0 \right] $$ Same code applied from javascript. Its not rendering.kindly tell Whats wrong with my code & correct my code or give any...
1

votes
2

answer
862

Views

Make pdf in Jupyter notebook with Russian letters

I try to create pdf in Jupyter notebook. It's OK for English letter, but for Russians there is a error: (/usr/share/texlive/texmf-dist/tex/latex/ucs/data/uni-4.def) ! Undefined control sequence. \u-default-1055 #1->\CYRP l.278 П ривет, мир! ? ! Emergency stop. \u-def...
nik
1

votes
1

answer
456

Views

How do I check from within python whether LaTeX and TeX Live are installed on a computer? [duplicate]

This question already has an answer here: Test if executable exists in Python? 21 answers I am writing a python program which generates TeX code that gets compiled into a PDF document. For this to work, I need to make sure that the user has some distribution of LaTeX installed on their computer. Ho...
Joshua Hoeflich
1

votes
1

answer
518

Views

subprocess.Popen(cmd) does not find command that can be run in Terminal

For the context: I am on macOS, developing with Spyder. I installed TeX with MACTeX. I am working on creating an automatic text document and I like to use the solution proposed here: Generating pdf-latex with python script When excecuting the python script in Spyder, I hang on the line calling 'subp...
MAC
1

votes
1

answer
96

Views

How to align similar math expressions listed

I am trying to align the 4 equations in this section. The problem is, I can't use the \begin{align} environment since they are each listed after blocks of text. Ideally all the equations would end up aligned. I have played with \hspace and \hfill but don't think they are the best solutions to this....
teepee
1

votes
1

answer
87

Views

create table in latex

I have created a table in latex with the following code \begin{tabular}{| c|c|c |} Carbon dioxide (CO$_2$) & 0.038\%\(0.026\% \footnote{Preindustrial}) & 0.058\% \ however the table i want should be like the one in shown in the picture. with the code above the number 0.026% comes below Co2 and ther...
Priya Chaudhari
1

votes
1

answer
29

Views

Javascript Regex for TeX enclosed by $$

Regex Experts! Considering we have the following text, I'm attempting to find a REGEX to detect all TeX expressions enclosed by two $$s. Select the correct answer: a) 10 % = $$\frac{1}{10}$$. b) 33 % < $$\frac{1}{3}$$ c) 2 % = $$\frac{2}{100}$$, d) 9 % < $$\frac{1}{9}$$ e) 5 % = $$1+\frac{1}{5}$$ f...
Kevin Ghaboosi
1

votes
1

answer
196

Views

python - latexmk: error: no such option: -d

I am getting an error when I want to run a python script: The error is following one: The code is given below: #!/usr/bin/python import subprocess code_dir = 'code' title = 'Stanford ACM-ICPC Team Notebook' def get_sections(): sections = [] section_name = None with open('contents.txt', 'r') as f: fo...
Shubhashis Roy Dipta
1

votes
1

answer
41

Views

Python Pyx plot: Using \mathbb in axes label of plot

I am making plot in PyX. To get (in LaTex language) \mathrm{a} you use \rm{a} (in PyX language). I wanna get (in LaTex language) \mathbb{a}. How to do it in PyX language? Attempt of \bb{a} gives error message.
Nigel1
1

votes
1

answer
67

Views

How to configure arara to post process .Rnw files in statet / Eclipse

I would like to use arara to post process the .tex files produced from Sweave (.Rnw) documents in R, and use it to build glossaries or bibliographies in reports. How do you integrate that in the statet eclipse plugins ? The arara header is put on top of the .Rmd file and will be processed to the .te...
Cedric
1

votes
1

answer
159

Views

MathJax not rendering correctly

I am currently using this library in my app: https://github.com/kexanie/MathView which is used to convert text into maths, it uses TeX/MathJax. This was working as expected: MathView mv = new MathView(context, null); mv.setEngine(MathView.Engine.MATHJAX); mv.config('MathJax.Hub.Config({\n' + 'jax: [...
Abhijeet
1

votes
1

answer
865

Views

How to set Matplotlib to render greek letters in sans-serif font

I am generating some plots using Python (2.7) and Matplotlib (1.4.3), and would like all of the text in my plots to be in a sans-serif font. The best I have been able to achieve, using external LaTeX and the sfmath package, fails to set greek letters in sans-serif. This is demonstrated in the follow...
Zatman
1

votes
1

answer
572

Views

Equation numbering in colab notebook

I'm using \begin{equation}.. \end{equation} in markdown mode in a Colab notebook and I don't get equation numbering as I would expect from Latex. Is there a fix for this?
Marios

View additional questions