Tag Info

New answers tagged

1

This is a bug in the TeX--XeT bidirectional extension (from e-TeX) used in current version of XeTeX, which reverses the order of nodes in right-to-left mode so that the order of the coloured text is reversed. Next version of XeTeX reverted back to the original TeX-XeT extension from (Knuth and Pierre MacKay) which does not “physically” reverse the nodes, ...


3

It's because the declaration \arrayrulecolor{…} is global. Simply replace this fragment of your code: \newenvironment{myBox}[1] {\par\medskip\noindent\arrayrulewidth=1.5pt\arrayrulecolor{myBlue}% \hfill\tabularx{0.95\textwidth}{!{\color{myBlue}\vrule width 1.5pt} X @{}} \multicolumn{1}{@{}l} ...


2

\renewcommand*{\othersectionlevelsformat}[3]{\textcolor{DeepSkyBlue2}{#3}\autodot\enskip} A little explanation: As you said in your question, \othersectionlevelsformat is given 3 arguments, so, when you (re)define it, it needs to have 3 arguments, hence the [3]. And the definition only uses the third argument (where the counter is given) so you only need ...


0

\documentclass[style=simple]{powerdot} \colorlet{myColor}{red!20}%%%% your background color \pddefinetemplate{basic}{ titlepos={.05\slidewidth,.93\slideheight}, titlewidth=.9\slidewidth,textheight=.66\slideheight, titlefont=\large\bfseries\raggedright, clockpos={.99\slidewidth,\slideheight}, lfpos={.03\slidewidth,.04\slideheight}, ...


6

Another solution exploiting the text rendering modes of the PDF specification to render the text as a clipping path: \documentclass[border=5]{standalone} \usepackage{tikz} \newcommand\shadetext[2][]{% \setbox0=\hbox{{\special{pdf:literal 7 Tr }#2}}% \tikz[baseline=0]\path [#1] \pgfextra{\rlap{\copy0}} (0,-\dp0) rectangle (\wd0,\ht0);% } \begin{document} ...


3

That is a known e-TeX bug inherited by XeTeX (newer version of the bidi package tries to work around this in some limited cases, but it is not something that can really be fixed with macro code). Basically what happens is that the TeX--XeT bidirectional TeX extension used by e-TeX reverses TeX’s internal node list when in RTL mode so that things are typeset ...


23

Here is another suggestion: \documentclass[varwidth,margin=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \newcommand\fadingtext[3][]{% \begin{tikzfadingfrompicture}[name=fading letter] \node[text=transparent!0,inner xsep=0pt,outer xsep=0pt,#1] {#3}; \end{tikzfadingfrompicture}% \begin{tikzpicture}[baseline=(textnode.base)] ...


7

Here is a solution with pstricks, and more precisely with pst-grad and pst-text. It is compilable with pdf LaTeX, and the box size can be changed with \psframebox[framesep=…]{…}: \documentclass[pdf, x11names]{article} \usepackage{pst-grad,pst-text} \psset{framesep=2pt} \begin{document} Some text \begin{tabular}{lll} \psframebox[linecolor = Coral1!20]{% ...


4

It is possible to create a more reasonable box by printing the character again and anchoring the shading at this node: \fbox{ \begin{tikzpicture}[scale=10] \node [text=white,inner sep=0pt,outer sep=0pt] (textnode) {$4$}; \shade[path fading=mixed 4,fit fading=false,top color=orange,bottom color=purple] (textnode.south west) rectangle ...


6

The following example defines \sepline that prints a colored line between paragraphs, if the end of the first and the start of the second paragraph are on the same page. The line vanishes at page breaks. \sepline is vertically centered between the paragraphs. If \parskip is non-zero, then half of \parskip is put before and the other half after the line. ...


1

Very simply (don't forget \noindent if it's between paragraphs): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[x11names]{xcolor} \usepackage{lipsum} \usepackage[textwidth = 16cm]{geometry} \begin{document} \lipsum[1] \noindent\textcolor{PaleVioletRed3}{\rule{16cm}{1mm}} \lipsum[2] \end{document} ...


15

With fancyhdr, but without tikz: \documentclass{book} \usepackage{lipsum} \usepackage[ a5paper, % showframe, ]{geometry} \usepackage{fancyhdr} \usepackage{xcolor} \usepackage{graphicx} \usepackage{picture} \usepackage{etoolbox} % Remove prefix "Chapter" and chapter number \makeatletter \patchcmd{\ps@fancy}{\@chapapp\ \thechapter. \ }{}% ...


16

An option using TikZ and fancyhdr. Adjust the settings according to your needs: An image of a single page of the result: The code: \documentclass{book} \usepackage{fancyhdr} \usepackage{textcase} \usepackage{emptypage} \usepackage{tikz} \usepackage{lipsum} \newlength\ChapterShift \newlength\PageShift \newlength\StripeWd % the verticle shift for the ...


7

You could use the literate key; in the following example. parentheses are typeset in red: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstset{ basicstyle=\small\ttfamily, columns=fullflexible, literate=*{(}{{\textcolor{red}{(}}}{1} {)}{{\textcolor{red}{)}}}{1}, } \begin{document} \begin{lstlisting} { ...


0

To add the contents of face.tikz file, respectively taking a closer look at this file was the perfect suggestion. I should have thought of that before asking the second time. Sorry for that... There are two \addplot3 commands. \addplot3[% surf, shader=faceted, draw=black, z buffer=sort, colormap={mymap}{[1pt] rgb(0pt)=(1,0,0); rgb(1pt)=(0,1,0)}, point ...


3

If I am not mistaken, you search for a constant color for the faces, right? In this case, you can provide the fill color using fill=green or just green and edges can be configured by means of faceted color=black. Here is an example which is independent of your file (since I do not have face.tikz). The necessary changes can be added to your file, however: ...


3

A very small variant of Jake's answer, without the ifthen package, simply using \ifodd...\else...\fi instead: % arara: pdflatex % !arara: indent: {overwrite: yes} \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \begin{document} \pgfplotstableread{ 0 2 0.1 1 0.2 0.5 0.3 0.7 }\datatable ...


4

You can use two \addplot commands, checking whether the current coordinate index is odd or even using the ifthen package: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \usepackage{ifthen} \begin{document} \pgfplotstableread{ 0 2 0.1 1 0.2 0.5 0.3 0.7 }\datatable \begin{tikzpicture} \begin{axis}[ybar, bar width=0.1, bar ...


3

Originally I thought this might be resolved by using the supported LaTeX syntax of \makebox[0pt][l]{<content>} rather than the plain-TeX \llap, but the behavior is the same. The \Xlap commands cause issues in certain places because they are \hboxes (TeX primitives, not \mboxes (LaTeX macros). See further details here. Might be worth noting in any case. ...


5

Package contour sets the text many times: First the text is set in the specified color several times, slightly moved horizontally and vertically. Then the "inner" part is printed in black. The result is a "contour" in the specified color. Changing the background color makes it a little visible: \documentclass{article} \usepackage{contour} \begin{document} ...


1

Maybe the simplest is to load xcolor with option svgnames: the svg colour names are the html colours names. So you can write: \begin{mdframed}[linecolor=DarkSeaGreen] text \end{mdframed} To use the HTML hexacimal code, you first have to define your colour: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[svgnames]{xcolor} ...


0

I don't understand why, but messing around, changing the \lfoot{} line from \lfoot{{\color{blue}Build}} to \lfoot{\textcolor{blue}{Build}} Produced the result, Still I figured I would share the result.


1

Although not an elegant way, I finally got a solution to avoid the fill in table caption by using caption package and \addtablecounter command. I removed the \caption command inside the longtabu environment and used \addtablecounter to subtract the table count and used \captionof command to create caption outside the longtabu environment. Can somebody ...


1

The problem is that pgfcirctripoles.sty defines the path of the shape and then draws it independently of your options, instead of just declaring the path and not using it. If you modify the definition of the or ports in line 498 of pgfcirctripoles.sty as follows: \pgfcircdeclarelogicport{or}{ \pgfpathmoveto{\pgfpoint {\pgf@circ@res@left} ...


3

It seems, the whole entry should be colored blue. Therefore the following example redefines \bibitem to look for nature. If it is found, the entry is set in blue. This way, bibtex is not confused by color markup inside bibliography entries. \RequirePackage{filecontents} \begin{filecontents*}{myReference.bib} @article{nature, author = {Rosa Rademakers and ...


18

I guess this is "proof-of-concept" rather than any kind of practical solution (it certainly isn't practical). It does some rather naughty stuff with low level PDF literals: \documentclass[border=5]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \tikzset{ outline text/.style={ execute at begin node={% \pgfsetfillopacity{0}% ...


6

I have found examples in the TikZ & PGF manual that may help you. I have edited the two examples I found. The first picture is based on an example in section 23.4.1 Creating Fadings, the other two is based on an example in section 23.5 Transparency Groups in the TikZ & PGF manual.          Unfortunately, the ...


9

Very likely the color setting is inside a section (or friend) title and the title goes into the header with uppercase letters. \MakeUppercase (or \uppercase) does not know the semantics of arguments, it just converts all letters to uppercase: \textcolor{black}{hello} becomes \textcolor{BLACK}{HELLO}. Workarounds: Providing a definition for the uppercase ...


2

simply overwrite the colours craneorange and craneblue of the colour theme by whatever you like \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} \usecolortheme{crane} } \definecolor{craneorange}{rgb}{0.68,1,1} \definecolor{craneblue}{gray}{0.85} \begin{document} \begin{frame} test \end{frame} \end{document}


3

use \newcommand{\green}[1]{\textcolor{green}{#1}}


2

Another option is the use of clip command to fill the particular areas, displayed below. Need the scope environment to limit the operation of filling, or it will take effect from thereafter. EDIT: Well, a much simpler way is to fill the shape directly as such. Replace the scope codes with the following code. the coordinate 1.7 is determined by ...


3

You can do this using a blend group (c.f. Section 23.3 of the pgf manual v3.0.0), which mixes the colors according to a specified blending mode. The possible modes are outlined in the manual, but screen or lighten are probably most appropriate for your desired output. This approach flattens items drawn inside the group, so I used a slightly different ...


1

According to this post on SO: http://stackoverflow.com/questions/2865581/changing-the-colour-of-textbullet-in-latex-beamer The best solution is: \setbeamercolor*{item}{fg=color} Another one but lower interest: \setbeamercolor{itemize item}{fg=color} % all frames will have red bullets \begin{frame} \begin{itemize} \item First item. \item ...



Top 50 recent answers are included