php,latex,fedora,pdflatex,php-5.2
the pdflatex.fmt must be readable by the web browser in order to be accessible for the exec command, also the server might be chrooted and if so, the chroot folder might not have access to all the pdflatex parts. check it...
You can use xtable for this (from the xtable package): # create your table tab <- table(state.division, state.region) # reassemble to put things where they need to be tab2 <- cbind(rownames(tab), tab) tab3 <- rbind(c("","\\multicolumn{4}{l}{state.region}", rep("",ncol(tab2)-2)), c("state.division",colnames(tab2)[-1]), tab2) # print as xtable library("xtable") print(xtable(tab3), include.rownames = FALSE, include.colnames = FALSE,...
If using minipage is not a necessity for you, you could easily use the tabular environment together with parbox to achieve the desired result: \begin{tabular}{l | l} \parbox{0.35\textwidth}{ left column content } & \parbox{0.35\textwidth}{ right column content } \end{tabular} ...
There's bunch of options to split text in cells or split the table if too wide with pander, e.g.: > pander(tble, split.cells = 20, split.table = Inf) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- City Optimized HDH Standard HDH Heating Demand Heating Energy Threshold Optimized CDH Standard CDH Cooling Demand Cooling Energy [W/(°C x Capita)]...
Without a working example I can't confirm it but is this the answer? tex.stackexchange-includepdf-pages-with-page-numbering-of-new-document-and-remove-blank-page-after Does the following work? \usepackage{pdfpages} \includepdf[pages=-,pagecommand={}]{docu.pdf} ...
You can perform elementary numeric (integer) expressions using \numexpr: \documentclass{article} \usepackage{xcolor} \newcommand{\vhlines}[1]{% \hspace{1em}% \setlength{\unitlength}{0.75cm}% \begin{picture}(22,#1) \color{lightgray} \linethickness{0.075mm} \multiput(0,0)(1,0){21} {\line(0,1){\numexpr#1-1}} \multiput(0,0)(0,1){#1} {\line(1,0){20}} \end{picture} } \begin{document} \noindent \vhlines{4} \end{document} Alternatively, for more complex expressions, add to your preamble \usepackage{xparse} \ExplSyntaxOn \cs_new_eq:NN \calc...
r,latex,wolfram-mathematica,mathml
There is builtin support for exporting expressions to Fortran and C. I suggest you export the expression to C and then edit the C expression. Details here: https://reference.wolfram.com/language/tutorial/GeneratingCAndFortranExpressions.html...
When you are writing code normally inside the code blocks of the document, just make sure to set the directory of where the R file is located and source the file. e.g., <<echo=TRUE>>= setwd(mydirectory) source(myfile) print(MEAN(x)) @ ...
You should consider reading Is there a comprehensive and complete LaTeX reference? where you'll find information on all sorts of LaTeX2e sources. Technically, \newenvironment{<cmd>}[<num>][<default>]{<beg-def>}{<end-def>} uses \newcommand as base, so understanding the latter will help you understand the former. Specific to your case, LaTeX2e for authors user guide mentions the following...
git,version-control,latex,git-merge
As vcsjones noted in a comment, you pretty much have to use --no-commit here, to stop the merge even when git thinks it went well. Regarding your subsequent question, you can get git to extract the two being-merged versions of the file in a number of ways. The simplest is...
Since posting this question, I have done some research and have found a solution. I have to give a lot of (maybe all?) credit to Josh Davis from whom I took most of my setup. He pointed me to kicker to watch my .Rnw file. But, for an inexperienced user...
You have a number of options. Firstly you could \let\bb\mathbb which will copy the definition of \mathbb into \bb. This means that if the definition of \mathbb changes, \bb will remain whatever it was at the time of definition. If \mathbb were to take an optional parameter as an argument...
I think you see the effects of the conceal feature; the Tex syntax plugin uses that do shorten certain sequences for display. See :help tex-conceal for the full explanation of that feature. If this annoys you, just disable concealing, e.g. via :set conceallevel=0 ...
You should show the YAML frontmatter of the R Markdown document. Guessing from my experience, the error was caused by --- date: 14. Juni 2015 --- Any number followed by a period (e.g. 14.) will be treated as an item in a numbered list. You need to either remove or...
After testing my comment, it seems it works fine without additional complications. A backslash is a special character in R strings, so you need to escape it with another backslash. Knitting: --- title: "beta test" author: "Gregor" date: "Friday, February 13, 2015" output: pdf_document --- ```{r} b0 = "$\\beta_0$" ```...
http://latex.codecogs.com/latexit.js executes at the end: LatexIT.add('*'); That adds and onload listener that executes a render function, that's why works in the first case, the page ends loading after your first script. You could simply add the render function in your change function. function change() { document.getElementById('Latexdiv').innerHTML = 'sin(x)'; LatexIT.render('*',false); }...
Delete the two dollar signs: \begin{equation} M=\begin{bmatrix} V_{1,1} & . & . & V_{1,n}\\ . & . & & \\ . & &. & \\ V_{m,1}& & & V_{m,n} \end{bmatrix} \end{equation} ...
r,latex,markdown,knitr,rmarkdown
Slides and section slides are both defined by markdown headings, a series of # character at the beggining of a line, the number of # indicating the hierarchical level of the title. By default [the level that defines frames] is the highest header level in the hierarchy that is followed...
Found the following package: http://www.emacswiki.org/emacs/download/AuxLabel Make sure to read the LIMITATIONS section....
Because matplotlib uses mathtext as default math renderer. Mathtext is a subset of regular TeX. You can use full LaTeX with: from matplotlib import pyplot as plt import matplotlib as mpl mpl.rcParams['text.usetex'] = True mpl.rcParams['text.latex.preamble'] = [r'\usepackage{amsmath}'] #if needed plt.plot([1,2,3]) plt.title(r"$a\:=\,{}\pm{}$".format(0.01, 0.002)) plt.show() ...
Strange how you want to save space in the enumeration yet add space between equations. I enjoy the current display. However, you can use a custom mylist which looks like an enumerate without alignment: \documentclass{article} \usepackage{showframe}% Just for this example \usepackage{amsfonts} \newenvironment{mylist} {\setlength{\parindent}{0pt}% No paragraph indent \setcounter{enumi}{0}% Restart enumeration at...
Very easy: just add a text object with its 'interpreter' property set to 'latex': text(.3, .5, '$\vec R=2$', 'interpreter', 'latex', 'fontsize', fontSize) The first two arguments of text are coordinates; change them as needed. ...
r,latex,knitr,xtable,cross-reference
The left environment seems to be messing up the referencing. I tried % latex table generated in R 3.2.0 by xtable 1.7-4 package % Tue Jun 02 09:53:12 2015 \begin{table}[ht] \caption{Test table} \label{tab:Test} \begin{left} \begin{tabular}{rr} \hline Test & a \\ \hline 1 & 4 \\ 2 & 5 \\ 3...
latex,mediawiki,mediawiki-extensions
Well, I figured it out. Basically, any shell command is passed by a security filter. So in practice, texvc is executed by Mediawiki through bin/ulimit4.sh: #!/bin/bash ulimit -t $1 -v $2 -f $3 eval "$4" where $4 is the actual texvc command being run and $2 is the amount of...
You must either escape the backslashes, when using double quotes, set xlabel "$\\zeta$" set ylabel "$\\rho$" or use single quotes set xlabel '$\zeta$' set ylabel '$\rho$' ...
For consistent indentation of a "somewhat list-like structure", use adjustwidth from changepage: \documentclass{article} \usepackage{changepage} \begin{document} \section{Affiliations} \begin{adjustwidth}{1cm}{0pt} \setlength{\parindent}{0pt}% The American Geophysical Union. The Seismological Society of America. \end{adjustwidth} \end{document} However, I'd suggest a regular list-like structure like itemize: \documentclass{article} \usepackage{enumitem} \begin{document} \section{Affiliations} \begin{itemize}[leftmargin=1cm] \item The...
No, it is not possible to have sub- and superscript for an element at the same time using only HTML. However, using CSS, there are solutions. For inspiration, have a look at this thread. Edit: Source. <sub> The HTML Subscript Element (<sub>) defines a span of text that should be...
I found this question on another forum and it says that you should install MiKTex for windows too. Worked like a charm !
To include code, you can use \verb (verbatim). Inside \verb, everything is printed as you write it, so you can use no commands. \verb is delimited by two identical characters, usually + or |. Important: these characters can not show up inside the code you want to print. \verb+\usepackage{tikz}+ \verb|\usepackage{tikz}|...
The first line of your file is wrong. The fields for the first line are tab delimited. Yours are currently spaced delimited. <+^I+>^I!comp!^I!exe! So everywhere I wrote ^I should be a literal tab. The other problem is <++> in four different places in your template. The cursor only shows up...
I think you're trying to match from the last occurrence of \\}% prior to end{quoting}, up to the end{quoting}, in which case you don't really want any character (\_.), you want "any character that isn't \\}%" (yes I know that's not a single character, but that's basically it). So, simply...
I think the solution is to switch from \item[\includegraphics{imagename}] ... to \item \includegraphics{imagename} ... The following code, for example, should compile smoothly. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{itemize} \item \includegraphics{test.jpg} some text \item \includegraphics{test.jpg} some other \end{itemize} \end{document} Other thing is to use \item[...] to change the item mark: \begin{itemize} \item[$\bullet$] \includegraphics{test.jpg}...
matlab,latex,string-concatenation
This could be one approach - %// First off, make the "mixed" matrix of A and B AB = zeros(size(A,1)*2,size(A,2)); AB(1:2:end) = A; AB(2:2:end) = B; %// Convert all numbers of AB to characters with ampersands separating them AB_amp_backslash = num2str(AB,'%1d & '); %// Remove the ending ampersands AB_amp_backslash(:,end-1:end) =...
Hackish, but it should work: library(xtable) x <- data.frame(matrix(1:6, nrow = 2)) xtab = capture.output(print(xtable(x))) library(stringr) tab.xtab = str_replace_all(xtab, pattern = " +\\& +", "\t\\&\t") # one of these should work, depending on where this is going cat(tab.xtab, sep = "\n") paste(tab.xtab, collapse = "\n") ...
According to @Yihui (private correspondence): "Sorry, but no. The approach that you mentioned in the post is the only thing I can think of."
This answer assumes that multiline captions are sufficient for your purposes. I used your method of passing an R variable to the Knitr fig.cap= argument. This lets us compose the caption ahead of time in other code chunks before use. The tricks were that A) we need to find out...
In case this is still not resolved, your missing files are in the texlive package in Ubuntu: apt-get install texlive ...
This is the default layout when using a \chapter in report or book. You need to update \@makechapterhead in order to achieve the layout you're after: \documentclass{report} \usepackage{etoolbox} \makeatletter \patchcmd{\@makechapterhead}% <cmd> {\@chapapp\space\thechapter\par\nobreak\vskip 20\[email protected]}% <search> {\Huge\thechapter\space}% <replace> {}{}% <success><failure> \makeatother \begin{document} \tableofcontents \chapter{ChapterName} \end{document} ...
There are not enough details with regards to how you wish to "render" DVI or PDF from a LaTeX document. However, you could always just render the pdf using pdflatex and DVI using latex and use ICEpdf for viewing PDFs and javaDVI for viewing DVIs. Another neat hack to display...
You should set the entire construction inside a tabular, and then also use a [t]op-aligned tabular for the framed box construction: \documentclass{article} \begin{document} \begin{tabular}{l | l |} \cline{2-2} Author & \begin{tabular}[t]{@{}p{12cm}@{}} Jack Appleseed \\ \emph{Marketing Manager} \\ Unimaginitive Solutions \\ \\ John Appleseed \\ \emph{Business Development Manager} \\ Unimaginitive Solutions...
When I copy the code you have shown here into Notepad++ with UTF-8 input encoding, I get the following result for the first line: \documentclass[12pt?, ?a4paper]{article}? From that I assume that you have non-UTF-8 characters which aren't recognized by LaTeX and thus it throws an error. Try to replace that...
image,table,latex,tabular,beamer
There is no need to use a figure environment in order to insert a figure into your document. The figure environment is merely a floating box that has a caption set to Figure and that's that. You can even place a tabular inside a figure environment, or just text, or...
python,documentation,pdf-generation,latex,python-sphinx
I solved the problem by adding some latex statements to the sphinx preamble. Accordingly, I created a new latex_preamble.tex file in my sphinx source folder. It contains only the following two commands: \usepackage{enumitem} \setlistdepth{99} Moreover, In the conf.py file, also within my source folder, I changed the following (you can...
The : character is the problem. pandoc seems to be trying to parse the header-includes content as if it were variables, and : is used to separate variables and values. It compiles if you quote the lines in question (don't forget, then, to escape the leading backslash) --- header-includes: -...
Since evalc('TF') is close to LaTeX format just form a string using regexp. First I make TF, trying to mimic the OPs value so that this is a MWE: numIn=[0.00995 -0.02786 0.03611 -0.0293 0.01565 -0.005669 0.001274 -0.0001554]; denIn=[1 -2.4 3.16 -2.664 1.585 -0.666 0.1975 -0.0375 0.003906]; TF=tf(numIn,denIn,1,'variable','z'); Then I find...
There are a myriad of ways you can achieve this. Most notably, consult How to look up a symbol or identify a math symbol or character?. This reveals you need tipa (more specifically, \usepackage{tipx}): \documentclass{article} \usepackage{tipx} \begin{document} A\textsc{a}\textinvsca\textsc{a}A \end{document} You can also rotate-and-scale a regular A: \documentclass{article} \usepackage{graphicx} \newcommand{\textinvsca}{% \reflectbox{%...
You might find differential forms more useful here. You'll note that you just have dx as a variable, which is ahead of both x and y in alphabetical order.
This is a common issue of mixing LaTeX-input with Markdown. From the MathJax documentation: There cannot be HTML tags within the math delimiters (other than <br>) as TeX-formatted math does not include HTML tags. And later: Another source of difficulty is when MathJax is used in content management systems that...
I think i have find the problem. The problem is the RST tools to convert in html. In pyreport, when you choose the math mode, the program will do the sentence in a bock .. raw:: LaTeX But in the new version of rst2html, this command doesnt work, it's replace...
Reusing the chunks in a slightly different way (thanks @george-dontas) gets me what I want. The calculated values before the R and the R with its discussion in the appendix. \documentclass{article} \begin{document} \title{For Bosses and R Experts} \author{Joe Collins} \maketitle <<*, echo=FALSE, include=FALSE>>= <<data>> <<chart>> <<statistics>> @ \section{For the Boss}...
You have got a ":" after \begin{itemize}. Anything enclosed between \begin{itemize} and \end{itemize} must be after \item....
I don't use the delimitMate plugin, but according to its documentation, you should be able to configure the $ as additional quotes: au FileType tex let b:delimitMate_quotes = "\" ' $" (Or alternatively put the :let command into ~/.vim/after/ftplugin/tex.vim....
I think that pandoc doesn't cover the array command, as your command doesn't work for me in an IPython notebook. However, replacing the array command with a cases statement does work for me: \\[ \mu_{s,h,d,y} = \begin{cases} \omega_{s,h,d,y} + \delta_{s}(t_{s,h,d-1,y} - \omega_{s,h,d-1,y}) & \quad \text{for $t_{s,h,d-1,y}$ is real} \\ \omega_{s,h,d,y}...
In RStudio 0.98, the internal viewer wasn't available on all platforms. We have, however, recently enabled it on Linux in RStudio 0.99. If you'd like to try it, you can download a preview release here: http://www.rstudio.com/products/rstudio/download/preview/...
Fontspec taps into your system fonts by default, so: FontAwesome needs to be installed as a normal system font like every other. If you don't see it in Fontbook or the like, you didn't install it properly. (lines 7 and 8 of the gist you quote mention this, but I'm...
You can use etoolbox to tap into the beginning of an environment <env> using \AtBeginEnvironment{<env>}{<stuff>}: \documentclass{article} \usepackage{etoolbox} \AtBeginEnvironment{tabular}{\refstepcounter{table}} \newcommand{\showtabular}{% Just for this example \begin{tabular}{|c|} \hline \thesection.\thetable \\ \hline \end{tabular}} \begin{document} \section{First section} \showtabular \showtabular \section{Second section} \showtabular \showtabular \showtabular \section{Last section} \showtabular \showtabular...
reference,latex,python-sphinx,restructuredtext
So, I figured my problem. My architecture was: index.rst text ..include: File.rst File.rst links stuff The problem was, I think, that sphinx was parsing my rst document twice (once as a rst file, once as an included file). This caused apparently the links to become \emph in latex, for unknown...
model.sel result is a data.frame, so you can modify it (add model names, round numbers etc) and export to latex using e.g. latex from Hmisc package. # include R^2: R2 <- function(x) summary(x)$r.squared ms <- model.sel(m1, m2, m3, m4, extra = "R2") i <- 1:4 # indices of columns with...
(Posting as an answer so that the question will not remain unanswered). See the forminput extension in the MathJax third-part repository. That might do what you want....
It's easy enough to hijack the \date macro, or actually set \@date directly: \documentclass{article} \title{More than one Author with different Affiliations} \makeatletter \renewcommand\@date{{% \vspace{-\baselineskip}% \large\centering \begin{tabular}{@{}[email protected]{}} First Author\textsuperscript{1} \\ \normalsize [email protected] \end{tabular}% \quad and\quad \begin{tabular}{@{}[email protected]{}} Second Author\textsuperscript{2} \\ \normalsize [email protected] \end{tabular} \bigskip \textsuperscript{1}Some Department, Some University\par...
% Higgelty Pigglety Pop! \ or \ There Must Be More to Life % Maurice Sendak Pandoc Markdown enables the escaped_line_breaks extension by default: A backslash followed by a newline is also a hard line break. Note: in multiline and grid table cells, this is the only way to create...
python,regex,parsing,python-3.x,latex
From what I get from the question you just want the definitions from the Latex file. You can use findall to directly get your definitions: A = re.findall(r'{definition}(.*?)\\end{definition}', raw.read()) Note the usage to .*? in order to tackle the greedy regex matching...
html,latex,ipython-notebook,mathjax
The problem you face is that currently pandoc (the document converter) strips raw latex when converting the markdown cells to html, see docu. Math in pandoc needs to be inside $..$ or $$..$$ delimiters. The last couple of cells have explicit $s and thus convert fine. The other cells don't...
matlab,latex,bar-chart,matlab-figure
According to this quote by the MathWorks: The ability to make the Xtick labels and Ytick labels utilize the same font as TEXT objects with LaTeX as their interpreter is not available in MATLAB 8.1 (R2013a). Therefore you need to remove the ylabels and create new ones manually as text...
The keys option specifies the actual header names you used in your CSV. Here's an extract from the datatool user's guide (section 5.2 Loading a Database from an External ASCII File): keys This is a comma-separated list of keys to use, where the keys are listed in the same order...
Looks like you need to use double \\ instead of a single \. Change this: function clickMe() { $('#taOne').mathquill('latex', 'x^2'); $('#taTwo').mathquill('latex', '\int x'); $('#taThree').mathquill('latex', '\left(x^2 + y^2 \right)'); } to: function clickMe() { $('#taOne').mathquill('latex', 'x^2'); $('#taTwo').mathquill('latex', '\\int x'); $('#taThree').mathquill('latex', '\\left(x^2 + y^2 \\right)'); } \ is used in Strings to...
You can manually adjust the long_frac_ratio long_frac_ratio: The allowed ratio of the width of the numerator to the width of the denominator before we start breaking off long fractions. The default value is 2. >>> latex(e,long_frac_ratio=3) '\\frac{2 + 3}{7}' ...
This is working ! \begin{tabular}{|c|c|c|c|}\hline A&B&C&D\\ \hline \luaexec{for i=1,nA do; tex.print(i.."& "..data_a[1][i].." &"..data_a[2][i].."&\\\\ \\hline") end} \end{tabular} ...
You can try: ggplot(tmp, aes(x, y)) + geom_point() + ggtitle(bquote(symbol("\340"))) To change its color, you can add a theme argument. For example, for a red lozenge: ggplot(tmp, aes(x, y)) + geom_point() + ggtitle(bquote(symbol("\340"))) + theme(plot.title=element_text(color="red")) with the example: EDIT If you want to have a bi-color title, following Roland's solution...
It would be cleaner to let LaTeX generate the flowchart instead of generating/importing a png file. In this way you will not have problems of resolution or undersampling and everything will be in vector format. You can use the TikZ package of LaTeX. The site texexample.net gives the following example....
I've been trying to reproduce exactly the same, as simply as possible. The code: \documentclass{article} \begin{document} %\begin{table} \begin{tabular}{|c|c|c|c|c|c} \multicolumn{1}{c}{ } & \multicolumn{1}{c}{ } & \multicolumn{1}{c}{ } & % \multicolumn{1}{c}{X2} & \multicolumn{1}{c}{ } & \multicolumn{1}{c}{ }\\ \cline{1-5} \textbf{12} & \textbf{9} & \textbf{4} & \textbf{0} & \textbf{7} & X3\\ \cline{1-5} \textbf{11} &...
There are several misunderstandings of how TeX works. Your \compare macro wants to find something followed by a comma, then something followed by a period. However when you call \compare\test no comma is found, so TeX keeps looking for it until finding either the end of file or a \par...
Note that \luaexec (requires \usepackage{luacode}) is not expandable, so it cannot be used in places where (Lua)TeX expects a <number> after expansion. \documentclass{article} \usepackage{luacode} \usepackage{ifthen} \begin{document} \newcommand\testC{123} \ifthenelse{\testC<0}{negative}{positive} % works fine ! \newcommand{\testD}{\directlua{tex.sprint("123")}} % write to avoid the print carriage return - p$ \testD % prompt 132 just as \testC...
Matrix (and other tabular or array) constructions use & to denote the column delineation, not \quad: \documentclass{article} \usepackage{amsmath,siunitx} \begin{document} Using \verb|bmatrix|: \[ ABD = \begin{bmatrix} 12610207.7 & 5695754.3 & 0 & 0 & 0 & 0 \\ 5695754.3 & 10737818.8 & 0 & 0 & 0 & 0 \\ 0...
It's not the os.path.getsize that's the problem, it's the print. You're using Python 3 and print is now a function, and therefore needs parentheses. print(os.path.getsize("testtest.tex")) Also, it'd be nice (though admittedly, you'd never notice in this script) if you actually called close rather than just referencing it: a.close() ...
The box symbol was a hint to one of the problems. Both of the \frac commands have to be escaped with a second backslash: \\frac. There is also a second error, which is a set of missing braces for the \sqrt command. I'm not certain what the square root includes,...
That seems to be a misunderstanding. You can either convert a whole summary into latex via summary.as_latex() or convert its tables one by one by calling table.as_latex_tabular() for each table. The following example code is taken from statsmodels documentation. Note that you cannot call as_latex_tabular on a summary object. import...
There seems to be two questions here — first, can one define commands in kramdown similar to LaTeX's \newcommand syntax, and second, can kramdown support mathematics. Regarding the first issue, kramdown itself doesn't support that syntax or anything like it that I'm aware of, and probably isn't going to in...
The latest version 1.34.3 of the texreg package supports both model.selection and averaging objects. Your code example: library("texreg") library("MuMIn") data(cement) fm1 <- lm(y ~ ., data = Cement, na.action = na.fail) ms1 <- dredge(fm1) screenreg(ms1) yields: ========================================================================================================================================================================================================== Model 1 Model 2 Model 3 Model 4 Model 5 Model 6 Model...
I am back to answer my own question. it can be done by the commands, \usepackage{hyperref} \usepackage{cleveref} \Crefformat{figure}{#2Fig.~#1#3} \Crefmultiformat{figure}{Figs.~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3} from the "The cleveref package" at TeXdoc.net...
set(gcf, 'renderer','painters'); will solve the problem. It will render the figure as vector graphic, which is the better choice since you're using the pdf format. Also specify the resolution using the print command instead of saveas: print(fig, '-dpdf', '-r600', 'myFigure.pdf') ...
You were close. The problem is with your bold() function. Try: bold <- function(x, matrix) { x[] <- lapply(x, as.character) for (i in 1:ncol(x)) { yes <- matrix[,i] x[yes,i] <- paste('\\textbf{', x[yes,i], '}', sep = "") } return(x) } and add the sanitize.text to the print.xtable() call: print.xtable( x.df.3, include.rownames...
compiler-errors,latex,equation,multicol
The error tells you that you cannot use multline in mathmode (which is entered when you use an equation block). The multline environment already implies mathmode. When I remove the equation block it works. Remember you have to add a \\ to actually use multiple lines in your equation. Resulting...
No such Python modules exist but you could try generating text files with the required syntax of the text file with .tex extension and compile it by running system commands with Python: import os os.system("pdflatex filename") ...
This is a known problem when using the OpenGL toolkits (graphics_toolkit FLTK) which is default in octave3.8.x. Previous versions used gnuplot for printing. So you have two choices: Switch back to gnuplot with "graphics_toolkit gnuplot" before doing any plotting. You may also add this to your .octaverc so it's set...
The javascript path to mathjax seems to be wrong: <!-- MathJax scripts --> <script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> If I try to download the MathJax.js file, my browser tells me the file cannot be found. So your path is wrong, or you need to change the read permissions. See http://docs.mathjax.org/en/latest/start.html...
Maybe you can do some adaptation of this: ifelse(x < 100, sprintf("%0.2f", x), sprintf("%0.5e", x)) # [,1] [,2] [,3] [,4] [,5] #[1,] "9.99999e+06" "-0.79" "-0.56" "0.91" "-2.57" #[2,] "-0.13" "9.99999e+06" "-1.83" "-0.34" "1.73" #[3,] "-0.48" "0.38" "1.00000e+07" "1.40" "-0.32" #[4,] "-0.05" "-0.62" "0.91" "1.00000e+07" "1.15" #[5,] "-0.09" "-0.33" "-0.16" "0.35"...
latex,document,physics,lyx,latex-environment
Stage 1 - Installing IOP Document Files for Texlive (Or Miktex) Windows Users: Check this link for directory location info: http://wiki.lyx.org/Layouts/Iopart The first step is to download the relevant files for IOP documents from here: ftp://ftp.iop.org/pub/journals/ioplatexguidelines.tar.gz If this link has expired, then do a duckduckgo search for "iop latex guidelines"....
R markdown in R Studio makes this sort of thing much nicer. Blocks of R code can be declared with three backticks{r}code and then inline code with a single backtick and r. The following does something similar to what you want. --- title: "Untitled" author: "user" date: "Tuesday, May 05,...
In R, all backslashes inside character strings need to be doubled. "\\" becomes \. Try this: --- title: "Untitled" author: "SB" date: "Thursday, January 29, 2015" output: pdf_document: fig_caption: yes --- ```{r var, echo=FALSE, fig.cap="Cars variation rate between year $t$ and $t-1$ for $0 < \\beta < 1$"} plot(cars) ```...
r,latex,knitr,rmarkdown,beamer
rmarkdown uses pandoc to convert a Rmd file to a pdf via beamer/latex. pandoc uses templates to control how the conversion goes. One way to deal with your problem is to : Download the default beamer template rmarkdown uses and open it. Change line 137 from this : \frame{\titlepage} To...
javascript,latex,formula,mathjax
For LaTex inline math you have to use \( and \) instead of backticks: el2.html('\\(\\frac{\\displaystyle \\sum_{k=1}^N k^2}{a}\\)'); gives the desired result. The backtick is per default the asciimath delimiter (see http://docs.mathjax.org/en/latest/asciimath.html) and \( the TeX delimiter (see http://docs.mathjax.org/en/latest/tex.html). Alternatively you could reconfigure the delimiters with asciimath2jax: {delimiters: []}, tex2jax: {inlineMath:...