# Questions tagged [tex]

379 questions

0

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

0

110

Views

PJW

2

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

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

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

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

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

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...

2

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

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

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

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

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

29

Views

Kevin Ghaboosi

1

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

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

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

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

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

572

Views

### Equation numbering in colab notebook

I'm using $$..$$ 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