Tag Info

New answers tagged

0

I adapted the example form TEX \documentclass{article} \usepackage{listings} \usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue \definecolor{mylilas}{RGB}{170,55,241} \lstset{language=Matlab,% %basicstyle=\color{red}, breaklines=true,% ...


2

I extended the answer from alexis to cover more formats: normal format (diff), unified format (diff -u), context format (diff -c) and diffs from Git (git diff): \lstdefinelanguage{diff}{ sensitive=true, % diff command line morecomment=[f][\color{gray}][0]{diff}, % commit identifiers for git diff morecomment=[f][\color{gray}][0]{index}, % hunk ...


1

After the help of @Torbjørn I came up with this workaround. Create a mydefinition.cwl file and place it in the %APPDATA%/texstudio folder (I'm using Windows, don't know where it should go in other operative systems). Add the \DeclarePairedDelimiter{cmd}{left_delim}{right_delim}#md line in the .cwl file. In TeXstudio Options -> Completion check the box of ...


6

An alternative "pure" TikZ solution: \documentclass[border=1mm,tikz]{standalone} \usetikzlibrary{calc,matrix} \begin{document} \begin{tikzpicture}[ strip/.style args = {#1/#2}{ draw=#1, very thin, fill=#1, opacity=0.2, text width=#2,% will be calculated in path rounded corners,% only if you like them ... minimum height=1em,% adjust to ...


6

After playing around with tikz, I could get it, I believe, decently. I'm just a tikz beginner, so I am 100% sure this can be done better, without needing so much fine-tuning of positions. You can adjust all positions and colors though: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usepackage{xcolor} \definecolor{myblue}{rgb}{0,0,0.8} ...


2

In Windows, with MiKTeX 2.9 distribution, you can get the required file on the following path: "C:\Users\Username\AppData\Local\MiKTeX\2.9\TeXworks\0.4\configuration\syntax-patterns.txt" Of course Username is your Windows user name. Note also that this file is not for background colors but for text syntax highlighting. You can find more details in this ...


2

You don't need kbordermatrix: \documentclass{article} \usepackage{blkarray,mathtools} \begin{document} \[ \begin{blockarray}{r@{} *{5}{c}} &&& \mathclap{\text{Column $j$}} \\ &&& \downarrow \\ \begin{block}{r@{}[*{5}{c}]} & a_{11} & \cdots & a_{1j} & \cdots & a_{1n} \\ & \vdots & {} & \vdots & ...


2

Here are two solutions: With the stackengine package, you will have ‘ annotations’ (for columns and rows) of the same size as the surrounding text. with the substack command, it will be \scriptsize by default; I changed it to footnotesize. I also an easily customisable \hl command for highlighting, based on the \colorbox command. It uses a hlcolour for ...


0

One possible solution is to use a \rule with smaller width; for instance \newcommand\hl{\bgroup\markoverwith {\textcolor{yellow}{\rule[-.5ex]{1pt}{2.5ex}}}\ULon} However there are still colors covering the letter f.


1

There is a new package bidihl for this purpose: \documentclass{article} \usepackage{bidihl} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \newfontfamily\hebrewfont[Script=Hebrew]{Arial} %or use any other font, even Bitstream Vera Sans \begin{document} ערך זה עוסק בבירת מדינת ישראל. אם התכוונתם למשמעות אחרת, ראו ירושלים (פירושונים). \bidihl{% בתרגום ...



Top 50 recent answers are included