After installing xelatex on Ubuntu withsudo apt-get install texlive-xetex
I still received errors and needed
sudo apt-get install texlive-latex-extra
andsudo apt-get install texlive-fonts-recommended
Nov 29
After installing xelatex on Ubuntu withsudo apt-get install texlive-xetex
I still received errors and needed
sudo apt-get install texlive-latex-extra
andsudo apt-get install texlive-fonts-recommended
Sep 11
Xournal++ is a hand note taking software written in C++ with the target of flexibility, functionality and speed. Stroke recognizer and other parts are based on Xournal Code, which you can find at sourceforge. For general usage, consult the User Manual. Answers to some common questions can be found in the FAQ.
Installing
The Xournal++ team officially supports a FlatHub release, which can be installed with
flatpak install flathub com.github.xournalpp.xournalpp
Note that for Xournal++ to work properly, you must have at least one GTK theme and one icon theme installed on Flatpak. To enable LaTeX support, you will also need to install the TeX Live extension:
flatpak install flathub org.freedesktop.Sdk.Extension.texlive
more information: https://github.com/xournalpp/xournalpp
May 30
The booktabs package in latex makes really beautiful tables. This package provide some additional commands to enhance the quality of table in LaTeX, especially if there is math in your table that might run up against the regular \hline
in the tabular environment. I created a table with the following code:
% file: example.Rnw % require xtable \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[!h] \centering \caption{This is my table.} \label{tab:table1} <<mytable,echo=F,results=tex>>= mat <- as.data.frame(matrix(runif(25),nrow=5)) colnames(mat) <- c("$\\alpha$","$\\beta$", "$\\gamma$","$\\delta$","$\\frac{\\epsilon}{2}$") rownames(mat) <- c(‘A’,’B’,’C’,’D’,’E’) mat <- xtable::xtable(mat,digits=rep(5,ncol(mat)+1)) print(mat, sanitize.text.function = function(x){x}, floating=FALSE, hline.after=NULL, add.to.row=list(pos=list(-1,0, nrow(mat)), command=c('\\toprule\n', '\\midrule\n','\\bottomrule\n'))) @ \end{table} \end{document}
You can use to compile:
$ R CMD Sweave example.Rnw $ pdflatex example.tex
The definition of \toprule, \midrule and \bottomrule from
booktabs package is:
\def\toprule{\noalign{\ifnum0=`}\fi \@aboverulesep=\abovetopsep \global\@belowrulesep=\belowrulesep \global\@thisruleclass=\@ne \@ifnextchar[{\@BTrule}{\@BTrule[\heavyrulewidth]}}
\def\midrule{\noalign{\ifnum0=`}\fi \@aboverulesep=\aboverulesep \global\@belowrulesep=\belowrulesep \global\@thisruleclass=\@ne \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
\def\bottomrule{\noalign{\ifnum0=`}\fi \@aboverulesep=\aboverulesep \global\@belowrulesep=\belowbottomsep \global\@thisruleclass=\@ne \@ifnextchar[{\@BTrule}{\@BTrule[\heavyrulewidth]}}
Apr 6
TeXcount is a Perl script for counting words in LaTeX documents. It parses valid LaTeX documents counting words, headers, formulae (mathematics) and floats/begin-end groups.
To run the script, you can either download it and run it on your own computer, or you can use the web interface.
May 20
\documentclass{article}
\usepackage{pgfplots}
\usepackage{filecontents}
\begin{filecontents}{testdata.dat}
0 1 1.2 0.4 1.5 0.2
1 2 2.3 1.5 2.7 1
2 0.7 1.4 0.5 1.9 0.1
\end{filecontents}
\pgfplotsset{
box plot/.style={
/pgfplots/.cd,
black,
only marks,
mark=-,
mark size=1em,
/pgfplots/error bars/.cd,
y dir=plus,
y explicit,
},
box plot box/.style={
/pgfplots/error bars/draw error bar/.code 2 args={%
\draw ##1 -- ++(1em,0pt) |- ##2 -- ++(-1em,0pt) |- ##1 -- cycle;
},
/pgfplots/table/.cd,
y index=2,
y error expr={\thisrowno{3}-\thisrowno{2}},
/pgfplots/box plot
},
box plot top whisker/.style={
/pgfplots/error bars/draw error bar/.code 2 args={%
\pgfkeysgetvalue{/pgfplots/error bars/error mark}%
{\pgfplotserrorbarsmark}%
\pgfkeysgetvalue{/pgfplots/error bars/error mark options}%
{\pgfplotserrorbarsmarkopts}%
\path ##1 -- ##2;
},
/pgfplots/table/.cd,
y index=4,
y error expr={\thisrowno{2}-\thisrowno{4}},
/pgfplots/box plot
},
box plot bottom whisker/.style={
/pgfplots/error bars/draw error bar/.code 2 args={%
\pgfkeysgetvalue{/pgfplots/error bars/error mark}%
{\pgfplotserrorbarsmark}%
\pgfkeysgetvalue{/pgfplots/error bars/error mark options}%
{\pgfplotserrorbarsmarkopts}%
\path ##1 -- ##2;
},
/pgfplots/table/.cd,
y index=5,
y error expr={\thisrowno{3}-\thisrowno{5}},
/pgfplots/box plot
},
box plot median/.style={
/pgfplots/box plot
}
}
\begin{document}
\begin{tikzpicture}
\begin{axis} [enlarge x limits=0.5,xtick=data]
\addplot [box plot median] table {testdata.dat};
\addplot [box plot box] table {testdata.dat};
\addplot [box plot top whisker] table {testdata.dat};
\addplot [box plot bottom whisker] table {testdata.dat};
\end{axis}
\end{tikzpicture}
\end{document}
.
Nov 16
Sweave é uma ferramenta útil para a elaboração de relatórios usando de forma inteligente as funcionalidades do R e LaTeX.
Alguns tutoriais
Oct 26
$ sudo apt-get install texlive texlive-full gedit-latex-plugin texlive-fonts-recommended latex-beamer texpower texlive-pictures texlive-latex-extra texlive-science texlive-publishers
Comparison of LaTeX editors for different operating system
file: latex file_name.tex
pdf file: dvipdf file_name.dvi
or
pdflatex file_name.tex