Tag Info

New answers tagged

5

You code seems simplified enough to me as it is now, though I'm not sure to understand what you wish about adjusting lengths. As for the labels, I would suggest to use the freelabel macro of Metafun, that is to say, to replace the line label.lft(textext ( ve ), point 0.5 of p); in your vector definition by something like that: pair lpoint ; lpoint = point ...


3

I made for my self a histogram this way: \documentclass[11pt,a4paper]{article} \usepackage{geometry} \geometry{margin=1in} \usepackage{tikz} \usepackage{tkz-euclide} \usetikzlibrary{calc,intersections,through,backgrounds,snakes} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics} \usepackage{bchart} \begin{center} ...


3

As mentioned on the wiki page, in MkIV, you have to use alternative=hanging. You also probably want align=flushleft rather than align=left (which gives ragged left output, see the FAQ). With these changes, I get: \setuppapersize[A5] \definedescription [descr] [ headstyle=bold, style=normal, align=flushleft, alternative=hanging, ...


6

Your first question can be answered by a number of posts on this site, e.g., number format in pgfplots axis. The simple solution is to add code for number formatting to your axis labels: /pgf/number format/1000 sep={} Your second question can be resolved by setting ymin=0 (or really, any ymin value, 0 happens to be a good choice IMHO). I would note that ...


2

To use the value of \baselineskip you have to prepend \the: \blank [\the\baselineskip] Better is to use \blank [line]: \starttext First \blank [line] Second \stoptext Also see: contextgarden - \blank To define you own blank distances, better use \defineblank instead of \definemeasure \defineblank [somedistance] [2cm] then you can use ...


3

Aha. The blank command. \blank[1in]


1

Use incrementnumber=list instead of incrementnumber=yes.


10

Can someone please explain the mindset one should take while using ConTeXt? "I am going to write a structured document. If I feel like styling it, or adding a semantic element, or both, that will be easy." Example: \definehead[importantsection][section][color=red] Am I expected to supply extensive formatting instructions while using this ...


6

As the LaTeX article class is pretty basic, quite a bit of what it does can be reproduced in ConTeXt with little effort. For example, a quick look at the ConTeXt wiki gives details for abstracts, titles and font selection, while a little more effort in the manual also points the way for headers and footers. That might lead to something like \definestartstop ...


20

ConTeXt also focuses on separation of content and presentation. In all ConTeXt documents that I write, I use: \setvariables [metadata] [ title=..., author=..., affiliation=..., date=..., ] which gives a nice document title, sets the appropriate fields of the PDF file (something that you do using hyperref package in ...


4

One possible solution is to simply use the default head mechanism. Define a new head scene that has the right properties: \definehead[scene][section] \define\PlaceLocation {\doifsomething{\structureuservariable{location}} {\structureuservariable{location}\blank[line]}} \setuphead [scene] [ placehead=empty, number=no, ...


2

The standard way to pass color options to a frame is to use the framecolor key. The value of that key can be accessed using \overlaylinecolor. For example: \setupcolors[state=start] \startuseMPgraphic{demo circle} newpath p ; p := fullcircle xscaled \overlaywidth yscaled \overlayheight ; fill p withcolor .85white ; draw p withpen pencircle ...



Top 50 recent answers are included