Tag Info

4

You can use \tkzSetUpPoint[<options>] to customize the attributes for points. An example: \documentclass{article} \usepackage{tikz} \usepackage{tkz-euclide} \tkzSetUpPoint[fill=black] \begin{document} \begin{tikzpicture} \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C} \tkzDrawPoints(A,B,C) % want them filled ...

2

With tcolorbox. There is still room for improvement but this should serve as a starting point. \documentclass[14pt,a4paper]{extbook}%{article}% \usepackage{amsmath,amssymb} \usepackage[most]{tcolorbox} %\usepackage[dvips]{graphicx} \usepackage{boxedminipage} \usepackage{slashbox} \usepackage{titlesec} \usepackage{enumitem} \usepackage{minitoc} ...

7

With tcolorbox: \documentclass{article} \usepackage[most]{tcolorbox} \newtcolorbox[auto counter,number within=section]{question}[2][]{% colback=magenta!15!white,colframe=blue!40!green,fonttitle=\bfseries, title=Question.~\thetcbcounter: #2,#1} \begin{document} \section{Some section} \begin{question}{Why is the pressure same in Arteries and aorta?} ...

6

6

I would recomend using the frametitle of the mdframed environment to show the question and the body to show the answer: Notes: You can probably select better colors. Also need to add the numbering if that is required. Code: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{ans}{ linecolor=cyan, ...

3

I promised I'd give an example of something I had involving empty or auxiliary nodes to help with alignment and spacing. So below for information as you have already accepted an answer. It is setup for A3 paper but may be adjusted and instead of using cm could use em for positioning and widths so scales properly as @GonzaloMedina points out in his comment ...

3

If you are going to resize (anyway), those manual distances between nodes are not necessary. Also, it would not be a good idea to mix em and cm. The lengths expressed in em will adopt to font size changes while those in cm are fixed. As a result, if you change the font size, you may end up with inconsistent spacings. I have not fixed them in this answer and ...

4

Maybe you should have taken the time to read the help provided on the webpage were you found the style file ;) http://alexisfles.ch/en/latex/boiboites.html http://snouffy.free.fr/blog-en/index.php/post/2010/01/30/Nice-boxes-for-your-theorems-with-tikz if you want, say, a definition environment and a theorem one, with different counters and colors, you can ...

7

A couple of styles and you're good to go: \documentclass{article} \usepackage{enumitem} \usepackage{tikz} \usetikzlibrary{positioning} \newlist{tikzitem}{itemize}{1} \setlist[tikzitem,1]{label=$\bullet$,nolistsep,leftmargin=*} \begin{document} \begin{tikzpicture}[ mynode/.style={ circle, draw, fill=yellow, minimum size=1cm, align=center }, ...

1


2

I don't think you can get the same output by exporting from Geogebra. You'll have to edit the source manually. I've used node anchors to put labels next to the desired points. See section 17.5 Positioning Nodes in the TikZ & PGF manual (version 3.0.0). \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} ...

3

Expanding my comment into an answer: The OP's quoted passage from the manual tells us that the key boxplot/every box is used to change fill colors. The important thing is to recognize that this is a style and must be modified as such. I used boxplot/every box/.style={fill=gray!50} to modify the style for every box in the boxplot. Simplified MWE: (Extra ...

6

Late solution with Tikz and pgfornament... There are a lot of possibilities to place the ornaments Something in tikz's style ... \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \PassOptionsToPackage{dvipsnames,svgnames}{xcolor} \usepackage[object=vectorian]{pgfornament} \title{Ornaments} \author{Alain Matthes} \begin{document} ...

6

Remarks I traced the bitmap provided using Inkscape and exported the vector paths to TikZ using the inkscape2tikz plugin. Then I adjusted the shift of coordinates, to have a specified origin (here in the top right corner of the ornament). And wrapped everything into a macro \ornament. To place it on the page I used a tikzpicture with the remember picture ...

5

One option. I used text width and minimum height so nodes will have uniform size. I also used some auxiliary coordinates so that the arrows are placed automatically. Instead of defining a style for all nodes (which could produce undesired results, for example, in case label is used), I used a mynode style. I also changed to the shorter ...

Top 50 recent answers are included