FAQ Database Discussion Community

## Change LaTeX when button is pressed

javascript,html,latex
I am trying to create a program that generates random functions then shows them in LaTeX but I can't figure out how to edit LaTeX when a button is pressed. This code works: <html> <head> <script type="text/javascript" src="http://latex.codecogs.com/latexit.js"></script> </head> <body> <div lang="latex" id='Latexdiv'></div> <script> document.getElementById('Latexdiv').innerHTML = 'sin(x)'; </script> </body> </html>...

## Is there a way to include knitr documents in a LaTeX document?

r,latex,knitr
I think the question as stated maybe ambiguous, so let me describe my use case. I am working on a document that is primarily ordinary English text edited in a LaTeX editor (Texpad in my case), but in which I'd like to include material I've developed in knitr-based .Rnw file....

## Latex \newcommand in kramdown

github,latex,jekyll,kramdown

## pyreport LaTeX formulae not working

python,ubuntu,latex,pyreport

vim,latex

## improper matrix print out latex

matrix,printing,latex

## vertical line between latex minipages

latex,markup
right now I have a latex section that looks like \begin{minipage}{0.35\textwidth} %left column ... \end{minipage} \hfill \begin{minipage}{0.55\textwidth} %right column ... \end{minipage} This makes a nice looking two column layout, but I would like to add a vertical bar between the two minipages (where I currently have \hfill). What is the...

## Creating template on vim-latex suite (Ubuntu)

templates,ubuntu,vim,latex
I have asked a same question on tex stack overflow, but I had no responses for two days, so I will post it here instead (it is more of a technical problem than tex problem). I will delete the question on tex overflow in two hours. http://tex.stackexchange.com/questions/230881/creating-templates-on-vim-latex-suit-template Here are the...

## os.path.getsize Invalid syntax error

python,latex
First thing first, code is list below, import sys import os import latexmake import mysql.connector conn = mysql.connector.connect(user='root',password='oilwell',host='localhost',database='sqlpush1') with conn: mycursor = conn.cursor() mycursor=execute("SELECT DATE,oil,gas,oilprice,gasprice,totrev FROM results WHERE DATE BETWEEN '2011-01-01' AND '2027-12-01'") rows = mycursor.fetchall() a.write("\\documentclass{standalone}\\usepackage{booktabs}\n\n\\usepackage{siunitx}\r \n\ \r\n\\begin{document}\r\n\\begin{tabular}{ccS[table-format...

## split an equation with multicols on

compiler-errors,latex,equation,multicol
I would like to split my large equation in two column. But my file fails to compile when I try to use \{amsmath} and then split, multline, etc... The error says: Package amsmath Error: \begin{multline} allowed only in paragraph mode. \begin{multline} Does someone knows how to split a large equation...

## adding author emails and affiliation on 2nd second line not as a footnote [closed]

latex
Latex code that i have executed, insert emails as a footnote which i want to insert under the author name or on the same line with affiliation. i have insert an image of the required format as well. \documentclass[a4,12pt,twosided,reqno]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{authblk} \title{More than one Author with different Affiliations} \author[1]{Sadique...

## How to Parse LaTex file

python,regex,parsing,python-3.x,latex
I just finished to write the summary for calculus in Latex. The main problem now is that the files contains many things I don't really need now. The .tex files contains many definitions and theorems that i need to study by heart. The definitions have their own definition in the...

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

r,latex,knitr,rmarkdown,tex
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...

## LaTeX Equations Not Rendered on Webpage

r,latex,markdown,knitr
When I go to a webpage, such as this page of examples, none of the LaTeX code is being rendered in any of the browsers I try. However, on the same computer, if I create a simple R Markdown file in RStudio and I click Knit HTML, the preview in...

## Preserve line breaks in title using pandoc

latex,markdown,pandoc
Consider the following title block in pandoc-flavored Markdown: % Higgelty Pigglety Pop! or There Must Be More to Life % Maurice Sendak Here, line breaks are part of the title. It is possible to reformat the title in order to insert it into regular text flow, e.g. "Higgelty Pigglety Pop!...

## How to add a math character (lozenge) to a ggplot title

r,ggplot2,latex
I am trying to add a \lozenge to a ggplot2 title. Some example code would be: tmp = data.frame(x = rnorm(100), y = rnorm(100)) ggplot(tmp, aes(x, y)) + geom_point() + ggtitle(expression(lozenge)) But I cannot get the lozenge to appear. It simply prints the word lozenge. I also need to be...

## Converting Tex string in Tex number

string,numbers,latex,tex

## How to make internal links work in Sphinx output (latexpdf)?

reference,latex,python-sphinx,restructuredtext
I insert links following this manual: http://sphinx-doc.org/markup/inline.html#ref-role However, while the internal links work perfectly in the HTML output, they don't work in PDF. The text supposed to be the clickable link only become italics. Here's my rst: This is my :ref:reference <file-table3>`. .. _file-table3: .. container:: centeredtextbody .. table:: There...

## Generate TeX/LaTeX file and compile both in Python

python,latex,tex,pdflatex
I am preparing a data processing code and the results from these are to be fed to a TeX/LaTeX file and the file is to be compiled by Python (i.e. Python should send the command to compile the TeX/LaTeX file) At present I plan to generate a text file (with...