Tag Info

New answers tagged

4

Since you want automatic syntax highlighting, I'd suggest you to use either listings or minted. Below I present two options using the former. Here's a first option; the idea is to the listings package and two side-by-side minipages; two environments sass and less are defined using \lstnewenvironment; since the languages are not predefined, I gave a simple ...


1

This is the kind of problem which exists in the current TeX--XeT algorithm of e-tex (used by xetex engine); of course this has nothing to do with the bidi package and is an engine bug. I believe it should be fixed with the xetex binary shipping with TeXLive 2015. For the moment, the solution is perhaps to surround the relevant things between \beginL and ...


2

For the highlighting skak uses pstricks and you must load skak with the ps-Option: \usepackage[ps]{skak} But I would suggest to use chessboard instead which will work with pdflatex: \documentclass[12pt]{beamer} \usepackage{skak} %or xskak \usepackage{chessboard} \begin{document} \begin{frame} \newgame \chessboard[setfen=8/8/8/3Q4/8/8/8/8 w - - 0 0, ...


2

This requires the xcolor package, it's table option and the \rowcolor command. In my point of view, there too much lines in this table, but... well, it's the OP's design... \documentclass[twoside]{article} \usepackage[table,x11names]{xcolor} \begin{document} \begin{center} \begin{tabular}{|*{4}{l|}} \hline \rowcolor{lightgray} Date & Time & ...


2

The listings package allows for multiple comment delimiters, but only one comment style. However, you can get around this limitation by using the moredelim key. In your particular example, you could write something like moredelim = [s][\color{ForestGreen}]{/**}{*/} and the style used for "comments" delimited by \** and *\ will be different to that used ...



Top 50 recent answers are included