@Werner you're too kind :) I was really intrigued to see the m column type used on the column with the enumerate; I wouldn't have thought to use it that way
i tried it on the other column and it (perhaps obviously) didn't work as expected
@cmhughes Yes. I would describe the key as being that you need to think about the m column as setting an "anchor" in the middle vertically. In contrast to that, the p column sets its anchor either at the [t]op, or at the [b]ottom.
I have been trying to find a way to easily drop a nice horizontal rule into a LaTeX document. \hline just makes a line across the page. It would seem that some package must provide something that is maybe half a page wide, with little bedknobs on the ends or something to act as a nice section m...
@TorbjørnT. Interesting article by @egreg. This article leads to a standard discuss about the system path. I think every new user should install TeX Live with the predefined system path. So it will run out of the box. The "normal" user won't switch between several versions.
@PauloCereda: You may find ConTeXt Lua templates interesting: pragma-ade.com/general/manuals/templates-mkiv.pdf (it does not directly provide a way of reading csv files, but does not require an external program)
@Aditya I had no skills to write it in TeX, so I wrote in Java. It uses VTL (Velocity Template Language) for the template part and JSON for the header info. I think I might be able to write it in Lua, but I'm still a newbie. :)
@PauloCereda: Can you add command line options for the initial JSON headers? That will make it relatively easy to call duckity from within ConTeXt using the filter module.
@PauloCereda: By command line options I mean duckity --file=file.csv --datasources=students and also provide the -o or --output flag to specify the output file.
@PauloCereda: Passing command line options from with quotes is extremely tricky. In MkII, the filter module calls the shell that calls mtxrun that then calls the external program; quotes always get mangled somewhere along the pipeline. In MkIV, the situation is a bit nicer, but still tricky. But, in any case, I can handle adding the JSON template directly to the file as well, so it is not a big deal.
@PauloCereda: What I have in mind is the following:
\startTEMPATE[file=..., datasource=....]
.....
\stopTEMPATE
should call duckity, which will convert the template to TeX code, that is then \input ed as a tex file.
I had to cite two papers of same group of authors in Latex:
@inproceedings{Lai_etal_ICRA11_RGBD_dataset,
author = {Kevin Lai and
Liefeng Bo and
Xiaofeng Ren and
Dieter Fox},
title = {A large-scale hierarchical multi-view RGB-D object dataset...
@KannappanSampath In a sense yes, but note that we mounted the ISO, it's like when you put a real DVD inside the drive. In our case, our drive is virtual. :)
@egreg My thoughts exactly. :) I did that with my Slackware. I don't want to scare @Kannappan, but the update will basically download everything again. :)
I am new here, and quite new to LaTeX. I did search for an answer to this as I think it should be trivial, but I didn't find the answer yet. I have something like
\begin{align*}
y &= mx + c \\
\text{some text here. So} \\
c &= y-mx \\
\text{but } \\
1+2 &\neq 2 \\
\text{Finally} \\
3...
@KannappanSampath Yes, it is. I usually recommend /opt instead of /usr, but it doesn't make much difference, if one remembers to use the correct prefix. :)
@KannappanSampath The step in the article from the gedit line. In the file that opens on the screen, append the lines shown from # Additions for TeX Live up to the third alias line. Just watch out that the quotes must be the straight and not the curly ones.
@KannappanSampath OK; if you have the TUGboat article at hand, it's easier: just append those lines at the end of the file (watch out for the double quotes). I'll add the lines yere. If the window is empty, never mind. Otherwise go to the end of it.
# Additions for TeX Live
function sutlmgr () {
if [[ -z "$@" ]]
then
sudo /opt/texbin/tlmgr -gui
else
sudo /opt/texbin/tlmgr "$@"
fi
}
alias mktexlsr='sudo /opt/texbin/mktexlsr'
alias updmap-sys='sudo /opt/texbin/updmap-sys'
alias fmtutil-sys='sudo /opt/texbin/fmtutil-sys'
This will be rather long to execute. It allows you to use the OpenType fonts provided by TeX Live with XeLaTeX, LuaLaTeX and all programs in your system.
@KannappanSampath Texmaker is fine. Just try compiling a document from it with pdflatex and look at the first line in the log. It should have TeX Live 2012 in it
Updating packages just for answering questions and get the rep is cheating. ;-) I'm very happy that you're able to support so many features. — egreg24 secs ago
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\begin{document}
This is the final report for \textbf{Compiler techniques}, supervised by \textbf{Dr. John Doe}.
\begin{tabular}{lrr}
Student & Exam 1 & Exam 2\\
\hline
Alice & 8.0 & 7.3\\
Bob & \textcolor{red}{2.2} & 6.7\\
Carl & 10.0 & 9.3\\
David & 9.2 & 10.0\\
\hline
\end{tabular}
If you have any doubts, there'll be classes on Oct 15, Oct 20, and Oct 25.
\end{document}
select distinct u.DisplayName, count(p.Id) as total from Users u, Posts p
where u.Id = p.OwnerUserId and p.PostTypeId = 2 and u.Id not in
(select x.Id from Users x, Posts y
where x.Id = y.OwnerUserId and y.PostTypeId = 1)
group by u.DisplayName having count(p.Id) > 100 order by count(p.Id) desc
This one required my some of my SQL-fu. :)
DisplayName total
-------------- -----
egreg 2518
Herbert 1469
David Carlisle 605
Ulrike Fischer 544
Thorsten Donig 223
Roelof Spijker 133
Taco Hoekwater 129
Philipp 113
(8 row(s) affected)