FAQ Database Discussion Community

Concatenation of Matlab strings

matlab,latex,string-concatenation
I want to make a Matlab function that takes two matrices A and B (of the same size) and combines them in a certain way to give an output that can be used in Latex - table. I want the first row of the output matrix to consist of the...

Latex \newcommand in kramdown

github,latex,jekyll,kramdown

How do I alias command mathbb?

latex
I would like to alias \mathbb as simply \bb. How do I define this new command? I know how to alias mathsymbols such as: \def\AND{\wedge} But I am not so sure about math commands that take parameters....

formatting,latex

vim,latex

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

Arrange lua/lualatex data in a Latex/tex tabular

lua,latex,tex,tabular
I have data in lua, accessible to a LaTeX/TeX document (it is an array). I try to show this data in a LaTeX tabular form. I tried several ways to do this but all failed :( . Here is an example : \begin{tabular}{|c|c|c|}\hline A&B&C\\ \hline 2010 & 2,78 &\\ \hline...

Automatically scaling numbers in a table using stargazer

r,latex,stargazer
I wish to create a number of tables with numerical elements of very different scales. For example, tables with the variance of various variables down the diagonal, and the correlations off the diagonal. The larger numbers make the tables too big, and are harder to read. Is there a good...

How to use Phonetic Symbols in LaTex

latex
How to use inverted A character(Phonetic Symbol) in an equation in LaTex? Do I have to use any specific package for it? I used \textinvsca, but it says "undefined control sequence"

kable() in knit pdf appears oversized

r,table,pdf,latex,knitr
I am using the kable() function to output a table in a Rmd knit pdf document. I am however experiencing an issue with it. When I knit pdf, the table that it's outputting is oversized by width and ends-up being cropped. Please see below a mock code to run in...

Converting Tex string in Tex number

string,numbers,latex,tex

Extract average model from MuMIn for latex output

r,latex,stargazer,texreg
I'm trying to extract two different averaged models from MuMIn for output to latex via texreg or stargazer. I'd like to have one table where I can compare two species' response to different sets of abiotic variables, that looks the same as one created from two model objects using glmtable...

PDF page number clashes with LaTeX page number when included

r,pdf,latex
Another day, another question! I have created a documentation of an R package using R CMD Rd2pdf workdir/. The documentation is done in roxygen2 comments. I now wanted to include this pdf into my LaTeX script, which I have managed as follows: \usepackage{pdfpages} \includepdf[pages=-,pagecommand={\thispagestyle{plain}}]{docu.pdf} which means that I included all...

Add beamer frame options in knitr/rmarkdown

r,latex,knitr,rmarkdown,beamer
I'm trying to add frame numbers to my Beamer presentation written in rmarkdown. However, I would like to suppress the numbers on the title page using the \begin{frame}[plain] option (from the second answer here: http://tex.stackexchange.com/questions/82794/removing-page-number-from-title-frame-without-changing-the-theme). However, when compiling from rmarkdown to tex, the \titlepage already creates a frame environment, so...

how to re-order polynomial term factors from sage output

format,latex,sage
I have x,y, dx, dy= var("x, y, dx, dy"); def iD(f): return diff(f, x)*dx + diff(f,y)*dy; iD(x^3*y^5) returns 5*dy*x^3*y^4 + 3*dx*x^2*y^5 is there a way to have it return the differentials always at the end as in 5*x^3*y^4*dy + 3*x^2*y^5*dx thank you...

latex,mathquill

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

How to export a table from R to latex and include dimension names?

r,latex
I have a simple table with dimension names that I want to export from R to Latex. I'm looking for a straightforward way to do this that doesn't requiring additional editing in latex. This seems like it should be easy, but I've found a number of other unsolved questions on...

Can I make git merge` always conflict on file changes?

git,version-control,latex,git-merge
I am hoping I have a simple question for you, but I can't find an answer anywhere (I have been searching for 2 days, maybe I am dumb?). I am trying to develop a git workflow to collaboratively edit LaTeX files with my PhD adviser. The problem we face is...