# Tag Info

0

Here is an easy was to do the automation: ( I am using TeXWorks in Ubuntu 14.04 Linux Enviroment ) 1- add a new typeset tool, (Edit > Preferences > Typesetting > Add Processing tools) 2- And use Browse to add your simple bash code: #!/bin/bash echo "Compiling $1 ..." file_basename=$2 ...

1

This error is casued by the .bst file rather than by an entry in the .bib file. As a rule, you must use natbib-compatible bst files with natbib: abbrvnat rather than abbrv, unsrtnat rather than unsrt etc.

4

It is a pity do not use knitr if you know R for things like that ... This file with a .Rnw extension can be compiled out of the box with rstudio: \documentclass{article} \usepackage{fixltx2e} \parindent 0pt \begin{document} Making some data ... <<some data,echo=F,results='asis'>>= library(xtable) library(pander) factor = ...

13

Here's an implementation of all your requirements: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\reportANOVA}{O{}m} { \group_begin: \keys_set:nn { vousden/report } { #1 } \vousden_report:n { #2 } \group_end: } \NewDocumentCommand{\setreportANOVA}{m} { \keys_set:nn { vousden/report } { #1 } } ...

6

EDIT (Revised Answer for Revised Question) This uses xparse to define the command and the TiKZ maths library to handle the comparison of values. \reportANOVA{} takes 1 mandatory argument. When used this way, any optional argument is discarded. In this case, the mandatory argument should consist of 4 values separated by commas, corresponding to the ...

3

Set up to be used in text mode. Allows for auto-switching of default format. EDITED to provide an optional argument to override default format. REDITED to achieve roundup, using Werner's approach from How to round number to two digits after the decimal place and have a comma separator? \documentclass{article} \usepackage{siunitx} \ExplSyntaxOn ...

2


6

\newcommand*\reportANOVA[1]{\reportANOVAaux#1\relax} \def\reportANOVAaux#1,#2,#3,#4\relax{\ensuremath{F_{#1,#2}=#3},\ \ensuremath{p=#4}} The reason for \ensuremath is because I don't know where do you want to use it, wether in text mode \reportANOVA{1,2,3,4} or in math mode $\reportANOVA{5,6,7,8}$ Edited to support the < version. The ...

Top 50 recent answers are included