New answers tagged

1

Since it's Windows 8, PowerShell should be included, but I've only got easy access to Windows 10 for testing at the moment. Here's something you can run at a PowerShell prompt, assuming single-line strings will be extracted. Given a source .tex file of \documentclass[11pt]{article} \begin{document} \section{How to Find and Extract Text within Fixed ...


1

The formats parsed by siunitx are 1.23(4) and 1.23 \pm 0.04, and no others. Thus to achieve the desired effect some parsing has to be done separately. One approach is to grab the cell contents, alter the formatting and use the \tablenum command to do the alignment \documentclass[]{article} \usepackage{siunitx} \def\converter\ignorespaces#1(#2){% ...


2

If we take the exact file given in the original question (named, say, myfile.tex), and feed it through sed like so: sed -n '/\\subsubsection.*Note:/,/\\clearpage/p' myfile.tex You will get this output: \subsubsection{\textcolor{blue}{\textsf{R} Note: History and Current Status of \textsf{R}}}: \textsf{R} is an open source software platform used to ...


2

Since the creation of the file is automated, we can rely on a consistent usage and also use that to our advantage. To that end, I assume you're never using \subsubsection*{..} or \subsubsection[.]{..} assume you'll always have \subsubsection{..} ... \clearpage for any \subsubsection. That is, the text after the \subsubsection title is delimited at the ...


0

The table is based on LaTeX. Using Rmarkdown inside the table environment is never going to work, as it doesn't recognise Rmarkdown. Using LaTeX citations is logical idea, however, LaTeX citations don't work the same way Rmarkdown citations work. This is an Rmarkdown document and doesn't provide any instructions for LaTeXtables. As you can see, the YAML ...


0

One could also extent David's solution by adding a \nopagebreak between the table and the figure: \documentclass[a4paper, 11pt]{article} \begin{document} \input{small_table} \nopagebreak \begin{figure}[htp] \includegraphics{piechart.eps} \end{figure} \end{document} You can also specify an optional value between 0 and 4 to \nopagebreak. The higher ...


3

\include _always forces a page break, use \input, and then allow the figure to be on the same page by including h in its option. \documentclass[a4paper, 11pt]{article} \begin{document} \input{small_table} \begin{figure}[htp] \includegraphics{piechart.eps} \end{figure} \end{document}


1

The problem here is that RStudio knows where to look for Rd.sty, which is not part of CTAN and thus not part of TeX Live. (Rd.sty is something that is distributed with the base R packages and binaries but is not included in any TeX distribution that I know of.) TeX Live, by default, is configured to only look in certain places for TeX things. The link ...


1

I do not use R markdown, however check of it documentation show, that in its use is not difference to between standard equation. So you can use align \begin{tcolorbox} \vspace{-\baselineskip}% <-- to remove extra vertical space \begin{align} \sigma & = \beta_{0} \label{eq:Model0} \\ \sigma & = \beta_{0} + \beta_{1}K + \beta_{2}K^2 ...


1

As noted in the initial comment the error is \end{minipage} \begin{minipage}[c]{0.5\linewidth} which should be \end{minipage}% \begin{minipage}[c]{0.5\linewidth} As you can not fit two .5\linewidth minipages and an inter-word space on to a single line.


0

You do not need LaTeX for this, only R: if (file.exists("data.dat")==TRUE) cat("yes") else cat ("no")



Top 50 recent answers are included