6
votes
1answer
149 views

Listing with two columns in a single fancy frame

I am playing a little with lstlistings and I wonder whether such a thing would be achievable for all my listings: How to achieve this kind of things? Note : I am searching for a solution I can ...
5
votes
1answer
90 views

How to prevent frames on each groupplot in TikZ/pgfplots

I want to do a group of plots. However, I set the option \tikzset{every picture/.style={framed} at the begin of my document, because I want a frame around all my pictures. What I get now is a frame ...
3
votes
1answer
267 views

Frame for a title page

The cover of Gonzalo Medina from here : Presentation Beamer [title page] is beautiful and bright i tried to do it like him but in \documentclass[a4paper,12pt]{report} here is my try ...
3
votes
1answer
194 views

Adding “continued” text to framed paragraphs using tikz and framed

I trying to adapt the following example: http://www.texample.net/tikz/examples/framed-tikz/ So far I have managed to change the colour scheme and replace the irregular edges with a simple rounded ...
5
votes
2answers
210 views

How to typeset a frame with the title across the boundary?

How could I typeset a frame like: ? I've always used mdframed or tcolorbox to typeset frames but I cannot find mention of such functionality. Is there a simple way of achieving this effect with ...
3
votes
2answers
304 views

TikZ frame paragraph span across pages in ConTeXt

I tried to reproduce the following example in ConTeXt: http://www.texample.net/tikz/examples/framed-tikz/ How can I substitute the LaTeX framed package, that is make the frame span across multiple ...
18
votes
1answer
1k views

Draw custom frame around text

I would like to obtain a custom frame, which is different from the ones given by mdframed. Here is the image comes from the package fancytikzposter, which consists in a minipage inside a tikzpicture ...
10
votes
2answers
211 views

Multi-line box around a sentence in a paragraph

I am trying to draw a polygon box around a sentence within a paragraph. This box would wrap over multiple lines and terminate exactly at the end of the sentence (i.e. without white space filling the ...
8
votes
2answers
558 views

Combining `tikzpicture` and `lstlisting`

I'm working on a custom lstlisting environment, in which I use TikZ to add a frame and a title. Because of the widespread curly braces of node I cannot use newenvironment, so I have to resort to ...
16
votes
2answers
734 views

Is it possible to create an adaptable golden ratio frame around equations?

I would like to create special frame around my equations. This frame should obey to the golden ratio rule. This means that its width divided by its height should give 1.61803398875. If possible, the ...
5
votes
1answer
220 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
10
votes
2answers
151 views

Place a background relative to the position of an environment

I am trying to place a background that extends the entire page width and whose height depends on the height of the environment contained. For example, the following code provides something to what I ...
6
votes
3answers
516 views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
4
votes
1answer
427 views

How to draw a simple 1mm thick page frame?

I'm trying to make a simple one-line 1mm thick page frame. Left line of that frame should be 2.5cm from edge and all other lines 0.5cm. Document includes tikz drawing, and text. The problem is that ...
0
votes
3answers
3k views

Margins in \framebox

I have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \framebox{\begin{tikzpicture}[color=black, line width=0.4mm] \draw (0,0) rectangle (5mm,5mm); ...
3
votes
1answer
411 views

Creating an environment able to span over multiple pages or columns

I'm trying to create an environment able to understand when it's on a single/two columns layout and to span over multiple pages or columns having different style for the two cases. I would want to ...